Search Issue Tracker
Won't Fix
Votes
1
Found in
2017.4
2018.4
2019.2
2019.2.3f1
2019.3
2020.1
Issue ID
1199414
Regression
No
[Mono][Android] Accessing any class/instance member with an "AggressiveInlining" attribute will cause a crash
To reproduce:
1. Open the user's attached project
2. Make sure Mono is selected as scripting backend, IL2CPP does not reproduce the issue
3. Build and Run the Sample Scene on android device
Actual: Unity application crashes instantly after the splash screen
Reproduced with: 2017.4.35f1, 2018.4.13f1, 2019.2.13f1, 2019.3.0b12, 2020.1.0a14
Reproduced with devices:
VLNQA00098 Lge LG G4 6.0 Snapdragon 808 MSM8992 Adreno (TM) 418 OpenGL ES 3.1
VLNQA00127 Lge Nexus 5X 8.0.0 Snapdragon 808 Adreno (TM) 418 OpenGL ES 3.2
VLNQA00229 Oneplus OnePlus6T 9 Snapdragon 845 SDM845 Adreno (TM) 630 OpenGL ES 3.2
VLNQA00096 Samsung Galaxy S8 8.0.0 Exynos 9 Octa 8895 Mali-G71 OpenGL ES 3.2
Notes:
- It does not reproduce on iOS devices;
- Does not reproduce Windows Standalone with Mono, Mac Standalone with Mono
- Main.cs script in the project provides much more information on this issue;
- IL2CPP does not reproduce
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
- Out-of-bounds memory access with multiple CanvasRenderers under a Canvas when using Mesh API
- Inspector tries to access file after it was deleted when the file was locked in Inspector window
- Changing Transform values in Search window Inspector loses focus while dragging and stopping mouse without releasing dragging action
- Saving changes on the dirty VFX Graph during the Play mode throws "The referenced script (Unknown) on this Behaviour is missing!" warnings
- VFX Graph Debug Info overlaps the "Initialize" block debug info by default
Resolution Note:
This is an interaction of how static constructors are run while JIT'ing code.
Workarounds for this issue include:
1. Use IL2CPP
2. Ensure static constructor is run before (some place other than startup of a worker thread)
3. Remove AggressiveInline from members on class with static constructor that has ordering dependency