Search Issue Tracker
Fixed in 2021.3.18f1
Fixed in 2021.3.X, 2022.2.X, 2022.2.6f1
Votes
1
Found in
2020.3.35f1
2021.3.3f1
2022.1.0a5
2022.2.0a13
Issue ID
UUM-637
Regression
No
Editor freezes on recompilation when Custom window that references a VisualElement is open
How to reproduce:
1. Open the "case_1355141" project
2. Open the "Window > Asset Hive" custom EditorWindow
3. Write a comment anywhere in any custom script file in the project
4. Observe the Editor behaviour
5. Observe the Console Window output
Expected result: the Editor doesn't freeze
Actual result: the Editor freezes, and after a minute of freeze, error messages appear in the Console window
Reproducible with: 2019.4.29f1, 2020.3.16f1, 2021.1.17f1, 2021.2.0b7, 2022.1.0a5
Note: the custom window includes a property that derives from VisualElement. During assembly reload that property is serialized, even though it is private. This puts the window into a bad state freezing the editor. Putting the \[System.NonSerialized] attribute on the property avoids the freeze by making sure it is never serialized during assembly reload.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Out-of-bounds memory access with multiple CanvasRenderers under a Canvas when using Mesh API
- Inspector tries to access file after it was deleted when the file was locked in Inspector window
- Changing Transform values in Search window Inspector loses focus while dragging and stopping mouse without releasing dragging action
- Saving changes on the dirty VFX Graph during the Play mode throws "The referenced script (Unknown) on this Behaviour is missing!" warnings
- VFX Graph Debug Info overlaps the "Initialize" block debug info by default
Add comment