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
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
Add comment