ValveSoftware / SteamVR-for-Linux

Issue tracker for the Linux port of SteamVR
917 stars 45 forks source link

[BUG] Error 303 with 🖼️Radeon RX 6600 XT AMDGPU (v4.6 Mesa 22.3.1) 🌽5.18.11-steamvr-generic kernel #553

Open KawaneRio opened 1 year ago

KawaneRio commented 1 year ago

Summary

I have recently upgraded my GPU from AMD Radeon RX 580 to AMD Radeon RX 6600 XT. However, SteamVR[beta] now returns a Code 303 "Something is Wrong" with this new GPU AMD Radeon RX 6600 XT.

Screenshot
### Before GPU Upgrade ![image](https://user-images.githubusercontent.com/61252570/208299878-e1f4fa57-5b8f-4047-82db-f23e18af9cd2.png) ### After GPU Upgrade ![スクリーンショット_2022-12-18_19-10-29nacho](https://user-images.githubusercontent.com/61252570/208300508-0bf78380-3728-4ba6-8a7b-06ed725e56b8.png)

Steps to Reproduce

  1. Make a PC with a perfectly fine working RX 580 8GB
  2. Now take that out and put RX 6600 XT instead
  3. Start SteamVR
  4. 🥺

Expected behavior

  1. Make a PC with a perfectly fine working RX 580 8GB
  2. Now take that out and put RX 6600 XT instead
  3. Start SteamVR
  4. Boom. It just works™

System Information

ERROR: [Loader Message] Code 0 : /usr/lib/i386-linux-gnu/libvulkan_intel.so: wrong ELF class: ELFCLASS32
ERROR: [Loader Message] Code 0 : /usr/lib/i386-linux-gnu/libvulkan_radeon.so: wrong ELF class: ELFCLASS32
ERROR: [Loader Message] Code 0 : /usr/lib/i386-linux-gnu/libvulkan_lvp.so: wrong ELF class: ELFCLASS32
ERROR: [Loader Message] Code 0 : /usr/lib/i386-linux-gnu/libvulkan_intel.so: wrong ELF class: ELFCLASS32
ERROR: [Loader Message] Code 0 : /usr/lib/i386-linux-gnu/libvulkan_radeon.so: wrong ELF class: ELFCLASS32
ERROR: [Loader Message] Code 0 : /usr/lib/i386-linux-gnu/libvulkan_lvp.so: wrong ELF class: ELFCLASS32
    driverInfo         = Mesa 22.3.1
    driverInfo                                           = Mesa 22.3.1
    driverInfo         = Mesa 22.3.1 (LLVM 14.0.6)
    driverInfo                                           = Mesa 22.3.1 (LLVM 14.0.6)
    driverInfo         = Mesa 22.3.1 (LLVM 14.0.6)
    driverInfo                                           = Mesa 22.3.1 (LLVM 14.0.6)
    driverInfo         = Mesa 22.3.1
    driverInfo                                           = Mesa 22.3.1

Related?

Error 303 A key component of SteamVR isn't working correctly - SteamVR Linux on Steam Community

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

Note

Commenters who are also experiencing this issue are encouraged to include the "System Information" section in their replies.

KawaneRio commented 1 year ago

OS Update: Ubuntu 20.04 → 22.04

Hello! I have recently updated my OS in hopes to get this issue solved. The results are... well, the same. Updating my Operating System did not change the error at all; I still get a Errror 303. I have tried using non-beta SteamVR, linux v_1.14 SteamVR, and also have tried forcing Photon Experimental with no avail.

Here is what my screen looks like today: image

...And here are my updated OS information (the kernel, drivers should be the same)

System Information

        driverInfo         = Mesa 22.3.1
        driverInfo                                           = Mesa 22.3.1
        driverInfo         = Mesa 22.3.1 (LLVM 14.0.6)
        driverInfo                                           = Mesa 22.3.1 (LLVM 14.0.6)

↑¿what the... for some reason, this command no longer outputs wrong ELF class: ELFCLASS32 Error.

Gist: SteamVR System Report created Fri Dec 23 20:27:57 2022

KawaneRio commented 1 year ago

After a while of tweaking, it seems that every time I unplug and replug the tethering cable together, SteamVR would always give me a Error -203. And when I restart headset, the Error will go back to 303.

Error 303

Screenshot
![Spectacle_20221223_205830](https://user-images.githubusercontent.com/61252570/209333806-06083054-b9cf-4513-85ea-e866deeed040.png)

Error -203 After Reconnecting Tethering Cable

Screenshot
![Spectacle_20221223_205952](https://user-images.githubusercontent.com/61252570/209333818-01e70df0-6718-4dbe-9cdd-e2860a5484b3.png)

Error 303 After Restart Headset

Screenshot
![Spectacle_20221223_210240](https://user-images.githubusercontent.com/61252570/209333829-eba2b463-3efc-4b90-b9cd-d39778835027.png)
KawaneRio commented 1 year ago

Removing the word "beta" because I have tested on non-beta SteamVR as well as non-beta Proton experimental with the same problem.

shfbsdbvf commented 9 months ago

I have the same issue with steamvr beta 2.1.7: https://github.com/ValveSoftware/SteamVR-for-Linux/issues/639#issuecomment-1826775962 (that post contains a temporary workaround)

twhitehead commented 9 months ago

Just throwing this out there, do you have the DRI3 extension enabled?

$ xdpyinfo
...
number of extensions:    28
...
    DRI2
    DRI3  ← need this
...

The amdgpu xorg driver silently disables it if the mesa libraries don't match the ones it was built with exactly. Well, not exactly silently, it does log a message in your xorg log file, but good luck noticing that.

Without DRI3, SteamVR gives all sort of strange and variable error messages.

shfbsdbvf commented 9 months ago

Works in SteamVR 2.1.8 :) https://github.com/ValveSoftware/SteamVR-for-Linux/issues/553#issuecomment-1833110353 , I have DRI3 but I had the issue at the time I posted it.