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
- [Android] Stage information is not logged when Log Shader Compilation is enabled
- [Vulkan] The memory allocation increases rapidly when there are multiple (three or more) Real-Time Reflection Probes in the Scene
- [macOS] Library folder of the opened project can be deleted which leads to the crash
- “Default Scene” dropdown field contains a spelling mistake “Default Builtin”
- Editor crashes on PPtr<Mesh> after adding Text Mesh and Cloth Components to the same GameObject
Add comment