Search Issue Tracker

Active

Under Consideration for 2022.3.X, 6000.0.X, 6000.1.X

Votes

0

Found in

2022.3.55f1

6000.0.33f1

6000.1.0a10

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

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.