Search Unity

Bug Issue with Unity.XR.Oculus.Performance

Discussion in 'VR' started by bdeschryver, Oct 31, 2023.

  1. bdeschryver

    bdeschryver

    Joined:
    Jun 13, 2013
    Posts:
    93
    Hey guys,

    I am trying to set refresh rate on Quest 3 using that command :
    Unity.XR.Oculus.Performance.TrySetDisplayRefreshRate(newRate)


    But on UNity 2022 LTS with Oculus XR plugin 4.1.1, I get an error at runtime :
    DllNotFoundException: Unable to load DLL 'OculusXRPlugin'. Tried the load the following dynamic libraries: Unable to load dynamic library 'OculusXRPlugin' because of 'Failed to open the requested dynamic library (0x06000000) dlerror() = dlopen failed: library "OculusXRPlugin" not found

    I do not have this error when using an older project with Oculus XR plugin 3.x.

    Anyone knows why this happens, and ultimately how to solve it ?

    Config is :
    Unity 2022.3.11f1
    XR Plugin management 4.4.0
    Unity OpenXR Meta 1.0.0
    Open XR Plugin 1.8.2
    Oculus XR plugin 4.1.1
     
  2. vmsgrg

    vmsgrg

    Joined:
    Aug 29, 2018
    Posts:
    4
    Same here!

    DllNotFoundException: Unable to load DLL 'OculusXRPlugin'. Tried the load the following dynamic libraries: Unable to load dynamic library 'OculusXRPlugin' because of 'Failed to open the requested dynamic library (0x06000000) dlerror() = dlopen failed: library "OculusXRPlugin" not found.

    at Unity.XR.Oculus.NativeMethods+Internal.SetDisplayFrequency (System.Single refreshRate) [0x00000] in <00000000000000000000000000000000>:0


    at OculusSettings.TrySetDisplayRefreshRate () [0x00000] in <00000000000000000000000000000000>:0
     
  3. EdBlais

    EdBlais

    Unity Technologies

    Joined:
    Nov 18, 2013
    Posts:
    311
    There is a slightly newer version of the Oculus package available. Try updating to version 4.1.2 and if the problem persists you may need to remove the Oculus package, restart Unity and re-install the package. Likely the dll isn't copying correctly due to a metadata issue in your project and resetting the metadata with a removal and restart should resolve the issue.
     
  4. bdeschryver

    bdeschryver

    Joined:
    Jun 13, 2013
    Posts:
    93
    Hello @EdBlais , I have tried as you indicated but I still get the same issue.
    Are there some temp files to delete aside from just deinstalling the package and reinstalling after unity restart ?
    Or is the syntax different now ?
    Thank you
     
  5. bdeschryver

    bdeschryver

    Joined:
    Jun 13, 2013
    Posts:
    93
    Hey @EdBlais , if I remove the package, then delete the library folder and reopen my project, then re-install package, is this a guarantee that the environment will be clean and then I can try again ?
    Thanks
     
  6. bdeschryver

    bdeschryver

    Joined:
    Jun 13, 2013
    Posts:
    93
    Hey guys and @EdBlais , I just did try on a brand new Unity 2022.3.14 project and still giving issue.
    Any news on a correction for this ? Or is it related to some other packages in the project (OpenXR, Interaction toolkit,...)
    Thanks