Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

ZwWaitForMultipleObjects native crash on build

Discussion in 'Editor & General Support' started by meti314, Jan 27, 2019.

  1. meti314

    meti314

    Joined:
    Sep 30, 2015
    Posts:
    3
    Hi
    I have a real pickle here and I would really appreciate some help.
    My project crashes on build. It happens after some time of playing and when player changes the missions. If you change the mission before playing for some time, crash won't occur. During missions switching, old scenes are unloaded and new scenes are loaded. There is a lot of assets there. After doing some debuging I guess that it crashes during Resources.UnloadUnusedAssets() operation, but i'm not sure. Below you can find 3 separate crash stacks that I collected with. It happens on different hardware. I'm using Unity 2018.1.92f. Any suggestions will be great.

    0 ntdll 0x00007ff942dcb4f4 ZwWaitForMultipleObjects
    1 KERNELBASE 0x00007ff93fb66099 WaitForMultipleObjectsEx
    2 KERNELBASE 0x00007ff93fb65f8e WaitForMultipleObjects
    3 Unity 0x00000001414e7fc1 ?HandleCrash@CrashHandlerInternal@winutils@@QEAAXKKPEBDPEAU_CONTEXT@@PEAU_EXCEPTION_RECORD@@_N@Z
    4 Unity 0x00000001414e7cff ?HandleCrash@CrashHandler@winutils@@QEAAXPEAU_EXCEPTION_POINTERS@@@Z
    5 Unity 0x00000001414fecdd ?_ProcessInternalCrash@@YAJPEAU_EXCEPTION_POINTERS@@@Z
    6 KERNELBASE 0x00007ff93fc0bcf0 UnhandledExceptionFilter
    7 ntdll 0x00007ff942dfbb51 LdrpLogFatalUserCallbackException
    8 ntdll 0x00007ff942dce620 KiUserCallbackDispatcherHandler
    9 ntdll 0x00007ff942dcf7dd RtlpExecuteHandlerForException
    10 ntdll 0x00007ff942d3d856 RtlDispatchException
    11 ntdll 0x00007ff942dce70e KiUserExceptionDispatch
    12 ntdll 0x00007ff942dce70e KiUserExceptionDispatch


    0 ntdll 0x00007ffaa005b4f4 ZwWaitForMultipleObjects
    1 KERNELBASE 0x00007ffa9cf16099 WaitForMultipleObjectsEx
    2 KERNELBASE 0x00007ffa9cf15f8e WaitForMultipleObjects
    3 Unity 0x00000001414e7fc1 ?HandleCrash@CrashHandlerInternal@winutils@@QEAAXKKPEBDPEAU_CONTEXT@@PEAU_EXCEPTION_RECORD@@_N@Z
    4 Unity 0x00000001414e7cff ?HandleCrash@CrashHandler@winutils@@QEAAXPEAU_EXCEPTION_POINTERS@@@Z
    5 Unity 0x00000001414fecdd ?_ProcessInternalCrash@@YAJPEAU_EXCEPTION_POINTERS@@@Z
    6 KERNELBASE 0x00007ffa9cfbbcf0 UnhandledExceptionFilter
    7 ntdll 0x00007ffaa0063167 RtlUserThreadStart$filt$0
    8 ntdll 0x00007ffaa004b5e6 _C_specific_handler
    9 ntdll 0x00007ffaa005f7dd RtlpExecuteHandlerForException
    10 ntdll 0x00007ffa9ffcd856 RtlDispatchException
    11 ntdll 0x00007ffaa005e70e KiUserExceptionDispatch
    12 mono-2.0-bdwgc 0x00007ffa6729e5a1 <symbols missing for uuid: B1E56A9A1C1A4D72B31D904C5D9C92511>
    13 mono-2.0-bdwgc 0x00007ffa6729e573 <symbols missing for uuid: B1E56A9A1C1A4D72B31D904C5D9C92511>
    14 Unity 0x0000000140bdb683 ?scripting_class_has_attribute@@YA_NVScriptingClassPtr@@0@Z
    15 Unity 0x0000000140c45215 ?IsObjectNonTextSerialized@PersistentManager@@QEAA_NPEAVObject@@@Z
    16 Unity 0x0000000140c4d467 ?WriteFile@PersistentManager@@QEAAHAEBV?$basic_string@DV?$StringStorageDefault@D@core@@@core@@UBuildTargetSelection@@W4TransferInstructionFlags@@@Z
    17 Unity 0x0000000141df1d11 ?WriteSerializedAsset@AssetDatabaseV1@@QEAAXAEBUUnityGUID@@@Z
    18 Unity 0x0000000141df20cc ?WriteSerializedAssets@AssetDatabaseV1@@QEAAXAEBV?$set@UUnityGUID@@U?$less@UUnityGUID@@@std@@V?$allocator@UUnityGUID@@@3@@std@@@Z
    19 Unity 0x0000000141da2cb1 ?WriteRevertAssets@AssetDatabase@@YAXAEBV?$set@UUnityGUID@@U?$less@UUnityGUID@@@std@@V?$allocator@UUnityGUID@@@3@@std@@0@Z
    20 Unity 0x0000000141da12fa ?SaveAssets@AssetDatabase@@YAXXZ
    21 Unity 0x00000001414194ab ?SetCloudProject@UnityConnect@@UEAAXAEBV?$basic_string@DV?$StringStorageDefault@D@core@@@core@@0000@Z
    22 Unity 0x000000014141d404 ?LoadValues@UnityConnectProjectIdRequest@@MEAAXXZ
    23 Unity 0x00000001414172a6 ?LoadValues@UnityConnectBindCloudProjectIdRequest@@MEAAXXZ
    24 Unity 0x000000014141786c ?OnSuccess@UnityConnectBindCloudProjectIdRequest@@UEAAXXZ
    25 Unity 0x0000000140e9a1df ?Done@JSONRequestMessage@@UEAAXXZ
    26 Unity 0x0000000141421a3e ?Done@UnityConnectJSONRequest@@UEAAXXZ
    27 Unity 0x00000001401ac959 ?Check@CurlRequest@@QEAAXXZ
    28 Unity 0x00000001401acedf ?CurlRequestCheck@@YAXXZ
    29 Unity 0x00000001413c9f5d ?TickTimer@Application@@QEAAXXZ
    30 Unity 0x00000001415c490d MainMessageLoop
    31 Unity 0x00000001415c6bfc WinMain
    32 Unity 0x00000001420a09b7 _scrt_common_main_seh
    33 KERNEL32 0x00007ffa9e323034 BaseThreadInitThunk
    34 ntdll 0x00007ffaa0033691 RtlUserThreadStart
    35 ntdll 0x00007ffaa0033691 RtlUserThreadStart


    0 ntdll 0x00007ffbeb0ab4f4 ZwWaitForMultipleObjects
    1 KERNELBASE 0x00007ffbe8266099 WaitForMultipleObjectsEx
    2 KERNELBASE 0x00007ffbe8265f8e WaitForMultipleObjects
    3 Unity 0x00000001414e7fc1 ?HandleCrash@CrashHandlerInternal@winutils@@QEAAXKKPEBDPEAU_CONTEXT@@PEAU_EXCEPTION_RECORD@@_N@Z
    4 Unity 0x00000001414e7cff ?HandleCrash@CrashHandler@winutils@@QEAAXPEAU_EXCEPTION_POINTERS@@@Z
    5 Unity 0x00000001414fecdd ?_ProcessInternalCrash@@YAJPEAU_EXCEPTION_POINTERS@@@Z
    6 KERNELBASE 0x00007ffbe830bcf0 UnhandledExceptionFilter
    7 ntdll 0x00007ffbeb0b3167 RtlUserThreadStart$filt$0
    8 ntdll 0x00007ffbeb09b5e6 _C_specific_handler
    9 ntdll 0x00007ffbeb0af7dd RtlpExecuteHandlerForException
    10 ntdll 0x00007ffbeb01d856 RtlDispatchException
    11 ntdll 0x00007ffbeb0ae70e KiUserExceptionDispatch
    12 Unity 0x0000000140698202 BuildRenderObjectData
    13 Unity 0x0000000140698dc5 ?DoRenderLoop@@YAXAEAURenderLoop@@W4RenderingPath@@AEAUCullResults@@AEAUShadowMapCache@@_N@Z
    14 Unity 0x00000001405a318b ??RDefaultPerformRenderFunction@Camera@@UEAAXPEAV1@W4RenderingPath@@PEAUCullResults@@@Z
    15 Unity 0x00000001405afafd ?MultiCustomRender@Camera@@AEAAXAEAUCullResults@@PEBQEAVPerformRenderFunction@1@_K_N@Z
    16 Unity 0x00000001405aac20 ?DoRender@Camera@@AEAAXAEAUCullResults@@AEBUSharedRendererScene@@W4RenderFlag@1@PEAVPerformRenderFunction@1@@Z
    17 Unity 0x00000001405aa49c ?CustomRender@Camera@@QEAAXAEAUCullResults@@AEAUShaderPassContext@@PEBUCameraRenderingParams@@W4RenderFlag@1@PEAVPerformRenderFunction@1@P6AXXZ@Z
    18 Unity 0x00000001405b2449 ?Render@Camera@@QEAAXAEAUCullResults@@AEAUShaderPassContext@@W4RenderFlag@1@P6AXXZ@Z
    19 Unity 0x00000001406543ec ?RenderCameras@RenderManager@@QEAAXHP6AXXZ@Z
    20 Unity 0x00000001413639dc ?RenderGameViewCameras@RepaintController@@SAXPEAVRenderTexture@@HAEBV?$RectT@M@@AEBVVector2f@@_N@Z
    21 Unity 0x0000000141523c71 ?EditorGUIUtility_CUSTOM_INTERNAL_CALL_RenderGameViewCamerasInternal@@YAXPEAUMonoObject@@HAEBV?$RectT@M@@AEBUVector2fIcall@@E@Z
    22 Mono Runtime 0x0000000000000000 <unknown>
    23 Mono Runtime 0x0000000000000000 <unknown>
    24 Mono Runtime 0x0000000000000000 <unknown>
    25 Mono Runtime 0x0000000000000000 <unknown>
    26 mono-2.0-bdwgc 0x00007ffb8466a1eb <symbols missing for uuid: B1E56A9A1C1A4D72B31D904C5D9C92511>
    27 mono-2.0-bdwgc 0x00007ffb845f1a92 <symbols missing for uuid: B1E56A9A1C1A4D72B31D904C5D9C92511>
    28 mono-2.0-bdwgc 0x00007ffb845fac52 <symbols missing for uuid: B1E56A9A1C1A4D72B31D904C5D9C92511>
    29 mono-2.0-bdwgc 0x00007ffb845fb3e9 <symbols missing for uuid: B1E56A9A1C1A4D72B31D904C5D9C92511>
    30 mono-2.0-bdwgc 0x00007ffb845fabe6 <symbols missing for uuid: B1E56A9A1C1A4D72B31D904C5D9C92511>
    31 mono-2.0-bdwgc 0x00007ffb8459fd04 <symbols missing for uuid: B1E56A9A1C1A4D72B31D904C5D9C92511>
    32 Mono Runtime 0x0000000000000000 <unknown>
    33 Mono Runtime 0x0000000000000000 <unknown>
    34 Mono Runtime 0x0000000000000000 <unknown>
    35 Mono Runtime 0x0000000000000000 <unknown>
    36 Mono Runtime 0x0000000000000000 <unknown>
    37 Mono Runtime 0x0000000000000000 <unknown>
    38 Mono Runtime 0x0000000000000000 <unknown>
    39 Mono Runtime 0x0000000000000000 <unknown>
    40 Mono Runtime 0x0000000000000000 <unknown>
    41 Mono Runtime 0x0000000000000000 <unknown>
    42 Mono Runtime 0x0000000000000000 <unknown>
    43 Mono Runtime 0x0000000000000000 <unknown>
    44 Mono Runtime 0x0000000000000000 <unknown>
    45 Mono Runtime 0x0000000000000000 <unknown>
    46 Mono Runtime 0x0000000000000000 <unknown>
    47 Mono Runtime 0x0000000000000000 <unknown>
    48 Mono Runtime 0x0000000000000000 <unknown>
    49 Mono Runtime 0x0000000000000000 <unknown>
    50 mono-2.0-bdwgc 0x00007ffb8466a1eb <symbols missing for uuid: B1E56A9A1C1A4D72B31D904C5D9C92511>
    51 mono-2.0-bdwgc 0x00007ffb845f1a92 <symbols missing for uuid: B1E56A9A1C1A4D72B31D904C5D9C92511>
    52 mono-2.0-bdwgc 0x00007ffb845faa7f <symbols missing for uuid: B1E56A9A1C1A4D72B31D904C5D9C92511>
    53 Unity 0x0000000140bdbf7a ?scripting_method_invoke@@YA?AVScriptingObjectPtr@@VScriptingMethodPtr@@V1@AEAUScriptingArguments@@PEAVScriptingExceptionPtr@@_N@Z
    54 Unity 0x0000000140bd4970 ?Invoke@ScriptingInvocation@@QEAA?AVScriptingObjectPtr@@PEAVScriptingExceptionPtr@@_N@Z
    55 Unity 0x0000000140bd022a ??$Invoke@_N@ScriptingInvocation@@QEAA_NPEAVScriptingExceptionPtr@@_N@Z
    56 Unity 0x00000001403f730e ?ProcessEvent@IMGUIScriptingClasses@@QEAA_NHPEAXPEAVScriptingExceptionPtr@@@Z
    57 Unity 0x000000014132acd4 ?ProcessRetainedMode@GUIView@@SA?AW4ProcessRetainedModeResult@1@AEAUInputEvent@@AEAUGUIState@@H@Z
    58 Unity 0x00000001415ab5a2 ?OnInputEvent@GUIView@@AEAA_NAEAUInputEvent@@@Z
    59 Unity 0x000000014132ac1c ?ProcessInputEvent@GUIView@@QEAA_NAEAUInputEvent@@@Z
    60 Unity 0x00000001415a328e ?DoPaint@GUIView@@AEAAXXZ
    61 Unity 0x00000001415ada4d ?RepaintAll@GUIView@@SAX_N@Z
    62 Unity 0x00000001413cc00f ?UpdateScene@PlayerLoopController@@QEAAX_N@Z
    63 Unity 0x00000001413cad34 ?TickTimer@Application@@QEAAXXZ
    64 Unity 0x00000001415c490d MainMessageLoop
    65 Unity 0x00000001415c6bfc WinMain
    66 Unity 0x00000001420a09b7 _scrt_common_main_seh
    67 KERNEL32 0x00007ffbea493034 BaseThreadInitThunk
    68 ntdll 0x00007ffbeb083691 RtlUserThreadStart
    69 ntdll 0x00007ffbeb083691 RtlUserThreadStart
     
  2. Samuel411

    Samuel411

    Joined:
    Dec 20, 2012
    Posts:
    646
    Same issue in Unity 2019.3.7. Any fixes?
     
  3. the_mr_matt

    the_mr_matt

    Joined:
    Jul 21, 2015
    Posts:
    124
    Bump, same issue - getting many reports from users about crashes and many crashes in Cloud Diagnostics.
     
    andrew210 likes this.
  4. GloriaVictis

    GloriaVictis

    Joined:
    Sep 1, 2016
    Posts:
    133
    Having the same crashes happening often within 2019.4.20 LTS