ValveSoftware / SteamVR-for-Linux

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

[BUG] Error 496 on first start of SteamVR after a boot #715

Open anxest opened 2 months ago

anxest commented 2 months ago

Describe the bug The first time of the day I start steamVR, I got an error 496 : "Failed to connect to headset display Your headset might not be connected, or your desktop environment might not support VR." But I do have an image in the headset: I can see the loading zone, and the Home "waiting" picture infinitely loading (this is why I register a new bug: not totally sure it's the same as #703; I didn't activated the performance graph either). What I see in the headset is not reflected on the dock VR View though. In this context, If I try to open the dashboard into my headset, the environment will darken, and I'll see the light bar that usually appear under the dashboard, but the dashboard won't display. If I quit SteamVR from the dock on the screen, the "exiting VR" will display for a good 30 seconds before effectively turning off. If I restart SteamVR after this, it will now start "normally" (except the settings will display as I mentioned in #712), letting me play. This issue will happen again after the next fresh start of my computer, or reboot.

To Reproduce Steps to reproduce the behavior:

  1. Turn on the computer or reboot the computer
  2. Start SteamVR
  3. See error

Expected behavior Starting SteamVR normally, being able to start Home, display the dashboard and starting a game.

System Information (please complete the following information): Please use the latest Steam beta client and SteamVR beta for your bug reports!

Screenshots Capture d’écran du 2024-06-17 15-46-23

Kojobu commented 2 months ago

Which hardware are you on? Especially laptop or desktop?

anxest commented 2 months ago

It's a desktop

CPU Intel I7 13700k MB Z690 DDR4 RAM 32GB DDR4 3600 MHz CL18 GPU AMD Radeon RX 7800 XT

wallcarpet40 commented 2 months ago

Might be an AMD driver problem rather than SteamVR problem. I found some issues like this over at Gitlab: https://gitlab.freedesktop.org/drm/amd/-/issues/1856 https://gitlab.freedesktop.org/drm/amd/-/issues/2342 https://gitlab.freedesktop.org/mesa/mesa/-/issues/7041

This happens to me too with Valve Index and Radeon 6800XT. Sometimes even happens with Monado, where Monado will crash in the first start after a reboot. Then I have to start SteamVR, let it crash, choose "Restart Headset" in the SteamVR vrmonitor menu, which will recover the headset to a working state and then start Monado or SteamVR again.

Flimsy-Fox commented 1 month ago

I experience similar behavior on my system; SteamVR fails to connect to headset, and then resumes fine after I've either restarted or disconnected and reconnected headset. Though manifesting differently through the updates (the result was always the same: somehow or another restart headset), it has lasted for about a year (as long as I've owned this system).

Currently, the details are different than yours but I'm unsure if they mean that I have to make a separate issue. My process is as follows:

For completeness, here are my system details: CPU: AMD Ryzen 7 7800X3D GPUs: AMD Radeon RX 7800 XT (Primary), iGPU (Secondary, no display connection); with no PRIME setup Memory: 32GB with 96GB Z-swap Headset: Valve Index Kernel: Linux 6.6.38-1-lts GPU Driver: Mesa 24.1.3 Distro: Arch Linux 64-bit DM: KDE Plasma 6.1.2 running Wayland