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
- [URP][Lighting] The skybox doesn't render after changing the settings of the Material when using the URP Render Pipeline
- Crash on ShaderLab::ShaderState::ApplyShaderState when entering Play Mode and calling ShaderWarmup.WarmupShaderFromCollection with a shader that has dynamic_branch
- Crash on operator delete[] when a serializable structure in the System namespace is serialized by a MonoBehaviour
- [macOS] forward and backward mouse buttons are recognized as middle mouse button
- NavMeshModifier.OnEnable/OnDisable gets progressively slower when called repeatedly
Add comment