Search Issue Tracker
Fixed in 2018.2.X
Fixed in 2017.1.X, 2017.2.X, 2017.3.X, 2018.1.X
Votes
19
Found in
2017.1.1f1
Issue ID
954427
Regression
No
[Android] Crash on builds with .NET 4.6 scripting runtime selected when null reference exception appears
To reproduce:
1. Download and open attached "Android_Net46_Bug.zip" project.
2. Build and run for android device.
Expected result: Application loads up correctly, without crashing.
Actual result: Application crashes instantly after it's loaded.
Reproduced with: 2017.3.0b2, 2017.2.0f2, 2017.1.1p3, 2017.1.0a6
Not reproduced on: 2017.1.0a5 - new .NET4.6 not present
Devices under test:
Reproduced with:
Lge LG H815 (G4)*, OS:6.0, CPU:arm64-v8a, GPU:Adreno (TM) 418,
Build:lge/p1_global_com/p1:6.0/MRA58K/1620215065b6f:user/release-keys
Samsung SM G800F (Galaxy S5 Mini)*, OS:6.0.1, CPU:armeabi-v7a, GPU:Mali-400 MP, Build:samsung/kminiltexx/kminilte:6.0.1/MMB29K/G800FXXU1CQA1:user/release-keys
Google Pixel*, OS:8.0.0, CPU:arm64-v8a, GPU:Adreno (TM) 530,
Build:google/sailfish/sailfish:8.0.0/OPR3.170623.007/4286350:user/release-keys
Not reproduced with:
HUAWEI EVA L19*, OS:7.0, CPU:arm64-v8a, GPU:Mali-T880,
Build:HUAWEI/EVA-L19/HWEVA:7.0/HUAWEIEVA-L19/C432B386:user/release-keys
iPad Mini 3 (iOS 10.3.2)
Notes: Calling "throw new NullReferenceException()" does not trigger the crash. If Scripting runtime version is set to Stable( .Net 3.5 Equivalent), everything works as expected. Does not happen when Scripting backend is set to IL2CPP.
Comments (13)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Crash on ResizeScriptingList<ScriptingObjectPtr> when passing an undeclared variable to the results parameter for GameObject.FindGameObjectsWithTag
- [Android] "Screen.safeArea.y" always returns values outside of the Safe Area when the device is in Portrait orientation
- Frame spike due to many TreeRenderer.TreeUpdated calls when repositioning terrains in large Scenes
- Crash on GameObject::RemoveComponentFromGameObjectInternal when reparenting Text GameObjects
- [IL2CPP-GarbageCollector] Changing GCMode might permanently disable GC in a multithreaded context
eidu-flx
Jan 19, 2018 20:53
Seems to still be a problem on Unity 2017.3.0f3.
eidu-flx
Oct 18, 2017 02:09
We are experiencing this or a similar issue: some exceptions crash the app on Android when using .NET 4.6. Enabling the "Script Debugging" build option prevents the crashes (but is obviously not a reasonable option to use for production builds).
Can reproduce on Unity 2017.1.1f1 and 2017.1.2p1 on Google Pixel (Android 8.0.0).
heliojmsemedo
Oct 02, 2017 13:53
On the company I work at I've noticed a pattern: On android phones with OS 7, Nougat (and/or higher), the crash doesn't happen, on the lower ones it always does.
Also, surrouding erratic code with try catch does not help.
Please.
Fix.
This.