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
- Editor crashes on StoredGraphicsBuffer::GetGfxBufferID when VFX Graph property is modified during Play Mode and Application.targetFrameRate is used to limit FPS
- Crash on NVAPI_Thunk when changing Player resolution while HDR display is used and Direct3D12 is set as the graphics API
- Only one out of multiple cameras is shown in the Play Mode while HDR display is used and Direct3D12 is set as the graphics API
- The "Paste Component as New" option is incorrectly displayed as active despite the action being prohibited
- "TLS Allocator ALLOC_TEMP_TLS" errors are thrown when unsuccessfully importing an FBX file
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