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
NativeAOT fails with GVM runtime lookup that involves an unboxing stub #129696
Unhandled exception. System.ArgumentException: An item with the same key has already been added.
at Internal.Runtime.TypeLoader.TypeLoaderEnvironment.RegisterDynamicGenericTypesAndMethods(TypeLoaderEnvironment.DynamicGenericsRegistrationData) + 0x382
at Internal.Runtime.TypeLoader.TypeBuilder.RegisterGenericTypesAndMethods() + 0x150
at Internal.Runtime.TypeLoader.TypeBuilder.FinishTypeAndMethodBuilding() + 0x372
at Internal.Runtime.TypeLoader.TypeBuilder.TryBuildGenericMethod(InstantiatedMethod, IntPtr&) + 0x35
at Internal.Runtime.TypeLoader.TypeLoaderEnvironment.TryGetGenericVirtualMethodPointer(InstantiatedMethod, IntPtr&, IntPtr&) + 0x24d
at Internal.Runtime.TypeLoader.TypeLoaderEnvironment.ResolveGenericVirtualMethodTarget(RuntimeTypeHandle, RuntimeMethodHandle) + 0xae
at System.Runtime.TypeLoaderExports.CacheMiss(IntPtr, IntPtr, RuntimeObjectFactory, Object) + 0x3c
at System.Runtime.TypeLoaderExports.GVMLookupForSlotSlow(Object, RuntimeMethodHandle) + 0x68
at RuntimeLookupDelegateGenericVirtual.Test[T]() + 0x2e
at GenericVirtualMethodTests.Main() + 0x10
changed the title [-]NativeAOT fails with GVM lookup that has an unboxing stub[/-][+]NativeAOT fails with GVM runtime lookup that involves an unboxing stub[/+]on Jun 22, 2026
Activity
dotnet-policy-service commentedon Jun 22, 2026
Tagging subscribers to this area: @agocke, @dotnet/ilc-contrib
See info in area-owners.md if you want to be subscribed.
[-]NativeAOT fails with GVM lookup that has an unboxing stub[/-][+]NativeAOT fails with GVM runtime lookup that involves an unboxing stub[/+]MihuBot commentedon Jun 22, 2026
I'm a bot. Here is a possible related and/or duplicate issue (I may be wrong):
Internal.Runtime.TypeLoader.TypeLoaderEnvironment.RegisterDynamicGenericTypesAndMethodswhen calling some GVMs #118072Fix building unboxing and real generic method targets at the same time (
Fix building unboxing and real generic method targets at the same time (