[Steam Frame] vrcompositor killed by SIGXCPU: RenderThread busy-waits in WaitForPresent past RLIMIT_RTTIME
Summary
On a Steam Frame, vrcompositor was killed by the kernel with SIGXCPU (signal 24). The
RenderThread was spinning in the WaitForPresent polling loop without blocking while vsync
stalled, and exceeded the realtime CPU limit (RLIMIT_RTTIME, 100 ms soft). SteamVR then shut
down, steamwebhelper segfaulted during the teardown, and everything restarted on its own after
about 17 seconds.
The loop has its own 1.0 s abort ("Aborting WaitForPresent after %f seconds!"), but that can never fire here because the 100 ms soft limit is hit first.
System
- Device: Steam Frame
- SteamOS 0.5.8, build 20261106.6144341, variant
vr - Kernel: 7.2.0-g344f27110f05
- SteamVR: vrcompositor 2.19.2 (v1794004177), linuxarm64
- Steam client build: 1792099137
- Mesa: deckard-mesa-linux-aarch64 26.3.0_devel+git6a15f899-6 (freedreno/turnip)
- gamescope 3.16.30-4
What happened
- 2026-11-12 18:32:09 CET:
vrcompositor(PID 2674) terminated with signal 24/XCPU. The minidump is named after theRenderThreadthread. - Limits on vrcompositor:
Max realtime timeout 100000 / 200000 us(soft / hard). - Last line in
vrcompositor.txtbefore the restart:18:32:09.286988 [Error] - WaitForPendingPresent: failed to wait for present(this error also appears at other times without a crash). - 18:32:10: SteamVR sends VREvent_Quit;
steamwebhelper(PID 3234) dies with SIGSEGV. - 18:32:26: vrcompositor starts again.
Backtrace of the killed thread (LWP 2817)
#0 __kernel_clock_gettime (vdso)
#1 clock_gettime (libc.so.6)
#2 vrcompositor + 0x19ca18
#3 vrcompositor + 0x87f40
#4 vrcompositor + 0x1601f8
#5 vrcompositor + 0x164228
#6 vrcompositor + 0x199e00
#7 start_thread (libc.so.6)
The other 27 threads were all blocked in poll, pthread_cond_wait / pthread_cond_timedwait
or usleep (main thread), including the libvulkan_freedreno threads. Nothing else was running
or deadlocked.
Analysis
Frame #3 is inside a polling loop at vrcompositor + 0x87f3c .. + 0x87f84:
87f3c: bl <get time> ; + 0x19c9f0
87f40: fsub d0, d0, d8 ; elapsed = now - start
87f44: fcmpe d0, d10 ; d10 = 1.0
87f48: b.gt 8811c ; -> "Error: Aborting WaitForPresent after %f seconds!
; TimeSinceLastVSync: %f(%d)"
87f4c: ...
87f60: bl + 0x7c728 ; read vsync time / counter
...
87f80: ccmp x0, x1, #0, eq ; counter unchanged?
87f84: b.eq 87f3c ; -> spin again
Strings referenced by this function: [Compositor] TimeSinceLastVSync: %f(%d),
Error: Aborting WaitForPresent after %f seconds! TimeSinceLastVSync: %f(%d), Read timestamps,
/data/src/vrcompositor/graphicsdevice.cpp:14474.
The loop appears to busy-wait for the vsync counter to change with no sleep or blocking call (inferred from the SIGXCPU; I did not disassemble the callee at + 0x7c728). Since the thread is realtime and never blocks, any vsync stall longer than 100 ms kills the compositor before the loop's own 1.0 s timeout can handle it.
What I don't know
Why vsync stalled. There were no msm/adreno/DPU errors in the kernel log at that time. In the same second, XRService logged late camera interrupts ("Late WM_DONE ISR by > 1 ms", up to 6.9 ms) and "Group write was late. ISR-SOF: 5.44 ms", which suggests a brief system-wide hitch.
Reproduction
No known steps. This is the first occurrence I investigated; I saw what looked like the same crash once before but did not look into it, so I can't confirm it was the same signal.
The headset was in use in the SteamVR home/dashboard with no game running. A few downloads were running at the time, so the system was under some load (load average was about 4 two minutes after the crash). No third-party process was connected to vrserver in that session. Also running: a third-party dictation service (reads the headset buttons via evdev) and two user scripts that talk to the Steam UI over its CEF debug port; none appear in the crash path.
Suggested fix
Either block or sleep inside the wait loop so the RLIMIT_RTTIME counter resets, or make the loop's abort timeout shorter than the realtime limit.
Disclosure
This crash was investigated with an AI assistant (Claude Code), which read the journal and SteamVR logs, extracted the backtraces from the core dump with gdb, disassembled the loop and drafted this report. The raw facts (signal, limits, backtrace, log lines, versions) are copied directly from the system.
Available on request
- Full core dump (370 MB uncompressed, not attached because it is a process memory image)
- Minidump
1794504729-RenderThread-2674-250820.dmp vrcompositor.txt,vrserver.txt, journal excerpt for 18:31–18:33
Second occurrence, same signature
It happened again on the same day, with the same binary (vrcompositor 2.19.2, v1794004177).
- 2026-11-12 19:05:30 CET:
vrcompositor(PID 2733) terminated with signal 24/XCPU. The minidump is again named after theRenderThreadthread (1794506730-RenderThread-2733-250820.dmp). - Last line in
vrcompositor.txtbefore the kill:19:05:30.455381 [Error] - WaitForPendingPresent: failed to wait for present - The other 27 threads were again all blocked in
pollorpthread_cond_wait/pthread_cond_timedwait. - XRService logged "Late WM_DONE ISR by > 1 ms" (up to 5.09 ms) in the two seconds before the kill, as it did the first time.
This time the system had been up for less than 3 minutes (booted 19:02:46), so it does not need a long session. Load average was about 4.8 shortly after the crash.
Backtrace of the killed thread (LWP 2844)
#0 __kernel_clock_gettime (vdso)
#1 clock_gettime (libc.so.6)
#2 vrclient.so + 0x2c9ba0
#3 vrclient.so + 0x11e0e0
#4 vrcompositor + 0x7c7b4
#5 vrcompositor + 0x87f64
#6 vrcompositor + 0x1601f8
#7 vrcompositor + 0x164228
#8 vrcompositor + 0x199e00
#9 start_thread (libc.so.6)
Frames #6 to #8 are identical to the first crash. Frame #5 is inside the same polling loop
(+ 0x87f3c .. + 0x87f84); it is the return address of the bl + 0x7c728 at + 0x87f60.
d10 holds 1.0 in this dump, matching the loop's abort threshold.
The callee at + 0x7c728
In the original report I said I had not disassembled this function. In this dump the thread
was caught inside it. It fetches an interface pointer (bl + 0x28a5e0) and makes a virtual
call through vtable slot +48, passing the two output pointers it was given:
7c79c: bl 28a5e0
7c7a0: ldr x3, [x0]
7c7a4: mov x2, x21
7c7a8: mov x1, x20
7c7ac: ldr x3, [x3, #48]
7c7b0: blr x3
That call lands in vrclient.so (+ 0x11e0e0), which was in clock_gettime when the signal
arrived. So in both dumps the loop was sampled reading the clock, once directly and once via
this callee, and never in a sleep or blocking call. That is consistent with the busy-wait
explanation, though two samples do not prove every path through the callee is non-blocking.
Correction: Firefox was running both times
The original report says the headset was in the SteamVR home/dashboard with no game running.
That was incomplete. In both cases the Firefox flatpak (org.mozilla.firefox), launched
through Steam, was open:
- First crash (18:32): Firefox had been running since 17:15 and was still alive at the crash.
- Second crash (19:05): Firefox was started at 19:05:19, 11 seconds before the kill. I was looking at its downloads window when it happened.
This is only a correlation from two occurrences. Nothing in either backtrace points at Firefox, and it ran for over an hour before the first crash. I mention it in case it helps with reproduction.
The full core dump (322 MB uncompressed) and the minidump for this occurrence are also available on request.
As with the original report, this was investigated with an AI assistant (Claude Code); the signal, backtrace, log lines and timestamps are copied directly from the system.