Skip to content

"Stop SteamVR" waits forever when vrmonitor is already gone (vrserver ignores SIGINT) #5

Done

Description

@David581

Hi, and thanks for DriverKit! With it my PS VR2 runs on an Intel Arc A770 under niri.

SteamVR's compositor aborted during a session (ASSERT: "Vulkan transfer ring buffer overflow; transfer size 2315040!"), and vrmonitor exited with it. After that, Stop SteamVR printed Interrupted, stopping SteamVR... but never finished.

The INT/TERM trap in launch-steamvr.sh (line 292; line numbers as of 39b1e48) runs pkill -INT -x vrmonitor; pkill -INT -x vrserver. With vrmonitor gone, only vrserver gets the signal, and vrserver ignores SIGINT (SigIgn: 0000000000001006 in /proc/<pid>/status, so SIGINT, SIGQUIT and SIGPIPE are ignored). A SIGTERM didn't stop it within 20 seconds either. The script then waits in while pgrep -x vrserver >/dev/null; do sleep 2; done (line 755) indefinitely, with vrdashboard and the vrwebhelper processes still running.

kill -KILL <vrserver pid> ended it. After that, the script restored openvrpaths.vrpath, disconnected the controllers and collected the logs as usual. This happened three times in one evening.

Suggestion: if vrserver is still running a few seconds after the INT, send SIGKILL to it.

System: PSVR2-DriverKit 0.3 (AppImage) · CachyOS, kernel 7.3.6 · Intel Arc A770 16 GB (DG2) on xe, Mesa 26.3.1 · niri 26.04 (Wayland) · SteamVR 2.18.4 · PS VR2 firmware 6.00 on Sony's PC adapter

I found and wrote this up with help from an AI assistant (Claude); the logs are from my own machine.

Activity

  1. mkooner commented on Dec 1, 2026

    @mkooner
    Owner

    Sorry I can't do anything without logs and evidence, I know this is AI assisted, but read the bug report field form first if you want to post bug reports you need them to be in a way I can action them. I will wait for logs but if you don't provide I will close this issue. Also, do that for your other posts or I am just going to close them all out for improper submissions.

  2. David581 commented on Dec 1, 2026

    @David581
    Author

    Sorry, I opened these with the GitHub CLI and skipped the bug report form. Here are the logs and the form fields.

    Logs: issue5-logs.tar.gz: a fresh run from today on 39b1e48 (20261201-202324): the files of DriverKit's report-20261201-202324.tar.gz (with the full launcher log) plus issue5-repro-20261201.txt, my notes with the times. I replaced the headset serial, Bluetooth addresses, Steam ID, network address and my user name in paths.

    What happens

    Stop SteamVR prints Interrupted, stopping SteamVR... and then waits forever. vrserver, vrcompositor, vrdashboard and the vrwebhelper processes keep running. Only kill -KILL <vrserver pid> ended it; after that the launcher restored openvrpaths.vrpath and collected the logs, which is why the launcher log ends normally.

    One correction to my first post: vrmonitor didn't exit with the compositor. It doesn't start at all in my DriverKit sessions. steamvr-20261201-202324.log has:

    This application failed to start because it could not find or load the Qt platform plugin "wayland".
    Available platform plugins are: xcb.
    

    CachyOS's niri setup sets QT_QPA_PLATFORM=wayland by default: its installer puts in the cachyos-niri-noctalia dotfiles, and their misc.kdl has it (I didn't change it). SteamVR's Qt only ships the xcb plugin. So the trap's pkill -INT -x vrmonitor (launch-steamvr.sh line 292 at 39b1e48) finds nothing, vrserver ignores the SIGINT, and the loop at line 755 never ends. It doesn't need the compositor crash. Today's run (headset on, compositor running): I pressed Stop SteamVR in the app. At 20:24:58 the launcher still showed Interrupted, stopping SteamVR..., vrmonitor wasn't running, and vrserver had SigIgn: 0000000000001006 (SIGINT, SIGQUIT, SIGPIPE ignored). It was still running at 20:25:18, so I sent SIGKILL; the launcher then restored the config and finished at 20:25:36.

    The same happened twice on 2026-11-30, once right after the compositor aborted (Vulkan transfer ring buffer overflow) and once with it running. I left those logs out to keep this short; I can add them if they help.

    For comparison: my three sessions on 2026-12-01 also ran without vrmonitor, but I ended them through Steam instead of Stop SteamVR (vrserver.txt: steam has initiated a quit all). They shut down normally ([vrserver] Graceful exit), and their launcher logs have no Interrupted. So only the signal path hangs.

    Steps to reproduce

    1. Have QT_QPA_PLATFORM=wayland in the session (e.g. CachyOS's default niri config), so vrmonitor can't start
    2. Start SteamVR from DriverKit (Launcher → Start SteamVR)
    3. Press Stop SteamVR
    4. The launcher stays at Interrupted, stopping SteamVR...; pgrep -x vrserver still finds it

    Possible fixes: start SteamVR with QT_QPA_PLATFORM=xcb, so vrmonitor runs; and SIGKILL vrserver if it's still there a few seconds after the INT.

    Where it happens: SteamVR (stopping it with Stop SteamVR in the DriverKit app)
    Version: v0.3 AppImage, Compile Driver on 2026-12-01 (39b1e48)
    Distribution, desktop and session type: CachyOS (kernel 7.3.6), niri 26.04, Wayland; no toolbox/distrobox
    Hardware: Intel Arc A770 16 GB on xe (Mesa 26.3.1), AMD Ryzen 9 3900X

    issue5-logs.tar.gz

  3. mkooner commented on Dec 1, 2026

    @mkooner
    Owner

    Im looking into this issue, did you try QT_QPA_PLATFORM=xcb and did it work for you with that? I think this will lead to other issues, so let me know if it works first. And just so I can narrow it down did you try another DE? Just so I know its an Niri issue only.

  4. mkooner commented on Dec 1, 2026

    @mkooner
    Owner

    OK i added QT_QPA_PLATFORM=xcb for Niri, so recompile based off the latest commits on the compile driver tab, everything should work for you now.

  5. David581 commented on Dec 1, 2026

    @David581
    Author

    Thanks, that was quick! I compiled 231492c and tested it on niri with SteamVR 2.19.6.
    Stop SteamVR works now: vrmonitor starts, and after Stop, SteamVR ends with [vrserver] Graceful exit and the
    launcher finishes. #8 is fixed too: with /usr/include/openvr hidden, all seven tools build.
    One small thing: Stop takes 20 s, because vrmonitor ignores SIGINT too (it’s started by the same background job, SigIgn:
    0000000000000006). So the first step always times out and the second one does the work:
    22:06:31 Stop SteamVR pressed
    22:06:51 [??] SteamVR didn't close within 20 s: ending it
    22:06:52 vrserver: [vrserver] Graceful exit
    
env --default-signal=INT,QUIT in STEAMVR_ENV would fix that. With a test copy of the launcher that started SteamVR
    that way, SteamVR was gone about 2 s after Stop

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions