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
- Crash on RaiseException when opening a specific project
- DownloadHandlerScript.CompleteContent is called twice when building for WebGL
- Scene view has Y coordinates of the Screen Position node flipped when some of the URP features are disabled
- Volumetric fog shader variants are missing from build when "Strict Shader Variant Matching" is disabled
- Unnecessary modifications clutter the Scene when using a RectTransform driven by a LayoutGroup in a Prefab
Add comment