Search Issue Tracker
Fixed in 2018.2.X
Votes
0
Found in
2018.1.0a7
2018.1.6f1
Issue ID
1052529
Regression
No
[2018.1][Android][.NET 4.x][IL2CPP] StackTrace is not printed when .apk crashes
StackTraces are missing for exceptions when using IL2CPP and .NET 4.x runtime. By switching to .NET 3.5 runtime StackTraces are printed normally
To reproduce:
1. Download attached project "AndroidStacktraces.zip" and open in Unity
2. Open "SampleScene" scene
3. Set Android platform
4. Go to Player Settings > Other Settings and change Scripting Runtime Version to Stable (.NET 3.5 Equivalent) and set Scripting Backend to IL2CPP
5. Build and run the project on an Android device
6. Press "Crash" button and observe Stack trace is printed normally
7. Go to Player Settings > Other Settings and change Scripting Runtime Version to Stable (.NET 4.x Equivalent) and set Scripting Backend to IL2CPP
8. Build and run the project on an Android device
9. Press "Crash" button and observe that there is no Stack trace
Notes:
- Logcats are shared in the comments section
- This issue is reproducible only on Android devices
- This issue is not reproducible in iOS devices
- This issue is not reproducible in Windows and OSX Standalones
- This issue is not reproduced in Editor
Devices:
- Samsung Galaxy S9, OS: 8.0.0, CPU: arm64-v8a, GPU: Mali-G72 - Reproduced
- Google Pixel 2, OS: 8.1.0, CPU: arm64-v8a, GPU: Adreno (TM) 540 - Reproduced
- iPhone 7, iOS: 11.2.6, CPU: A10 - Not Reproduced
Reproduced on Unity 2018.1.0a7 and 2018.1.7f1
Not reproduced on Unity 2017.4.6f1, 2018.1.0a6 and 2018.2.0b10
Regression on Unity 2018.1.0a7
Could not check this issue on Unity 2018.3.0a3 because project becomes corrupted
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- "Shader warning in 'Hidden/Light2D': implicit truncation of vector type" is thrown when building Universal 2D template
- AI Assistant breaks compilation of packages using System.Runtime.CompilerServices.Unsafe via auto-referencing
- Unity Hub checks the "Documentation" module by default on the 6.4 and 6.5 streams despite that it was unchecked with the previous installs
- Shortcut that toggles between Dopesheet and Curves Views in the Animation Window's Timeline is mislabed
- Property List Items Overlap onto the Property List's top edge when scrolling through a long Property List
Add comment