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
- “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