Search Issue Tracker

Fixed in 2022.1.X

Votes

0

Found in

2018.4.0f1

2021.2.0a9

2022.1.0a6

Issue ID

1360688

Regression

Yes

Crash when redoing undo actions made during game mode on Canvas child object

Scene Hierarchy

-

Repro:
1. Create a new project
2. Create an UI object in scene hierarchy. i.e. GameObject -> UI -> Text
3. Create an empty GameObject as the child of what was created in Step 2.
4. Enter playmode.
5. Undo until the empty GameObject created in Step 3 has been deleted.
6. Exit playmode. The removed GameObject should be visible in hierarchy again.
7. Redo multiple times.

Expected Outcome: No crash.
Actual Outcome: Unity crashes when the editor tries to redo 'Create GameObject'.

Reproducible in 2022.1.0a6, 2021.2.0b9, 2021.2.0a9 | 2018.4.36f1, 2018.4.0f1
Not reproducible in 2021.2.0a8, 2021.1.17f1, 2020.3.16f1, 2019.4.29f1

Video attached in case comments.

--------
Notes:
- Tested on Windows 10.
- Crash occurs through all methods of redoing 'Create GameObject': Undo History, Ctrl+Y, Edit -> Redo.
- Seems like quite a specific crash, no crash occurs when testing repro with:
Non-nested objects
Child empty GameObject of empty GameObject
Other Canvas children that are UI elements.
Components to non-nested/nested children.

- In versions with no crash, it displays the following error message instead:
CheckConsistency: Restored Transform child parent pointer from NULL
UnityEditor.EditorApplication:Internal_CallGlobalEventHandler ()

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.