Search Issue Tracker
Fixed in 2018.2.X
Votes
5
Found in
2017.2
2017.3.0f3
Issue ID
981473
Regression
No
[IL2CPP][.NET 4.6] Creating lambdas with IL2CPP and .NET 4.6 results in NullReferenceException
NullRef exceptions appear when trying to create lambda expressions with IL2CPP and .NET 4.6.
Steps to reproduce:
1) Open the attached project.
2) Build & Run on iOS or Android.
A NullReferenceException is thrown:
NullReferenceException: Object reference not set to an instance of an object.
at System.Linq.Expressions.Expression.CreateLambda (System.Type delegateType, System.Linq.Expressions.Expression body, System.String name, System.Boolean tailCall, System.Collections.ObjectModel.ReadOnlyCollection`1[T] parameters) [0x00000] in <00000000000000000000000000000000>:0
at System.Linq.Expressions.Expression.Lambda[TDelegate] (System.Linq.Expressions.Expression body, System.String name, System.Boolean tailCall, System.Collections.Generic.IEnumerable`1[T] parameters) [0x00000] in <00000000000000000000000000000000>:0
at System.Linq.Expressions.Expression.Lambda[TDelegate] (System.Linq.Expressions.Expression body, System.Boolean tailCall, System.Collections.Generic.IEnumerable`1[T] parameters) [0x00000] in <00000000000000000000000000000000>:0
at System.Linq.Expressions.Expression.Lambda[TDelegate] (System.Linq.Expressions.Expression body, System.Linq.Expressions.ParameterExpression[] parameters) [0x00000] in <00000
This does not occur when using Mono2x or .NET 3.5.
Reproduces on iOS and Android.
Reproduced on:
2018.2.0a1, 2017.3.0p2, 2017.2.1p2
Did not reproduce:
2017.1.2p3, 2017.1.0a6
Devices:
iPhone 8 Plus iOS 11.2.1
Samsung Galaxy S8 Android 7.0
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Out-of-bounds memory access with multiple CanvasRenderers under a Canvas when using Mesh API
- Inspector tries to access file after it was deleted when the file was locked in Inspector window
- Changing Transform values in Search window Inspector loses focus while dragging and stopping mouse without releasing dragging action
- Saving changes on the dirty VFX Graph during the Play mode throws "The referenced script (Unknown) on this Behaviour is missing!" warnings
- VFX Graph Debug Info overlaps the "Initialize" block debug info by default
Add comment