[BUG] vrcompositor reuses command buffers and descriptor pools that the GPU is still using (device lost / Xid 32 under load, 2.17.9 and 2.17.10)
Describe the bug
When the GPU is busy (a game loading a map is enough) vrcompositor loses its Vulkan device. On NVIDIA the kernel logs Xid 32 ... name=vrcompositor ... intr0 00040000 (PBDMA PBENTRY, a malformed pushbuffer entry), sometimes Xid 13/31/69. The compositor then logs vkerror=-4 and "Unexpected failure when checking for timeline signal" at /data/src/facet/src/vksync.cpp:213, and the headset shows "host is not responding". I think #944 and #906 are the same defect seen from the CPU side. It also looks related to #940: 2.17.10 fixed that one for the AMD reporters, but both patterns below are still present in 2.17.10 here and still end in a device loss.
I put a small Vulkan layer into vrcompositor that follows every vkQueueSubmit with a fence-only submit, so it knows when the GPU has really finished. It shows two things:
- Command buffers are reset and re-recorded (vkResetCommandBuffer + vkBeginCommandBuffer) while their previous submission is still running. The recycling is gated by a
vkWaitSemaphores(timeout 0)poll, and that poll returns VK_SUCCESS for unfinished work, so the timeline values given to submits don't seem to be unique. - All descriptor pools are reset once per frame with no GPU synchronisation.
VK_LAYER_KHRONOS_validation reports the same two: VUID-vkQueueSubmit-pCommandBuffers-00071 and VUID-vkResetDescriptorPool-descriptorPool-00313.
A trace from 2.17.10, layer and kernel timestamps:
20:08:54.245 vkResetCommandBuffer + vkBeginCommandBuffer on a command buffer whose submission has not finished
20:08:54.255 NVRM: Xid (PCI:0000:01:00): 32, name=vrcompositor, channel 0x37 intr0 00040000
A/B with the same scenario each time (Half-Life: Alyx, a map load every 30-40 s, an NVENC encode and a second render load running alongside):
| vrcompositor | runs | result |
|---|---|---|
| unmodified (2.17.9 x5, 2.17.10 x1) | 6 | GPU fault in 6 of 6, always within 1 s of a map load |
| layer answers the poll with VK_TIMEOUT while an unfinished submit was told to signal a value <= the polled one, and swaps in a fresh descriptor pool instead of resetting one that is in use | 6 | no compositor fault, no waits added (5 runs on 2.17.9, 1 on 2.17.10 stopped after 10 map loads) |
On a real Quest 3 over Steam Link: without the layer Alyx died at its first map load every time, with it three sessions ran without a fault.
To Reproduce
- SteamVR 2.17.10 (or 2.17.9), NVIDIA. Any HMD; I also reproduce it with a fake driver-direct-mode HMD and no headset.
- Run Half-Life: Alyx and load maps while something else keeps the GPU busy; a video encode is enough.
- vrcompositor faults within a second of a map load.
Expected behavior Command buffers and descriptor pools are only recycled after the GPU work using them has completed.
System Information
- Steam client version: 1788652215 (stable)
- SteamVR version: 2.17.10 (build 25330290, public since today) and 2.17.9 (build 25216780)
- Distribution: Arch Linux (Omarchy), kernel 7.2.5 and 7.2.3, Hyprland
- GPU: RTX 4060 Laptop, nvidia-open 615.71.09, also 610.57.04
- Logs: I can attach SteamVR logs, the validation log and the layer's event log, and share the layer and the fake-HMD driver source. Tell me what is useful.
Additional context
vrlink seems to have the same pattern: Xid 32 ... name=vrserver right after [HMDVulkan] DestroySwapTextureSet(), so far only while SteamVR shuts down.
I think that´s the bug i see with vulkan validation layers on as well: https://github.com/Spacefish/steamvr-compositor-bugreport/blob/main/vrcompositor-linux.txt#L161 and https://github.com/Spacefish/steamvr-compositor-bugreport/blob/main/vrcompositor-linux.txt#L970
Actually for me SteamVR does not start at all with Vulkan Validation Layers loaded, as the validation layers contain a lock that is never signaled due to unexpected API usage by SteamVR. I had to patch the VVL to make them work: https://github.com/Spacefish/steamvr-compositor-bugreport/blob/main/vvl-fix.patch
I think it´s exactly in that area as well, the VVL waits for the GPU to signal the fence, but SteamVR kills the fence on the CPU side before it is signaled, so it wait till the 120s timeout.
I mean we could intercept the vKQueueSubmit remember the fence and command buffer reference for that command buffer then intercept vkResetCommandBuffer and call vkWaitForFences on the fence, to hotfix the pending command buffer re-use.
The semaphore re-use on the CPU side is probably harder to intercept.
I kept hitting this bug frequently while I've been working on my own OpenVR driver, it has been blocking me a lot.
With the aid of claude opus 5.5, it tracked down the cause and I got it to generate a Vulkan API layer as a throwaway temporary workaround until there is a proper fix in SteamVR.
I guided it's generation and the code has tests, asan leak detection, and benchmarking. I've done a fair amount of testing of the api layer myself and it unblocks my progress.
You can find this here
I went to the source of the problem and patched this out in vrcompositor. Here is a BPS for vrcompositor.
It forces a wait on the GPU before reusing resources. This also requires not re-using the resource identifiers across frames.
What I think is worth adding: in this one the driver printed an Reading the fields at face value: I can't tell from outside the process which allocation that address belonged to, or when it was unmapped, so this doesn't on its own separate a prematurely released resource from other routes to an unmapped address in the pushbuffer. Posting it because it is the only driver-side detail I have been able to capture across the seven occurrences, in case it helps narrow things down. Logs and per-second process/GPU samples available on request. MAC addresses, IP addresses, SSID, hostname, PIDs, serial numbers and username removed.Reproduced on NVIDIA 595.99.02 / SteamVR 2.18.4, Half-Life: Alyx (native), Steam Frame streaming, Linux Mint 22.3. Seven occurrences here over 32 captured sessions; in the four I have reliable timing for, the fault fell during or just after a level transition.
Xid 31 immediately before the Xid 32, which I had not seen in any earlier occurrence.20:48:52 NVRM: Xid 31, name=vrcompositor, channel 0x0000003d, intr 00000000.
MMU Fault: ENGINE GR0_PBDMA0 HUBCLIENT_ESC faulted @ 0x53_80000000.
Fault is of type FAULT_PDE ACCESS_TYPE_VIRT_READ
20:48:52 NVRM: Xid 32, name=vrcompositor, channel 0x0000003d intr0 00040000
20:48:58 Failed Watchdog timeout in thread Render in RenderSystemLayer after 6.044470 seconds. Aborting.
GR0_PBDMA0 is the pushbuffer DMA engine, and FAULT_PDE with ACCESS_TYPE_VIRT_READ indicates a read against a virtual address whose page directory entry was not present — an unmapped region rather than a single absent page.
Additional reproduction: Bazzite 44 / RTX 3060 Ti / NVIDIA 615.71.09 / Steam Frame
I'm reproducing NVIDIA Xid 32 / Vulkan device-loss failures in SteamVR Beta 2.18.4 on Bazzite, affecting both Half-Life: Alyx and VRChat.
System specifications
Component | Configuration -- | -- OS | Bazzite 44 (build 44.20260929, September 29, 2026) Kernel | 7.2.7-ogc1.1.fc44.x86_64 CPU | AMD Ryzen 7 5800X (8C/16T) RAM | 128GB DDR4 GPU | NVIDIA GeForce RTX 3060 Ti (8GB) NVIDIA driver | 615.71.09 OS image | ghcr.io/ublue-os/bazzite-nvidia-open:stable Desktop | KDE Plasma / Wayland SteamVR | Beta 2.18.4 Headset | Valve Steam Frame (wireless VRLink)Half-Life: Alyx
When loading a save game, Alyx continues running on the host PC, but the headset enters "Waiting," never recovers, and eventually disconnects.
Multiple crashes reproduced on October 17, 2026.
VRChat
VRChat produces the same NVIDIA Xid 32 and Vulkan device-loss errors in SteamVR Beta 2.18.4.
The important distinction is that VRChat works on SteamVR Stable on this same machine.
SteamVR Beta 2.18.4 significantly reduces the microstuttering I previously experienced in other games, but introduces or exposes these compositor failures.
Kernel logs
Oct 17 22:20:18 NVRM: Xid (PCI:0000:52:00): 32, pid=8399, name=vrcompositor, channel 0x00000027 intr0 00040000
Oct 17 22:26:00 NVRM: Xid (PCI:0000:52:00): 32, pid=39065, name=vrcompositor, channel 0x00000027 intr0 00040000
Oct 17 22:39:21 NVRM: Xid (PCI:0000:52:00): 32, pid=44643, name=vrcompositor, channel 0x00000027 intr0 00040000The 22:39:21 crash occurred while running VRChat.
SteamVR compositor logs
Failed GetDeltas(Compositor): vkerror=-4
Failed GetDeltas(CompositorPresent): vkerror=-4
Submit: Failed to submit to queue: 0:0
ASSERT: "Unexpected failure when checking for timeline signal" at /data/src/facet/src/vksync.cpp:213.Observations
The fault affects at least two games using different engines.
Both failures occur in
vrcompositor, with NVIDIA Xid 32 and VulkanVK_ERROR_DEVICE_LOST.VRChat runs successfully using the Stable SteamVR branch.
The failure persists with NVIDIA driver 615.71.09 and the NVIDIA open kernel module Bazzite image.
The issue is reproducible with a Valve Steam Frame streaming wirelessly from a Linux host.
I have the same issue on Arch Linux + 5070 TI with driver 615.78.08 + Steam VR beta 26389675, the above steamvr-compositor-sync indeed helps.
Setup. Arch Linux, kernel 7.2.14-arch1-1, The fault (16:25), game launch. The Frame connected and SteamVR went Ready at 16:25:42.99. Alyx connected to vrserver at 16:25:43.6. The kernel logged, at 16:25:43: With korejan's steamvr-compositor-sync (17:25 onwards). Same machine, same driver, the layer installed as an override for No Xid in the kernel log since, no crash, Alyx launched and ran, and a later 3.5-minute Alyx session at 3743x3743 per eye and 90 Hz went through with the GPU at 24 to 67 % and NVENC at 20 to 29 %. That matches the mechanism described at the top of this issue: the layer's counters show it holding back exactly the command-buffer reuse that the unmodified compositor submits.Another data point for this issue, with a Steam Frame over vrlink on an RTX 4090, and a confirmation that the sync layer is the difference between a GPU fault within a minute and a clean session.
nvidia-open 615.78.08 (open kernel modules), RTX 4090, KDE Plasma 6.8.2 on Wayland, Steam client 1792618285 (the regular ubuntu12 build, full scout runtime), SteamVR 2.18.4 build 25998080 (public branch), vrlink driver as shipped with it, Steam Frame on headset software 0.4.5 (20261022.6150929) connected over the home Wi-Fi (6 GHz, no wireless adapter). Half-Life: Alyx, native Linux build. SteamVR is started by hand before the game. vrcompositor logs Async: Automatically disabled as default based on the detected Vulkan environment, Headset is using driver direct mode, Using Facet Renderer.NVRM: Xid (PCI:0000:0c:00): 32, pid=7247, name=vrcompositor, channel 0x00000033 intr0 00040000
NVRM: Xid (PCI:0000:0c:00): 32, pid=7247, name=vrcompositor, channel 0x00000033 intr0 00040000
vrcompositor.txt from 16:25:44.55:[Error] - Submit: Failed to submit to queue: 0:0
[Warning] - WaitForAcquire timed out (FAILED); rendering the next frame before the driver took the sync texture
[Error] - ASSERT: "Unexpected failure when checking for timeline signal" at /data/src/facet/src/vksync.cpp:213. (x5)
[Error] - Failed GetDeltas(Compositor): vkerror=-4
[Error] - Failed GetDeltas(CompositorPresent): vkerror=-4
vrcompositor then crashed with SIGSEGV (SEGV_MAPERR) at 16:25:45. vrserver restarted it at 16:25:47; the second instance initialised and failed at 16:25:53 with Failed to start compositor: VRInitError_Compositor_CreateDriverDirectModeResolveTextures (the same second act as #991). vrlink logged Connection inactive at 16:26:01, and vrserver aborted at 16:26:07 with Failed Watchdog timeout in thread Connection after 20.385336 seconds. Aborting. (SIGABRT). vrmonitor showed SteamVR Fail (-203).vrcompositor only, nothing else changed. vrcompositor-linux.txt:[steamvr-compositor-sync] v0.1.0 active in vrcompositor: command buffers and descriptor pools are recycled only after the GPU finished with them (wait timeout 1000 ms)
[steamvr-compositor-sync] prevented reuse of in-flight GPU work: command buffer waits 6, resubmit waits 0, descriptor pool swaps 1, pool waits 0, deferred pool destroys 0, ...
[steamvr-compositor-sync] prevented reuse of in-flight GPU work: command buffer waits 7, resubmit waits 0, descriptor pool swaps 1, ...
Looking at the changes in beta 2.19.4, it looks like this should finally be completely fixed. Valve effectively implemented the equivalents of both of my patches.
Looking at the changes in beta 2.19.4, it looks like this should finally be completely fixed. Valve effectively implemented the equivalents of both of my patches.
If you mean the crash related to the barnacle from #983 , it just happened to me, running the beta 2.19.4 of steamvr. Frame is running on stable though.
@franzqat this issue has nothing to do with the barnacle crash. It also caused crashes in Alyx but they're separate.
The barnacle crash is caused by Alyx. If you want to fix it, you can use the patcher I mention there.
When I say "the equivalents of both of my patches" I mean both the patches I had included in my steamvr patcher for this issue. One was to wait for the GPU to hand back resources, and the other one (implemented in 2.19.4) was to not re-use the resource identifiers so that the first patch could actually reliably wait on the right thing.