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
- Mono Windows Builds don't produce full log callstacks when generating logs
- AssetBundles fail to load when running in Built Players for Mobile Devices
- UI elements with text gets bigger and grey when Player window is moved to another screen with different resolution
- System name accepts multiline text but crops it on confirmation, duplicates input, and shrinks the field when empty
- UI element scale and position are wrong in project build when DRS is changed with HDR and Software Dynamic Resolution enabled
Add comment