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
- [Ubuntu] Mouse cursor is set box select mode after exiting VFX Graph's Rename Context function
- Unrecognized identifier DECLARE_STACK_CB error is thrown when VirtualTexture Property is used with Custom RenderTexture target
- SpriteShapeController.OnWillRenderObject() is ~20 ms when using SpriteShapeController.BakeMesh() and never updating the spline
- Editor freezes briefly when "multi-selecting" TextMeshPro GameObjects In the Hierarchy window in Prefab Mode, if 5 or more Inspector windows are open
- OnEndDrag event not triggered when losing Editor focus during simultaneous Left and Right mouse drag
Resolution Note (fix version 2022.2):
Preventing Overlay.displayed to be changed during the layout event regarding UITK updates.