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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

How to begin to diagnose "Native Crash - KiUserExceptionDispatcher" crash?

Discussion in 'Editor & General Support' started by dgoyette, May 31, 2022.

  1. dgoyette

    dgoyette

    Joined:
    Jul 1, 2016
    Posts:
    4,120
    I occasionally get a crash report titled "Native Crash - KiUserExceptionDispatcher". This comes from random users, generally people playing a free demo of my game, not anyone I'm in contact with.

    The stack trace shows the crashed thread, but I struggle to find any way I can approach this to try to diagnose the problem.

    Does anyone have experience with crashes like this? Any advice on trying to prevent them from occurring?

     
    Last edited: Jun 5, 2022
  2. dgoyette

    dgoyette

    Joined:
    Jul 1, 2016
    Posts:
    4,120
    Maybe I'll just use this thread to collect all of this sort of error, though it may get obnoxious. Again, these aren't errors I can reproduce in any way. They're occurring on random users' machines, and submitted to me via Unity's crash reporting, so I have no direct contact with the players getting these errors.

    And again, I'm posting this in hopes of understand if there's anything I can do about errors like this. (By the way, submitting a bug report to Unity won't help. I've done that before, and they won't be able to do anything if a sample project isn't attached with a reproducible test case.)

     
  3. dgoyette

    dgoyette

    Joined:
    Jul 1, 2016
    Posts:
    4,120
    Another crash:

     
  4. dgoyette

    dgoyette

    Joined:
    Jul 1, 2016
    Posts:
    4,120
    Another crash:

     
  5. dgoyette

    dgoyette

    Joined:
    Jul 1, 2016
    Posts:
    4,120
    From now all, these occur under Unity 2021.3 builds:

     
  6. dgoyette

    dgoyette

    Joined:
    Jul 1, 2016
    Posts:
    4,120
     
  7. dgoyette

    dgoyette

    Joined:
    Jul 1, 2016
    Posts:
    4,120
    Still no idea how to start debugging/fixing/understand any of these errors. Hoping that eventually someone will have a suggestion.

     
  8. dgoyette

    dgoyette

    Joined:
    Jul 1, 2016
    Posts:
    4,120
     
  9. CheritDeveloper

    CheritDeveloper

    Joined:
    Sep 17, 2018
    Posts:
    3
    Hey dgoyette, did you already gain a better understanding of the crash?

    I have had this problem for a few months already and still can't find out where it comes from.
    What platform do you use? The application runs on Windows and it works together with Azure Kinect DK depth cameras.

    this is what the reports for me look like:
     
  10. dgoyette

    dgoyette

    Joined:
    Jul 1, 2016
    Posts:
    4,120
    Nope. I still have no idea what causes this type of crash. The actual stack traces always seem to be a bit different from each other, so this isn't one crash, but a family of crashes that have similar, but different, stack traces.
     
  11. CheritDeveloper

    CheritDeveloper

    Joined:
    Sep 17, 2018
    Posts:
    3
    I am now getting these kinds of crashes quite frequently. About once a day for every player. In what kind of project is this crash happening for you? Is it a game, or do you also make use of any other hardware?
     
  12. dgoyette

    dgoyette

    Joined:
    Jul 1, 2016
    Posts:
    4,120
    The reports I get come from a game, generally running only on the Windows platform. I don't recall seeing errors like this originating from Mac players, but with so few Mac players that's not conclusive.
     
  13. CheritDeveloper

    CheritDeveloper

    Joined:
    Sep 17, 2018
    Posts:
    3
    After a lot of researching, I found out that one of my systems had overheating issues, which caused BSOD's. Since I fixed the overheating issue, I haven't had the crash report anymore in the past two weeks.
     
  14. AnthonyStainton

    AnthonyStainton

    Joined:
    Apr 12, 2020
    Posts:
    1
    I'm getting as well on version 2022.1.15f1
    Could be HDRP but idk
     
  15. Laumania

    Laumania

    Joined:
    Jun 27, 2012
    Posts:
    200
    I'm seeing these errors from time to time in the Unity crash report analytics system and are in two players that have these. Not exact same behavior, but still a hard crash with errors similar to this.

    After researching, my guess, and it's a guess for now, is that its due to old/low end graphics cards. At all, I have only seen these crashes on cards like:
    Intel(R) HD Graphics 3000
    Intel(R) Iris(R) Plus Graphics
    Intel(R) HD Graphics
    NVIDIA GeForce GT 240
    NVIDIA GeForce GT 630M
    Radeon RX 580 Series

    Without being a hardware guy, it seems to be these are low-end/older graphics cards and that seem to be the common nominator in my case.

    If I can actually do anything about it, I don't know, but at least thats my findings, but don't really have a hard proof.
     
  16. burningwipf

    burningwipf

    Joined:
    Dec 27, 2021
    Posts:
    1
    I'm getting those crashes as well.
    For me it's 25 impacted users in the past 7 days.

    Regarding the GPU theory, for me these have been affected:
    - NVIDIA GeForce GTX 1080
    - NVIDIA GeForce GTX 770M
    - NVIDIA GeForce GTX 1650 Ti
    - NVIDIA GeForce GTX 1050
    - NVIDIA GeForce RTX 3060 Laptop GPU
    - NVIDIA GeForce RTX 3050 Laptop GPU
    - NVIDIA GeForce GTX 1660 Ti

    some of them don't sound very low-end / old too me tough :/

    It seems as this particular crash can have multiple reasons though.
    If you look at line 12 of the crashed thread's stack trace, there are different files / methods for all our examples.

    For me it's:
    So for me at least, it seems that some exception in the textinputframework is not properly handled, which results in the hard crash.

    The other stack traces in this thread so far do sound more graphics-based though, so maybe for those the gpu-theory holds up!
     
  17. SniperED007

    SniperED007

    Joined:
    Sep 29, 2013
    Posts:
    341
    One of my players had this crash today.

    GPU: NVIDIA GeForce RTX 3080
    CPU: Intel(R) Core(TM) i7-9700K CPU @ 3.60GHz
    OS: Windows 10 (10.0.19044) 64bit
    Unity: 2022.1.24f1 (URP)

    Thread 10 (crashed)
    0 ntdll 0x00007ffcebaadc14 NtWaitForMultipleObjects
    1 KERNELBASE 0x00007ffce9660590 WaitForMultipleObjectsEx
    2 KERNELBASE 0x00007ffce966048e WaitForMultipleObjects
    3 UnityPlayer 0x00007ffc92df91c2 winutils::ExternalCrashHandler::HandleCrash (C:\build\output\unity\unity\PlatformDependent\Win\ExternalCrashHandler.cpp:354)
    4 UnityPlayer 0x00007ffc92df9252 winutils::ExternalCrashHandler::HandleCrash (C:\build\output\unity\unity\PlatformDependent\Win\ExternalCrashHandler.cpp:426)
    5 UnityPlayer 0x00007ffc92e0a228 winutils::processInternalCrash (C:\build\output\unity\unity\PlatformDependent\Win\WinUtils.cpp:595)
    6 KERNELBASE 0x00007ffce9720207 UnhandledExceptionFilter
    7 ntdll 0x00007ffcebab5530 RtlUserThreadStart$filt$0
    8 ntdll 0x00007ffceba9c876 _C_specific_handler
    9 ntdll 0x00007ffcebab241f RtlpExecuteHandlerForException
    10 ntdll 0x00007ffceba614a4 RtlDispatchException
    11 ntdll 0x00007ffcebab0f4e KiUserExceptionDispatcher
    12 UnityPlayer 0x00007ffc92856a7b MemoryManager::GetAllocator (C:\build\output\unity\unity\Runtime\Allocator\MemoryManager.cpp:2312)
    13 UnityPlayer 0x00007ffc92859c8d MemoryManager::Reallocate (C:\build\output\unity\unity\Runtime\Allocator\MemoryManager.cpp:1945)
    14 UnityPlayer 0x00007ffc9285b07b realloc_internal (C:\build\output\unity\unity\Runtime\Allocator\MemoryManager.cpp:439)
    15 UnityPlayer 0x00007ffc92b3e1a0 dynamic_array_detail::dynamic_array_data::grow (C:\build\output\unity\unity\Runtime\Utilities\dynamic_array.cpp:50)
    16 UnityPlayer 0x0000000000cd2a3d (C:\build\output\unity\unity\Runtime\Utilities\dynamic_array.h:693)
    17 UnityPlayer 0x0000000000cd2a19 (C:\build\output\unity\unity\Runtime\Utilities\dynamic_array.h:485)
    18 UnityPlayer 0x00007ffc93262a3d VFXCommandList::InnerRegister (C:\build\output\unity\unity\Modules\VFX\Public\VFXCommand.cpp:54)
    19 UnityPlayer 0x0000000000ce50de HasFlag (C:\build\output\unity\unity\Modules\VFX\Public\VisualEffect.h:175)
    20 UnityPlayer 0x00007ffc932750de VisualEffect::processUpdate (C:\build\output\unity\unity\Modules\VFX\Public\VisualEffect.cpp:473)
    21 UnityPlayer 0x00007ffc93278b15 VisualEffect::Update (C:\build\output\unity\unity\Modules\VFX\Public\VisualEffect.cpp:425)
    22 UnityPlayer 0x00007ffc9326521e VFXManager::UpdateVisualEffectJob (C:\build\output\unity\unity\Modules\VFX\Public\VFXManager.cpp:836)
    23 UnityPlayer 0x00000000004bcb6b (C:\build\output\unity\unity\Runtime\Jobs\Internal\JobQueue.cpp:462)
    24 UnityPlayer 0x00007ffc92a4cb6b JobQueue::Exec (C:\build\output\unity\unity\Runtime\Jobs\Internal\JobQueue.cpp:634)
    25 UnityPlayer 0x00007ffc92a4cd5e JobQueue::ExecuteJobFromHighPriorityStack (C:\build\output\unity\unity\Runtime\Jobs\Internal\JobQueue.cpp:824)
    26 UnityPlayer 0x00007ffc92a4d1c6 JobQueue::processJobs (C:\build\output\unity\unity\Runtime\Jobs\Internal\JobQueue.cpp:991)
    27 UnityPlayer 0x00007ffc92a4e990 JobQueue::WorkLoop (C:\build\output\unity\unity\Runtime\Jobs\Internal\JobQueue.cpp:1115)
    28 UnityPlayer 0x00007ffc92b5c091 Thread::RunThreadWrapper (C:\build\output\unity\unity\Runtime\Threads\Thread.cpp:82)
    29 KERNEL32 0x00007ffceac67614 BaseThreadInitThunk
    30 ntdll 0x00007ffceba626a1 RtlUserThreadStart
    31 ntdll 0x00007ffceba626a1 RtlUserThreadStart
     
  18. Beastly_Priest

    Beastly_Priest

    Joined:
    Mar 16, 2017
    Posts:
    2
    I am running into the same (or similar) issue. We are noticing it consistently occurs when players quit to desktop from a game mode but not from the main menu. Meaning we believe that it could be tied to the exit application call stack but only in high-stress situations (the crash game modes auto-save and go through some processes during quit). We are using the built-in render pipeline.

    Stats:
    Version: 2021.3.14f1
    GPU: NVIDIA GeForce GTX 1080 Ti

     
  19. DebugLogError

    DebugLogError

    Joined:
    Jul 24, 2013
    Posts:
    54
    We are also seeing this crash on Windows.

    2021.3.20f1
    Intel(R) HD Graphics 630
     
  20. PixelDough

    PixelDough

    Joined:
    Apr 27, 2018
    Posts:
    46
    I'm also seeing this crash frequently when players quit my game. I can't exactly reproduce it, it seems completely random whether it crashes or not when closing the game. I'm using the C# Jobs system, the Burst Compiler, and VFX Graph quite a lot for some mechanics in my game, so I thought maybe my issue could be some asynchronous thing with these tools not clearing out properly or something. It's just a shot in the dark though, as the crash report doesn't seem to have any useful information to lead me in that direction
     
  21. kmowers

    kmowers

    Joined:
    Dec 12, 2016
    Posts:
    15
    i also see a ton of these crash reports and no idea where to start looking
     
  22. GediminasR

    GediminasR

    Unity Technologies

    Joined:
    Aug 19, 2021
    Posts:
    53
    Hello,

    Would you kindly please report this issue via the Bug Reporter tool?
    https://unity.com/releases/editor/qa/bug-reporting

    Please make sure to write the exact steps needed to be taken so that the reproduction would be visually seen. Also make sure to attach a reproduction project and any visual material so that when testing our CQA team can verify that they got the same results. If you can, please use this template:

    How to reproduce:
    1. Open the attached project
    2. Do this
    3. Do that
    4. Select this
    5. Observe that

    Expected result: Something is visible, something is printed or something happens
    Actual result: The opposite of what I expect happens

    Reproducible with: Editor version I am using (e.g: 2021.3.xf1)

    Reproduced on: The OS I am on (e.g: Windows 11, macOS Ventura 13.1 (Intel/Silicon))
     
    valentin56610 likes this.
  23. YD_JMysior

    YD_JMysior

    Joined:
    Aug 4, 2016
    Posts:
    52
    @GediminasR - the thing is we don't have anything reproducible to report. This "Native Crash - KiUserExceptionDispatcher" in my case never happened to me personally, but shows occasionally for some users. The thread was started in hopes that you would give us some pointers on how to diagnose it - asking us to provide the repro steps/project sound like a misunderstanding.

    The most recent 3 crashes (separate reports) like that for me game come from a single user running:

    Device
    B450 AORUS ELITE (Gigabyte Technology Co., Ltd.)

    OS version
    Windows 10 (10.0.19045) 64bit

    CPU
    AMD Ryzen 5 3600 6-Core Processor

    GFX
    NVIDIA GeForce RTX 3070 Ti

    Unity version
    2021.3.30f1

    Thread 15 (crashed)
    0 ntdll 0x00007ff8d230db34 NtWaitForMultipleObjects
    1 KERNELBASE 0x00007ff8d0021be0 WaitForMultipleObjectsEx
    2 KERNELBASE 0x00007ff8d0021ade WaitForMultipleObjects
    3 UnityPlayer 0x00007ff83b9c5ccd winutils::ExternalCrashHandler::HandleCrash (C:\build\output\unity\unity\PlatformDependent\Win\ExternalCrashHandler.cpp:356)
    4 UnityPlayer 0x00007ff83b9c5d72 winutils::ExternalCrashHandler::HandleCrash (C:\build\output\unity\unity\PlatformDependent\Win\ExternalCrashHandler.cpp:426)
    5 UnityPlayer 0x00007ff83b9d6c98 winutils::processInternalCrash (C:\build\output\unity\unity\PlatformDependent\Win\WinUtils.cpp:596)
    6 KERNELBASE 0x00007ff8d00fe237 UnhandledExceptionFilter
    7 ntdll 0x00007ff8d23154b0 RtlUserThreadStart$filt$0
    8 ntdll 0x00007ff8d22fca06 _C_specific_handler
    9 ntdll 0x00007ff8d23123af RtlpExecuteHandlerForException
    10 ntdll 0x00007ff8d22c14b4 RtlDispatchException
    11 ntdll 0x00007ff8d2310ebe KiUserExceptionDispatcher
    12 UnityPlayer 0x0000000000e931aa (C:\build\output\unity\unity\Runtime\Math\Simd\vec-types.h:1083)
    13 UnityPlayer 0x00007ff83c0331be ParticleGeomInit<0> (C:\build\output\unity\unity\Modules\ParticleSystem\ParticleSystemGeometryJob.cpp:1123)
    14 UnityPlayer 0x0000000000e8c4b4 (C:\build\output\unity\unity\Runtime\Math\Simd\vec-sse.h:3956)
    15 UnityPlayer 0x0000000000e8c4b4 (C:\build\output\unity\unity\Runtime\Math\Simd\vec-sse.h:3970)
    16 UnityPlayer 0x0000000000e8c4b4 operator+= (C:\build\output\unity\unity\Runtime\Math\Simd\vec-oper.h:2005)
    17 UnityPlayer 0x00007ff83c02c4b4 GenerateParticleGeometry<0,0,0,0> (C:\build\output\unity\unity\Modules\ParticleSystem\ParticleSystemGeometryJob.cpp:1589)
    18 UnityPlayer 0x00007ff83c016bb8 DrawParticlesWithPivot<0> (C:\build\output\unity\unity\Modules\ParticleSystem\ParticleSystemGeometryJob.cpp:2039)
    19 UnityPlayer 0x0000000000ead127 DrawParticles (C:\build\output\unity\unity\Modules\ParticleSystem\ParticleSystemGeometryJob.cpp:2048)
    20 UnityPlayer 0x00007ff83c04d144 ParticleSystemGeometryJob::RenderJobCommon (C:\build\output\unity\unity\Modules\ParticleSystem\ParticleSystemGeometryJob.cpp:2916)
    21 UnityPlayer 0x00007ff83c04cb4b ParticleSystemGeometryJob::RenderJob (C:\build\output\unity\unity\Modules\ParticleSystem\ParticleSystemGeometryJob.cpp:2771)
    22 UnityPlayer 0x00000000004658bb (C:\build\output\unity\unity\Runtime\Jobs\Internal\JobQueue.cpp:462)
    23 UnityPlayer 0x00007ff83b6058bb JobQueue::Exec (C:\build\output\unity\unity\Runtime\Jobs\Internal\JobQueue.cpp:634)
    24 UnityPlayer 0x00007ff83b605aae JobQueue::ExecuteJobFromHighPriorityStack (C:\build\output\unity\unity\Runtime\Jobs\Internal\JobQueue.cpp:824)
    25 UnityPlayer 0x00007ff83b605e86 JobQueue::processJobs (C:\build\output\unity\unity\Runtime\Jobs\Internal\JobQueue.cpp:991)
    26 UnityPlayer 0x00007ff83b607650 JobQueue::WorkLoop (C:\build\output\unity\unity\Runtime\Jobs\Internal\JobQueue.cpp:1115)
    27 UnityPlayer 0x00007ff83b712751 Thread::RunThreadWrapper (C:\build\output\unity\unity\Runtime\Threads\Thread.cpp:82)
    28 KERNEL32 0x00007ff8d0377344 BaseThreadInitThunk
    29 ntdll 0x00007ff8d22c26b1 RtlUserThreadStart
    30 ntdll 0x00007ff8d22c26b1 RtlUserThreadStart

    Thread 17 (crashed)
    0 ntdll 0x00007ff94ebcdb34 NtWaitForMultipleObjects
    1 KERNELBASE 0x00007ff94c711be0 WaitForMultipleObjectsEx
    2 KERNELBASE 0x00007ff94c711ade WaitForMultipleObjects
    3 UnityPlayer 0x00007ff8c2195ccd winutils::ExternalCrashHandler::HandleCrash (C:\build\output\unity\unity\PlatformDependent\Win\ExternalCrashHandler.cpp:356)
    4 UnityPlayer 0x00007ff8c2195d72 winutils::ExternalCrashHandler::HandleCrash (C:\build\output\unity\unity\PlatformDependent\Win\ExternalCrashHandler.cpp:426)
    5 UnityPlayer 0x00007ff8c21a6c98 winutils::processInternalCrash (C:\build\output\unity\unity\PlatformDependent\Win\WinUtils.cpp:596)
    6 KERNELBASE 0x00007ff94c7ee237 UnhandledExceptionFilter
    7 ntdll 0x00007ff94ebd54b0 RtlUserThreadStart$filt$0
    8 ntdll 0x00007ff94ebbca06 _C_specific_handler
    9 ntdll 0x00007ff94ebd23af RtlpExecuteHandlerForException
    10 ntdll 0x00007ff94eb814b4 RtlDispatchException
    11 ntdll 0x00007ff94ebd0ebe KiUserExceptionDispatcher
    12 UnityPlayer 0x00000000000f7690 (C:\build\output\unity\unity\Runtime\Utilities\dynamic_array.h:672)
    13 UnityPlayer 0x00007ff8c1a67690 dynamic_array<unsigned char,0>::~dynamic_array<unsigned char,0> (C:\build\output\unity\unity\Runtime\Utilities\dynamic_array.h:183)
    14 UnityPlayer 0x00007ff8c1dbf543 PrepareScriptableLoopObjectData (C:\build\output\unity\unity\Runtime\Graphics\ScriptableRenderLoop\ScriptableDrawRenderers.cpp:1173)
    15 UnityPlayer 0x00007ff8c1dbe9b6 PrepareScriptableDrawRenderersJob (C:\build\output\unity\unity\Runtime\Graphics\ScriptableRenderLoop\ScriptableDrawRenderers.cpp:1206)
    16 UnityPlayer 0x00000000004658c0 AtomicSub (C:\build\output\unity\unity\Runtime\Threads\AtomicOps.h:57)
    17 UnityPlayer 0x00007ff8c1dd58c0 JobQueue::Exec (C:\build\output\unity\unity\Runtime\Jobs\Internal\JobQueue.cpp:636)
    18 UnityPlayer 0x00007ff8c1dd7181 JobQueue::Steal (C:\build\output\unity\unity\Runtime\Jobs\Internal\JobQueue.cpp:750)
    19 UnityPlayer 0x00007ff8c1dd5ba5 JobQueue::ExecuteJobFromQueue (C:\build\output\unity\unity\Runtime\Jobs\Internal\JobQueue.cpp:886)
    20 UnityPlayer 0x00007ff8c1dd5eb1 JobQueue::processJobs (C:\build\output\unity\unity\Runtime\Jobs\Internal\JobQueue.cpp:997)
    21 UnityPlayer 0x00007ff8c1dd7650 JobQueue::WorkLoop (C:\build\output\unity\unity\Runtime\Jobs\Internal\JobQueue.cpp:1115)
    22 UnityPlayer 0x00007ff8c1ee2751 Thread::RunThreadWrapper (C:\build\output\unity\unity\Runtime\Threads\Thread.cpp:82)
    23 KERNEL32 0x00007ff94ea47344 BaseThreadInitThunk
    24 ntdll 0x00007ff94eb826b1 RtlUserThreadStart
    25 ntdll 0x00007ff94eb826b1 RtlUserThreadStart

    Thread 14 (crashed)
    0 ntdll 0x00007ffd05e2db34 NtWaitForMultipleObjects
    1 KERNELBASE 0x00007ffd037e1be0 WaitForMultipleObjectsEx
    2 KERNELBASE 0x00007ffd037e1ade WaitForMultipleObjects
    3 UnityPlayer 0x00007ffc90165ccd winutils::ExternalCrashHandler::HandleCrash (C:\build\output\unity\unity\PlatformDependent\Win\ExternalCrashHandler.cpp:356)
    4 UnityPlayer 0x00007ffc90165d72 winutils::ExternalCrashHandler::HandleCrash (C:\build\output\unity\unity\PlatformDependent\Win\ExternalCrashHandler.cpp:426)
    5 UnityPlayer 0x00007ffc90176c98 winutils::processInternalCrash (C:\build\output\unity\unity\PlatformDependent\Win\WinUtils.cpp:596)
    6 KERNELBASE 0x00007ffd038be237 UnhandledExceptionFilter
    7 ntdll 0x00007ffd05e354b0 RtlUserThreadStart$filt$0
    8 ntdll 0x00007ffd05e1ca06 _C_specific_handler
    9 ntdll 0x00007ffd05e323af RtlpExecuteHandlerForException
    10 ntdll 0x00007ffd05de14b4 RtlDispatchException
    11 ntdll 0x00007ffd05e30ebe KiUserExceptionDispatcher
    12 UnityPlayer 0x0000000000e931dc (C:\build\output\unity\unity\Runtime\Math\Simd\vec-types.h:1083)
    13 UnityPlayer 0x00007ffc907d31e0 ParticleGeomInit<0> (C:\build\output\unity\unity\Modules\ParticleSystem\ParticleSystemGeometryJob.cpp:1126)
    14 UnityPlayer 0x0000000000e8c4b4 (C:\build\output\unity\unity\Runtime\Math\Simd\vec-sse.h:3956)
    15 UnityPlayer 0x0000000000e8c4b4 (C:\build\output\unity\unity\Runtime\Math\Simd\vec-sse.h:3970)
    16 UnityPlayer 0x0000000000e8c4b4 operator+= (C:\build\output\unity\unity\Runtime\Math\Simd\vec-oper.h:2005)
    17 UnityPlayer 0x00007ffc907cc4b4 GenerateParticleGeometry<0,0,0,0> (C:\build\output\unity\unity\Modules\ParticleSystem\ParticleSystemGeometryJob.cpp:1589)
    18 UnityPlayer 0x00007ffc907b6bb8 DrawParticlesWithPivot<0> (C:\build\output\unity\unity\Modules\ParticleSystem\ParticleSystemGeometryJob.cpp:2039)
    19 UnityPlayer 0x0000000000ead127 DrawParticles (C:\build\output\unity\unity\Modules\ParticleSystem\ParticleSystemGeometryJob.cpp:2048)
    20 UnityPlayer 0x00007ffc907ed144 ParticleSystemGeometryJob::RenderJobCommon (C:\build\output\unity\unity\Modules\ParticleSystem\ParticleSystemGeometryJob.cpp:2916)
    21 UnityPlayer 0x00007ffc907ecb4b ParticleSystemGeometryJob::RenderJob (C:\build\output\unity\unity\Modules\ParticleSystem\ParticleSystemGeometryJob.cpp:2771)
    22 UnityPlayer 0x00000000004658bb (C:\build\output\unity\unity\Runtime\Jobs\Internal\JobQueue.cpp:462)
    23 UnityPlayer 0x00007ffc8fda58bb JobQueue::Exec (C:\build\output\unity\unity\Runtime\Jobs\Internal\JobQueue.cpp:634)
    24 UnityPlayer 0x00007ffc8fda7181 JobQueue::Steal (C:\build\output\unity\unity\Runtime\Jobs\Internal\JobQueue.cpp:750)
    25 UnityPlayer 0x00007ffc8fda5ba5 JobQueue::ExecuteJobFromQueue (C:\build\output\unity\unity\Runtime\Jobs\Internal\JobQueue.cpp:886)
    26 UnityPlayer 0x00007ffc8fda5eb1 JobQueue::processJobs (C:\build\output\unity\unity\Runtime\Jobs\Internal\JobQueue.cpp:997)
    27 UnityPlayer 0x00007ffc8fda7650 JobQueue::WorkLoop (C:\build\output\unity\unity\Runtime\Jobs\Internal\JobQueue.cpp:1115)
    28 UnityPlayer 0x00007ffc8feb2751 Thread::RunThreadWrapper (C:\build\output\unity\unity\Runtime\Threads\Thread.cpp:82)
    29 KERNEL32 0x00007ffd041b7344 BaseThreadInitThunk
    30 ntdll 0x00007ffd05de26b1 RtlUserThreadStart
    31 ntdll 0x00007ffd05de26b1 RtlUserThreadStart

    Please advise on how we can help you diagnose these Native Crashes.
     
  24. bradshawgooster

    bradshawgooster

    Joined:
    Oct 25, 2023
    Posts:
    1
    Pretty similar issue to me, and still can't find out where it comes from.

    --------------------------------------------------------------------------------------------------
    Bradshaw Gooster
    Check out my website: OLE791
     
  25. groover87

    groover87

    Joined:
    Jul 30, 2022
    Posts:
    1
    Hi all, after checking all the forums and pages regarding this Native Crash - KiUserExceptionDispatcher crash I can tell that this is happening to all different versions of the engine. Today for the first time the crash has happend to me when I was playing my build. Build had DebugBuild option enabled and I was using HDRP renderer along with RTX pp profile configured. Stack trace for this crash is leading toward rtx cpp code but I know that is not related as I saw it from other compilations without RTX. Also other users are reporting this from various different places. Sometimes it is comming when scene is loading and sometimes when App exit is performed. Looks like some threds or semaphores issue.
    Unity version 2021.3.0f1. Windows 10, AMD Ryzen 5 4600H, NVIDIA GeForce RTX 2060. Up to this point i has happened with both debug and release builds. In all cases I've seen that WinApi is involved but also other OSes are reporting this. The only solution that comes to my mind is to change Unity version and hope for best but unfortunately when my game is in advanced development it is not an easy decision.

    Thread 0
    0 ntdll 0x00007ffa40a8d064 NtWaitForSingleObject
    1 KERNELBASE 0x00007ffa3e2130ce WaitForSingleObjectEx
    2 UnityPlayer 0x0000000001d74972 ResolveErrorCode (C:\buildslave\unity\build\External\baselib\builds\Source\WinApi\Baselib_Utilities_WinApi.h:20)
    3 UnityPlayer 0x0000000001d74964 Baselib_SystemSemaphore_Acquire (C:\buildslave\unity\build\External\baselib\builds\Source\WinApi\Baselib_SystemSemaphore_WinApi.inl.h:35)
    4 UnityPlayer 0x00007ff9e22c4972 UnityClassic::Baselib_SystemSemaphore_Acquire (C:\buildslave\unity\build\External\baselib\builds\Source\CProxy\Baselib_SystemSemaphore_CProxy.inl.h:19)
    5 UnityPlayer 0x00000000010d1ea6 (C:\buildslave\unity\build\Runtime\Profiler\Profiler.h:554)
    6 UnityPlayer 0x00000000010d1ea6 (C:\buildslave\unity\build\Runtime\Threads\Semaphore.h:24)
    7 UnityPlayer 0x00007ff9e1621ea6 GfxDeviceClient::CreateGpuProgram (C:\buildslave\unity\build\Runtime\GfxDevice\threaded\GfxDeviceClient.cpp:1085)
    8 UnityPlayer 0x00007ff9e10aa2cd ShaderLab::SubProgram::Compile (C:\buildslave\unity\build\Runtime\Shaders\ShaderImpl\ShaderProgram.cpp:436)
    9 UnityPlayer 0x0000000000b5b8cb (C:\buildslave\unity\build\Runtime\Shaders\ShaderImpl\ShaderProgram.h:256)
    10 UnityPlayer 0x0000000000b5b8cb (C:\buildslave\unity\build\Runtime\Shaders\ShaderImpl\ShaderProgram.cpp:913)
    11 UnityPlayer 0x00007ff9e10ab8cb ShaderLab::program::GetMatchingSubProgram (C:\buildslave\unity\build\Runtime\Shaders\ShaderImpl\ShaderProgram.cpp:1128)
    12 UnityPlayer 0x00007ff9e10b183d ShaderLab::ShaderState::FindSubProgramsToUse (C:\buildslave\unity\build\Runtime\Shaders\ShaderImpl\ShaderState.cpp:409)
    13 UnityPlayer 0x0000000000b03fd4 (C:\buildslave\unity\build\Runtime\Core\Containers\hash_set.h:239)
    14 UnityPlayer 0x00007ff9e1053fd4 RayTracingShadersSetupContext::CompilePendingShaders (C:\buildslave\unity\build\Runtime\Shaders\RayTracingInstanceShadersSetup.cpp:143)
    15 UnityPlayer 0x00007ff9e1056230 RayTracingShadersSetupContext::IntegrateMainThread (C:\buildslave\unity\build\Runtime\Shaders\RayTracingInstanceShadersSetup.cpp:753)
    16 UnityPlayer 0x00007ff9e1016766 RayTracingAccelerationStructure::UpdateInstanceShaderProperties
     
    Last edited: Oct 25, 2023
  26. dgoyette

    dgoyette

    Joined:
    Jul 1, 2016
    Posts:
    4,120
    Sorry I missed your reply to this quite a while ago, but I wanted to reiterate what @YD_JMysior has just stated, in hopes of establishing a proper channel for reporting bugs of this nature:

    These are crashes that occur extremely sporadically, typically on actual user's hardware (not on dev machines). These reports get to me via Unity Cloud Diagnostics, which contains basic metadata, some log entries, and the stacktrace of the exception. These are not errors that I can reproduce in my own environment, and they don't occur reliably on user's hardware.

    Again, the recurring theme here is: These occur rarely to any single user, but across the whole breadth of users playing my game, I receive errors like this fairly often. But no single error comes with any meaningful way for me to diagnose or troubleshoot it.

    Unity's bug reporting procedure all but requires a reproducible test case before a bug report ever gets past the initial triage stage. That's simply not viable for bugs of this class. I'd like to propose that Unity introduce an internal procedure for reporting and addressing bugs of this nature, which almost certain aren't reproducible by end users. The only thing we can really provide is the data that Unity Cloud Diagnostics provides.

    Is there something Unity can do to give me the impression that it's doing something about these KiUserExceptionDispatcher crashes? The tool's Unity currently provides me doesn't allow me to provide Unity with the normal bug report content.
     
    Hosnkobf likes this.
  27. sacb0y

    sacb0y

    Joined:
    May 9, 2016
    Posts:
    789
    I got a crash with this label when using Fullscreen Window mode

    The issue did not occur in Fullscreen Exclusive mode...