Undo causes Unity 2021.3 to crash

When moving some prefabs around in the scene (not in run mode) and undoing their position, Unity will randomly crash.

Unity 2021.3.10f

Save crash logs and if it’s semi reproducible make a bug report with the crash logs attached

We have the same problem

Also getting crashes on undo in scene view, with this output:

Obtained 39 stack frames
0x00007ff6069cfc68 (Unity) RendererUpdateManager::RemoveRenderer
0x00007ff6069bc458 (Unity) Renderer::RemoveFromScene
0x00007ff6069ba0f7 (Unity) Renderer::smile:eactivate
0x00007ff606827827 (Unity) GameObject::ActivateAwakeRecursivelyInternal
0x00007ff6068276b5 (Unity) GameObject::ActivateAwakeRecursivelyInternal
0x00007ff606827439 (Unity) GameObject::ActivateAwakeRecursively
0x00007ff60682a0f9 (Unity) GameObject::smile:eactivate
0x00007ff606b3ac05 (Unity) DestroyObjectHighLevel_Internal
0x00007ff606b3a854 (Unity) DestroyObjectHighLevel
0x00007ff607dc69eb (Unity) CreatedObjectUndo::ApplyUndo
0x00007ff607dc6b0b (Unity) UndoManager::ApplyUndo
0x00007ff607dd0397 (Unity) UndoManager::Undo
0x00007ff6078d2f70 (Unity) MenuController::ExecuteMenuItem
0x00007ff6078d2652 (Unity) MenuController::ExecuteMainMenuItem
0x00007ff606735cae (Unity) EditorApplication_CUSTOM_ExecuteMenuItem
0x0000029c29a059aa (Mono JIT Code) (wrapper managed-to-native) UnityEditor.EditorApplication:ExecuteMenuItem (string)
0x0000029c29a058d3 (Mono JIT Code) UnityEditor.ShortcutManagement.MenuItemEntryDiscoveryInfo:<.ctor>b__7_0 (UnityEditor.ShortcutManagement.ShortcutArguments)
0x0000029c28135f08 (Mono JIT Code) UnityEditor.ShortcutManagement.Trigger:HandleKeyEvent (UnityEngine.Event,UnityEditor.ShortcutManagement.IContextManager)
0x0000029c28135263 (Mono JIT Code) UnityEditor.ShortcutManagement.ShortcutController:HandleKeyEvent (UnityEngine.Event)
0x0000029c281350d3 (Mono JIT Code) UnityEditor.ShortcutManagement.ShortcutIntegration:EventHandler ()
0x0000029c28134f3c (Mono JIT Code) UnityEditor.EditorApplication:Internal_CallGlobalEventHandler ()
0x0000029a663d0685 (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void (object,intptr,intptr,intptr)
0x00007ffdb514fe24 (mono-2.0-bdwgc) [mini-runtime.c:3445] mono_jit_runtime_invoke
0x00007ffdb508e764 (mono-2.0-bdwgc) [object.c:3066] do_runtime_invoke
0x00007ffdb508e8fc (mono-2.0-bdwgc) [object.c:3113] mono_runtime_invoke
0x00007ff606e94db4 (Unity) scripting_method_invoke
0x00007ff606e74654 (Unity) ScriptingInvocation::Invoke
0x00007ff606e6f265 (Unity) ScriptingInvocation::Invoke<void>
0x00007ff606fc500b (Unity) Scripting::UnityEditor::EditorApplicationProxy::Internal_CallGlobalEventHandler
0x00007ff6079ae00a (Unity) CallGlobalInputEvent
0x00007ff607f16650 (Unity) GUIView::ProcessEventMessages
0x00007ff607f101df (Unity) GUIView::GUIViewWndProc
0x00007ffe6b0e1c4c (USER32) CallWindowProcW
0x00007ffe6b0e0ea6 (USER32) DispatchMessageW
0x00007ff607eeb103 (Unity) MainMessageLoop
0x00007ff607eefb2b (Unity) WinMain
0x00007ff60927421e (Unity) __scrt_common_main_seh
0x00007ffe6a6f54e0 (KERNEL32) BaseThreadInitThunk
0x00007ffe6b82485b (ntdll) RtlUserThreadStart

same crashes as Slaktus

Also seeing this, was previously on 2021.3.5f1, since updating to 2021.3.11f several people on our project have reguarly been getting this crash when undoing

stack trace:

=================================================================
    Native Crash Reporting
=================================================================
Got a UNKNOWN while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================

=================================================================
    Managed Stacktrace:
=================================================================
      at <unknown> <0xffffffff>
      at UnityEditor.EditorApplication:ExecuteMenuItem <0x00089>
      at UnityEditor.ShortcutManagement.MenuItemEntryDiscoveryInfo:<.ctor>b__7_0 <0x00022>
      at UnityEditor.ShortcutManagement.Trigger:HandleKeyEvent <0x00c27>
      at UnityEditor.ShortcutManagement.ShortcutController:HandleKeyEvent <0x00032>
      at UnityEditor.ShortcutManagement.ShortcutIntegration:EventHandler <0x00122>
      at <Module>:invoke_void <0x000a1>
      at UnityEditor.EditorApplication:Internal_CallGlobalEventHandler <0x0002b>
      at System.Object:runtime_invoke_void <0x00084>
=================================================================
Received signal SIGSEGV
Obtained 40 stack frames
0x00007ff63d2f0a58 (Unity) RendererUpdateManager::RemoveRenderer
0x00007ff63d2dd248 (Unity) Renderer::RemoveFromScene
0x00007ff63d2daec7 (Unity) Renderer::smile:eactivate
0x00007ff63d148447 (Unity) GameObject::ActivateAwakeRecursivelyInternal
0x00007ff63d1482d5 (Unity) GameObject::ActivateAwakeRecursivelyInternal
0x00007ff63d148059 (Unity) GameObject::ActivateAwakeRecursively
0x00007ff63d14ad19 (Unity) GameObject::smile:eactivate
0x00007ff63d45be55 (Unity) DestroyObjectHighLevel_Internal
0x00007ff63d45baa4 (Unity) DestroyObjectHighLevel
0x00007ff63e6ed19b (Unity) CreatedObjectUndo::ApplyUndo
0x00007ff63e6ed2bb (Unity) UndoManager::ApplyUndo
0x00007ff63e6f6b77 (Unity) UndoManager::Undo
0x00007ff63e1f74f0 (Unity) MenuController::ExecuteMenuItem
0x00007ff63e1f6bd2 (Unity) MenuController::ExecuteMainMenuItem
0x00007ff63ce2e49e (Unity) EditorApplication_CUSTOM_ExecuteMenuItem
0x00000217b6f0e27a (Mono JIT Code) (wrapper managed-to-native) UnityEditor.EditorApplication:ExecuteMenuItem (string)
0x00000217b6f0e1a3 (Mono JIT Code) UnityEditor.ShortcutManagement.MenuItemEntryDiscoveryInfo:<.ctor>b__7_0 (UnityEditor.ShortcutManagement.ShortcutArguments)
0x00000217b6965de8 (Mono JIT Code) UnityEditor.ShortcutManagement.Trigger:HandleKeyEvent (UnityEngine.Event,UnityEditor.ShortcutManagement.IContextManager)
0x00000217b6965143 (Mono JIT Code) UnityEditor.ShortcutManagement.ShortcutController:HandleKeyEvent (UnityEngine.Event)
0x00000217b6964fb3 (Mono JIT Code) UnityEditor.ShortcutManagement.ShortcutIntegration:EventHandler ()
0x00000217a38a7f72 (Mono JIT Code) (wrapper delegate-invoke) <Module>:invoke_void ()
0x00000217b6964e1c (Mono JIT Code) UnityEditor.EditorApplication:Internal_CallGlobalEventHandler ()
0x00000217a1c21cb5 (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void (object,intptr,intptr,intptr)
0x00007ffb74c2fe24 (mono-2.0-bdwgc) [mini-runtime.c:3445] mono_jit_runtime_invoke
0x00007ffb74b6e764 (mono-2.0-bdwgc) [object.c:3066] do_runtime_invoke
0x00007ffb74b6e8fc (mono-2.0-bdwgc) [object.c:3113] mono_runtime_invoke
0x00007ff63d7b8164 (Unity) scripting_method_invoke
0x00007ff63d797a04 (Unity) ScriptingInvocation::Invoke
0x00007ff63d792615 (Unity) ScriptingInvocation::Invoke<void>
0x00007ff63d8e885b (Unity) Scripting::UnityEditor::EditorApplicationProxy::Internal_CallGlobalEventHandler
0x00007ff63e2d2ada (Unity) CallGlobalInputEvent
0x00007ff63e83cbf0 (Unity) GUIView::ProcessEventMessages
0x00007ff63e83677f (Unity) GUIView::GUIViewWndProc
0x00007ffca1b11c4c (USER32) CallWindowProcW
0x00007ffca1b10ea6 (USER32) DispatchMessageW
0x00007ff63e8116a3 (Unity) MainMessageLoop
0x00007ff63e8160cb (Unity) WinMain
0x00007ff63fbb533e (Unity) __scrt_common_main_seh
0x00007ffca16d54e0 (KERNEL32) BaseThreadInitThunk
0x00007ffca22c485b (ntdll) RtlUserThreadStart

I have the same problem. I tried with 2021.3.11 & 2021.3.09 and it happens in both versions.
I’ve moved back to 2021.3.05 version and voilá! (no more crashes)

This is a known big and will be fixed in 2021.3.12

1 Like

sad to hear this bug is in 2021.3.11!!!

Unity Mediation only works in 2021.3.10+… what is going on

This solved my problem. It also had the exact stack trace I was getting. Thank you!