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
- Input from the "Backslash" key is not detected in the Web Player when using the Japanese 106/109 key keyboard
- High "Total" value of the "TerrainManager.CullAllTerrains" when generating terrain
- UI Layout rebuild triggered by a rounding error when using TextMesh Pro
- Sprite Shape Corners and Edges are invisible when a closed Sprite Shape is used
- Script icon Gizmos cause lag/performance issues in Scene view even when the Scene Camera is not pointed at Gizmos
Resolution Note (fix version 2022.2):
Preventing Overlay.displayed to be changed during the layout event regarding UITK updates.