Search Issue Tracker
Fixed in 2020.1.X
Fixed in 2019.3.X
Votes
0
Found in
2019.3
2019.3.0f6
2020.1
Issue ID
1218652
Regression
No
Editor freezes when trying to serialize generic type with SerializeReference
How to reproduce:
1. Open the attached "1218652.zip" project
2. In the Project window "Assets" folder right-click -> Create -> Test Asset
Expected result: The Editor does not freeze, creates the "Test Asset" Scriptable Object
Actual result: The Editor freezes after creating the Scriptable Object
Reproducible with: 2019.3.0a2, 2019.3.1f1, 2020.1.0a23
Could not test with: 2017.4.37f1, 2018.4.17f1 (SerializeReference was not introduced), 2019.3.0a1 (SerializableReference is inaccessible due to its access modifier)
Notes:
-The class that uses C# Generics with Constraint "Feature" is responsible for the freeze
-The freeze occurs after adding a generic type that is serialized to a Serialized Reference list in the Awake() function of the "TestAsset" Script
-The behavior is not certain, the user reported a crash, however, could only encounter a freeze when testing
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
- UI becomes unresponsive when using AppUI Navigation and Event System is attached
- PlayerPrefs get corrupted when a minimized fullscreen Player is closed through the Taskbar
- "To Debug, run app with -diag-job-temp-memory-leak-validation cmd line argument. This will output the callstacks of the leaked allocations." warning is printed when JobTempMemoryLeakValidation switch is enabled
- Main Thread stalling when loading Audio Source asset asynchronously while preloading another Audio Source asset
- Material artifacts occur in the Material Preview window when baked lighting is applied to scenes
Resolution Note (fix version 2020.1):
fixed in: 2020.2.0a1, backported to: 2019.3.5f1