protonscr

A lot of Vulkan validation errors on UnityOpenXR games

dxvkopen
doitsujin/dxvk#3695 · opened 2023-10-23 by MeemeeLab · updated 2023-10-25 · 1 comments · github
1 matching comments, n / p to jump
MMeemeeLab 2023-10-23 github

Software information

Any unity game using UnityOpenXR, I used sample scene from UnityOpenXR.

System information

  • GPU: NVIDIA GeForce RTX 3060
  • Driver: 535.113.01
  • Wine version: Proton7-55 (Custom build with latest commit of DXVK)
  • DXVK version: v2.3-12-gf45911a2

Apitrace file(s)

I couldn't figure out how to replace dlls with apitrace one with steam launcher. Let me know if there's way to do it.
I'm not sure it is needed to debug DXVK, because it is most likely caused by wineopenxr and call logs exists in proton log file trace:openxr and wineopenxr itself is open-source: https://github.com/GloriousEggroll/proton-ge-custom/blob/GE-Proton7-55/wineopenxr/openxr.c

Log files

System WINEDEBUG: +steam,+openxr
steam-dxvk-openxr_steam-openxr.log

System WINEDEBUG: (default)
steam-dxvk-openxr_default.log

Steps to reproduce

This is probably very hard to reproduce without VR headset.
It needs working SteamVR which is set to default OpenXR runtime and headset must be detected in SteamVR.
If SteamVR is not running or headset is not attached, the game just works fine but obviously without VR support.

Anything other

  • Apparently everyone has same problem, like beat saber which requires UnityOpenXR.
  • Versions
    • I tried different combination of SteamVR and Proton versions. no luck.
    • I was not able to use VK_LAYER_KHRONOS_validation with Proton8. It hangs without any window. without using VK_LAYER_KHRONOS_validation on Proton8, the game itself launches, but still DXVK-related crashes happen.
  • Problems
    • When launching UnityOpenXR games, first 1~3 seconds works fine with output to VR headset. After that, Unity application will crash or stops responding. In worst case, SteamVR crashes. This is probably random.
    • In log file there's a lot of Vulkan validation errors. First one is VUID-VkImageViewCreateInfo-image-01762, continued by UNASSIGNED-CoreValidation-DrawState-InvalidImageLayout, VUID-vkBindBufferMemory-memory-02985 and more.
    • Sometimes DXVK logs VK_ERROR_DEVICE_LOST. Sometimes it doesn't. This seems random too.
    • OpenVR games works fine. (not OpenXR, OpenVR.)

This is first time opening bug reports with Proton/wine related things. It might not even a DXVK issue. Any help would be appreciated!

MMeemeeLab 2023-10-25 github

Seems like this was duplicate of #3657. I'll keep this open for reference, but maintainers can close this issue for duplicate.

Proton versions

Launch options