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] Investigate esoteric failures in System.Linq.Expression.Tests #69944
System.Reflection.MissingRuntimeArtifactException : MakeGenericMethod() cannot create this generic method instantiation because no code was generated for it: 'System.Dynamic.Tests.InvokeMemberBindingTests.TestBaseClass.TellType<System.Int32>(System.Int32)'.
at System.Reflection.Runtime.MethodInfos.RuntimeNamedMethodInfo`1.GetUncachedMethodInvoker(RuntimeTypeInfo[], MemberInfo) + 0x113
System.Reflection.MissingRuntimeArtifactException : This object cannot be invoked because no code was generated for it: 'System.Func<System.Runtime.CompilerServices.IRuntimeVariables,System.Runtime.CompilerServices.IRuntimeVariables,System.Int32[],System.Runtime.CompilerServices.IRuntimeVariables>.Invoke(System.Runtime.CompilerServices.IRuntimeVariables,System.Runtime.CompilerServices.IRuntimeVariables,System.Int32[])'.
at System.Reflection.Runtime.MethodInfos.RuntimeNamedMethodInfo`1.GetUncachedMethodInvoker(RuntimeTypeInfo[], MemberInfo) + 0x113
at System.Reflection.Runtime.MethodInfos.RuntimeMethodInfo.get_MethodInvoker() + 0xa1
If you have the stack traces around, I could probably point in the right direction for fixing these.
For example, if VerifyMethodsCalledWithMakeGenericMethod is failing with a NullReferenceException in the foreach, the fix is to put the 3 types listed here into RD.XML (or rewrite the code to make it trimming friendly - extract the foreach block below this into a separate method that has [DAM] on the type and call the method for each type individually instead of doing a foreach over an array):
Activity
MichalStrehovsky commentedon May 30, 2022
If you have the stack traces around, I could probably point in the right direction for fixing these.
For example, if
VerifyMethodsCalledWithMakeGenericMethodis failing with a NullReferenceException in the foreach, the fix is to put the 3 types listed here into RD.XML (or rewrite the code to make it trimming friendly - extract the foreach block below this into a separate method that has[DAM]on the type and call the method for each type individually instead of doing a foreach over an array):runtime/src/libraries/System.Linq.Expressions/tests/TrimCompatibilityTests.cs
Lines 19 to 25 in 4719135
Fix all outstanding S.Linq.Expressions failures
Fix all outstanding S.Linq.Expressions failures (#72077)