ValveSoftware / steamvr_unity_plugin

SteamVR Unity Plugin - Documentation at: https://valvesoftware.github.io/steamvr_unity_plugin/
BSD 3-Clause "New" or "Revised" License
1.04k stars 259 forks source link

Crashes When No HMD Connected #767

Open 0x6c6565 opened 4 years ago

0x6c6565 commented 4 years ago

If the OpenVR Loader is checked in the Initialize XR on Startup Project Setting...

image

... and no HMD is plugged in, Unity crashes.

[Unity 2019.4.1f1] [x64]

eyalfx commented 4 years ago

same issue here with Unity 2019.4.1f1 on Win10 [64]

Capture Player-prev.log Player.log

0x6c6565 commented 4 years ago

So it only seems to crash if I have a camera who’s gameObject is inactive. If there is no camera when it tries to initialize it will not crash.

mikeNspired commented 4 years ago

I have the same problem.

Chris-Perkins commented 4 years ago

Same issue in the newest release. However, this occurs even if the headset is simply not tracking. I.e. my headset is plugged in, lost tracking for whatever reason, I exit Play mode. Consistent crash, happens every time.

Edit: Using Unity 2020.1.01f, latest SteamVR plugin release 2.6.1. Using Valve Index & Knuckles.