ValveSoftware / SteamVR-for-Linux

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

[BUG] Steam VR hangs system on exit #555

Open aaronw2 opened 1 year ago

aaronw2 commented 1 year ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Open Steam
  2. Start Neos VR
  3. Exit Neos VR
  4. Close SteamVR by clicking X on upper right

Expected behavior A clear and concise description of what you expected to happen. I expect it to close without crashing

System Information (please complete the following information):

Additional context When SteamVR exits my system will hang. I have not been able to capture a stack trace, but I did manage to see that the nVidia driver crashed on all cores and all CPUs were pegged with nVidia driver interrupts when I managed to ssh in from my laptop, however, networking was extremely flaky, presumably due to the never-ending flood of interrupts.

I might also add that Steam VR does not start in VR mode but only desktop mode. This is with an old HTC Vive setup.

Steam has been rather unstable for me. Most games refuse to even start, including Doita, Fallout Shelter, and Wanted Raccoon. Quake II RTX does work.

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

kisak-valve commented 1 year ago

Possible duplicate of #554. This issue should also be mentioned to your video driver vendor.

mSparks43 commented 1 year ago

very similar behaviour with X-Plane 12. Fedora 37, SteamVR beta and non beta, nvidia drivers 525.85.05, RTX3070, AMD5900X But when its not crashing the entire desktop on exit, or vrcompositor randomly crashing with 307 errors - #277 is now actually fixed.

kiosion commented 1 year ago

Experiencing this on Arch, but inconsistently - next time it happens I'll check journalctl and post my findings here. It seems to be freezing more than just Xorg though, since I can't even switch over to another TTY, or kill Xorg using SSH from another device. The whole system locks up upon exiting SteamVR.

mSparks43 commented 1 year ago

My 80% guess for what is happening here is the problem stems from something like steamvr not properly releasing some asset when it shuts down or crashes, then the nvidia driver exploding when it tries to do it automatically.

This guess is based on it seeming to heavily depend on how steamVR is shutdown and what it was doing at the time.

steamvr crashing nukes everything. close things in one order and everything is fine close/disconnect things in some other order and "The whole system locks up upon exiting SteamVR."

kiosion commented 1 year ago

@mSparks43 Something like that seems plausible. Most of the time if I close it through Steam's right-click menu it closes with no issues - But closing the SteamVR window directly or closing it w/ pkill causes it to lock up the system. Definitely something weird going on.