Search Issue Tracker

Duplicate

Votes

0

Found in

5.3.4p2

Issue ID

785875

Regression

Yes

DirectorManager::OnShutdownBeforeObjectCleanup crash when closing Unity while still in play mode

Director

-

Steps to reproduce:
1. Download and open attached project.
2. Open scene named "Animator Controller".
3. Enter play mode.
4. Close the Editor.
5. Notice that "Unity Bug Reporter" window appears and another dialog window informs that "Unity Editor has stopped working".

Expected result:
Closing Unity Editor when in play mode should not result in crash, because this way all the unsaved changes are lost.

Reproduced with:
5.3.4p2, 5.3.5f1, 5.3.5p1.

Cannot reproduce with:
5.1.0f3, 5.2.4f1, 5.3.4f1, 5.4.0b18.

========== OUTPUTING STACK TRACE ==================

0x00000001401E6436 (Unity) DirectorManager::OnShutdownBeforeObjectCleanup
0x0000000140440182 (Unity) CleanupAllObjects
0x0000000140440D0E (Unity) CleanupEngine
0x00000001407347C5 (Unity) AssetInterface::Shutdown
0x0000000140B941F8 (Unity) Application::CoreShutdown
0x0000000140B97365 (Unity) Application::Terminate
0x0000000140DB49CC (Unity) ContainerWindow::ContainerWndProc
0x00007FF9F4C31169 (USER32) DispatchMessageW
0x00007FF9F4C30EE2 (USER32) DispatchMessageW
0x00007FF9F4C4098E (USER32) GetMenuItemInfoW
0x00007FF9F76988A4 (ntdll) KiUserCallbackDispatcher
0x00007FF9F4C51F94 (USER32) InvalidateRect
0x00007FF9F4C2E6A3 (USER32) GetWindowTextW
0x00007FF9F4C2E1D2 (USER32) GetWindowTextW
0x00007FF9F25AEBB8 (uxtheme) Ordinal119
0x00007FF9F25B08A7 (uxtheme) Ordinal104
0x00007FF9F25A82EF (uxtheme) CloseThemeData
0x00007FF9F25A6B31 (uxtheme) CloseThemeData
0x00007FF9F4C2E3C9 (USER32) GetWindowTextW
0x0000000140DB47E4 (Unity) ContainerWindow::ContainerWndProc
0x00007FF9F4C31169 (USER32) DispatchMessageW
0x00007FF9F4C30EE2 (USER32) DispatchMessageW
0x00007FF9F4C4098E (USER32) GetMenuItemInfoW
0x00007FF9F76988A4 (ntdll) KiUserCallbackDispatcher
0x00007FF9F4C51F94 (USER32) InvalidateRect
0x00007FF9F4C2E6A3 (USER32) GetWindowTextW
0x00007FF9F4C2E1D2 (USER32) GetWindowTextW
0x00007FF9F25AEBB8 (uxtheme) Ordinal119
0x00007FF9F25B0933 (uxtheme) Ordinal104
0x00007FF9F25A82EF (uxtheme) CloseThemeData
0x00007FF9F25A6B31 (uxtheme) CloseThemeData
0x00007FF9F4C2E3C9 (USER32) GetWindowTextW
0x0000000140DB47E4 (Unity) ContainerWindow::ContainerWndProc
0x00007FF9F4C31169 (USER32) DispatchMessageW
0x00007FF9F4C30C97 (USER32) DispatchMessageW
0x0000000140DCFC7B (Unity) RelaunchUnity
0x0000000140DD131B (Unity) WinMain
0x000000014151EF94 (Unity) read
0x00007FF9F4B18102 (KERNEL32) BaseThreadInitThunk

========== END OF STACKTRACE ===========

Comments (2)

  1. spolglase

    Jun 08, 2016 14:43

    The issue was related to corrupted animator components. It seems from my testing that after the Unity upgrade (ours was from 5.3.4 ->5.3.5p1) those components were corrupted. By deleting the animators and re-adding them and then re-hooking them up the Unity crash went away.

  2. spolglase

    Jun 07, 2016 21:06

    I'm getting a similar crash when I close down Unity but it doesn't seem to matter if I'm running or not. I can confirm the same thing happens on Unity 5.3.5f1 and 5.3.5p1 (64-bit). Similar stack traces:

    ========== OUTPUTING STACK TRACE ==================

    0x00000001401E4C06 (Unity) DirectorManager::OnShutdownBeforeObjectCleanup
    0x000000014043E592 (Unity) CleanupAllObjects
    0x000000014043F11E (Unity) CleanupEngine
    0x0000000140733585 (Unity) AssetInterface::Shutdown
    0x0000000140B94038 (Unity) Application::CoreShutdown
    0x0000000140B971A5 (Unity) Application::Terminate
    0x0000000140DB48BC (Unity) ContainerWindow::ContainerWndProc
    0x00007FF8FB7123FD (USER32) DispatchMessageW
    0x00007FF8FB71DEC5 (USER32) IsImmersiveProcess
    0x00007FF8FB71D803 (USER32) SendMessageA
    0x0000000140DBD93F (Unity) ExecuteStandardMenuItem
    0x0000000140DBE08D (Unity) ExecuteMenuItemWithID
    0x0000000140DCED98 (Unity) ProcessMainWindowMessages
    0x0000000140DB4CBA (Unity) ContainerWindow::ContainerWndProc
    0x00007FF8FB7123FD (USER32) DispatchMessageW
    0x00007FF8FB71249D (USER32) DispatchMessageW
    0x0000000140DCFCBB (Unity) RelaunchUnity
    0x0000000140DD135B (Unity) WinMain
    0x00000001415201A4 (Unity) read
    0x00007FF8FB5C13D2 (KERNEL32) BaseThreadInitThunk

    ========== END OF STACKTRACE ===========

Add comment

Log in to post comment