Search Issue Tracker
Fixed in 2022.1.X
Votes
1
Found in
2020.1.0a4
2020.3
2021.1
2021.1.4f1
2021.2
Issue ID
1332971
Regression
Yes
Editor freezes and crashes when creating a ScriptableObject that instantiates a new ScriptableObject in OnEnable method
How to reproduce:
1. Open the attached project ('case-1332971.zip')
2. Right-click in the Project window and select Create -> ScriptableObjects -> test
Reproducible with: 2020.1.0a4, 2020.3.6f1, 2021.1.6f1, 2021.2.0a17
Not reproducible with: 2018.4.35f1, 2019.4.26f1, 2020.1.0a3
First lines of the stack trace:
0x00007ff7ca0dddfe (Unity) ThreadAndSerializationSafeCheck::ReportError
0x00007ff7cae0dff4 (Unity) EditorApplication_Get_Custom_PropTimeSinceStartup
0x00000222623e3a44 (Mono JIT Code) (wrapper managed-to-native) UnityEditor.EditorApplication:get_timeSinceStartup ()
0x00000222627bd443 (Mono JIT Code) UnityEditor.ObjectListArea:OnInspectorUpdate ()
Notes:
- Non-reproducible versions throw 'StackOverflowException: The requested operation caused a stack overflow.' error and create the ScriptableObject
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
- NullReferenceExceptions are being thrown when saving a ScriptableObject with an array of a type with a CustomPropertyDrawer that uses TrackPropertyValue
- Applied velocity is inconsistent when using Rigidbody AddForce() with ForceMode.VelocityChange
- Crash on AudioUtil_CUSTOM_HasAudioCallback when exiting Play Mode while the Inspector is displaying a GameObject with an empty script attached
- Scroll offset is framerate-dependent when scrolling with velocity in the Device Simulator
- "Object.FindObjectsOfType<T>() is obsolete" warning is thrown when using "Transitions Plus" asset
Resolution Note (fix version 2022.1):
Fixed in: 2022.1.0a6