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

Scene/Game View

-

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

  1. Resolution Note (fix version 2022.2):

    Preventing Overlay.displayed to be changed during the layout event regarding UITK updates.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.