Unity + SteamVR doesn't always connect

Hey,

I’ve built an application and recently came across an issue with OpenVR/SteamVR in Unity. Whenever I start the game built for OpenVR, SteamVR pops up and connects to the headset and game. Sometimes though, this doesn’t work properly and SteamVR displays the error 308:

The game still works though, even all VR related APIs seem to work. It’s just that SteamVR won’t recognize it properly. The main issue with this is that I’m developing this game for Steam, and even when I close the game and SteamVR, the Steam client still thinks the game is running. After some testing I observed that the VR compositor and VR server won’t shut down correctly and after manually killing these processes, Steam recognizes the game has been shut down.

I have set up a new empty project with OpenVR to see if my application causes the issue. But it also happens with a bare project.

After some testing I also have an assumption for what might cause the issue: The game starts too quickly/too fast, before SteamVR has had the chance to start up properly.

Is anyone familiar with this issue and how to solve it?

I’m having the same problems. Ever since I added OpenVR support Steam thinks my game hasn’t shut down after it’s been closed. Not sure what to do about it. It’s even preventing Unity 5.5 from building into the Steam folder after it’s been run and shut down. Even restarting Steam doesn’t fix it, I have to reboot.