Search Issue Tracker
Won't Fix
Votes
0
Found in
2017.1.1f1
Issue ID
957376
Regression
No
[.NET 3.5][Mono][Mobile] Unity fails to retrieve internal strings due to null reference exceptions on Android and iOS
Steps to reproduce:
1) Open the attached project.
2) Build and run on an Android or iOS device (with .NET 4.6 and Mono enabled).
3) Wait for a couple minutes.
After 'Funds' (top-left corner of the screen) reaches a certain value, assert messages should start logging in ADB logcat console, however, when .NET 3.5 and Mono backend is used, NullReferenceExceptions are logged instead:
12-04 11:52:37.413 27405 27421 E Unity : NullReferenceException: Object reference not set to an instance of an object
12-04 11:52:37.413 27405 27421 E Unity : at (wrapper stelemref) object:stelemref (object,intptr,object)
12-04 11:52:37.413 27405 27421 E Unity : at UnityEngine.Assertions.AssertionMessageUtil.GetMessage (System.String failureMessage, System.String expected) [0x00012] in /Users/builduser/buildslave/unity/build/Runtime/Export/Assertions/Assert/AssertionMessageUtil.cs:20
On iOS, lldb-rpc-server crashes (log attached).
This does not occur with .NET 4.6 or IL2CPP.
Reproduced on:
2018.1.0a7, 2017.1.1f1
Note: this issue is related (and likely has the same roots) as case 974478.
===========
Resolution:
Given that this issue doesn't persist in new scripting runtime (.NET 4.x) or with IL2CPP, we are not planning on fixing this issue in the old Mono runtime.
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