Search Issue Tracker
Fixed in 2022.2.X
Votes
0
Found in
2021.2
2021.2.10f1
2022.1
Issue ID
1407484
Regression
No
Editor crashes on YGLayoutNodeInternal when recompiling scripts while Custom Editor is opened
Reproduction steps:
1. Open users attached project
2. Open Scenes/SampleScene
3. Select "bug" GameObject in the Hierarchy window
4. Click "Edit" in the City Generator (Script) Component in the Inspector window
5. Make any edit in the CityGenerator.cs (like adding a comment)
Expected result: Editor recompiles successfully
Actual result: Editor crashes
Reproducible with: 2021.2.16f1, 2022.1.0b12
Could not test with: 2019.4.36f1, 2020.3.31f1 (could not downgrade the project), 2022.2.0a8 (InvalidOperationException: Cannot modify VisualElement hierarchy during layout calculation)
Stack trace:
0x00007ff7dec5d9a9 (Unity) YGLayoutNodeInternal
0x00007ff7dec5ec4d (Unity) YGNodeComputeFlexBasisForChild
0x00007ff7dec6153a (Unity) YGNodelayoutImpl
0x00007ff7dec5d9a9 (Unity) YGLayoutNodeInternal
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
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
Resolution Note (fix version 2022.2):
Preventing Overlay.displayed to be changed during the layout event regarding UITK updates.