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
- “Remove Unused Overrides” available on not loaded Scene and throws “ArgumentException: The scene is not loaded” warning
- Adaptive Probe Volume occlusion edge is calculated incorrectly when viewing probes near geometry edges
- Sampling a texture using an HLSL file throws shader errors and the code does not compile
- "Graphics.CopyTexture called with null source texture" error when Base Camera of an Overlay Camera is removed with DX11 Graphics API and Compatibility Mode enabled
- WebGL sends wrong value with large numbers when SendMessage function is used
Add comment