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
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 ()
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
Add comment