Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
RoxGame's avatar
RoxGame
Protege
4 years ago

unity 2021.3.8f1 openxr + oculus sdk on play mode crash

I setup a new urp project I download openxr from the package manager and imported oculus SDK and I accept whatever it says I switch from ovrplugin to openxr 

hit play and the editor crash 

am I doing something wrong 

7 Replies

Replies have been turned off for this discussion
  • Obtained 33 stack frames

    0x00007fffc2e89727 (LibOVRRT64_1) ovr_ReleaseHapticsClip

    0x00007fffc2e51f32 (LibOVRRT64_1) ovr_ReleaseHapticsClip

    0x00007fffc63d87d5 (UnityOpenXR) main_UnloadOpenXRLibrary

    0x000001bc82eb8597 (Mono JIT Code) (wrapper managed-to-native) UnityEngine.XR.OpenXR.OpenXRLoaderBase:Internal_PumpMessageLoop ()

    0x000001bc82eb84b3 (Mono JIT Code) [OpenXRLoader.cs:298] UnityEngine.XR.OpenXR.OpenXRLoaderBase:ProcessOpenXRMessageLoop ()

    0x000001bc82eb78cb (Mono JIT Code) [OpenXRLoader.cs:440] UnityEngine.XR.OpenXR.OpenXRLoaderBase:Deinitialize ()

    0x000001bc82e889f2 (Mono JIT Code) [OpenXRLoader.cs:192] UnityEngine.XR.OpenXR.OpenXRLoaderBase:Initialize ()

    0x000001bc82e882a7 (Mono JIT Code) [XRManagerSettings.cs:190] UnityEngine.XR.Management.XRManagerSettings:InitializeLoaderSync ()

    0x000001bc82e88183 (Mono JIT Code) [XRGeneralSettings.cs:176] UnityEngine.XR.Management.XRGeneralSettings:InitXRSDK ()

    0x000001bc82e88043 (Mono JIT Code) [XRGeneralSettings.cs:149] UnityEngine.XR.Management.XRGeneralSettings:AttemptInitializeXRSDKOnLoad ()

    0x000001bc82e1638d (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void (object,intptr,intptr,intptr)

    0x00007fffc53ffe24 (mono-2.0-bdwgc) mono_jit_set_domain

    0x00007fffc533e764 (mono-2.0-bdwgc) mono_object_get_virtual_method

    0x00007fffc533e8fc (mono-2.0-bdwgc) mono_runtime_invoke

    0x00007ff6dda63354 (Unity)

    0x00007ff6dda42be4 (Unity)

    0x00007ff6dd7159ac (Unity)

    0x00007ff6dd71ab5f (Unity)

    0x00007ff6dd766392 (Unity)

    0x00007ff6dd7645cb (Unity)

    0x00007ff6dd765122 (Unity)

    0x00007ff6dd765ccb (Unity)

    0x00007ff6dd7698c1 (Unity)

    0x00007ff6dd769e9f (Unity)

    0x00007ff6de94bfc6 (Unity)

    0x00007ff6de65b395 (Unity)

    0x00007ff6de66a927 (Unity)

    0x00007ff6de66dd2d (Unity)

    0x00007ff6deabb78a (Unity)

    0x00007ff6deac003b (Unity)

    0x00007ff6dfe464ae (Unity)

    0x00007ff84049484d (KERNEL32) BaseThreadInitThunk

    0x00007ff841617558 (ntdll) RtlUserThreadStart

     

  • Dang, running into a similar issue as well. Will update if I figure out what the problem is. Have you made any progress?

    • RoxGame's avatar
      RoxGame
      Protege

      Hi brother, yes I managed to fix that 

      what I have done is the following

      1 - open unity editor 

      2- go to project setting then Xr plugin management 

      3- go to pc version disable it and return to the scene press play it will work then return to the same area and enable it and press play it will work! 

       

      I know that is so weird but it seems disabling and enabling it again seems resetting something that leads to fix the problem

       

  • Disabling-enabling didn't work for me. 

    I'm using Oculus SDK inside Unity and whenever I try to run Unity with no headset attached Unity crashes. I've opened a bug report with full logs given to them and they've concluded that the problem was the oculus sdk.

    They send me this saying this is the cause of problem : 0x00007fff76fd6ad7 (LibOVRRT64_1) ovr_ReleaseHapticsClip 0x00007fff76f9e902 (LibOVRRT64_1) ovr_ReleaseHapticsClip 0x00007fff66610876 (OVRPlugin) ovrp_UnityOpenXR_OnSessionDestroy

     

    anybody has a stable solution for this ?

    • SGTMA52's avatar
      SGTMA52
      Honored Guest

      where would oculus sdk be located at cuz im having same problem, also u dont need oculus sdk for vr which is why im tryna delete it to fix the issue

      i rlly need to know where it would be located

    • schen57's avatar
      schen57
      Honored Guest

      I have the same issue and I am currently experiencing the same problem. Disabling and enabling it again seem to have solved the crash issue. I was able enter play mode now. It seems that both PC and Android versions should be adjusted.