SlimeVR / SlimeVR-OpenVR-Driver

SlimeVR driver for OpenVR
Apache License 2.0
204 stars 46 forks source link

Driver won't load in SteamVR #17

Open inkuxuan opened 2 years ago

inkuxuan commented 2 years ago

v0.1.1 driver is installed in the SteamVR/drivers, but SlimeVR driver won't start. Developer console of SteamVR shows

SlimeVR: [SlimeVR] Activating SlimeVR Driver...
error VRInitError_Driver_Failed when initing driver SlimeVR from C:\Program Files (x86)\Steam\steamapps\common\SteamVR\drivers\slimevr\bin\win64\driver_SlimeVR.dll.
Unable to load driver SlimeVR because of error VRInitError_Driver_Failed(200). Skipping.
SlimeVR: [SlimeVR] Activating SlimeVR Driver...
error VRInitError_Driver_Failed when initing driver SlimeVR from C:\Program Files (x86)\Steam\steamapps\common\SteamVR\drivers\slimevr\bin\win64\driver_SlimeVR.dll.
Unable to load driver SlimeVR because of error VRInitError_Driver_Failed(200). Skipping.

And SlimeVR trackers won't spawn, HMDTracker shows "disconnected" Using Windows MR

inkuxuan commented 2 years ago

Tried:

None of the above resolves the problem.

inkuxuan commented 2 years ago

More info: I recalled SlimeVR Server and driver probably used to work when I use the owoTracker App to connect. The only thing I can think of which is different is that I updated my OS. I'm currently on Windows 10 20H2 (19042.1503).

inkuxuan commented 2 years ago

Update: Reverting the SlimeVR Driver to release version v0.1.0 has resolved this problem. However I'll leave this issue open since it IS an issue.

kitlith commented 1 year ago

I'm about 6 months late to this issue, but it looks... interesting.

I can't reproduce on my own system, as the current release of the driver works fine on my system (both windows 10, and after i updated to windows 11)

I wondered if the required modules were different between the two versions (though i think the error manifests more loudly if there's a missing library?), and there doesn't appear to be any difference. (my thought was that maybe a different compiler version was used and a different vc++ redistributable was required or something, but that appears to not be the case)

I also checked if there were any places where we might return VRInitError_Driver_Failed, and the only place I can see is: https://github.com/SlimeVR/SlimeVR-OpenVR-Driver/blob/1867d16f493f67ccd9608789e26987c0b0bacf8d/src/VRDriver.cpp#L11-L13

... which also hasn't changed since before 0.1.0.

I'm not sure what to tell you, @inkuxuan, but if 0.1.1 still doesn't work for you, then maybe we can arrange a debugging session to try to figure out what's going wrong.