alvr-org / ALVR

Stream VR games from your PC to your headset via Wi-Fi
MIT License
5.3k stars 474 forks source link

[Linux] error in encoder thread: Failed to initialize vulkan frame context: invalid argument #1614

Closed FuzzyWuggzy closed 1 year ago

FuzzyWuggzy commented 1 year ago

While starting the streamer in ALVR I get this error:

Encoder: Image creation failure: Unknown error error in encoder thread: Failed to initialize vulkan frame context: invalid argument

The VR View in SteamVR shows that the head and controller tracking is working fine, it's just that no video is displayed on the HMD. This happens in the releases and built from source, and with both the nvenc and software encoder.

OS is Fedora 37

Thank you

FuzzyWuggzy commented 1 year ago

Someone on Discord sent me to this issue on the SteamVR github that had the solution to this problem:

https://github.com/ValveSoftware/SteamVR-for-Linux/issues/355

Not wanting to delete the Intel Vulkan stack, I added VK_ICD_FILENAMES="/usr/share/vulkan/icd.d/nvidia_icd.json" %command% to the SteamVR launch options as kisak-valve suggested and ALVR now seems to work fine.