RTX 3090: ray tracing freezes the driver at frame 2 (process cannot be ended); the early low-memory reservation causes it, VICTORY_LOW_EARLY_MB=0 avoids it #2973

Open
opened 2026-11-29 19:13:35 +00:00 by github-bot · 3 comments
Owner

@⁠JohnNajar on GitHub · 2026-11-29 19:08 UTC · original

Hardware: RTX 3090 24 GB (driver 621.40), Core i9-9900K, 48 GB RAM, Windows 11 build 26300, page file fixed at 64 GB.
Build: v2026.11.29.01 (829188e9), built from source. It has two local changes, neither in the ray-tracing path: the stack dumper enabled in release builds, and a shader translator retry for one shader that never ran in these runs.
Settings: Series S, DLSS Quality, FSR 3 frame generation x2, VICTORY_BVH_BUILDER=1.

What happens

With ray tracing on, the game froze about 8 seconds after start, at frame 2, before the title screen. It did so in 3 runs of 3. In each run:

  • The log's last frame line is frame presented ... frame=2. In one run nothing else followed. In two, only the compile memory reporter kept writing, every 5 s.
  • The GPU sat idle (about 2 % in nvidia-smi). The game logged no device removal. I couldn't check the system event log for a TDR, because that query hung as well.
  • The process could not be ended: Task Manager's End task, Stop-Process and CloseMainWindow all failed. Soon after, anything that lists processes hung too (tasklist, Task Manager, the stack dumper's thread enumeration).
  • Windows' restart hung, including shutdown /r /f and a direct NtShutdownSystem(ShutdownReboot). Each time the PC needed a hard power-off.

All of this looks like a GPU queue waiting on something that never comes, with the driver unable to tear the process down.

What causes it on this PC

Run Result
VICTORY_BVH_BUILDER=1 (defaults), 3 runs froze at frame 2, every time
+ VICTORY_CARD_STEPS=0 still froze at frame 2
+ VICTORY_LOW_EARLY_MB=0, 2 runs no freeze: ran 4 minutes each and reached the world (frame 8192 and 32768)

The only difference in the working runs is the early reservation in upload.rs reserve_early. With the builder on, it defaults to 3,200 MB: low memory reserved early (VICTORY_LOW_EARLY_MB) mb=3200 pieces=50, so fifty 64 MiB reservations with MEM_WRITE_WATCH, committed whole later by from_early. Without it, this PC never logged no room left below 2^37 for memory shaders read by address. The builder still ran (the ray-tracing structure builder runs: all of its programs have host pipelines).

I have not found why the reservation deadlocks the driver here; I can only say that turning it off avoids it. Possibly a 24 GB card simply doesn't need it, since the comment says the room ran out on an RTX 4090. If the reservation is still wanted where room runs out, one option is to make it smaller, or to make it only after a no room left warning.

Workaround: add VICTORY_LOW_EARLY_MB=0 to %LOCALAPPDATA%\victory\victory-settings.txt.

Ray tracing performance once it runs (same PC, Series S, DLSS Quality)

Rendered fps Per frame
Ray tracing off 18.5 average, 19.9 median (FSR FG: about 40 shown) frame-generated, no stalls
Ray tracing on, first run (cold cache) 0.2–0.7 about 2,070 pipelines "being made" all through the run
Ray tracing on, after victory warm (84,935 pipelines, 8 min) 6.5–7.9 (about 14 shown with FG) 57–70 ms on the GPU, the card 99 % busy; preparing 48–54 ms (copies about 20 ms, 53–61 MB)

So once it runs, ray tracing here is limited by the card's work in the emulated structure builder. That fits #1370.

  • #2602: an RTX 3080 10 GB has the device removed on every ray-tracing run.
  • #2193: an RTX 4090 with ray tracing gets 0x887A0005.
  • #1370: the builder fills the card.

Those are device removals after minutes, not a freeze at frame 2, but they share the builder.

Logs (with personal paths removed) are available on request.

**@⁠JohnNajar** on GitHub · 2026-11-29 19:08 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/2973) **Hardware:** RTX 3090 24 GB (driver 621.40), Core i9-9900K, 48 GB RAM, Windows 11 build 26300, page file fixed at 64 GB. **Build:** v2026.11.29.01 (`829188e9`), built from source. It has two local changes, neither in the ray-tracing path: the stack dumper enabled in release builds, and a shader translator retry for one shader that never ran in these runs. **Settings:** Series S, DLSS Quality, FSR 3 frame generation x2, `VICTORY_BVH_BUILDER=1`. ### What happens With ray tracing on, the game froze about 8 seconds after start, **at frame 2**, before the title screen. It did so in 3 runs of 3. In each run: - The log's last frame line is `frame presented ... frame=2`. In one run nothing else followed. In two, only the `compile memory` reporter kept writing, every 5 s. - The GPU sat idle (about 2 % in `nvidia-smi`). The game logged no device removal. I couldn't check the system event log for a TDR, because that query hung as well. - The process **could not be ended**: Task Manager's End task, `Stop-Process` and `CloseMainWindow` all failed. Soon after, anything that lists processes hung too (`tasklist`, Task Manager, the stack dumper's thread enumeration). - Windows' restart hung, including `shutdown /r /f` and a direct `NtShutdownSystem(ShutdownReboot)`. Each time the PC needed a hard power-off. All of this looks like a GPU queue waiting on something that never comes, with the driver unable to tear the process down. ### What causes it on this PC | Run | Result | |---|---| | `VICTORY_BVH_BUILDER=1` (defaults), 3 runs | froze at frame 2, every time | | + `VICTORY_CARD_STEPS=0` | still froze at frame 2 | | + **`VICTORY_LOW_EARLY_MB=0`**, 2 runs | **no freeze**: ran 4 minutes each and reached the world (frame 8192 and 32768) | The only difference in the working runs is the early reservation in `upload.rs` `reserve_early`. With the builder on, it defaults to 3,200 MB: `low memory reserved early (VICTORY_LOW_EARLY_MB) mb=3200 pieces=50`, so fifty 64 MiB reservations with `MEM_WRITE_WATCH`, committed whole later by `from_early`. Without it, this PC never logged `no room left below 2^37 for memory shaders read by address`. The builder still ran (`the ray-tracing structure builder runs: all of its programs have host pipelines`). I have not found *why* the reservation deadlocks the driver here; I can only say that turning it off avoids it. Possibly a 24 GB card simply doesn't need it, since the comment says the room ran out on an RTX 4090. If the reservation is still wanted where room runs out, one option is to make it smaller, or to make it only after a `no room left` warning. **Workaround:** add `VICTORY_LOW_EARLY_MB=0` to `%LOCALAPPDATA%\victory\victory-settings.txt`. ### Ray tracing performance once it runs (same PC, Series S, DLSS Quality) | | Rendered fps | Per frame | |---|---|---| | Ray tracing off | 18.5 average, 19.9 median (FSR FG: about 40 shown) | frame-generated, no stalls | | Ray tracing on, first run (cold cache) | 0.2–0.7 | about 2,070 pipelines "being made" all through the run | | Ray tracing on, after `victory warm` (84,935 pipelines, 8 min) | **6.5–7.9** (about 14 shown with FG) | **57–70 ms on the GPU, the card 99 % busy**; preparing 48–54 ms (copies about 20 ms, 53–61 MB) | So once it runs, ray tracing here is limited by the card's work in the emulated structure builder. That fits #1370. ### Possibly related - #2602: an RTX 3080 10 GB has the device removed on every ray-tracing run. - #2193: an RTX 4090 with ray tracing gets `0x887A0005`. - #1370: the builder fills the card. Those are device removals after minutes, not a freeze at frame 2, but they share the builder. Logs (with personal paths removed) are available on request.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 19:13:35 +00:00
Author
Owner

@⁠github-actions[bot] on GitHub · 2026-11-29 19:09 UTC · original

Please attach both logs from the run that went wrong. Without them we can only guess. Paste %LOCALAPPDATA% into the address bar of File Explorer to get there.

  1. The play log, in %LOCALAPPDATA%\victory\logs\: the newest victory-nvidia-play-<date>-<time>-<number>.log (from victory.exe) or victory-nvidia-<date>-<time>.log (from the script launcher). The window shows its path at the start, on the line Log: ....
  2. The crash log: %LOCALAPPDATA%\VIctory\data\7952987A\crashes.log, and, if there is one from that run, the newest victory-<date>-<time>-<number>.crash.log in %LOCALAPPDATA%\VIctory\data\7952987A\temp\.

Also say which GPU, Windows version (10 or 11)

**@⁠github-actions[bot]** on GitHub · 2026-11-29 19:09 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/2973#issuecomment-7261049425) Please attach both logs from the run that went wrong. Without them we can only guess. Paste `%LOCALAPPDATA%` into the address bar of File Explorer to get there. 1. The play log, in `%LOCALAPPDATA%\victory\logs\`: the newest `victory-nvidia-play-<date>-<time>-<number>.log` (from `victory.exe`) or `victory-nvidia-<date>-<time>.log` (from the script launcher). The window shows its path at the start, on the line `Log: ...`. 2. The crash log: `%LOCALAPPDATA%\VIctory\data\7952987A\crashes.log`, and, if there is one from that run, the newest `victory-<date>-<time>-<number>.crash.log` in `%LOCALAPPDATA%\VIctory\data\7952987A\temp\`. Also say which GPU, Windows version (10 or 11)
Author
Owner

@⁠JohnNajar on GitHub · 2026-11-29 19:24 UTC · original

Both play logs, with personal paths replaced by %USERPROFILE%, in one gist: https://gist.github.com/JohnNajar/6e17f485afbfe756479222f4a22d2f9c

  1. 1-freeze-at-frame-2-default.log: a run with VICTORY_BVH_BUILDER=1 and the defaults. low memory reserved early (VICTORY_LOW_EARLY_MB) mb=3200 pieces=50 at start. The last frame line is frame=2 at 17:40:20; after that only the compile memory reporter writes, every 5 s. The process could not be ended. This run also had VICTORY_STACKS=8,...,90, but the dumper never printed: its thread enumeration hung like tasklist.
  2. 2-works-VICTORY_LOW_EARLY_MB-0.log: the same settings plus VICTORY_LOW_EARLY_MB=0, after victory warm. It ran 4 minutes, ending at frame 8192, 6.5-7.9 fps, with no no room left below 2^37 warning.

No crash log: the freezes never reached a crash, and crashes.log has no entry from these runs.

**@⁠JohnNajar** on GitHub · 2026-11-29 19:24 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/2973#issuecomment-7261257662) Both play logs, with personal paths replaced by `%USERPROFILE%`, in one gist: https://gist.github.com/JohnNajar/6e17f485afbfe756479222f4a22d2f9c 1. `1-freeze-at-frame-2-default.log`: a run with `VICTORY_BVH_BUILDER=1` and the defaults. `low memory reserved early (VICTORY_LOW_EARLY_MB) mb=3200 pieces=50` at start. The last frame line is `frame=2` at 17:40:20; after that only the `compile memory` reporter writes, every 5 s. The process could not be ended. This run also had `VICTORY_STACKS=8,...,90`, but the dumper never printed: its thread enumeration hung like `tasklist`. 2. `2-works-VICTORY_LOW_EARLY_MB-0.log`: the same settings plus `VICTORY_LOW_EARLY_MB=0`, after `victory warm`. It ran 4 minutes, ending at frame 8192, 6.5-7.9 fps, with no `no room left below 2^37` warning. No crash log: the freezes never reached a crash, and `crashes.log` has no entry from these runs.
Author
Owner

@⁠JohnNajar on GitHub · 2026-11-29 20:49 UTC · original

Follow-up with numbers from the same PC (RTX 3090 24 GB, i9-9900K, 48 GB RAM) on v2026.11.29.02, built from source with #2993. Series S, DLSS Quality, VICTORY_LOW_EARLY_MB=0, about 10-minute unattended runs walking through the world (scripted keys).

Setup Rendered fps (avg / median) Shown Notes
FSR 3 frame generation x2 13.6 / 13.8 ~27 worst 5 % 11.7, no frame under 5 fps
+ the five switches from #2842 (FILL_TITLE, GPU_DETILE, HEAP_HOOKS, SETTLE_UNLOCKED, WAIT_SPIN=500) 14.0 / 14.4 ~28 +3 %, within noise on this PC: "waiting for flights" was already about 4 ms here, not the 18-30 ms of #2842
DLSS frame generation through MFG Unlocker, its Multiplier=3 (RTXMFG-UI.ini) 16.6 / 17.1 60-73 (title bar: "12 fps (frame gen 73 fps)") about 4.4 frames shown per present over the run
+ ray tracing (VICTORY_BVH_BUILDER=1) 6.5 / 6.4 ~41 (title bar: "7 fps (frame gen 41 fps)") device removed (0x887A0005) after about 4 minutes in the world, at a present (dlfgPresent.cpp ... Async present failed)

Notes:

  • With VICTORY_LOW_EARLY_MB=0, ray tracing no longer freezes at frame 2 on this PC: 0 freezes in 3 runs, against 3 of 3 without it. With FSR frame generation, the ray-tracing runs held 4 minutes without a removal. The one removal so far came with DLSS frame generation and ray tracing together, so it may belong with #2602 / #2193. One run can't tell.
  • Without ray tracing, the frame is bound by victory-submit: about 64 ms of work a frame (refreshes about 20 ms in about 7,800 a frame, 6,700 of them known to copy nothing; copies about 30 ms, about 60 MB). The card idles about 30 % behind it.
  • System commit was the wall before any of this: with a 6.6 GB system-managed page file (commit limit 54 GB), the game's about 33 GB of commit left 0.3 GB free. Host pipelines failed with E_OUTOFMEMORY (the F3 "DRAWS SKIPPED" note), there were 100+ memory-guard refusals, and 3.5 fps. A fixed 64 GB page file removed all of that: 0 refusals, 18-20 fps rendered standing.
**@⁠JohnNajar** on GitHub · 2026-11-29 20:49 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/2973#issuecomment-7262390154) Follow-up with numbers from the same PC (RTX 3090 24 GB, i9-9900K, 48 GB RAM) on **v2026.11.29.02**, built from source with #2993. Series S, DLSS Quality, `VICTORY_LOW_EARLY_MB=0`, about 10-minute unattended runs walking through the world (scripted keys). | Setup | Rendered fps (avg / median) | Shown | Notes | |---|---|---|---| | FSR 3 frame generation x2 | 13.6 / 13.8 | ~27 | worst 5 % 11.7, no frame under 5 fps | | + the five switches from #2842 (`FILL_TITLE`, `GPU_DETILE`, `HEAP_HOOKS`, `SETTLE_UNLOCKED`, `WAIT_SPIN=500`) | 14.0 / 14.4 | ~28 | +3 %, within noise on this PC: "waiting for flights" was already about 4 ms here, not the 18-30 ms of #2842 | | DLSS frame generation through MFG Unlocker, its `Multiplier=3` (`RTXMFG-UI.ini`) | 16.6 / 17.1 | **60-73** (title bar: "12 fps (frame gen 73 fps)") | about 4.4 frames shown per present over the run | | + ray tracing (`VICTORY_BVH_BUILDER=1`) | 6.5 / 6.4 | **~41** (title bar: "7 fps (frame gen 41 fps)") | **device removed (`0x887A0005`) after about 4 minutes in the world**, at a present (`dlfgPresent.cpp ... Async present failed`) | Notes: - With `VICTORY_LOW_EARLY_MB=0`, ray tracing no longer freezes at frame 2 on this PC: 0 freezes in 3 runs, against 3 of 3 without it. With FSR frame generation, the ray-tracing runs held 4 minutes without a removal. The one removal so far came with DLSS frame generation and ray tracing together, so it may belong with #2602 / #2193. One run can't tell. - Without ray tracing, the frame is bound by `victory-submit`: about 64 ms of work a frame (refreshes about 20 ms in about 7,800 a frame, 6,700 of them known to copy nothing; copies about 30 ms, about 60 MB). The card idles about 30 % behind it. - **System commit was the wall before any of this:** with a 6.6 GB system-managed page file (commit limit 54 GB), the game's about 33 GB of commit left 0.3 GB free. Host pipelines failed with `E_OUTOFMEMORY` (the F3 "DRAWS SKIPPED" note), there were 100+ memory-guard refusals, and 3.5 fps. A fixed 64 GB page file removed all of that: 0 refusals, 18-20 fps rendered standing.
This discussion has been locked. Commenting is limited to contributors.
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.

Dependencies

No dependencies set

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