Search Issue Tracker
Fixed
Fixed in 6000.2.0a9, 7000.0.0a23
Votes
0
Found in
2022.3.55f1
6000.0.33f1
6000.1.0a10
6000.2.0a1
7000.0.0a1
Issue ID
UUM-91800
Regression
No
Standalone Player crashes with "TDerived GetOrLoad<TDerived>() where TDerived : T" when IL2CPP Code generation is set to "Faster (smaller) Builds"
Steps to reproduce:
1. Open the attached user's project "2040283_full_generic_sharing.zip"
2. In the Player settings, set IL2CPP Code generation to "Faster (smaller) Builds"
3. Build the Windows Standalone Player
4. Observe the crash
Expected results: Standalone Player does not crash
Actual results: Standalone Player crashes with "TDerived GetOrLoad<TDerived>() where TDerived : T" when IL2CPP Code generation is set to "Faster (smaller) Builds"
Reproducible: 2022.3.55f1, 6000.0.33f1, 6000.1.0a10
Could not test on 2021.3.47f1 due to Code Generation option "Faster (smaller) Builds" missing
Testing Environment: Windows 11 23H2
Not reproducible on: no other environment tested
Notes:
-Issue reproduces with both Release build and Development build
-Player log of the crash is attached named "PlayerCrashLog.txt"
-Changing the Line 31 in "Assets/GenericTest.cs" to "public readonly TDerived GetOrLoad<TDerived>() where TDerived : Object" solves the crash
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Editor crash on "PPtr<Shader>::operator Shader*() const" when checking in changes with a very long comment in Unity Version Control window
- [Ubuntu] Toolbar and menu items for Version Control lack spaces in text on Linux
- Unity Version Control window Pending Changes tab’s Item checkbox is unresponsive when clicked and the item list is empty
- Audio stuttering occurs when heavy processing is performed while OnAudioFilterRead is in use
- Inconsistent Node search results in VFX Graph
Add comment