Search Unity

Bug Standalone OpenXR builds take long time to start if OVRService not running

Discussion in 'VR' started by lazylukey, Oct 2, 2022.

  1. lazylukey

    lazylukey

    Joined:
    May 26, 2017
    Posts:
    36
    We have had recent user reports that our game is not able to start / takes upwards of 10-15 minutes to start in desktop mode (where OpenXR is not initialised). After some digging we found this happens when the Oculus VR Runtime Service is installed but is for some reason not running. Users have been using an incorrect workaround solution of moving/renaming/deleting openxr_loader.dll

    Is this a known issue?

    Unity version: 2020.3.38f1
    OpenXR version: 1.4.2
     
    Last edited: Oct 2, 2022
  2. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    5,043
    Things to try:
    - Make sure Oculus is NOT checked in the XR managment
    - Do you use Oculus Integration?
    - Update OpenXR maybe to 1.5.1?
     
  3. lazylukey

    lazylukey

    Joined:
    May 26, 2017
    Posts:
    36
    Oculus is definitely not enabled. We only use OpenXR.
    Oculus is not integrated and the checkbox is greyed out under XR Management.
    I tried upgrading to OpenXR 1.5.3 and it made no difference
     
  4. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    5,043
    Then it's probably them having the wrong openxr runtime set
     
  5. lazylukey

    lazylukey

    Joined:
    May 26, 2017
    Posts:
    36
    Yep fair point, so this bug only occurs if Oculus is used as the OpenXR Runtime on the system (which is not a "wrong" runtime). It is however in my opinion still a bug especially as it occurs when OpenXR is not even initialised.
     
  6. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    5,043
    Then file a bug report, but there isn't much to do if there isn't a reproduce case
     
  7. lazylukey

    lazylukey

    Joined:
    May 26, 2017
    Posts:
    36
    Yep will do. I have replicated it on a completely fresh project using the VR template with OpenXR only
     
    DevDunk likes this.
  8. Dknighter2

    Dknighter2

    Joined:
    Aug 17, 2014
    Posts:
    44
    Hey, we are also getting this with Phasmophobia. We have been telling everyone to open Oculus first before trying to playing without VR. Deleting the OpenXR dll works however it obviously stops you from playing in VR.

    We are on Unity 2021.3.11f1 and OpenXR 1.5.3
     
  9. Cloudwalker_

    Cloudwalker_

    Joined:
    Jan 3, 2014
    Posts:
    140
    This happens in legacy oculus 2019, and oculus xr plugin as well, don't think it's limited to openxr. It didn't used to behave this way long ago, could be some update from Meta that broke stuff in unity.
     
  10. thep3000

    thep3000

    Unity Technologies

    Joined:
    Aug 9, 2013
    Posts:
    400
    We reported this to meta/oculus - they've reproduced it and are working on getting it fixed soon.
     
    lazylukey and DevDunk like this.
  11. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    5,043
    Awesome! Thanks
     
  12. thep3000

    thep3000

    Unity Technologies

    Joined:
    Aug 9, 2013
    Posts:
    400
    I heard back from Meta: The fix will be included in their next PC runtime release (v47).

    So the problem will resolve itself when the oculus runtime updates itself. No Unity changes needed.
     
    lazylukey and DevDunk like this.