Search Unity

Question Native Crash - KiUserExceptionDispatcher (RuntimeIPCServiceClient_64)

Discussion in 'Windows' started by MaartenB, Mar 15, 2023.

  1. MaartenB

    MaartenB

    Joined:
    Nov 6, 2014
    Posts:
    67
    Hi all,

    So we've been struck by this issue for quite a while, and it's looking quite consistent now.
    Players are receiving the "Native Crash - KiUserExceptionDispatcher" exception and Unity Crash Diagnostics reports it to us.

    We're receiving tons of this specific error, and we're curious about what it could be. Googling unfortunately wasn't the solution for us.

    We do have some clues regarding this issue:
    1. The issue almost always has to do with RuntimeIPCServiceClient_64. I saw that this could be an OpenXR thing, but what exactly?
    2. It's always an <unknown> error.
    3. The operating systems are different for this error. Sometimes it's a Windows 11 computer, and sometimes a Windows 10 computer.
    Does anyone here know what I could do to investigate this issue more so we'll get fewer messages from Unity's Cloud Diagnostics?

    Thank you!

    - Maarten

    A part of the log
     
    Last edited: Mar 15, 2023
  2. CarePackage17

    CarePackage17

    Joined:
    Dec 6, 2014
    Posts:
    22
    From what I could find in a quick search, RuntimeIPCServiceClient_64 seems to be part of the Oculus runtime (which implements the OpenXR API), so I assume you're talking about a VR game.

    Do you have data if this crash also happens with different headsets? Or maybe different versions of the Oculus runtime, etc.
     
  3. MaartenB

    MaartenB

    Joined:
    Nov 6, 2014
    Posts:
    67
    Hey CarePackage17,

    Thank you for the swift reply! Unfortunately, we do not have data if it's occurring on different headsets. But you're giving a great idea here. We should register the headset in our Crash Analytics!

    Will do that and I'll keep you posted.
     
  4. MaartenB

    MaartenB

    Joined:
    Nov 6, 2014
    Posts:
    67
    I've got some more data!

    It seems that it's affecting users with only a Quest 2. No other VR devices are being affected by it at the moment.
     
  5. CarePackage17

    CarePackage17

    Joined:
    Dec 6, 2014
    Posts:
    22
  6. MaartenB

    MaartenB

    Joined:
    Nov 6, 2014
    Posts:
    67
    What kind of validation layer are we talking about exactly? As in "is the VR headset the player is using OK to use"?

    Regarding the crash dumps, I do have some information, but only which thread crashed and which symbols are missing during the crash. Here is an example:

    Code (csharp):
    1.  
    2. Thread 0 (crashed)
    3. 0   ntdll                              0x00007ff9bc28f7a4 ZwWaitForMultipleObjects
    4. 1   KERNELBASE                         0x00007ff9b9ba5119 WaitForMultipleObjectsEx
    5. 2   KERNELBASE                         0x00007ff9b9ba501e WaitForMultipleObjects
    6. 3   UnityPlayer                        0x00007ff925915ac2 winutils::ExternalCrashHandler::HandleCrash (C:\buildslave\unity\build\PlatformDependent\Win\ExternalCrashHandler.cpp:354)
    7. 4   UnityPlayer                        0x00007ff925915b52 winutils::ExternalCrashHandler::HandleCrash (C:\buildslave\unity\build\PlatformDependent\Win\ExternalCrashHandler.cpp:426)
    8. 5   UnityPlayer                        0x00007ff925926b58 winutils::ProcessInternalCrash (C:\buildslave\unity\build\PlatformDependent\Win\WinUtils.cpp:595)
    9. 6   KERNELBASE                         0x00007ff9b9c95f0c UnhandledExceptionFilter
    10. 7   ntdll                              0x00007ff9bc29837d RtlUserThreadStart$filt$0
    11. 8   ntdll                              0x00007ff9bc27efa7 _C_specific_handler
    12. 9   ntdll                              0x00007ff9bc293cff RtlpExecuteHandlerForException
    13. 10  ntdll                              0x00007ff9bc20e456 RtlDispatchException
    14. 11  ntdll                              0x00007ff9bc292cee KiUserExceptionDispatcher
    15. 12  ntdll                              0x00007ff9bc24a79c RtlDeleteCriticalSection
    16. 13  LibOVRRT64_1                       0x00007ff928b994d3 <symbols missing for uuid: 79CD9C711C9AA4034C4C44205044422E1>
    17. 14  LibOVRRT64_1                       0x00007ff928bd4d62 <symbols missing for uuid: 79CD9C711C9AA4034C4C44205044422E1>
    18. 15  LibOVRRT64_1                       0x00007ff928be3ab4 <symbols missing for uuid: 79CD9C711C9AA4034C4C44205044422E1>
    19. 16  LibOVRRT64_1                       0x00007ff928b499a1 <symbols missing for uuid: 79CD9C711C9AA4034C4C44205044422E1>
    20. 17  LibOVRRT64_1                       0x00007ff928ac6150 <symbols missing for uuid: 79CD9C711C9AA4034C4C44205044422E1>
    21. 18  LibOVRRT64_1                       0x00007ff928aeac28 <symbols missing for uuid: 79CD9C711C9AA4034C4C44205044422E1>
    22. 19  LibOVRRT64_1                       0x00007ff928aaeff8 <symbols missing for uuid: 79CD9C711C9AA4034C4C44205044422E1>
    23. 20  UnityOpenXR                        0x00007ff949b2b303 <symbols missing for uuid: 76360E8B65C14F8D89EE0AB49D9609EA1>
    24. 21  UnityOpenXR                        0x00007ff949b2b943 <symbols missing for uuid: 76360E8B65C14F8D89EE0AB49D9609EA1>
    25. 22  GameAssembly                       0x00007ff912491af3 <symbols missing for uuid: 73F630A407564848A28A4DA317A840F756>
    26. 23  GameAssembly                       0x00007ff91247f5da <symbols missing for uuid: 73F630A407564848A28A4DA317A840F756>
    27. 24  GameAssembly                       0x00007ff9124984ac <symbols missing for uuid: 73F630A407564848A28A4DA317A840F756>
    28. 25  GameAssembly                       0x00007ff9124e6f71 <symbols missing for uuid: 73F630A407564848A28A4DA317A840F756>
    29. 26  GameAssembly                       0x00007ff9106a1446 <symbols missing for uuid: 73F630A407564848A28A4DA317A840F756>
    30. 27  GameAssembly                       0x00007ff9106a0ef9 <symbols missing for uuid: 73F630A407564848A28A4DA317A840F756>
    31. 28  UnityPlayer                        0x00007ff925725e78 scripting_method_invoke (C:\buildslave\unity\build\Runtime\ScriptingBackend\Il2Cpp\ScriptingApi_Il2Cpp.cpp:291)
    32. 29  UnityPlayer                        0x0000000000679442 scripting_gc_wbarrier_set_field (C:\buildslave\unity\build\Runtime\ScriptingBackend\Il2Cpp\ScriptingNativeApi_Il2Cpp.inline.h:120)
    33. 30  UnityPlayer                        0x0000000000679442  (C:\buildslave\unity\build\Runtime\ScriptingBackend\ScriptingNativeTypes.h:33)
    34. 31  UnityPlayer                        0x00007ff925729442 ScriptingInvocation::Invoke (C:\buildslave\unity\build\Runtime\Scripting\ScriptingInvocation.cpp:298)
    35. 32  UnityPlayer                        0x0000000000694ee5  (C:\buildslave\unity\build\Runtime\Mono\Coroutine.cpp:247)
    36. 33  UnityPlayer                        0x00007ff925744ee5 Coroutine::Run (C:\buildslave\unity\build\Runtime\Mono\Coroutine.cpp:271)
    37. 34  UnityPlayer                        0x00007ff92544fa14 DelayedCallManager::Update (C:\buildslave\unity\build\Runtime\GameCode\CallDelayed.cpp:187)
    38. 35  UnityPlayer                        0x00007ff9255a160a ExecutePlayerLoop (C:\buildslave\unity\build\Runtime\Misc\PlayerLoop.cpp:384)
    39. 36  UnityPlayer                        0x00007ff9255a16b0 ExecutePlayerLoop (C:\buildslave\unity\build\Runtime\Misc\PlayerLoop.cpp:408)
    40. 37  UnityPlayer                        0x00007ff9255a408b PlayerLoop (C:\buildslave\unity\build\Runtime\Misc\PlayerLoop.cpp:514)
    41. 38  UnityPlayer                        0x00007ff9257a18ea PerformMainLoop (C:\buildslave\unity\build\PlatformDependent\WinPlayer\WinMain.cpp:311)
    42. 39  UnityPlayer                        0x00007ff9257a05db MainMessageLoop (C:\buildslave\unity\build\PlatformDependent\WinPlayer\WinMain.cpp:1229)
    43. 40  UnityPlayer                        0x00007ff9257a4d77 UnityMainImpl (C:\buildslave\unity\build\PlatformDependent\WinPlayer\WinMain.cpp:1746)
    44. 41  UnityPlayer                        0x00007ff9257a690b UnityMain (C:\buildslave\unity\build\PlatformDependent\WinPlayer\WinMain.cpp:1786)
    45. 42  RUMBLE                             0x00000000000011d1 invoke_main (d:\agent\_work\63\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:118)
    46. 43  RUMBLE                             0x00007ff7ef9c11f2 _scrt_common_main_seh (d:\agent\_work\63\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288)
    47. 44  KERNEL32                           0x00007ff9bb5826bd BaseThreadInitThunk
    48. 45  ntdll                              0x00007ff9bc24a9f8 RtlUserThreadStart
    49. 46  ntdll                              0x00007ff9bc24a9f8 RtlUserThreadStart
    50.  
     
  7. CarePackage17

    CarePackage17

    Joined:
    Dec 6, 2014
    Posts:
    22
    Validation layer as in "is the app using OpenXR correctly", because if not, it might trigger crashes in e.g. the Oculus implementation while SteamVR is fine or something like that.
     
  8. MaartenB

    MaartenB

    Joined:
    Nov 6, 2014
    Posts:
    67
    I believe the game is using OpenXR correctly. There are no issues reported by Oculus users whatsoever. This error only happens when a player closes the game.

    I'll try to reproduce the issue and then will check more details with the OculusLogGatherer they're recommending in their documentation.