Repository navigation
AOT CrossGen build error: NotImplementedException resolving tokens (ModuleTokenResolver) #125608
Description
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 |
20260312.9 | build_iossimulator_arm64_Release_AllSubsets_CoreCLR_RuntimeTests |
| async Work Item | View Extract[00:07:01] info: Preparing run for tvos-simulator |
20260313.5 | build_tvossimulator_arm64_Release_AllSubsets_CoreCLR_RuntimeTests |
| async Work Item | View Extract[00:09:17] info: Preparing run for ios-simulator-64 |
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 . ** |
20260313.5 | build_ios_arm64_Release_AllSubsets_CoreCLR_RuntimeTests |
| async Work Item | View Extract[00:19:56] info: Preparing run for ios-simulator-64 |
20260313.5 | build_iossimulator_arm64_Release_AllSubsets_CoreCLR_RuntimeTests |
| async Work Item | View ExtractMSBuild version 18.4.0-preview-26104-118+87bc0b04e for .NET |
20260313.5 | build_tvos_arm64_Release_AllSubsets_CoreCLR_RuntimeTests |
| async Work Item | View Extract[00:13:56] info: Preparing run for tvos-simulator |
20260314.1 | build_tvossimulator_arm64_Release_AllSubsets_CoreCLR_RuntimeTests |
| async Work Item | View Extract[00:35:54] info: Preparing run for ios-simulator-64 |
20260314.1 | build_iossimulator_arm64_Release_AllSubsets_CoreCLR_RuntimeTests |
| async Work Item | View Extract[00:42:41] info: Preparing run for ios-simulator-64 |
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 . ** |
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
Labels
Type
Projects
- StatusShow more project fieldsNo status
Activity
dotnet-policy-service commentedon Mar 16, 2026
Tagging subscribers to 'os-tvos': @vitek-karas, @kotlarmilos, @steveisok, @akoeplinger
See info in area-owners.md if you want to be subscribed.
dotnet-policy-service commentedon Mar 16, 2026
Tagging subscribers to 'os-ios': @vitek-karas, @kotlarmilos, @steveisok, @akoeplinger
See info in area-owners.md if you want to be subscribed.
jkotas commentedon Mar 16, 2026
cc @jtschuster
jtschuster commentedon Mar 16, 2026
This should be fixed by #125538
jtschuster commentedon Mar 16, 2026
Looks like this isn't happening anymore: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1337995&view=logs&j=747d7729-4383-5624-d8f7-8c866d58f280&t=2ff6a4e2-4bb0-57a2-4370-0b1ef6030ab8