Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wasm AOT library test failure - Attempting to JIT compile method #46708

Closed
3 tasks
mdh1418 opened this issue Jan 7, 2021 · 2 comments
Closed
3 tasks

wasm AOT library test failure - Attempting to JIT compile method #46708

mdh1418 opened this issue Jan 7, 2021 · 2 comments
Labels
Milestone

Comments

@mdh1418
Copy link
Member

mdh1418 commented Jan 7, 2021

In effort to run library tests with AOT compilation and EnableAggressiveTrimming enabled on CI #48226 these errors are hit.

  • System.ExecutionEngineException : Attempting to JIT compile method '(wrapper dynamic-method) object object:lambda_method
    System.Linq.Tests
    System.Xml.XmlSerializer.ReflectionOnly.Tests
    System.Linq.Queryable.Tests
    Microsoft.Extensions.DependencyInjection.Tests
    System.Composition.Tests
    System.ComponentModel.TypeConverter.Tests
    System.ComponentModel.Composition.Registration.Tests
    System.Composition.Convention.Tests
    System.Composition.TypedParts.Tests
    Microsoft.Extensions.Http.Tests
    System.Composition.Hosting.Tests

  • System.ExecutionEngineException : Attempting to JIT compile method '(wrapper dynamic-method) object Microsoft.Extensions.DependencyInjection.ServiceLookup.ILEmitResolverBuilder:ResolveService (Microsoft.Extensions.DependencyInjection.ServiceLookup.ILEmitResolverBuilder/ILEmitResolverBuilderRuntimeContext,Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope)' while running in aot-only mode. See https://docs.microsoft.com/xamarin/ios/internals/limitations for more information.
    Microsoft.Extensions.DependencyInjection.Tests

  • System.ExecutionEngineException : Attempting to JIT compile method
    Microsoft.CSharp.Tests
    System.Reflection.Emit.ILGeneration.Tests
    System.Reflection.Emit.Tests
    System.Reflection.Metadata.Tests
    System.Runtime.InteropServices.Tests
    System.Text.Json.Tests
    System.Numerics.Vectors.Tests
    System.Runtime.Serialization.Json.Tests
    System.Threading.Channels.Tests
    System.ServiceModel.Syndication.Tests
    System.Reflection.DispatchProxy.Tests
    System.Net.Http.Json.Functional.Tests
    System.Reflection.Emit.Lightweight.Tests
    System.Drawing.Primitives.Tests
    System.Memory.Tests
    System.Memory.Data.Tests
    System.Net.Http.Json.Unit.Tests
    System.Net.WebSockets.Tests

Repro:
Check out changes in
4f17c4e without this, many tests are not discovered.
4e7ab85 this one helps avoid some AOT compilation errors with this exception filter. There shouldn't be exception filter issues anymore.

./build.sh -os Browser -arch wasm -c Release
./dotnet.sh build /t:Test /p:TargetOS=Browser /p:TargetArchitecture=wasm /p:Configuration=Release /p:EnableAggressiveTrimming=true /p:RunAOTCompilation=true src/libraries/<path-to-test-proj>

@Dotnet-GitSync-Bot Dotnet-GitSync-Bot added the untriaged New issue has not been triaged by the area owner label Jan 7, 2021
@ghost
Copy link

ghost commented Jan 7, 2021

Tagging subscribers to this area: @safern, @ViktorHofer
See info in area-owners.md if you want to be subscribed.

Issue Details

In effort to run library tests with AOT compilation on CI #46633, there are a number of failures arising from #46651.

Test suite System.ComponentModel.Composition.Registration.Tests.csproj fails with
Assertion at /Users/mdhwang/runtime_wasm_clean/src/mono/mono/metadata/native-library.c:708, condition `<disabled>' not met
SCCRT.txt

Repro:
Check out changes in #46651
./build.sh -os Browser -arch wasm -c Release
Remove

<!-- Temporary until https://github.com/mono/linker/issues/1713 is resolved -->
<assembly fullname="Microsoft.DotNet.RemoteExecutor">
<type fullname="Microsoft.DotNet.RemoteExecutor.Program">
<method signature="System.Int32 Main(System.String[])" />
</type>
</assembly>

./dotnet.sh build /t:Test /p:TargetOS=Browser /p:TargetArchitecture=wasm /p:Configuration=Release /p:EnableAggressiveTrimming=true /p:RunAOTCompilation=true src/libraries/System.IO.FileSystem/tests/ManualTests/System.IO.FileSystem.Manual.Tests.csproj

Author: mdh1418
Assignees: -
Labels:

arch-wasm, area-Infrastructure-libraries

Milestone: -

@lewing lewing removed the untriaged New issue has not been triaged by the area owner label Jan 12, 2021
@lewing lewing added this to the 6.0.0 milestone Jan 12, 2021
@lewing
Copy link
Member

lewing commented Mar 5, 2021

These look like System.Reflection.Emit

@lewing lewing closed this as completed Jun 17, 2021
@ghost ghost locked as resolved and limited conversation to collaborators Jul 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants