Search Issue Tracker
Fixed in 2022.1.X
Fixed in 2021.2.X
Votes
0
Found in
2021.2.3f1
Issue ID
1382649
Regression
Yes
Crash on UndoManager::CheckConsistencyOfAffectedTransforms after undoing script instantiated Prefabs
How to reproduce:
1. Open the attached project "test2021-2-3f1.zip"
2. Click "Tools > Reproduce Undo Error" in the menu items
3. Undo (Ctrl + Z or Edit > Undo)
Reproducible with: 2021.2.3f1, 2021.2.5f1
Not reproducible with: 2019.4.33f1, 2020.3.24f1, 2021.2.2f1, 2022.1.0b1
Stacktrace:
0x00007ff7cc0b9429 (Unity) UndoManager::CheckConsistencyOfAffectedTransforms
0x00007ff7cc0beec4 (Unity) UndoManager::PostApply
0x00007ff7cc0b9297 (Unity) UndoManager::ApplyUndo
0x00007ff7cc0c2ada (Unity) UndoManager::Undo
0x00007ff7cbbdc2b0 (Unity) MenuController::ExecuteMenuItem
0x00007ff7cc1de951 (Unity) ProcessMainWindowMessages
0x00007ff7cc1fee6a (Unity) ContainerWindow::ContainerWndProc
0x00007ffd3a07e7e8 (USER32) CallWindowProcW
0x00007ffd3a07e229 (USER32) DispatchMessageW
0x00007ff7cc1dd943 (Unity) MainMessageLoop
0x00007ff7cc1e22db (Unity) WinMain
0x00007ff7cd4f13a2 (Unity) __scrt_common_main_seh
0x00007ffd3abe7034 (KERNEL32) BaseThreadInitThunk
0x00007ffd3adc2651 (ntdll) RtlUserThreadStart
-
newt124d
Jan 31, 2022 00:10
this work for me, ctrl+z will remove parent than delete created object and no "Attach To Parent" action in the undo history:
Undo.RegisterCreatedObjectUndo(newGo, "Spawn object");
Undo.SetTransformParent(newGo.transform, rootTransform, true, "Attach To Parent");
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
- The Scene View becomes gray and "NullReferenceException" errors are thrown when attaching the Unity Editor process to RenderDoc
- Memory usage rapidly rises when changing colors in the color wheel
- Physically Based Sky's Horizon and Zenith Tint Color Selection Bars don't have immediate access to color pickers
- EmptyAdditionalLightShadowmapTexture leaks from memory when URP quality level is changed using QualitySettings.SetQualityLevel
- Referenced ScriptableObject field does not get updated and cannot be set to "None" when there are no Objects of that type
Resolution Note (fix version 2021.2):
Fixed in: 2021.2.10f1