VICTORY_HW_RT=1: GPU device removed (0x887A0005) 75-85 s into the world; LIFT=0 survives, so the lifted RayQuery traversal is the fault #4323

Open
opened 2026-11-30 18:55:26 +00:00 by TheBen420 · 12 comments
TheBen420 commented 2026-11-30 18:55:26 +00:00 (Migrated from github.com)
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by TheBen420 on 2026-11-30T18:55:26Z.


Hardware RT removes the GPU device after 75–85 s in world; structures alone are fine, the lifted traversal is the fault

Tip c71899d9 (2026-11-30) plus a 27-line copy-back cap, built release from source on this machine.
Everything else in this report is stock switches unless named.

Card / system: RTX 4080 SUPER 16 GB, driver 621.24, Windows 11 26200, Ryzen 7 5800X, 64 GB.
Title: GTA VI Xbox build 1.0.2.1, game_scarlett_master.exe, Series X, 1080p scene upscaled to 1440p, DLSS DLAA, no frame generation.

What happens

With VICTORY_HW_RT=1 the hardware path comes up cleanly — every ray-query program lifts with no fallbacks:

victory_gpu::hwrt: ray queries lifted 1 of 1 (bvh64 1/1, bvh32 0/0), fell back: none program=d206b8ca
victory_gpu::hwrt: ray queries lifted 5 of 5 (bvh64 5/5, bvh32 0/0), fell back: none program=5d2bb6a7
victory_gpu::hwrt: ray queries lifted 8 of 8 (bvh64 8/8, bvh32 0/0), fell back: none program=bb8b02c4

The world comes up (10,847 draws in frame) and then the device goes, twice, at the same point:

Run 1: device removed 84 s after launch
Run 2: device removed 75 s after launch
ERROR victory_gpu::host: when the host device went: the submitting thread was preparing a submission
      (nothing of ours was running on the card), of 1 lists, for 0.6 ms
ERROR victory_gpu::host: relay: device lost before publishing queued GPU work; device removed:
      The GPU device instance has been suspended. (0x887A0005)

Windows logs nothing. There is no display-driver reset (no event 4101) and no power transition in
the system log in the five minutes around either crash, so this is a D3D12-level removal from inside the
RT path rather than a TDR recorded by the driver.

It is not the structure work, and it is not memory

VICTORY_HW_RT_LIFT=0 keeps the whole hardware path's structure work — the HLE builder, bottom and top
level builds, refits, the instances' remap, the index/vertex copies — and lifts no traversal loop, so
every ray takes the software walk:

ray queries: lifted shaders 0, partly 0, fell back 14 (software)
hardware RT: BLAS live 3500 (built 5536, refit 56989, refit->rebuild 69, rehydrated 3255), TLAS live 5

That run stayed up for the whole test — more than four minutes parked in the world, 56,989 BLAS refits
and 3,500 live BLAS, no device removal, no hitch beyond one 250 ms frame. Same structures, same card, same
churn, the only difference being that no loop is lifted into a RayQuery.

Memory was never tight in the crashing runs either: hardware RT BLAS memory: budget 1464 MB, live 257 MB (2132 BLAS), pinned 18 MB; evicted 0, and the title's own working set was unremarkable.

The numbers just before the first crash, for reference:

hardware RT: BLAS live 2154 (built 2199, refit 2773, refit->rebuild 82, rehydrated 2020), TLAS live 5 (builds 630)
hardware RT inputs: index buffers clamped on the card 798, vertex buffers sanitised 8586, geometries given inactive 0
hwrt: built native DXR TLAS tlas_builds=600 blas_builds=1437 blas_refits=2661 blas_update_fb=18 blas_waves=303 blas_prep_ms=4220

Reproduce

victory.exe play <title>\game_scarlett_master.exe --res 1080to1440 --dlss dlaa \
  --set VICTORY_HW_RT=1

Load a save, stay in the world. On this machine the device goes within 75–85 seconds, twice out of two.
Add VICTORY_HW_RT_LIFT=0 and it stops happening.

Logs

Extracts from both runs (hwrt lines and the failure, ANSI stripped):
https://gist.github.com/TheBen420/6b498d0ed931bf11766e418045c6c754

Full play logs are %LOCALAPPDATA%\victory\logs\victory-nvidia-play-20261130-182458-15680.log (crash) and
victory-nvidia-play-20261130-184557-23808.log (LIFT=0, survived); I can paste any further part of them.

Worth knowing

The surviving configuration is not slow — it is the fastest thing I have measured on this title. At the
same spot and draw count (6,137 against 6,206), parked and untouched: 53.8 ms a frame against 56.5 ms
for my build with the light stand-ins in place. So the card-built structures alone are a small win, and the
lifted traversal is the part that would make the title's real ray tracing affordable. That is the piece
that removes the device.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:6703852616 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4323). Originally posted by [TheBen420](https://github.com/TheBen420) on 2026-11-30T18:55:26Z. --- # Hardware RT removes the GPU device after 75–85 s in world; structures alone are fine, the lifted traversal is the fault Tip `c71899d9` (2026-11-30) plus a 27-line copy-back cap, built release from source on this machine. Everything else in this report is stock switches unless named. **Card / system:** RTX 4080 SUPER 16 GB, driver 621.24, Windows 11 26200, Ryzen 7 5800X, 64 GB. **Title:** GTA VI Xbox build 1.0.2.1, `game_scarlett_master.exe`, Series X, 1080p scene upscaled to 1440p, DLSS DLAA, no frame generation. ## What happens With `VICTORY_HW_RT=1` the hardware path comes up cleanly — every ray-query program lifts with no fallbacks: ``` victory_gpu::hwrt: ray queries lifted 1 of 1 (bvh64 1/1, bvh32 0/0), fell back: none program=d206b8ca victory_gpu::hwrt: ray queries lifted 5 of 5 (bvh64 5/5, bvh32 0/0), fell back: none program=5d2bb6a7 victory_gpu::hwrt: ray queries lifted 8 of 8 (bvh64 8/8, bvh32 0/0), fell back: none program=bb8b02c4 ``` The world comes up (10,847 draws in frame) and then the device goes, twice, at the same point: ``` Run 1: device removed 84 s after launch Run 2: device removed 75 s after launch ``` ``` ERROR victory_gpu::host: when the host device went: the submitting thread was preparing a submission (nothing of ours was running on the card), of 1 lists, for 0.6 ms ERROR victory_gpu::host: relay: device lost before publishing queued GPU work; device removed: The GPU device instance has been suspended. (0x887A0005) ``` **Windows logs nothing.** There is no display-driver reset (no event 4101) and no power transition in the system log in the five minutes around either crash, so this is a D3D12-level removal from inside the RT path rather than a TDR recorded by the driver. ## It is not the structure work, and it is not memory `VICTORY_HW_RT_LIFT=0` keeps the whole hardware path's structure work — the HLE builder, bottom and top level builds, refits, the instances' remap, the index/vertex copies — and lifts no traversal loop, so every ray takes the software walk: ``` ray queries: lifted shaders 0, partly 0, fell back 14 (software) hardware RT: BLAS live 3500 (built 5536, refit 56989, refit->rebuild 69, rehydrated 3255), TLAS live 5 ``` **That run stayed up for the whole test** — more than four minutes parked in the world, 56,989 BLAS refits and 3,500 live BLAS, no device removal, no hitch beyond one 250 ms frame. Same structures, same card, same churn, the only difference being that no loop is lifted into a `RayQuery`. Memory was never tight in the crashing runs either: `hardware RT BLAS memory: budget 1464 MB, live 257 MB (2132 BLAS), pinned 18 MB; evicted 0`, and the title's own working set was unremarkable. The numbers just before the first crash, for reference: ``` hardware RT: BLAS live 2154 (built 2199, refit 2773, refit->rebuild 82, rehydrated 2020), TLAS live 5 (builds 630) hardware RT inputs: index buffers clamped on the card 798, vertex buffers sanitised 8586, geometries given inactive 0 hwrt: built native DXR TLAS tlas_builds=600 blas_builds=1437 blas_refits=2661 blas_update_fb=18 blas_waves=303 blas_prep_ms=4220 ``` ## Reproduce ``` victory.exe play <title>\game_scarlett_master.exe --res 1080to1440 --dlss dlaa \ --set VICTORY_HW_RT=1 ``` Load a save, stay in the world. On this machine the device goes within 75–85 seconds, twice out of two. Add `VICTORY_HW_RT_LIFT=0` and it stops happening. ## Logs Extracts from both runs (hwrt lines and the failure, ANSI stripped): https://gist.github.com/TheBen420/6b498d0ed931bf11766e418045c6c754 Full play logs are `%LOCALAPPDATA%\victory\logs\victory-nvidia-play-20261130-182458-15680.log` (crash) and `victory-nvidia-play-20261130-184557-23808.log` (LIFT=0, survived); I can paste any further part of them. ## Worth knowing The surviving configuration is not slow — it is the fastest thing I have measured on this title. At the same spot and draw count (6,137 against 6,206), parked and untouched: **53.8 ms a frame against 56.5 ms** for my build with the light stand-ins in place. So the card-built structures alone are a small win, and the lifted traversal is the part that would make the title's real ray tracing affordable. That is the piece that removes the device.
Yorivel commented 2026-11-30 19:14:25 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Yorivel on 2026-11-30T19:14:25Z.


Same here on an RTX 4090 (24 GB), driver 621.40, Windows 11 26300, including a clean build of main at 84bd61e2.

  • Clean run: main 84bd61e2 exactly, release, scripts/play-nvidia.ps1 -Fps 30 with its defaults plus VICTORY_HW_RT=1, DLSS off, VICTORY_LIBRARY_MAP=0; its own new VICTORY_CACHE_DIR warmed with the launcher's switches (76,449 pipelines) and a new exe path, so a fresh driver cache too. Device removed (0x887A0005) after ~3 min 07 s of play (moving around an interior area), "nothing of ours was running on the card".
  • Six more runs on a local build of the same main (plus local changes outside the hardware RT path, with my other RT code switched off): removed after 84 s, 100 s, ~3 min (diag build) and ~90 s (debug layer), plus the two below.

Two things that may help:

  1. Debug layer (VICTORY_D3D12_DEBUG=1, diag build): no D3D12 error at all before the removal. Its last message is ID3D12Device::RemoveDevice: Device removal has been triggered for the following reason (DXGI_ERROR_DEVICE_REMOVED: Plug-and-play stop has been exercised on this adapter...). DRED (VICTORY_D3D12_DRED=1): no breadcrumbs, no page fault. No 4101 or nvlddmkm event in the System log either, as you saw.
  2. VICTORY_HW_RT_LIFT=0 did not survive here, but only tested on the local build, while playing rather than parked: removed after ~2.5 min, and with VICTORY_HW_RT_REFIT=0 added after ~1 min 50 s. So the lifted traversal may not be the only trigger, or LIFT=0 only moves it later. I have not run LIFT=0 on clean main yet, so take this with that caveat.

Counters just before one of the local removals: BLAS live ~5,300 (built ~9,800, rehydrated ~3,600), structure copies ~1,600, index buffers clamped on the card ~80,000, vertex buffers sanitised ~630,000; BLAS memory 710–830 MB of 1,536 MB, nothing evicted.

While it runs, the reflections look clearly better than the other paths here. Happy to run more switches or a GPU-based validation run if useful.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7289066413 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4323#issuecomment-7289066413). Originally posted by [Yorivel](https://github.com/Yorivel) on 2026-11-30T19:14:25Z. --- Same here on an RTX 4090 (24 GB), driver 621.40, Windows 11 26300, including a clean build of main at 84bd61e2. - **Clean run:** main 84bd61e2 exactly, release, `scripts/play-nvidia.ps1 -Fps 30` with its defaults plus `VICTORY_HW_RT=1`, DLSS off, `VICTORY_LIBRARY_MAP=0`; its own new `VICTORY_CACHE_DIR` warmed with the launcher's switches (76,449 pipelines) and a new exe path, so a fresh driver cache too. Device removed (0x887A0005) after ~3 min 07 s of play (moving around an interior area), "nothing of ours was running on the card". - **Six more runs** on a local build of the same main (plus local changes outside the hardware RT path, with my other RT code switched off): removed after 84 s, 100 s, ~3 min (diag build) and ~90 s (debug layer), plus the two below. Two things that may help: 1. **Debug layer** (`VICTORY_D3D12_DEBUG=1`, diag build): no D3D12 error at all before the removal. Its last message is `ID3D12Device::RemoveDevice: Device removal has been triggered for the following reason (DXGI_ERROR_DEVICE_REMOVED: Plug-and-play stop has been exercised on this adapter...)`. DRED (`VICTORY_D3D12_DRED=1`): no breadcrumbs, no page fault. No 4101 or nvlddmkm event in the System log either, as you saw. 2. **`VICTORY_HW_RT_LIFT=0` did not survive here**, but only tested on the local build, while playing rather than parked: removed after ~2.5 min, and with `VICTORY_HW_RT_REFIT=0` added after ~1 min 50 s. So the lifted traversal may not be the only trigger, or LIFT=0 only moves it later. I have not run LIFT=0 on clean main yet, so take this with that caveat. Counters just before one of the local removals: BLAS live ~5,300 (built ~9,800, rehydrated ~3,600), structure copies ~1,600, index buffers clamped on the card ~80,000, vertex buffers sanitised ~630,000; BLAS memory 710–830 MB of 1,536 MB, nothing evicted. While it runs, the reflections look clearly better than the other paths here. Happy to run more switches or a GPU-based validation run if useful.
TheBen420 commented 2026-11-30 20:13:17 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by TheBen420 on 2026-11-30T20:13:17Z.


Two more crashes with device-removed tracing on (diagnostics build, VICTORY_D3D12_DRED), and the
signature points somewhere new. Both died the same way, 0x887A0005, while "nothing of ours was running on
the card".

Breadcrumbs came back empty (device-removed data; none), so it is not one bad command. What is loud is
the layer's own counters in the frames just before the death:

copies per frame: 4.2 submissions; 151 title copies 0.1 MB; 214 refreshes 188.1 MB; ... 11670 page faults
copies per frame: 70.0 submissions; 33698 title copies 15.8 MB; 57413 refreshes 54618.0 MB; ... 9365 page faults
copies per frame: 70.4 submissions; 32781 title copies 15.2 MB; 56776 refreshes 54021.2 MB; ... 4860 page faults

On a background where the same counters read 1–2 page faults a frame and 12 refreshes of 11.6 MB, the world
load with hardware RT takes them to thousands of page faults a frame and 57,000 refreshes claiming 54 GB,
and then the device is gone. The last line any run prints before the removal is:

victory_gpu::memory: title memory by address: 0 pages (0 MB) in 0 arenas (16 MB on the card of at most 4096, 0 MB in shared memory), 0 copies in all; per frame 1 dispatches that read, 0 that build

Zero pages in zero arenas, with dispatches that read. So the read side is alive and the mapped title
memory behind it is empty at the moment the device goes. That is consistent with a GPU-side page fault on
title memory the layer has just unmapped or torn down, and with the bisect: with VICTORY_HW_RT_LIFT=0 no
shader reads through the structures, the page-fault rate stays low, and the run survives indefinitely (four
minutes, 56,989 BLAS refits, then sampled stable).

The Windows system log has nothing at all in the minutes around either crash — no display driver reset, no
power event — so this is not the OS resetting the card.

VICTORY_D3D12_DRED=faults recorded no faulting address either, which is why I am reporting the counters
rather than a VA. If it helps, the memory-side switches I have in the tree are VICTORY_MEMORY_CARD_MB,
VICTORY_MEMORY_FLOOR_MB, VICTORY_MEMORY_NEAR, VICTORY_MEMORY_NO_WAIT, VICTORY_MEMORY_OWNED and
VICTORY_MEMORY_MAP; if any of them is meant to hold the arenas mapped while structures reference them, that
is the knob I would try next.

Full logs on request; play logs are victory-nvidia-play-20261130-195309-14640.log and
victory-nvidia-play-20261130-200549-16964.log in %LOCALAPPDATA%\victory\logs\.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7290586626 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4323#issuecomment-7290586626). Originally posted by [TheBen420](https://github.com/TheBen420) on 2026-11-30T20:13:17Z. --- Two more crashes with device-removed tracing on (diagnostics build, `VICTORY_D3D12_DRED`), and the signature points somewhere new. Both died the same way, `0x887A0005`, while "nothing of ours was running on the card". **Breadcrumbs came back empty** (`device-removed data; none`), so it is not one bad command. What is loud is the layer's own counters in the frames just before the death: ``` copies per frame: 4.2 submissions; 151 title copies 0.1 MB; 214 refreshes 188.1 MB; ... 11670 page faults copies per frame: 70.0 submissions; 33698 title copies 15.8 MB; 57413 refreshes 54618.0 MB; ... 9365 page faults copies per frame: 70.4 submissions; 32781 title copies 15.2 MB; 56776 refreshes 54021.2 MB; ... 4860 page faults ``` On a background where the same counters read 1–2 page faults a frame and 12 refreshes of 11.6 MB, the world load with hardware RT takes them to **thousands of page faults a frame and 57,000 refreshes claiming 54 GB**, and then the device is gone. The last line any run prints before the removal is: ``` victory_gpu::memory: title memory by address: 0 pages (0 MB) in 0 arenas (16 MB on the card of at most 4096, 0 MB in shared memory), 0 copies in all; per frame 1 dispatches that read, 0 that build ``` **Zero pages in zero arenas, with dispatches that read.** So the read side is alive and the mapped title memory behind it is empty at the moment the device goes. That is consistent with a GPU-side page fault on title memory the layer has just unmapped or torn down, and with the bisect: with `VICTORY_HW_RT_LIFT=0` no shader reads through the structures, the page-fault rate stays low, and the run survives indefinitely (four minutes, 56,989 BLAS refits, then sampled stable). The Windows system log has nothing at all in the minutes around either crash — no display driver reset, no power event — so this is not the OS resetting the card. `VICTORY_D3D12_DRED=faults` recorded no faulting address either, which is why I am reporting the counters rather than a VA. If it helps, the memory-side switches I have in the tree are `VICTORY_MEMORY_CARD_MB`, `VICTORY_MEMORY_FLOOR_MB`, `VICTORY_MEMORY_NEAR`, `VICTORY_MEMORY_NO_WAIT`, `VICTORY_MEMORY_OWNED` and `VICTORY_MEMORY_MAP`; if any of them is meant to hold the arenas mapped while structures reference them, that is the knob I would try next. Full logs on request; play logs are `victory-nvidia-play-20261130-195309-14640.log` and `victory-nvidia-play-20261130-200549-16964.log` in `%LOCALAPPDATA%\victory\logs\`.
TheBen420 commented 2026-11-30 20:15:00 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by TheBen420 on 2026-11-30T20:15:00Z.


Third crash, and VICTORY_MEMORY_CARD_MB=1024 does not change it: device removed 60 s after launch, same 0x887A0005, same page-fault storm into the world load, and the log still ends with title memory at 0 pages in 0 arenas. I have not found a switch that holds those arenas mapped while structures reference them, so I am leaving this with the bisect and the counters above rather than guessing further.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7290627159 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4323#issuecomment-7290627159). Originally posted by [TheBen420](https://github.com/TheBen420) on 2026-11-30T20:15:00Z. --- Third crash, and `VICTORY_MEMORY_CARD_MB=1024` does not change it: device removed 60 s after launch, same `0x887A0005`, same page-fault storm into the world load, and the log still ends with title memory at 0 pages in 0 arenas. I have not found a switch that holds those arenas mapped while structures reference them, so I am leaving this with the bisect and the counters above rather than guessing further.
TheBen420 commented 2026-11-30 21:15:21 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by TheBen420 on 2026-11-30T21:15:21Z.


Update on e1251c31 (the tip with #4176 in it): the crash is still there, and it is intermittent.

  • Run 1: reached the world, ran a 120 s sample at the ref spot (76.6 ms median, 12.9 fps, 8,602 draws), stayed up for about ten minutes until I killed it myself by mistake with a tool timeout. No device removal.
  • Run 2, same switches, same save: device removed 78 seconds after launch, with a slightly different message:
ERROR victory_gpu::host: relay: the device was lost before fence value 116721 was reached (once it is, every
fence reads u64::MAX); device removed: The GPU device instance has been suspended. (0x887A0005)

So VICTORY_HW_RT=1 on e1251c31 can survive ten minutes and can die in eighty seconds with nothing different between the runs. The bisect from before still holds: VICTORY_HW_RT_LIFT=0 never died in any run, so the lifted traversal remains the suspect, and the failure mode is a submission that never signals its fence.

Worth adding: with RT on, the frame is 76.6 ms at 8,602 draws against 52.1 ms at 5,893 draws with RT off on the same build and spot, and the copies are cheaper with RT on (12.5 ms / 58.3 MB against 16.6 / 67.5) because the light stand-ins stand aside. The picture with RT on is also the best we have seen on this title — the oven and puddle artifacts that the stand-ins leave behind are gone. So this path is worth fixing.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7292137311 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4323#issuecomment-7292137311). Originally posted by [TheBen420](https://github.com/TheBen420) on 2026-11-30T21:15:21Z. --- Update on `e1251c31` (the tip with #4176 in it): the crash is still there, and it is **intermittent**. - Run 1: reached the world, ran a 120 s sample at the ref spot (76.6 ms median, 12.9 fps, 8,602 draws), stayed up for **about ten minutes** until I killed it myself by mistake with a tool timeout. No device removal. - Run 2, same switches, same save: **device removed 78 seconds after launch**, with a slightly different message: ``` ERROR victory_gpu::host: relay: the device was lost before fence value 116721 was reached (once it is, every fence reads u64::MAX); device removed: The GPU device instance has been suspended. (0x887A0005) ``` So `VICTORY_HW_RT=1` on `e1251c31` can survive ten minutes and can die in eighty seconds with nothing different between the runs. The bisect from before still holds: `VICTORY_HW_RT_LIFT=0` never died in any run, so the lifted traversal remains the suspect, and the failure mode is a submission that never signals its fence. Worth adding: with RT on, the frame is 76.6 ms at 8,602 draws against 52.1 ms at 5,893 draws with RT off on the same build and spot, and the copies are *cheaper* with RT on (12.5 ms / 58.3 MB against 16.6 / 67.5) because the light stand-ins stand aside. The picture with RT on is also the best we have seen on this title — the oven and puddle artifacts that the stand-ins leave behind are gone. So this path is worth fixing.
Yorivel commented 2026-11-30 22:31:53 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Yorivel on 2026-11-30T22:31:53Z.


Same on e1251c31 here (RTX 4090, driver 621.40): clean build of that tip, release, VICTORY_HW_RT=1, preload done first. Device removed (0x887A0005) after about 8 minutes of play, so intermittent on this card too, and later than the 1.5–3 min of my earlier runs.

One correction to the arena reading, from this run's log: title memory by address: 0 pages (0 MB) in 0 arenas is in all 21 of its reports, from the first one minutes before the removal. With VICTORY_HW_RT=1 the title's structure builder is off, so those arenas are never filled; the line reads 0 for the whole run and is not a sign of memory being torn down before the crash. (I also had VICTORY_RT_FAULT_MB=8192 set in this run to test that idea; it limits pages in those same arenas, so it changes nothing here.)

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7293968093 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4323#issuecomment-7293968093). Originally posted by [Yorivel](https://github.com/Yorivel) on 2026-11-30T22:31:53Z. --- Same on `e1251c31` here (RTX 4090, driver 621.40): clean build of that tip, release, `VICTORY_HW_RT=1`, preload done first. Device removed (0x887A0005) after about 8 minutes of play, so intermittent on this card too, and later than the 1.5–3 min of my earlier runs. One correction to the arena reading, from this run's log: `title memory by address: 0 pages (0 MB) in 0 arenas` is in all 21 of its reports, from the first one minutes before the removal. With `VICTORY_HW_RT=1` the title's structure builder is off, so those arenas are never filled; the line reads 0 for the whole run and is not a sign of memory being torn down before the crash. (I also had `VICTORY_RT_FAULT_MB=8192` set in this run to test that idea; it limits pages in those same arenas, so it changes nothing here.)
Yorivel commented 2026-11-30 22:49:21 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Yorivel on 2026-11-30T22:49:21Z.


On e1251c31 (RTX 4090, driver 621.40), VICTORY_HW_RT=1 VICTORY_HW_RT_LIFT=0 also loses the device: removed ~1.5 min into the world, same 0x887A0005, "nothing of ours was running on the card", 746 MB BLAS live (4,209), nothing evicted. So the lifted traversal is not required for the crash here; something on the structure side (builds, rehydrates, copies/compaction, refits) is enough.

Also ruled out: memory pressure. With VICTORY_VRAM_BUDGET_MB=16384 it still died after ~2.5 min with 15.6 GB of 24 GB in use. Windows logs no TDR/4101 or dxgkrnl event at any removal, so it doesn't look like a GPU timeout; it looks like the driver removing the device itself.

Next on my side: VICTORY_HW_RT_REFIT=0 on clean main, and a diagnostics build with the debug layer's GPU-based validation.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7294348054 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4323#issuecomment-7294348054). Originally posted by [Yorivel](https://github.com/Yorivel) on 2026-11-30T22:49:21Z. --- On `e1251c31` (RTX 4090, driver 621.40), `VICTORY_HW_RT=1 VICTORY_HW_RT_LIFT=0` also loses the device: removed ~1.5 min into the world, same `0x887A0005`, "nothing of ours was running on the card", 746 MB BLAS live (4,209), nothing evicted. So the lifted traversal is not required for the crash here; something on the structure side (builds, rehydrates, copies/compaction, refits) is enough. Also ruled out: memory pressure. With `VICTORY_VRAM_BUDGET_MB=16384` it still died after ~2.5 min with 15.6 GB of 24 GB in use. Windows logs no TDR/4101 or dxgkrnl event at any removal, so it doesn't look like a GPU timeout; it looks like the driver removing the device itself. Next on my side: `VICTORY_HW_RT_REFIT=0` on clean main, and a diagnostics build with the debug layer's GPU-based validation.
TheBen420 commented 2026-12-01 02:32:35 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by TheBen420 on 2026-12-01T02:32:35Z.


Update on the newest unreleased main (7d93ee07, 37 commits past v2026.11.30.03), release build from source, same card: RTX 4080 SUPER, driver 621.40, Ryzen 7 5800X, 64 GB.

With VICTORY_BVH_BUILDER=1 VICTORY_HW_RT=1 and my usual switches, the device is removed within about 90 seconds of launch, and shortly after reaching the world on the run that got that far. Three different messages across runs: relay: device lost before publishing queued GPU work; no host list for a state prelude; relay: the device was lost before fence value N was reached. Working set climbs to 26–30 GB before each removal, with the title compiling shaders at the same time.

In the same runs water renders fully black with no flicker, and copies rise from about 57 MB to 94.8 MB a frame at the same draw count (about 6,100).

Is the removal expected to be avoided by preparing and warming pipelines before play, rather than letting a first start compile with RT on? I can run whatever sequence you want and report back.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7298728579 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4323#issuecomment-7298728579). Originally posted by [TheBen420](https://github.com/TheBen420) on 2026-12-01T02:32:35Z. --- Update on the newest unreleased main (`7d93ee07`, 37 commits past v2026.11.30.03), release build from source, same card: RTX 4080 SUPER, driver 621.40, Ryzen 7 5800X, 64 GB. With `VICTORY_BVH_BUILDER=1 VICTORY_HW_RT=1` and my usual switches, the device is removed within about 90 seconds of launch, and shortly after reaching the world on the run that got that far. Three different messages across runs: `relay: device lost before publishing queued GPU work`; `no host list for a state prelude`; `relay: the device was lost before fence value N was reached`. Working set climbs to 26–30 GB before each removal, with the title compiling shaders at the same time. In the same runs water renders **fully black with no flicker**, and copies rise from about 57 MB to 94.8 MB a frame at the same draw count (about 6,100). Is the removal expected to be avoided by preparing and warming pipelines before play, rather than letting a first start compile with RT on? I can run whatever sequence you want and report back.
rvrvrvr221 commented 2026-12-01 08:59:36 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by rvrvrvr221 on 2026-12-01T08:59:36Z.


Three more on an RTX 4090 (driver 621.40), with the official v2026.11.30.03 victory.exe, plus one detail I haven't seen mentioned here.

PC: Core i9-13900K, RTX 4090 24 GB, 32 GB DDR5-6400, Windows 11 Pro (build 26300). Series X, 2560x1440, DLSS Balanced (preset M), 30 fps cap, VICTORY_HW_RT=1 with VICTORY_BVH_BUILDER=1 (hardware RT kept, the title's builder off).

Run Frame generation Device removed after launch Card memory at the last report
1 on 11:03 17.8 of 22.2 GB
2 on 1:32 15.0 of 23.4 GB
3 off 3:04 17.3 of 22.1 GB

All three: relay: device lost before publishing queued GPU work; device removed: The GPU device instance has been suspended. (0x887A0005).

The detail: in runs 1 and 2 the removal came right after a burst of this warning, 16 lines each:

WARN victory_gpu::hwrt: hwrt: failed to decode title meshlet IB; geometry given inactive rehydrate=false dest=0x... ib=0x... index_count=21

In run 2 all 16 were in the second before the removal. In run 1 they started about 3 minutes before it and continued up to the second before. Run 3 has none, so it isn't needed for the removal, but it may point at which geometry is being worked on when it happens.

For contrast, the same PC with hardware RT off (launcher defaults, but at DLSS Quality, no frame cap, VICTORY_WATER_LIGHT=1) had no device removal in 9 starts of the same boat scene; 2 of those 9 ended with the 0x80070057 close in #4575 instead.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7306061520 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4323#issuecomment-7306061520). Originally posted by [rvrvrvr221](https://github.com/rvrvrvr221) on 2026-12-01T08:59:36Z. --- Three more on an RTX 4090 (driver 621.40), with the official v2026.11.30.03 `victory.exe`, plus one detail I haven't seen mentioned here. PC: Core i9-13900K, RTX 4090 24 GB, 32 GB DDR5-6400, Windows 11 Pro (build 26300). Series X, 2560x1440, DLSS Balanced (preset M), 30 fps cap, `VICTORY_HW_RT=1` with `VICTORY_BVH_BUILDER=1` (hardware RT kept, the title's builder off). | Run | Frame generation | Device removed after launch | Card memory at the last report | |---|---|---|---| | 1 | on | 11:03 | 17.8 of 22.2 GB | | 2 | on | 1:32 | 15.0 of 23.4 GB | | 3 | off | 3:04 | 17.3 of 22.1 GB | All three: `relay: device lost before publishing queued GPU work; device removed: The GPU device instance has been suspended. (0x887A0005)`. The detail: in runs 1 and 2 the removal came right after a burst of this warning, 16 lines each: ``` WARN victory_gpu::hwrt: hwrt: failed to decode title meshlet IB; geometry given inactive rehydrate=false dest=0x... ib=0x... index_count=21 ``` In run 2 all 16 were in the second before the removal. In run 1 they started about 3 minutes before it and continued up to the second before. Run 3 has none, so it isn't needed for the removal, but it may point at which geometry is being worked on when it happens. For contrast, the same PC with hardware RT off (launcher defaults, but at DLSS Quality, no frame cap, `VICTORY_WATER_LIGHT=1`) had no device removal in 9 starts of the same boat scene; 2 of those 9 ended with the `0x80070057` close in #4575 instead.
rvrvrvr221 commented 2026-12-01 09:11:40 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by rvrvrvr221 on 2026-12-01T09:11:40Z.


One more on the same RTX 4090 (driver 621.40, official v2026.11.30.03), this time without hardware RT: VICTORY_BVH_BUILDER=1 alone, VICTORY_HW_RT unset. Same settings as my runs above otherwise (Series X, 2560x1440, DLSS Balanced, 30 fps cap, frame generation off).

The title's structure builder ran (the ray-tracing structure builder runs: all of its programs have host pipelines), and the device was removed 3:39 after launch, with the same signature as the hardware path:

ERROR victory_gpu::host: when the host device went: the submitting thread was preparing a submission (nothing of ours was running on the card), of 1 lists, for 0.3 ms
ERROR victory_gpu::host: relay: the device was lost before fence value 83756 was reached (once it is, every fence reads u64::MAX); device removed: The GPU device instance has been suspended. (0x887A0005)

Steady 30 fps just before, card memory 19.1 of 22.2 GB.

Only this run has the #2945 warning, 80 times, about every 100 frames up to the removal:

WARN victory_gpu::memory: title memory by address: shaders touched pages that had no copy (those accesses read 0 or were dropped); those that are the title's are there now frame=... pages=5..60 made=0..2

None in the VICTORY_HW_RT=1 runs or the 9 runs with ray tracing off. One run only, so it may be a side effect of the builder rather than the cause, but it suggests the removal isn't specific to the hardware path: with either path on, this PC lost the device within 1.5 to 11 minutes, and with both off it didn't.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7306347648 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4323#issuecomment-7306347648). Originally posted by [rvrvrvr221](https://github.com/rvrvrvr221) on 2026-12-01T09:11:40Z. --- One more on the same RTX 4090 (driver 621.40, official v2026.11.30.03), this time **without** hardware RT: `VICTORY_BVH_BUILDER=1` alone, `VICTORY_HW_RT` unset. Same settings as my runs above otherwise (Series X, 2560x1440, DLSS Balanced, 30 fps cap, frame generation off). The title's structure builder ran (`the ray-tracing structure builder runs: all of its programs have host pipelines`), and the device was removed 3:39 after launch, with the same signature as the hardware path: ``` ERROR victory_gpu::host: when the host device went: the submitting thread was preparing a submission (nothing of ours was running on the card), of 1 lists, for 0.3 ms ERROR victory_gpu::host: relay: the device was lost before fence value 83756 was reached (once it is, every fence reads u64::MAX); device removed: The GPU device instance has been suspended. (0x887A0005) ``` Steady 30 fps just before, card memory 19.1 of 22.2 GB. Only this run has the #2945 warning, 80 times, about every 100 frames up to the removal: ``` WARN victory_gpu::memory: title memory by address: shaders touched pages that had no copy (those accesses read 0 or were dropped); those that are the title's are there now frame=... pages=5..60 made=0..2 ``` None in the `VICTORY_HW_RT=1` runs or the 9 runs with ray tracing off. One run only, so it may be a side effect of the builder rather than the cause, but it suggests the removal isn't specific to the hardware path: with either path on, this PC lost the device within 1.5 to 11 minutes, and with both off it didn't.
TheBen420 commented 2026-12-01 10:37:24 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by TheBen420 on 2026-12-01T10:37:24Z.


Four arms of the two ray-tracing switches on the newest main, with video-memory traces.

Hardware: RTX 4080 SUPER 16 GB, driver 621.40, Ryzen 7 5800X, 64 GB, Windows 11. Series X profile, 1080p scene upscaled to 1440p, DLSS DLAA, no frame generation.

Build: unreleased main de21ed57, release built from source. Arm 4 is the same commit built with --features diagnostics.

Per arm: shader cache deleted and rebuilt (victory shaders — 25,789 translated, 196 that do not translate, about 105 s), machine powered off and back on, one switch changed.

arm VICTORY_BVH_BUILDER VICTORY_HW_RT time in world before removal median frame copies
1 1 0 ~2 min 102.7 ms 58 MB
2 1 1 ~15 min 85.3 ms 110 MB
3 0 1 ~4 min 85.8 ms 91 MB
4 (diagnostics, VICTORY_D3D12_DEBUG=1, both on) 1 1 23 min, stopped by hand, no removal — —

Arms 1–3 all end in relay: device lost before publishing queued GPU work, or the device was lost before fence value N was reached (0x887A0005).

Video memory, from arm 4's log, which reports the card's budget and use every few seconds:

start        in use    81 MB   budget 15,277 MB
+ 74 s       in use 13,000 MB
+ 3 m 40 s   in use 14,400 MB   (the F1 advisor reads "VIDEO MEMORY IS FULL (14.4 OF 14.7 GB)")
+ 5 m 40 s   in use 14,700 MB   budget 15,144 MB
peak         in use 15,863 MB of 16,376 MB total (97 %)

So the card reached 97 % and the session did not die: exhausted video memory alone is not sufficient. Arm 2's system working set climbed about 0.7 GB a minute until its removal; arm 4's peaked at 36.6 GB during load, was trimmed, and settled at 31–32 GB.

Rendering, in every RT arm and every configuration: water is fully black — not dark — and close up its silhouette breaks into black triangles; distant foliage is black too. Unchanged with VICTORY_AMBIENT and VICTORY_AMBIENT_SPECULAR on or off, and with hardware traversal on or off.

Questions.

  1. Is the diagnostics build outlasting the release build because the debug layer serialises work — i.e. is it masking the fault rather than avoiding it? If so, what should I attach instead so the device loss names its command?
  2. Is anything in relay known to fail specifically under this level of video-memory pressure? The removals cluster where the budget is nearly spent, but arm 4 sat at 97 % for twenty minutes without one.

No game data or screenshots attached, per the asset policy.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7308464655 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4323#issuecomment-7308464655). Originally posted by [TheBen420](https://github.com/TheBen420) on 2026-12-01T10:37:24Z. --- Four arms of the two ray-tracing switches on the newest main, with video-memory traces. **Hardware:** RTX 4080 SUPER 16 GB, driver 621.40, Ryzen 7 5800X, 64 GB, Windows 11. Series X profile, 1080p scene upscaled to 1440p, DLSS DLAA, no frame generation. **Build:** unreleased main `de21ed57`, release built from source. Arm 4 is the same commit built with `--features diagnostics`. **Per arm:** shader cache deleted and rebuilt (`victory shaders` — 25,789 translated, 196 that do not translate, about 105 s), machine powered off and back on, one switch changed. | arm | `VICTORY_BVH_BUILDER` | `VICTORY_HW_RT` | time in world before removal | median frame | copies | |---|---|---|---|---|---| | 1 | 1 | 0 | ~2 min | 102.7 ms | 58 MB | | 2 | 1 | 1 | ~15 min | 85.3 ms | 110 MB | | 3 | 0 | 1 | ~4 min | 85.8 ms | 91 MB | | 4 (diagnostics, `VICTORY_D3D12_DEBUG=1`, both on) | 1 | 1 | 23 min, stopped by hand, **no removal** | — | — | Arms 1–3 all end in `relay: device lost before publishing queued GPU work`, or `the device was lost before fence value N was reached` (0x887A0005). **Video memory**, from arm 4's log, which reports the card's budget and use every few seconds: ``` start in use 81 MB budget 15,277 MB + 74 s in use 13,000 MB + 3 m 40 s in use 14,400 MB (the F1 advisor reads "VIDEO MEMORY IS FULL (14.4 OF 14.7 GB)") + 5 m 40 s in use 14,700 MB budget 15,144 MB peak in use 15,863 MB of 16,376 MB total (97 %) ``` So the card reached 97 % and the session did not die: exhausted video memory alone is not sufficient. Arm 2's system working set climbed about 0.7 GB a minute until its removal; arm 4's peaked at 36.6 GB during load, was trimmed, and settled at 31–32 GB. **Rendering, in every RT arm and every configuration:** water is fully black — not dark — and close up its silhouette breaks into black triangles; distant foliage is black too. Unchanged with `VICTORY_AMBIENT` and `VICTORY_AMBIENT_SPECULAR` on or off, and with hardware traversal on or off. **Questions.** 1. Is the diagnostics build outlasting the release build because the debug layer serialises work — i.e. is it masking the fault rather than avoiding it? If so, what should I attach instead so the device loss names its command? 2. Is anything in `relay` known to fail specifically under this level of video-memory pressure? The removals cluster where the budget is nearly spent, but arm 4 sat at 97 % for twenty minutes without one. No game data or screenshots attached, per the asset policy.
rvrvrvr221 commented 2026-12-01 13:00:33 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by rvrvrvr221 on 2026-12-01T13:00:33Z.


Follow-up from the same RTX 4090 (driver 621.40), on @TheBen420's two questions and the timing.

#4337 doesn't stop it here. Isolated A/B of #4337 against its parent v2026.11.30.03, VICTORY_HW_RT=1 VICTORY_BVH_BUILDER=1: device lost in 3 of 3 runs with it and 2 of 3 without, at the same times (details in https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4337#issuecomment-7311258139).

The clock starts with the 3D world, not with launch. In the release with both switches on:

  • Four of the six runs above lost the device 2:34 to 3:22 after launch, each 1:54 to 2:37 after the first frame with a full scene (over 1,000 draws).
  • One more run sat in the main menu for 5 minutes (11 draws a frame, steady 30 fps, no loss), then went in and skipped the cutscenes: lost about 2:10 after the first full-scene frame, about 15 s after reaching the boat. Watching the cutscenes instead, the loss comes before the boat (one run, 2:37 after the first full-scene frame).
  • The graphics driver was restarted (Win+Ctrl+Shift+B) just before that run; it made no difference.

So skipping cutscenes doesn't avoid it, and idle time doesn't count towards it. The two runs that lasted 10 to 13 minutes are the exceptions; I can't tell from the logs what was different about them.

This may also explain why #4337 looked like a fix in shorter tests: the runs in https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4337#issuecomment-7297773692 lasted up to 82 s each, and on this card the loss came 1:54 to 2:37 into the scene.

On question 1 (does the debug layer mask it?): a data point from a different failure on this PC. The 0x80070057 close in #4575 ended 2 of 6 release starts with VICTORY_WAVE_FOLDED=1; with a diagnostics build of the same commit and VICTORY_D3D12_DEBUG=1, 0 of 3 starts, with the layer active throughout (it logged about 1.8 million messages, almost all id=538 resource-state errors). Like arm 4 above, it looks like the layer's slowdown hides these intermittent failures rather than naming them.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7311968487 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4323#issuecomment-7311968487). Originally posted by [rvrvrvr221](https://github.com/rvrvrvr221) on 2026-12-01T13:00:33Z. --- Follow-up from the same RTX 4090 (driver 621.40), on @TheBen420's two questions and the timing. **#4337 doesn't stop it here.** Isolated A/B of #4337 against its parent v2026.11.30.03, `VICTORY_HW_RT=1 VICTORY_BVH_BUILDER=1`: device lost in 3 of 3 runs with it and 2 of 3 without, at the same times (details in https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4337#issuecomment-7311258139). **The clock starts with the 3D world, not with launch.** In the release with both switches on: - Four of the six runs above lost the device 2:34 to 3:22 after launch, each 1:54 to 2:37 after the first frame with a full scene (over 1,000 draws). - One more run sat in the main menu for 5 minutes (11 draws a frame, steady 30 fps, no loss), then went in and skipped the cutscenes: lost about 2:10 after the first full-scene frame, about 15 s after reaching the boat. Watching the cutscenes instead, the loss comes before the boat (one run, 2:37 after the first full-scene frame). - The graphics driver was restarted (Win+Ctrl+Shift+B) just before that run; it made no difference. So skipping cutscenes doesn't avoid it, and idle time doesn't count towards it. The two runs that lasted 10 to 13 minutes are the exceptions; I can't tell from the logs what was different about them. This may also explain why #4337 looked like a fix in shorter tests: the runs in https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4337#issuecomment-7297773692 lasted up to 82 s each, and on this card the loss came 1:54 to 2:37 into the scene. **On question 1 (does the debug layer mask it?):** a data point from a different failure on this PC. The `0x80070057` close in #4575 ended 2 of 6 release starts with `VICTORY_WAVE_FOLDED=1`; with a diagnostics build of the same commit and `VICTORY_D3D12_DEBUG=1`, 0 of 3 starts, with the layer active throughout (it logged about 1.8 million messages, almost all `id=538` resource-state errors). Like arm 4 above, it looks like the layer's slowdown hides these intermittent failures rather than naming them.
transbinaryunicorn-sys commented 2026-12-01 16:53:16 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by transbinaryunicorn-sys on 2026-12-01T16:53:16Z.


Data point from Linux, same time window: on this machine the hang shows up as an NVIDIA Xid 109 instead of 0x887A0005.

Setup: RTX 5090 32 GB, driver 615.78.08, Xeon w7-3465X, Linux (Nobara). GE-Proton11-14 with gabeparra's ntdll/wineserver patches (victory-4090's scripts/linux/build-wine.sh), vkd3d-proton master. Build: main 5fabb46e plus a local loader fix (the SSE4a race of #4195, nothing GPU-side), normal release build, no diagnostics. Series X, 4K output, DLSS Performance, FG 3x. Same save for every run.

HW RT comes up cleanly under vkd3d-proton too: XboxBvhBuilder constructed (hardware DXR 1.1), 14 programs lifted, 0 fell back, BLAS/TLAS built (~5,000–7,000 BLAS, 450–850 MB of the 1,536 MB budget). Skipped draws drop from ~1,200 to 1 per frame.

Hangs (kernel log): NVRM: Xid 109 … CTX SWITCH TIMEOUT with the game's pid, then the GPU sits at 0 % while our CPU threads keep logging. Time after launch: 78 s, 95 s, 84 s, the same window as in this issue.

Runs Result
VICTORY_HW_RT=1, refit on, warm caches 2 of 2 ran 8–10 min, no hang
VICTORY_HW_RT_REFIT=0, warm caches 2 of 2 hung (Xid 109, 78 s / 95 s)
refit on, cold driver shader cache 1 of 1 hung (84 s)
VICTORY_HW_RT_LIFT=0 ran through (matches "LIFT=0 survives")

So besides the lifted traversal, two more things push it over the edge here: full rebuilds (REFIT=0) and a cold start. Both mean a lot of BVH build work on the card at once. That fits a context-switch timeout from long, non-preemptible dispatches (a guess, not proven).

Stalls: compute pipelines: this frame waited its most for them; waited_ms=3000–6000, 54 times in the first RT run and 26 in the second. pipeline library … load_ms_each=243: even loading the large RT pipelines from the library takes that long.

Linux pitfall that caused the "cold cache" runs: NVIDIA's shader disk cache is shared and defaults to ~1 GB. The RT pipelines pushed it over the limit, and it got cleared (once mid-run), so the next start compiled everything again and hung. A separate path with a bigger limit fixes that:

export __GL_SHADER_DISK_CACHE_PATH=<own folder>
export __GL_SHADER_DISK_CACHE_SIZE=10737418240
export __GL_SHADER_DISK_CACHE_SKIP_CLEANUP=1

Related, not this issue: with HW RT on, the giant stretched dark-brown polygons coming out of the player model (#2185) appear constantly, even with LIFT=0. VICTORY_LATE_WAIT_LISTS=64 removes them here as well, at about 40 % of the frame rate (12.5 fps, 33 ms a frame waiting for the card).

Bildschirmfoto_20261201_173040 Bildschirmfoto_20261201_172847
<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7318400942 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4323#issuecomment-7318400942). Originally posted by [transbinaryunicorn-sys](https://github.com/transbinaryunicorn-sys) on 2026-12-01T16:53:16Z. --- Data point from Linux, same time window: on this machine the hang shows up as an NVIDIA **Xid 109** instead of `0x887A0005`. **Setup:** RTX 5090 32 GB, driver 615.78.08, Xeon w7-3465X, Linux (Nobara). GE-Proton11-14 with gabeparra's ntdll/wineserver patches (victory-4090's `scripts/linux/build-wine.sh`), vkd3d-proton master. Build: `main` 5fabb46e plus a local loader fix (the SSE4a race of #4195, nothing GPU-side), normal release build, no diagnostics. Series X, 4K output, DLSS Performance, FG 3x. Same save for every run. **HW RT comes up cleanly under vkd3d-proton too:** `XboxBvhBuilder constructed (hardware DXR 1.1)`, 14 programs lifted, 0 fell back, BLAS/TLAS built (~5,000–7,000 BLAS, 450–850 MB of the 1,536 MB budget). Skipped draws drop from ~1,200 to 1 per frame. **Hangs (kernel log):** `NVRM: Xid 109 … CTX SWITCH TIMEOUT` with the game's pid, then the GPU sits at 0 % while our CPU threads keep logging. Time after launch: **78 s, 95 s, 84 s**, the same window as in this issue. | Runs | Result | |---|---| | `VICTORY_HW_RT=1`, refit on, warm caches | 2 of 2 ran 8–10 min, no hang | | `VICTORY_HW_RT_REFIT=0`, warm caches | **2 of 2 hung** (Xid 109, 78 s / 95 s) | | refit on, **cold** driver shader cache | **1 of 1 hung** (84 s) | | `VICTORY_HW_RT_LIFT=0` | ran through (matches "LIFT=0 survives") | So besides the lifted traversal, two more things push it over the edge here: full rebuilds (`REFIT=0`) and a cold start. Both mean a lot of BVH build work on the card at once. That fits a context-switch timeout from long, non-preemptible dispatches (a guess, not proven). **Stalls:** `compute pipelines: this frame waited its most for them; waited_ms=3000–6000`, 54 times in the first RT run and 26 in the second. `pipeline library … load_ms_each=243`: even loading the large RT pipelines from the library takes that long. **Linux pitfall that caused the "cold cache" runs:** NVIDIA's shader disk cache is shared and defaults to ~1 GB. The RT pipelines pushed it over the limit, and it got cleared (once mid-run), so the next start compiled everything again and hung. A separate path with a bigger limit fixes that: ``` export __GL_SHADER_DISK_CACHE_PATH=<own folder> export __GL_SHADER_DISK_CACHE_SIZE=10737418240 export __GL_SHADER_DISK_CACHE_SKIP_CLEANUP=1 ``` **Related, not this issue:** with HW RT on, the giant stretched dark-brown polygons coming out of the player model (#2185) appear constantly, even with `LIFT=0`. `VICTORY_LATE_WAIT_LISTS=64` removes them here as well, at about 40 % of the frame rate (12.5 fps, 33 ms a frame waiting for the card). <img width="3697" height="2044" alt="Bildschirmfoto_20261201_173040" src="https://github.com/user-attachments/assets/484eeb70-c2a9-4132-9852-716ed4e39ae1" /> <img width="3711" height="2066" alt="Bildschirmfoto_20261201_172847" src="https://github.com/user-attachments/assets/dee12405-c0fa-41b9-8df5-2f755dfb9e93" />
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
trustno1-coder/VIctory-NVIDIA#4323
No description provided.