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
- Crash on "The GUID inside 'Assets/asset.png.meta' cannot be extracted by the YAML Parser." when opening the project
- Shadows disappear when looking at a certain angle in Scene view and using Cloud Shadows with Volumetric Clouds
- StackOverflowException freezes or silently crashes the Editor
- Microsoft Surface Device freezes when detaching and reattaching physical keyboard attachment to a Microsoft Surface device in Standalone Player for Windows
- Shadows are cast with artifacts on GameObjects when the light type is set to Point
Resolution Note (fix version 2020.1):
fixed in: 2020.2.0a1, backported to: 2019.3.5f1