Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Bug Undo causes Unity 2021.3 to crash

Discussion in 'Editor & General Support' started by enhawk, Sep 25, 2022.

  1. enhawk

    enhawk

    Joined:
    Aug 22, 2013
    Posts:
    833
    When moving some prefabs around in the scene (not in run mode) and undoing their position, Unity will randomly crash.

    Unity 2021.3.10f
     
  2. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    4,847
    Save crash logs and if it's semi reproducible make a bug report with the crash logs attached
     
  3. wechat_os_Qy07J6-zhEJFrDRRYZXjhiBI8

    wechat_os_Qy07J6-zhEJFrDRRYZXjhiBI8

    Joined:
    Sep 6, 2022
    Posts:
    1
    We have the same problem
     
  4. Slaktus

    Slaktus

    Joined:
    Dec 5, 2012
    Posts:
    58
    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::Deactivate
    0x00007ff606827827 (Unity) GameObject::ActivateAwakeRecursivelyInternal
    0x00007ff6068276b5 (Unity) GameObject::ActivateAwakeRecursivelyInternal
    0x00007ff606827439 (Unity) GameObject::ActivateAwakeRecursively
    0x00007ff60682a0f9 (Unity) GameObject::Deactivate
    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
     
  5. littlemiemie

    littlemiemie

    Joined:
    Jun 3, 2017
    Posts:
    3
  6. jacob_unity577

    jacob_unity577

    Joined:
    Jan 19, 2022
    Posts:
    6
    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:
    Code (CSharp):
    1. =================================================================
    2.     Native Crash Reporting
    3. =================================================================
    4. Got a UNKNOWN while executing native code. This usually indicates
    5. a fatal error in the mono runtime or one of the native libraries
    6. used by your application.
    7. =================================================================
    8.  
    9. =================================================================
    10.     Managed Stacktrace:
    11. =================================================================
    12.       at <unknown> <0xffffffff>
    13.       at UnityEditor.EditorApplication:ExecuteMenuItem <0x00089>
    14.       at UnityEditor.ShortcutManagement.MenuItemEntryDiscoveryInfo:<.ctor>b__7_0 <0x00022>
    15.       at UnityEditor.ShortcutManagement.Trigger:HandleKeyEvent <0x00c27>
    16.       at UnityEditor.ShortcutManagement.ShortcutController:HandleKeyEvent <0x00032>
    17.       at UnityEditor.ShortcutManagement.ShortcutIntegration:EventHandler <0x00122>
    18.       at <Module>:invoke_void <0x000a1>
    19.       at UnityEditor.EditorApplication:Internal_CallGlobalEventHandler <0x0002b>
    20.       at System.Object:runtime_invoke_void <0x00084>
    21. =================================================================
    22. Received signal SIGSEGV
    23. Obtained 40 stack frames
    24. 0x00007ff63d2f0a58 (Unity) RendererUpdateManager::RemoveRenderer
    25. 0x00007ff63d2dd248 (Unity) Renderer::RemoveFromScene
    26. 0x00007ff63d2daec7 (Unity) Renderer::Deactivate
    27. 0x00007ff63d148447 (Unity) GameObject::ActivateAwakeRecursivelyInternal
    28. 0x00007ff63d1482d5 (Unity) GameObject::ActivateAwakeRecursivelyInternal
    29. 0x00007ff63d148059 (Unity) GameObject::ActivateAwakeRecursively
    30. 0x00007ff63d14ad19 (Unity) GameObject::Deactivate
    31. 0x00007ff63d45be55 (Unity) DestroyObjectHighLevel_Internal
    32. 0x00007ff63d45baa4 (Unity) DestroyObjectHighLevel
    33. 0x00007ff63e6ed19b (Unity) CreatedObjectUndo::ApplyUndo
    34. 0x00007ff63e6ed2bb (Unity) UndoManager::ApplyUndo
    35. 0x00007ff63e6f6b77 (Unity) UndoManager::Undo
    36. 0x00007ff63e1f74f0 (Unity) MenuController::ExecuteMenuItem
    37. 0x00007ff63e1f6bd2 (Unity) MenuController::ExecuteMainMenuItem
    38. 0x00007ff63ce2e49e (Unity) EditorApplication_CUSTOM_ExecuteMenuItem
    39. 0x00000217b6f0e27a (Mono JIT Code) (wrapper managed-to-native) UnityEditor.EditorApplication:ExecuteMenuItem (string)
    40. 0x00000217b6f0e1a3 (Mono JIT Code) UnityEditor.ShortcutManagement.MenuItemEntryDiscoveryInfo:<.ctor>b__7_0 (UnityEditor.ShortcutManagement.ShortcutArguments)
    41. 0x00000217b6965de8 (Mono JIT Code) UnityEditor.ShortcutManagement.Trigger:HandleKeyEvent (UnityEngine.Event,UnityEditor.ShortcutManagement.IContextManager)
    42. 0x00000217b6965143 (Mono JIT Code) UnityEditor.ShortcutManagement.ShortcutController:HandleKeyEvent (UnityEngine.Event)
    43. 0x00000217b6964fb3 (Mono JIT Code) UnityEditor.ShortcutManagement.ShortcutIntegration:EventHandler ()
    44. 0x00000217a38a7f72 (Mono JIT Code) (wrapper delegate-invoke) <Module>:invoke_void ()
    45. 0x00000217b6964e1c (Mono JIT Code) UnityEditor.EditorApplication:Internal_CallGlobalEventHandler ()
    46. 0x00000217a1c21cb5 (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void (object,intptr,intptr,intptr)
    47. 0x00007ffb74c2fe24 (mono-2.0-bdwgc) [mini-runtime.c:3445] mono_jit_runtime_invoke
    48. 0x00007ffb74b6e764 (mono-2.0-bdwgc) [object.c:3066] do_runtime_invoke
    49. 0x00007ffb74b6e8fc (mono-2.0-bdwgc) [object.c:3113] mono_runtime_invoke
    50. 0x00007ff63d7b8164 (Unity) scripting_method_invoke
    51. 0x00007ff63d797a04 (Unity) ScriptingInvocation::Invoke
    52. 0x00007ff63d792615 (Unity) ScriptingInvocation::Invoke<void>
    53. 0x00007ff63d8e885b (Unity) Scripting::UnityEditor::EditorApplicationProxy::Internal_CallGlobalEventHandler
    54. 0x00007ff63e2d2ada (Unity) CallGlobalInputEvent
    55. 0x00007ff63e83cbf0 (Unity) GUIView::ProcessEventMessages
    56. 0x00007ff63e83677f (Unity) GUIView::GUIViewWndProc
    57. 0x00007ffca1b11c4c (USER32) CallWindowProcW
    58. 0x00007ffca1b10ea6 (USER32) DispatchMessageW
    59. 0x00007ff63e8116a3 (Unity) MainMessageLoop
    60. 0x00007ff63e8160cb (Unity) WinMain
    61. 0x00007ff63fbb533e (Unity) __scrt_common_main_seh
    62. 0x00007ffca16d54e0 (KERNEL32) BaseThreadInitThunk
    63. 0x00007ffca22c485b (ntdll) RtlUserThreadStart
    64.  
    65.  
     
  7. jocyf

    jocyf

    Joined:
    Jan 30, 2007
    Posts:
    285
    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)
     
  8. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    4,847
    This is a known big and will be fixed in 2021.3.12
     
    Proto-G likes this.
  9. enhawk

    enhawk

    Joined:
    Aug 22, 2013
    Posts:
    833
    sad to hear this bug is in 2021.3.11!!!

    Unity Mediation only works in 2021.3.10+... what is going on
     
  10. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    4,847
  11. LelandGreen

    LelandGreen

    Joined:
    Oct 6, 2017
    Posts:
    13