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
- [2023.2] HDRP Asset Settings Helper throws a NullReferenceException
- [URP] SubmitRenderRequest with NativeRenderPass + Upscaling doesn't work
- “ArgumentOutOfRangeException” error appears when inserting a double character if using “SetValueWithoutNotify” on UI Toolkit’s TextField
- Particle System emission delays between particle generations when playing the simulation
- EditorUtility.DisplayDialog is not shown when Input.GetMouseButtonDown is called a second time
Resolution Note (fix version 2020.1):
fixed in: 2020.2.0a1, backported to: 2019.3.5f1