-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Linq.Queryable.FirstOrDefault doesn't work when using TrimMode=link #41392
Labels
area-System.Linq.Expressions
linkable-framework
Issues associated with delivering a linker friendly framework
Milestone
Comments
Tagging subscribers to this area: @cston |
61 tasks
/cc @eerhardt |
rolfbjarne
added a commit
to rolfbjarne/xamarin-macios
that referenced
this issue
Aug 26, 2020
… issue in .NET Ref: dotnet/runtime#41392 Fixes this link sdk test failure: LinkSdk.LinkSdkRegressionTest [FAIL] AsQueryable_Enumerable : System.NullReferenceException : Object reference not set to an instance of an object at System.Linq.EnumerableRewriter.FindEnumerableMethod(String name, ReadOnlyCollection`1 args, Type[] typeArgs) at System.Linq.EnumerableRewriter.VisitMethodCall(MethodCallExpression m) at System.Linq.Expressions.MethodCallExpression.Accept(ExpressionVisitor visitor) at System.Linq.Expressions.ExpressionVisitor.Visit(Expression node) at System.Linq.Expressions.ExpressionVisitor.Visit(ReadOnlyCollection`1 nodes) at System.Linq.EnumerableRewriter.VisitMethodCall(MethodCallExpression m) at System.Linq.Expressions.MethodCallExpression.Accept(ExpressionVisitor visitor) at System.Linq.Expressions.ExpressionVisitor.Visit(Expression node) at System.Linq.EnumerableExecutor`1[[System.Linq.IGrouping`2[[System.String, System.Private.CoreLib, Version=5.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=5.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Linq, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]].Execute() at System.Linq.EnumerableQuery`1[[System.Linq.IGrouping`2[[System.String, System.Private.CoreLib, Version=5.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.String, System.Private.CoreLib, Version=5.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]], System.Linq, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]].System.Linq.IQueryProvider.Execute[IGrouping`2](Expression expression) at System.Linq.Queryable.FirstOrDefault[IGrouping`2](IQueryable`1 source) at LinkSdk.LinkSdkRegressionTest.AsQueryable_Enumerable() in /Users/rolf/work/maccore/whatever/xamarin-macios/tests/linker/ios/link sdk/LinkSdkRegressionTest.cs:line 1100 at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
This was fixed in 5.0 by #42603. |
# for free
to subscribe to this conversation on GitHub.
Already have an account?
#.
Labels
area-System.Linq.Expressions
linkable-framework
Issues associated with delivering a linker friendly framework
Repro:
consoleapp-99c9d68.zip
Run
make linked
to run withTrimMode=link
, andmake notlinked
to run the same command, except without settingTrimMode
.CC @marek-safar
The text was updated successfully, but these errors were encountered: