Skip to content

[11.0 regression] NativeAOT crashes in ComputeConstantLookup compiling ML.NET WrappedCursor.GetGetter #137774

Closed

Description

@sdanev

Describe the bug

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.

Steps to reproduce

Environment

  • .NET SDK: 11.0.100
  • Runtime / Microsoft.DotNet.ILCompiler: 11.0.0
  • Compiler package repository commit: 297acf930fb0f5c07fd4e51d78e521b4ad2e5d1f (dotnet/dotnet)
  • Windows, win-x64
  • Target framework: net11.0-windows10.0.26100.0
  • Microsoft.ML / Microsoft.ML.DataView: 5.0.1
  • Microsoft.ML.TimeSeries: 5.0.1; Microsoft.ML.AutoML: 0.23.0
  • 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

Is this a regression?

[11.0 regression]

Are there any workarounds?

No response

dotnet --info output

IDE version

No response

Other details

No response

Activity

  1. added
    untriaged
    on Nov 12, 2026
  2. locked and limited conversation to collaborators on Nov 12, 2026
  3. unlocked this conversation on Nov 12, 2026
  4. added and removed
    untriaged
    on Nov 12, 2026
  5. github-actions commented on Nov 12, 2026

    @github-actions
    Contributor

    🎯 Agentic Issue Triage

    Triage Assessment:

    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.

    Generated by 🏷️ Issue Triage for #137774 · copilot · auto · ~16 AIC · ⌖ ~1 AIC · ⊞ 14.6K · ◷

  6. transferred this issue fromdotnet/sdkon Nov 17, 2026
  7. added
    untriaged
    on Nov 17, 2026
  8. dotnet-policy-service commented on Nov 17, 2026

    @dotnet-policy-service
    Contributor

    Tagging subscribers to this area: @agocke, @dotnet/ilc-contrib
    See info in area-owners.md if you want to be subscribed.

  9. removed
    untriaged
    on Nov 19, 2026
  10. added a commit that references this issue on Nov 19, 2026
    dd67cab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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