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
- [Render Graph Viewer] Resource list icons cropped and in inconsistent positions
- Scene View with Debug Draw Mode enabled is gray when GPU Resident Drawer is enabled
- The UI is not visible when resizing out of focus built Player window with Application.runInBackground set to false
- [Linux] "Error while reading movie" errors are thrown when opening templates
- Standalone Profiler process is hidden in macOS dock
Resolution Note (fix version 2022.2):
Preventing Overlay.displayed to be changed during the layout event regarding UITK updates.