Meumeu / WiVRn

An OpenXR streaming application to a standalone headset
GNU General Public License v3.0
134 stars 22 forks source link

Game does not detect OpenXR runtime #40

Closed CJendantix closed 4 months ago

CJendantix commented 4 months ago

I have connected to the server on a Quest 2, and have set WiVRn as the default OpenXR runtime, but when I start a game it doesn't detect it. Definitely a me problem but I need support :sweat_smile:

xytovl commented 4 months ago

I would need more info in order to help: are you running a native OpenXR application or through proton? Is there any relevant error message?

If you are running through proton, you still need an OpenVR runtime, because it is checked during initialization. OpenComposite can provide such a runtime over OpenXR, the readme also contains instructions on pressure vessel settings so that the game can communicate with OpenComposite and WiVRn. Be sure to replace PRESSURE_VESSEL_FILESYSTEMS_RW=$XDG_RUNTIME_DIR/monado_comp_ipc in the instructions with PRESSURE_VESSEL_FILESYSTEMS_RW=$XDG_RUNTIME_DIR/wivrn_comp_ipc.

CJendantix commented 4 months ago

Thank you, the game in running through Proton, so I will attempt to use OpenComposite. Will get back to you if I need more support.

CJendantix commented 4 months ago

I have these launch options set up: VR_OVERRIDE=~/OpenComposite PRESSURE_VESSEL_FILESYSTEMS_RW=$XDG_RUNTIME_DIR/wivrn_comp_ipc %command%, but games crash with it. (Yes, I have OpenComposite in that directory.) Where do I go from here?

xytovl commented 4 months ago

Do you have any logs from the game when it crashes? Logs from the wivrn-server process may also be relevant.

CJendantix commented 4 months ago

All games crash, no logs. Not sure how to obtain logs for wivrn

xytovl commented 4 months ago

wivrn-server logs on its standard output/error. The OpenXR library part logs on the standard output/error of the game, which in case of steam is where the main steam launcher was started.

Client application logs can be retrieved through adb logcat, but in this case they are certainly irrelevant.

If you have been able to identify or fix the issue, please describe it for future readers.

CJendantix commented 4 months ago

I talked to people In the LVRA discord, and found the issue. The problem is that I was using the proprietary Nvidia driver that crashes when using OpenComposite. If someone else is having the same problem they have released a fix on the LVRA Discord: https://discord.com/invite/3vYPsjJY