You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[11.0 regression] NativeAOT crashes in ComputeConstantLookup compiling ML.NET WrappedCursor.GetGetter #137774
After upgrading an existing Windows WinUI application from .NET 10 to .NET 11, NativeAOT compilation fails in an ML.NET generic virtual method. The same application previously built with NativeAOT on .NET 10 (reported by the application author). The .NET 11 failure was reproduced by directly rerunning ilc with the build-generated response file.
Release build with PublishAot=true, PublishTrimmed=true, TrimMode=full
Reproduction status / additional information
This is reproduced in an existing application; a standalone minimal reproduction is not yet available. No private application code or full response file is attached.
The failing ML.NET method forwards a generic virtual call to an underlying cursor. Adding --noscan to the same generated compiler invocation did not resolve the failure: that invocation exited with 0xC0000005 instead. No SDK fix or source-level workaround has been verified.
Expected behavior
NativeAOT compilation succeeds, as it previously did with .NET 10, rather than throwing an internal compiler NotImplementedException.
Actual behavior
Code generation failed for method '[Microsoft.ML.Data]Microsoft.ML.Data.DataViewConstructionUtils+DataViewBase1+WrappedCursor<System.__Canon>.GetGetter<ReadOnlyMemory1>(Column)'
System.AggregateException
---> ILCompiler.CodeGenerationFailedException
---> System.NotImplementedException: The method or operation is not implemented.
at ILCompiler.Compilation.ComputeConstantLookup(ReadyToRunHelperId, Object) in Compilation.cs:line 375
at Internal.JitInterface.CorInfoImpl.ComputeLookup(Boolean, Object, ReadyToRunHelperId, MethodDesc, CORINFO_LOOKUP&) in CorInfoImpl.RyuJit.cs:line 338
at Internal.JitInterface.CorInfoImpl.getCallInfo(CORINFO_RESOLVED_TOKEN&, CORINFO_RESOLVED_TOKEN*, CORINFO_METHOD_STRUCT_, CORINFO_CALLINFO_FLAGS, CORINFO_CALL_INFO) in CorInfoImpl.RyuJit.cs:line 1636
➡️ Summary: After upgrading to .NET 11, NativeAOT (ILC) fails with NotImplementedException in ComputeConstantLookup while compiling an ML.NET generic virtual method. Consider moving to dotnet/runtime if confirmed as an ILC bug.
Generated by 🏷️ Issue Triage for #137774 · copilot · auto · ~16 AIC · ⌖ ~1 AIC · ⊞ 14.6K · ◷
Activity
github-actions commentedon Nov 12, 2026
🎯 Agentic Issue Triage
Triage Assessment:
medium- No CODEOWNERS section matches NativeAOT, and the failure is in the ILC compiler, possibly owned by dotnet/runtime.Similar issues: dotnet/sdk#49587 (
potentially related)➡️ Summary: After upgrading to .NET 11, NativeAOT (ILC) fails with NotImplementedException in ComputeConstantLookup while compiling an ML.NET generic virtual method. Consider moving to dotnet/runtime if confirmed as an ILC bug.
dotnet-policy-service commentedon Nov 17, 2026
Tagging subscribers to this area: @agocke, @dotnet/ilc-contrib
See info in area-owners.md if you want to be subscribed.
Fix NativeAOT GVM dispatch cell lookup in shared code (dotnet#137885)
[release/11.0] Fix NativeAOT GVM dispatch cell lookup in shared code (#…