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
- Component is not hidden from Add Component Menu when using AddComponentMenu("")
- Unable to switch to either Facebook Instant Games/Meta Quest in the Build Profile
- Error "IndexOutOfRangeException: Index was outside the bounds of the array" logged when selecting an Element in UI Builder with a specific setup
- "native code called abort()" is thrown in WebGL player when loading first scene
- Crash on core::base_hash_set when importing a specific package
Resolution Note (fix version 2020.1):
fixed in: 2020.2.0a1, backported to: 2019.3.5f1