ValveSoftware / SteamVR-for-Linux

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

VR mode can't be disabled without closing Steam #83

Closed DataBeaver closed 6 years ago

DataBeaver commented 6 years ago

Your system information

Please describe your issue in as much detail as possible:

Clicking the VR icon in the Steam client title bar works find and starts SteamVR. However, even after I exit SteamVR the icon stays green. Trying to click it again has no immediate effects but after a short while the Steam client crashes.

ChristophHaag commented 6 years ago

I think it's a steam client beta issue. The same happens with csgo to me, so I don't think it's even SteamVR specific. Opting out of the Steam client beta probably helps.

Edit: Never mind, it did happen for me on stable steam client too.

h1z1 commented 6 years ago

Completely ignoring the fact that you can't click on exit because the overlay dropdown disappears, I've had this happen. Look for stale vrserver / vrcompo* processes. For whatever reason if vrserver gets confused, it won't always shutdown properly. Switching between direct and indirect mode for example sometimes caused it. Regardless though, the Steam client thinks SteamVR is still running even though it really isn't. For all I know it's a byproduct of some dbus fuckery in qt. When I've seen it happen, the process was blocked on signals, didn't trace much further beyhond that.

ex:

$ pstree -pacl |grep -i vr
  |-vrserver,104411 -waitformonitor
  |   |-{vrserver},104414
  |   |-{vrserver},104415
  |   |-{vrserver},104416
  |   `-{vrserver},104418

There's no parent nor vrmonitor yet steam still thought it was running.

Another thing to look for are stale shm pipes, steam isn't cleaning those up properly either:

# ls -al /dev/shm/u1000-* | wc -l
116
~]# ipcs -a c steamvm | wc -l
199
~]# lsof /dev/shm/*  |grep steam | wc -l
36

I wouldn't kill them all since there's no easy way to tell which are still valid and not or look for ones that are growing.

ChristophHaag commented 6 years ago

Since recently this doesn't happen anymore for me. Can this be closed?

DataBeaver commented 6 years ago

I can confirm that the problem appears to be fixed in the Steam client build from 2018-02-14 16:01:48.

kisak-valve commented 6 years ago

Closing per the last couple comments.