I’m having an issue in my builds that is making them completely useless. I’ve searched everywhere and I can’t seem to find any information on it. It makes it so the HMD displays nothing and the camera just stays at it’s start position.
I’m using Unity 5.5.0p3 by the way, any help would be appreciated.
Here’s the error:
DllNotFoundException: openvr_api
at (wrapper managed-to-native) Valve.VR.OpenVRInterop:GetInitToken ()
at Valve.VR.OpenVR.GetInitToken () [0x00001] in D:\Unity Projects\VR-Scape - The Cavern\VR-Scape - The Cavern\Assets\SteamVR\Plugins\openvr_api.cs:4195
at Valve.VR.OpenVR+COpenVRContext.CheckClear () [0x00000] in D:\Unity Projects\VR-Scape - The Cavern\VR-Scape - The Cavern\Assets\SteamVR\Plugins\openvr_api.cs:4380
at Valve.VR.OpenVR+COpenVRContext.VRChaperone () [0x00002] in D:\Unity Projects\VR-Scape - The Cavern\VR-Scape - The Cavern\Assets\SteamVR\Plugins\openvr_api.cs:4403
at Valve.VR.OpenVR.get_Chaperone () [0x00006] in D:\Unity Projects\VR-Scape - The Cavern\VR-Scape - The Cavern\Assets\SteamVR\Plugins\openvr_api.cs:4556
at Valve.VR.InteractionSystem.ChaperoneInfo+c__Iterator0.MoveNext () [0x00023] in D:\Unity Projects\VR-Scape - The Cavern\VR-Scape - The Cavern\Assets\SteamVR\InteractionSystem\Teleport\Scripts\ChaperoneInfo.cs:57
at UnityEngine.SetupCoroutine.InvokeMoveNext (IEnumerator enumerator, IntPtr returnValueAddress) [0x00028] in C:\buildslave\unity\build\Runtime\Export\Coroutines.cs:17
(Filename: D:/Unity Projects/VR-Scape - The Cavern/VR-Scape - The Cavern/Assets/SteamVR/Plugins/openvr_api.cs Line: 4195)
UPDATE: Looking at some older builds (I think from a previous version of 5.5.0, can’t remember which though) it looks like there used to be some DLL’s included in the Plugins folder of the build that I no longer have.
openvr_api.dll
OVRPlugin.dll
Copying these from older builds and putting them in the Plugins folder of my new builds seems to fix the issue. Any idea why these would no longer be included in my builds? I feel like this might just be a bug with this version of Unity, but if that’s the case, I’m shocked I’m the only person who’s talked about the issue.
I’m getting this too in 5.5.1p2!! But with Oculus. Including the old DLLs helps, but the oculus version has changed since I last built and I think that is causing additional issues.
Thanks so much guys for figuring this out. Had this issue myself, after finding out that Oculus doesn’t support 5.6.x yet. So I downgraded to 5.5.0f3, where I got the same issues you had. Updating the project to Unity 5.5.2f1 works on my end
Thanks so much @GalaxyCatGames ! I’m reworking an old project on 5.5.0f3 and got the same issue. Replacing the plugins folder from an older build fixed it.
Those simple steps fixed it for me as well. I have to double test now with the other devices that my game supports, but at least I got the Vive working again.
Just experienced this issue coming back after leaving the computer running for a day. SteamVR apparently updated (as it does almost daily) but I do not recall having updated Unity. I did have openvr_api in Assets > SteamVR > Plugins. I ended up solving the issue by reinstalling OpenVR which took about 30 seconds:
Open the Package Manager (Window->Package Manager), select “OpenVR” in the package list and click install. Didn’t even have to restart Unity.