Skip to content

AOT CrossGen build error: NotImplementedException resolving tokens (ModuleTokenResolver) #125608

@MatousBot

Description

@MatousBot

Suggested labels: Known Build Error, test-failure, os-ios, os-tvos, arch-x64, arch-arm64, untriaged

Note: This issue was automatically generated by AI-Test-Triage. Please review and triage accordingly.

Build Information

Build: 20260311.9, 20260312.9, 20260313.5, 20260314.1

Build error leg or test failing: async.WorkItemExecution

Affected CI jobs: build_iossimulator_arm64_Release_AllSubsets_CoreCLR_RuntimeTests, build_tvossimulator_arm64_Release_AllSubsets_CoreCLR_RuntimeTests, build_tvos_arm64_Release_AllSubsets_CoreCLR_RuntimeTests, build_iossimulator_x64_Release_AllSubsets_CoreCLR_RuntimeTests, build_ios_arm64_Release_AllSubsets_CoreCLR_RuntimeTests

Causing Commit Range Information

Commit range: {TODO: Insert commit range or link to changes}

Summary

  • AOT CrossGen fails with ILCompiler.CodeGenerationFailedException caused by System.NotImplementedException in ModuleTokenResolver.GetModuleTokenForType.
  • Failure occurs during MSBuild CrossGen/ReadyToRun proxy AOT builds (ProxyProjectForAOTOnHelix.proj) during publish on Helix.
  • Observed across iOS/tvOS targets and architectures (device arm64 and simulators including x64 and arm64).
  • ModuleTokenResolver cannot resolve instantiated generic value types and arrays (e.g., S, int32[], string[]), breaking async/state-machine methods.
  • AOT build aborts and packaging fails (missing app Info.plist); observed exit codes vary (e.g., XHarness 4, build exit code 21).
  • This is a build-time CrossGen/ILCompiler token-resolution tooling issue, not a runtime test failure or simulator crash.

Failure Statistics

Note: These statistics are based on the configured time range and might not reflect the full history of the failure.

  • Occurrence Count: 17
  • First Failure: 2026-03-12 10:04:01 UTC
  • Last Failure: 2026-03-15 07:02:35 UTC

Work Items

Showing 10 most recent of 17 occurrences

Work Item Console Log Build Job Name
async Work Item
View Extract
[00:46:52] info: Preparing run for ios-simulator-64
[00:46:52] info: Looking for available ios-simulator-64 simulators..
[00:46:57] info: Found simulator device 'iPhone 11 Pro (iOS 18.1) - created by XHarness'
[00:46:57] info: Getting app bundle information from '/tmp/helix/working/B462096E/w/A10208E6/e/async.app'..
[00:46:57] fail: Failed to find Info.plist inside the app bundle at: '/tmp/helix/working/B462096E/w/A10208E6/e/async.app/Info.plist'
[00:46:57] dbug: Saving diagnostics data to '/tmp/helix/working/B462096E/w/A10208E6/e/diagnostics.json'
XHarness exit code: 4 (PACKAGE_NOT_FOUND)
+ exit_code=4
...
MSBuild version 18.4.0-preview-26104-118+87bc0b04e for .NET
** Building a proxy for the original test project, to AOT on helix. **
.../Microsoft.NET.CrossGen.targets(488,5): error : Unhandled exception. ILCompiler.CodeGenerationFailedException: Code generation failed for method '[cse-array-index-byref]CseArrayIndexByref.RESUME_HoistedByref(object,uint8&)' [/.../ProxyProjectForAOTOnHelix.proj]
.../Microsoft.NET.CrossGen.targets(488,5): error : ---> System.NotImplementedException: int32[] [/.../ProxyProjectForAOTOnHelix.proj]
.../ModuleTokenResolver.cs:line 92
.../Microsoft.NET.CrossGen.targets(488,5): error : Unhandled exception. ILCompiler.CodeGenerationFailedException: Code generation failed for method '[returns]Async2Returns.RESUME_ReturnsStructGC(object,uint8&)' [/.../ProxyProjectForAOTOnHelix.proj]
.../Microsoft.NET.CrossGen.targets(488,5): error : ---> System.NotImplementedException: [returns]Async2Returns+S`1<string> [/.../ProxyProjectForAOTOnHelix.proj]
.../CorInfoImpl.ReadyToRun.cs:line 1489
.../Microsoft.NET.CrossGen.targets(488,5): error : --- End of inner exception stack trace ---
Full Log
20260312.9 build_iossimulator_arm64_Release_AllSubsets_CoreCLR_RuntimeTests
async Work Item
View Extract
[00:07:01] info: Preparing run for tvos-simulator
[00:07:01] info: Looking for available tvos-simulator simulators..
[00:07:07] info: Found simulator device 'Apple TV'
[00:07:07] info: Getting app bundle information from '/tmp/helix/working/AFFF09C2/w/B5AB09A7/e/async.app'..
[00:07:07] fail: Failed to find Info.plist inside the app bundle at: '/tmp/helix/working/AFFF09C2/w/B5AB09A7/e/async.app/Info.plist'
[00:07:07] dbug: Saving diagnostics data to '/tmp/helix/working/AFFF09C2/w/B5AB09A7/e/diagnostics.json'
XHarness exit code: 4 (PACKAGE_NOT_FOUND)
...
MSBuild version 18.4.0-preview-26104-118+87bc0b04e for .NET
** Building a proxy for the original test project, to AOT on helix. **
.../Microsoft.NET.CrossGen.targets(488,5): error : Unhandled exception. ILCompiler.CodeGenerationFailedException: Code generation failed for method '[void]Async2Void.RESUME_HoistedByref(object,uint8&)'
.../Microsoft.NET.CrossGen.targets(488,5): error : ---> System.NotImplementedException: int32[]
.../ModuleTokenResolver.cs:line 92
.../Microsoft.NET.CrossGen.targets(488,5): error : Unhandled exception. ILCompiler.CodeGenerationFailedException: Code generation failed for method '[returns]Async2Returns.RESUME_ReturnsStruct(object,uint8&)'
.../Microsoft.NET.CrossGen.targets(488,5): error : ---> System.NotImplementedException: [returns]Async2Returns+S`1<int64]
.../ModuleTokenResolver.cs:line 92
Full Log
20260313.5 build_tvossimulator_arm64_Release_AllSubsets_CoreCLR_RuntimeTests
async Work Item
View Extract
[00:09:17] info: Preparing run for ios-simulator-64
[00:09:17] info: Looking for available ios-simulator-64 simulators..
[00:09:19] info: Found simulator device 'iPhone 11 Pro (iOS 18.1) - created by XHarness'
[00:09:19] info: Getting app bundle information from '/tmp/helix/working/ABA20991/w/B8BB09DE/e/async.app'..
[00:09:19] fail: Failed to find Info.plist inside the app bundle at: '/tmp/helix/working/ABA20991/w/B8BB09DE/e/async.app/Info.plist'
[00:09:19] dbug: Saving diagnostics data to '/tmp/helix/working/ABA20991/w/B8BB09DE/e/diagnostics.json'
XHarness exit code: 4 (PACKAGE_NOT_FOUND)
...
MSBuild version 18.4.0-preview-26104-118+87bc0b04e for .NET
** Building a proxy for the original test project, to AOT on helix. ... **
.../Microsoft.NET.Sdk/targets/Microsoft.NET.CrossGen.targets(488,5): error : Error: Code generation failed for method '[returns]Async2Returns.RESUME_ReturnsBytes(object,uint8&)'
...error : Unhandled exception. ILCompiler.CodeGenerationFailedException: Code generation failed for method '[strength-reduction]StrengthReductionTest.RESUME_StrengthReduction(object,uint8&)'
...error : ---> System.NotImplementedException: int32[]
...error : ---> System.NotImplementedException: string[]
...error : at ILCompiler.DependencyAnalysis.ReadyToRun.ModuleTokenResolver.GetModuleTokenForType(TypeDesc type, ... ModuleTokenResolver.cs:line 92
...error : at Internal.JitInterface.CorInfoImpl.HandleToModuleToken(CORINFO_RESOLVED_TOKEN& pResolvedToken) ... ReadyToRun.cs:line 1459
...error : at Internal.JitInterface.CorInfoImpl.CompileMethod(...) in CorInfoImpl.ReadyToRun.cs:line 842
...error : at ILCompiler.ReadyToRunCodegenCompilation....ComputeDependencyNodeDependencies...
Full Log
20260313.5 build_iossimulator_x64_Release_AllSubsets_CoreCLR_RuntimeTests
async Work Item
View Extract
  ** Building a proxy for the original test project, to AOT on helix. In order to do that, this recreates the original inputs for the iOS/tvOS part of the build. See /private/tmp/helix/working/A3600919/w/A703093B/e/publish/ProxyProjectForAOTOnHelix.proj, and . **
/private/tmp/helix/working/A3600919/p/dotnet-cli/sdk/11.0.100-preview.1.26104.118/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.CrossGen.targets(488,5): error : Error: Code generation failed for method '[returns]Async2Returns.RESUME_ReturnsStruct(object,uint8&)' [/private/tmp/helix/working/A3600919/w/A703093B/e/publish/ProxyProjectForAOTOnHelix.proj]
/private/tmp/helix/working/A3600919/p/dotnet-cli/sdk/11.0.100-preview.1.26104.118/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.CrossGen.targets(488,5): error : Unhandled exception. ILCompiler.CodeGenerationFailedException: Code generation failed for method '[cse-array-index-byref]CseArrayIndexByref.RESUME_HoistedByref(object,uint8&)' [/private/tmp/helix/working/A3600919/w/A703093B/e/publish/ProxyProjectForAOTOnHelix.proj]
/private/tmp/helix/working/A3600919/p/dotnet-cli/sdk/11.0.100-preview.1.26104.118/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.CrossGen.targets(488,5): error : ---> System.NotImplementedException: int32[] [/private/tmp/helix/working/A3600919/w/A703093B/e/publish/ProxyProjectForAOTOnHelix.proj]
/private/tmp/helix/working/A3600919/p/dotnet-cli/sdk/11.0.100-preview.1.26104.118/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.CrossGen.targets(488,5): error : at ILCompiler.DependencyAnalysis.ReadyToRun.ModuleTokenResolver.GetModuleTokenForType(TypeDesc type, Boolean allowDynamicallyCreatedReference, Boolean throwIfNotFound) in //src/coreclr/tools/aot/ILCompiler.ReadyToRun/Compiler/DependencyAnalysis/ReadyToRun/ModuleTokenResolver.cs:line 92 [/private/tmp/helix/working/A3600919/w/A703093B/e/publish/ProxyProjectForAOTOnHelix.proj]
/private/tmp/helix/working/A3600919/p/dotnet-cli/sdk/11.0.100-preview.1.26104.118/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.CrossGen.targets(488,5): error : at Internal.JitInterface.CorInfoImpl.<HandleToModuleToken>g__GetModuleTokenForType|40_0(TypeSystemEntity resultDef, <>c__DisplayClass40_0&) in /
/src/coreclr/tools/aot/ILCompiler.ReadyToRun/JitInterface/CorInfoImpl.ReadyToRun.cs:line 1479 [/private/tmp/helix/working/A3600919/w/A703093B/e/publish/ProxyProjectForAOTOnHelix.proj]
/private/tmp/helix/working/A3600919/p/dotnet-cli/sdk/11.0.100-preview.1.26104.118/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.CrossGen.targets(488,5): error : at Internal.JitInterface.CorInfoImpl.HandleToModuleToken(CORINFO_RESOLVED_TOKEN& pResolvedToken) in //src/coreclr/tools/aot/ILCompiler.ReadyToRun/JitInterface/CorInfoImpl.ReadyToRun.cs:line 1459 [/private/tmp/helix/working/A3600919/w/A703093B/e/publish/ProxyProjectForAOTOnHelix.proj]
/private/tmp/helix/working/A3600919/p/dotnet-cli/sdk/11.0.100-preview.1.26104.118/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.CrossGen.targets(488,5): error : Unhandled exception. ILCompiler.CodeGenerationFailedException: Code generation failed for method '[inst-unbox-thunks]InstUnBoxThunks.RESUME_CallStruct1M1Field(object,uint8&)' [/private/tmp/helix/working/A3600919/w/A703093B/e/publish/ProxyProjectForAOTOnHelix.proj]
/private/tmp/helix/working/A3600919/p/dotnet-cli/sdk/11.0.100-preview.1.26104.118/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.CrossGen.targets(488,5): error : ---> System.NotImplementedException: [inst-unbox-thunks]InstUnBoxThunks+Box`1<System.__Canon> [/private/tmp/helix/working/A3600919/w/A703093B/e/publish/ProxyProjectForAOTOnHelix.proj]
/private/tmp/helix/working/A3600919/p/dotnet-cli/sdk/11.0.100-preview.1.26104.118/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.CrossGen.targets(488,5): error : at ILCompiler.DependencyAnalysis.ReadyToRun.ModuleTokenResolver.GetModuleTokenForType(TypeDesc type, Boolean allowDynamicallyCreatedReference, Boolean throwIfNotFound) in /
/src/coreclr/tools/aot/ILCompiler.ReadyToRun/Compiler/DependencyAnalysis/ReadyToRun/ModuleTokenResolver.cs:line 92
Full Log
20260313.5 build_ios_arm64_Release_AllSubsets_CoreCLR_RuntimeTests
async Work Item
View Extract
[00:19:56] info: Preparing run for ios-simulator-64
[00:19:56] info: Looking for available ios-simulator-64 simulators..
[00:19:56] dbug: Looking for available ios-simulator-64 simulators. Storing logs into list-ios-simulator-64-20260314_001956.log
[00:20:00] info: Found simulator device 'iPhone 11 Pro (iOS 18.1) - created by XHarness'
[00:20:00] info: Getting app bundle information from '/tmp/helix/working/AA300932/w/9DA408A3/e/async.app'..
[00:20:00] fail: Failed to find Info.plist inside the app bundle at: '/tmp/helix/working/AA300932/w/9DA408A3/e/async.app/Info.plist'
[00:20:00] dbug: Saving diagnostics data to '/tmp/helix/working/AA300932/w/9DA408A3/e/diagnostics.json'
XHarness exit code: 4 (PACKAGE_NOT_FOUND)
+ exit_code=4

MSBuild version 18.4.0-preview-26104-118+87bc0b04e for .NET
** Building a proxy for the original test project, to AOT on helix. ... **
/private/tmp/helix/working/AA300932/p/dotnet-cli/sdk/.../Microsoft.NET.CrossGen.targets(488,5): error : Unhandled exception. ILCompiler.CodeGenerationFailedException: Code generation failed for method '[void]Async2Void.RESUME_HoistedByref(object,uint8&)'
/../Microsoft.NET.CrossGen.targets(488,5): error : ---> System.NotImplementedException: int32[]
/../Microsoft.NET.CrossGen.targets(488,5): error : at ILCompiler.DependencyAnalysis.ReadyToRun.ModuleTokenResolver.GetModuleTokenForType(TypeDesc type, Boolean allowDynamicallyCreatedReference, Boolean throwIfNotFound) in .../ModuleTokenResolver.cs:line 92
/../Microsoft.NET.CrossGen.targets(488,5): error : at Internal.JitInterface.CorInfoImpl.<HandleToModuleToken>g__GetModuleTokenForType|40_0(...) in .../CorInfoImpl.ReadyToRun.cs:line 1479
/../Microsoft.NET.CrossGen.targets(488,5): error : Unhandled exception. ILCompiler.CodeGenerationFailedException: Code generation failed for method '[cse-array-index-byref]CseArrayIndexByref.RESUME_HoistedByref(object,uint8&)'
/../Microsoft.NET.CrossGen.targets(488,5): error : ---> System.NotImplementedException: int32[]
Full Log
20260313.5 build_iossimulator_arm64_Release_AllSubsets_CoreCLR_RuntimeTests
async Work Item
View Extract
MSBuild version 18.4.0-preview-26104-118+87bc0b04e for .NET
** Building a proxy for the original test project, to AOT on helix. In order to do that, this recreates the original inputs for the iOS/tvOS part of the build. See /private/tmp/helix/working/B81E09FD/w/AF750976/e/publish/ProxyProjectForAOTOnHelix.proj, and . **
/private/tmp/helix/working/B81E09FD/p/dotnet-cli/sdk/11.0.100-preview.1.26104.118/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.CrossGen.targets(488,5): error : Error: Code generation failed for method '[async]Program.RESUME_<Main>$(object,uint8&)' [/private/tmp/helix/working/B81E09FD/w/AF750976/e/publish/ProxyProjectForAOTOnHelix.proj]
/private/tmp/helix/working/B81E09FD/p/dotnet-cli/sdk/11.0.100-preview.1.26104.118/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.CrossGen.targets(488,5): error : Unhandled exception. ILCompiler.CodeGenerationFailedException: Code generation failed for method '[returns]Async2Returns.RESUME_ReturnsStructGC(object,uint8&)' [/private/tmp/helix/working/B81E09FD/w/AF750976/e/publish/ProxyProjectForAOTOnHelix.proj]
/private/tmp/helix/working/B81E09FD/p/dotnet-cli/sdk/11.0.100-preview.1.26104.118/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.CrossGen.targets(488,5): error : ---> System.NotImplementedException: [returns]Async2Returns+S1&lt;string&gt; [/private/tmp/helix/working/B81E09FD/w/AF750976/e/publish/ProxyProjectForAOTOnHelix.proj]<br/>/private/tmp/helix/working/B81E09FD/p/dotnet-cli/sdk/11.0.100-preview.1.26104.118/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.CrossGen.targets(488,5): error : at ILCompiler.DependencyAnalysis.ReadyToRun.ModuleTokenResolver.GetModuleTokenForType(TypeDesc type, Boolean allowDynamicallyCreatedReference, Boolean throwIfNotFound) in /_/src/coreclr/tools/aot/ILCompiler.ReadyToRun/Compiler/DependencyAnalysis/ReadyToRun/ModuleTokenResolver.cs:line 92 [/private/tmp/helix/working/B81E09FD/w/AF750976/e/publish/ProxyProjectForAOTOnHelix.proj]<br/>/private/tmp/helix/working/B81E09FD/p/dotnet-cli/sdk/11.0.100-preview.1.26104.118/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.CrossGen.targets(488,5): error : at Internal.JitInterface.CorInfoImpl.&lt;HandleToModuleToken&gt;g__GetModuleTokenForType&#124;40_0(TypeSystemEntity resultDef, &lt;&gt;c__DisplayClass40_0&amp;) in /_/src/coreclr/tools/aot/ILCompiler.ReadyToRun/JitInterface/CorInfoImpl.ReadyToRun.cs:line 1489 [/private/tmp/helix/working/B81E09FD/w/AF750976/e/publish/ProxyProjectForAOTOnHelix.proj]<br/>/private/tmp/helix/working/B81E09FD/p/dotnet-cli/sdk/11.0.100-preview.1.26104.118/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.CrossGen.targets(488,5): error : at Internal.JitInterface.CorInfoImpl.HandleToModuleToken(CORINFO_RESOLVED_TOKEN&amp; pResolvedToken) in /_/src/coreclr/tools/aot/ILCompiler.ReadyToRun/JitInterface/CorInfoImpl.ReadyToRun.cs:line 1459 [/private/tmp/helix/working/B81E09FD/w/AF750976/e/publish/ProxyProjectForAOTOnHelix.proj]<br/>/private/tmp/helix/working/B81E09FD/p/dotnet-cli/sdk/11.0.100-preview.1.26104.118/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.CrossGen.targets(488,5): error : Unhandled exception. ILCompiler.CodeGenerationFailedException: Code generation failed for method '[returns]Async2Returns.RESUME_ReturnsStruct(object,uint8&amp;)' [/private/tmp/helix/working/B81E09FD/w/AF750976/e/publish/ProxyProjectForAOTOnHelix.proj]<br/>/private/tmp/helix/working/B81E09FD/p/dotnet-cli/sdk/11.0.100-preview.1.26104.118/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.CrossGen.targets(488,5): error : ---&gt; System.NotImplementedException: [returns]Async2Returns+S1<int64> [/private/tmp/helix/working/B81E09FD/w/AF750976/e/publish/ProxyProjectForAOTOnHelix.proj]
/private/tmp/helix/working/B81E09FD/p/dotnet-cli/sdk/11.0.100-preview-26104-118/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.CrossGen.targets(488,5): error : at ILCompiler.DependencyAnalysis.ReadyToRun.ModuleTokenResolver.GetModuleTokenForType(TypeDesc type, Boolean allowDynamicallyCreatedReference, Boolean throwIfNotFound) in /_/src/coreclr/tools/aot/ILCompiler.ReadyToRun/Compiler/DependencyAnalysis/ReadyToRun/ModuleTokenResolver.cs:line 92
Full Log
20260313.5 build_tvos_arm64_Release_AllSubsets_CoreCLR_RuntimeTests
async Work Item
View Extract
[00:13:56] info: Preparing run for tvos-simulator
[00:13:56] info: Looking for available tvos-simulator simulators..
[00:13:56] dbug: Looking for available tvos-simulator simulators. Storing logs into list-tvos-simulator-20260315_001356.log
[00:14:01] info: Found simulator device 'Apple TV'
[00:14:01] info: Getting app bundle information from '/tmp/helix/working/B5CD09A8/w/9FA908C9/e/async.app'..
[00:14:01] fail: Failed to find Info.plist inside the app bundle at: '/tmp/helix/working/B5CD09A8/w/9FA908C9/e/async.app/Info.plist'
[00:14:01] dbug: Saving diagnostics data to '/tmp/helix/working/B5CD09A8/w/9FA908C9/e/diagnostics.json'
XHarness exit code: 4 (PACKAGE_NOT_FOUND)

** Building a proxy for the original test project, to AOT on helix. **
...
/…/Microsoft.NET.CrossGen.targets(489,5): error : Unhandled exception. ILCompiler.CodeGenerationFailedException: Code generation failed for method '[strength-reduction]StrengthReductionTest.RESUME_StrengthReduction(object,uint8&)'
/…/Microsoft.NET.CrossGen.targets(489,5): error : ---> System.NotImplementedException: int32[]
/…/ModuleTokenResolver.cs:line 92 [/…/ProxyProjectForAOTOnHelix.proj]
/…/CorInfoImpl.ReadyToRun.cs:line 1479
/…/CorInfoImpl.cs:line 1952
/…/ReadyToRunCodegenCompilation.cs:line 903
/…/ReadyToRunCodegenCompilation.cs:line 838
Full Log
20260314.1 build_tvossimulator_arm64_Release_AllSubsets_CoreCLR_RuntimeTests
async Work Item
View Extract
[00:35:54] info: Preparing run for ios-simulator-64
[00:35:54] info: Looking for available ios-simulator-64 simulators..
[00:36:00] info: Found simulator device 'iPhone 11 Pro (iOS 18.1) - created by XHarness'
[00:36:00] info: Getting app bundle information from '/tmp/helix/working/9F2008DF/w/B4CD09CD/e/async.app'..
[00:36:00] fail: Failed to find Info.plist inside the app bundle at: '/tmp/helix/working/9F2008DF/w/B4CD09CD/e/async.app/Info.plist'
[00:36:00] dbug: Saving diagnostics data to '/tmp/helix/working/9F2008DF/w/B4CD09CD/e/diagnostics.json'
XHarness exit code: 4 (PACKAGE_NOT_FOUND)
+ exit_code=4
...
MSBuild version 18.6.0-preview-26161-119+da7142434 for .NET
/private/tmp/helix/working/9F2008DF/p/dotnet-cli/sdk/11.0.100-preview.3.26161.119/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.CrossGen.targets(489,5): error : Unhandled exception. ILCompiler.CodeGenerationFailedException: Code generation failed for method '[returns]Async2Returns.RESUME_ReturnsStruct(object,uint8&)'
... error : ---> System.NotImplementedException: [returns]Async2Returns+S`1<int64>
... error : at ILCompiler.DependencyAnalysis.ReadyToRun.ModuleTokenResolver.GetModuleTokenForType(TypeDesc type, Boolean allowDynamicallyCreatedReference, Boolean throwIfNotFound) in /_/src/coreclr/tools/aot/ILCompiler.ReadyToRun/Compiler/DependencyAnalysis/ReadyToRun/ModuleTokenResolver.cs:line 92
... error : Unhandled exception. ILCompiler.CodeGenerationFailedException: Code generation failed for method '[cse-array-index-byref]CseArrayIndexByref.RESUME_HoistedByref(object,uint8&)'
... error : ---> System.NotImplementedException: int32[]
Full Log
20260314.1 build_iossimulator_arm64_Release_AllSubsets_CoreCLR_RuntimeTests
async Work Item
View Extract
[00:42:41] info: Preparing run for ios-simulator-64
[00:42:41] info: Looking for available ios-simulator-64 simulators..
[00:42:41] dbug: Looking for available ios-simulator-64 simulators. Storing logs into list-ios-simulator-64-20260315_004241.log
[00:42:44] info: Found simulator device 'iPhone 11 Pro (iOS 18.1) - created by XHarness'
[00:42:44] info: Getting app bundle information from '/tmp/helix/working/AFDD091F/w/BD9F0A6D/e/async.app'..
[00:42:44] fail: Failed to find Info.plist inside the app bundle at: '/tmp/helix/working/AFDD091F/w/BD9F0A6D/e/async.app/Info.plist'
[00:42:44] dbug: Saving diagnostics data to '/tmp/helix/working/AFDD091F/w/BD9F0A6D/e/diagnostics.json'
XHarness exit code: 4 (PACKAGE_NOT_FOUND)
+ exit_code=4

...build/publish errors earlier in log:
/private/tmp/helix/working/AFDD091F/p/dotnet-cli/.../Microsoft.NET.CrossGen.targets(489,5): error : Error: Code generation failed for method '[returns]Async2Returns.RESUME_ReturnsStruct(object,uint8&)'
/private/tmp/helix/working/AFDD091F/p/dotnet-cli/.../Microsoft.NET.CrossGen.targets(489,5): error : Unhandled exception. ILCompiler.CodeGenerationFailedException: Code generation failed for method '[returns]Async2Returns.RESUME_ReturnsBytes(object,uint8&)'
/private/tmp/helix/working/AFDD091F/p/dotnet-cli/...: error : ---> System.NotImplementedException: [returns]Async2Returns+S`1<uint8>
/private/tmp/helix/working/AFDD091F/p/dotnet-cli/...: error : ---> System.NotImplementedException: int32[]
Full Log
20260314.1 build_iossimulator_x64_Release_AllSubsets_CoreCLR_RuntimeTests
async Work Item
View Extract
  ** Building a proxy for the original test project, to AOT on helix. In order to do that, this recreates the original inputs for the iOS/tvOS part of the build. See /private/tmp/helix/working/AC7F093F/w/B87309F3/e/publish/ProxyProjectForAOTOnHelix.proj, and . **
/private/tmp/helix/working/AC7F093F/p/dotnet-cli/sdk/11.0.100-preview.3.26161.119/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.CrossGen.targets(489,5): error : Error: Code generation failed for method '[returns]Async2Returns.RESUME_ReturnsBytes(object,uint8&)' [/private/tmp/helix/working/AC7F093F/w/B87309F3/e/publish/ProxyProjectForAOTOnHelix.proj]
/private/tmp/helix/working/AC7F093F/p/dotnet-cli/sdk/11.0.100-preview.3.26161.119/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.CrossGen.targets(489,5): error : Unhandled exception. ILCompiler.CodeGenerationFailedException: Code generation failed for method '[cse-array-index-byref]CseArrayIndexByref.RESUME_HoistedByref(object,uint8&)' [/private/tmp/helix/working/AC7F093F/w/B87309F3/e/publish/ProxyProjectForAOTOnHelix.proj]
/private/tmp/helix/working/AC7F093F/p/dotnet-cli/sdk/11.0.100-preview.3.26161.119/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.CrossGen.targets(489,5): error : ---> System.NotImplementedException: int32[] [/private/tmp/helix/working/AC7F093F/w/B87309F3/e/publish/ProxyProjectForAOTOnHelix.proj]
/private/tmp/helix/working/AC7F093F/p/dotnet-cli/sdk/11.0.100-preview.3.26161.119/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.CrossGen.targets(489,5): error : at ILCompiler.DependencyAnalysis.ReadyToRun.ModuleTokenResolver.GetModuleTokenForType(TypeDesc type, Boolean allowDynamicallyCreatedReference, Boolean throwIfNotFound) in //src/coreclr/tools/aot/ILCompiler.ReadyToRun/Compiler/DependencyAnalysis/ReadyToRun/ModuleTokenResolver.cs:line 92 [/private/tmp/helix/working/AC7F093F/w/B87309F3/e/publish/ProxyProjectForAOTOnHelix.proj]
/private/tmp/helix/working/AC7F093F/p/dotnet-cli/sdk/11.0.100-preview.3.26161.119/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.CrossGen.targets(489,5): error : at Internal.JitInterface.CorInfoImpl.<HandleToModuleToken>g__GetModuleTokenForType|40_0(TypeSystemEntity resultDef, <>c__DisplayClass40_0&) in /
/src/coreclr/tools/aot/ILCompiler.ReadyToRun/JitInterface/CorInfoImpl.ReadyToRun.cs:line 1479 [/private/tmp/helix/working/AC7F093F/w/B87309F3/e/publish/ProxyProjectForAOTOnHelix.proj]
/private/tmp/helix/working/AC7F093F/p/dotnet-cli/sdk/11.0.100-preview.3.26161.119/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.CrossGen.targets(489,5): error : Unhandled exception. ILCompiler.CodeGenerationFailedException: Code generation failed for method '[returns]Async2Returns.RESUME_ReturnsStruct(object,uint8&)' [/private/tmp/helix/working/AC7F093F/w/B87309F3/e/publish/ProxyProjectForAOTOnHelix.proj]
/private/tmp/helix/working/AC7F093F/p/dotnet-cli/sdk/11.0.100-preview.3.26161.119/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.CrossGen.targets(489,5): error : ---> System.NotImplementedException: [returns]Async2Returns+S`1<int64> [/private/tmp/helix/working/AC7F093F/w/B87309F3/e/publish/ProxyProjectForAOTOnHelix.proj]
/private/tmp/helix/working/AC7F093F/p/dotnet-cli/sdk/11.0.100-preview.3.26161.119/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.CrossGen.targets(489,5): error : at ILCompiler.DependencyAnalysis.ReadyToRun.ModuleTokenResolver.GetModuleTokenForType(TypeDesc type, Boolean allowDynamicallyCreatedReference, Boolean throwIfNotFound) in /_/src/coreclr/tools/aot/ILCompiler.ReadyToRun/Compiler/DependencyAnalysis/ReadyToRun/ModuleTokenResolver.cs:line 92
Full Log
20260314.1 build_tvos_arm64_Release_AllSubsets_CoreCLR_RuntimeTests

Error Message

{
  "ErrorMessage": "ILCompiler.CodeGenerationFailedException: Code generation failed for method",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Report

Build Definition Step Name Console log Pull Request
1337621 dotnet/runtime Build product Log #124770
Build Definition Test Pull Request
1337540 dotnet/runtime async.WorkItemExecution #125481
1337011 dotnet/runtime async.WorkItemExecution #125478

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
3 3 3

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions