Crash at victory-image-b99f876b74d4a77f.dll+0x23cf683 (write 0x0) ~1 min after entering the world (prologue, Prestream) #1118

Open
opened 2026-11-26 04:20:26 +00:00 by github-bot · 28 comments
Owner

@⁠CaptureLance35 on GitHub · 2026-11-24 15:53 UTC · original

Build: game v1.0.2.1 (930.048.020), diag build of VIctory, Windows 11, Ryzen 5 5600X, RTX 3070 Ti, 32 GB RAM.
The title crashes every time (8 of 8 runs in my crashes.log) with an access violation at victory-image-b99f876b74d4a77f.dll+0x23cf683, write to 0x0, stack +0x2215c35, +0x2215eca, KERNEL32+0x2dda7 (a worker thread). Game's own crash context: frame 824, SRL int_prolo, state Prestream, Game Physical 2182745184/2305818624 (~95%), Pool 591978288/624951280, Unused 0/590348272, TileHeap 3521/6236 Mb, INSTANCE_LIST 13293/45000.
Possibly an allocation failure (null returned and written to). Attached: crashes.log and the title's crash context.

victory-20261124-183228-10332.crash.log

crashes.log

**@⁠CaptureLance35** on GitHub · 2026-11-24 15:53 UTC · [original](https://github.com/Marvisak/VIctory/issues/1118) Build: game v1.0.2.1 (930.048.020), diag build of VIctory, Windows 11, Ryzen 5 5600X, RTX 3070 Ti, 32 GB RAM. The title crashes every time (8 of 8 runs in my crashes.log) with an access violation at victory-image-b99f876b74d4a77f.dll+0x23cf683, write to 0x0, stack +0x2215c35, +0x2215eca, KERNEL32+0x2dda7 (a worker thread). Game's own crash context: frame 824, SRL int_prolo, state Prestream, Game Physical 2182745184/2305818624 (~95%), Pool 591978288/624951280, Unused 0/590348272, TileHeap 3521/6236 Mb, INSTANCE_LIST 13293/45000. Possibly an allocation failure (null returned and written to). Attached: crashes.log and the title's crash context. [victory-20261124-183228-10332.crash.log](https://github.com/user-attachments/files/35348771/victory-20261124-183228-10332.crash.log) [crashes.log](https://github.com/user-attachments/files/35348777/crashes.log)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:20:26 +00:00
Author
Owner

@⁠pickles976 on GitHub · 2026-11-24 15:54 UTC · original

Good news: this is not an allocation bug to hunt — it is a deliberate suicide, mapped and cross-verified on the shared kill-map (this repo's #630), and your own crash context names the class it is killing for.

  • +0x23cf683 is the title's watchdog: mov qword ptr [0], imm32 — an 11-byte instruction designed to fault (write 0x4d8bd421 to address 0), not a null deref. Your stack +0x2215c35 → +0x2215eca → KERNEL32 is the second mapped site — the null-callback path via the global at +0x71b6348 — i.e. the watchdog firing on a worker-thread callback that never completed. Byte-verified across hash-matched copies by three parties including your own fiestorra.
  • Your Game Crash Context is the actual finding: state Prestream, Game Physical 95%, Pool 94.7%, TileHeap 3521/6236 MB — on an 8 GB card the tile heap alone asks for 3.5 GB. That is a memory-pressured Prestream the title kills for after ~1 min, same "dies when streaming starts" family as xcl#1337's budget report: try title_memory_mb-style downscaling on your side (the mip-drop knob from your #1086 row 5, and row 8's smaller windows — less physical pressure reaching Prestream).
  • The decisive experiment is one env var (#917's patch knob): VICTORY_PATCH=<module>:0x23cf683:9090909090909090909090 (11 NOPs) converts the suicide into a continuation — then observe: if frames keep presenting afterwards, the watchdog fired on a transient stall your runtime can tolerate; if the process goes silent within seconds, the GPU was genuinely lost and the watchdog was an honest reporter. Either answer changes what to chase next, and the cohort on this exact wall (our #675 crew, same card even — 3070 Ti) has been asking for exactly that discrimination.
  • One-line screening before deeper analysis (yours, #1054): a tester with TdrLevel=0 hits the same stall as a frozen desktop, not a crash log — keep it in the intake form.

Your 8-of-8 determinism with identical pool counters is itself the best datum: this instance is not timing-sensitive — it is a budget that does not fit.

**@⁠pickles976** on GitHub · 2026-11-24 15:54 UTC · [original](https://github.com/Marvisak/VIctory/issues/1118#issuecomment-7136813485) Good news: this is not an allocation bug to hunt — it is a **deliberate suicide**, mapped and cross-verified on the shared kill-map (this repo's #630), and your own crash context names the class it is killing for. - `+0x23cf683` is the title's watchdog: `mov qword ptr [0], imm32` — an 11-byte instruction *designed* to fault (write `0x4d8bd421` to address 0), not a null deref. Your stack `+0x2215c35 → +0x2215eca → KERNEL32` is the **second mapped site** — the null-callback path via the global at `+0x71b6348` — i.e. the watchdog firing on a worker-thread callback that never completed. Byte-verified across hash-matched copies by three parties including your own fiestorra. - **Your `Game Crash Context` is the actual finding:** `state Prestream`, **Game Physical 95%**, Pool 94.7%, **TileHeap 3521/6236 MB** — on an 8 GB card the tile heap alone asks for 3.5 GB. That is a memory-pressured Prestream the title kills for after ~1 min, same "dies when streaming starts" family as xcl#1337's budget report: try `title_memory_mb`-style downscaling on your side (the mip-drop knob from your #1086 row 5, and row 8's smaller windows — less physical pressure reaching Prestream). - **The decisive experiment is one env var** (#917's patch knob): `VICTORY_PATCH=<module>:0x23cf683:9090909090909090909090` (11 NOPs) converts the suicide into a *continuation* — then observe: if frames keep presenting afterwards, the watchdog fired on a **transient** stall your runtime can tolerate; if the process goes silent within seconds, the GPU was genuinely lost and the watchdog was an honest reporter. Either answer changes what to chase next, and the cohort on this exact wall (our #675 crew, same card even — 3070 Ti) has been asking for exactly that discrimination. - One-line screening before deeper analysis (yours, #1054): a tester with `TdrLevel=0` hits the same stall as a frozen desktop, not a crash log — keep it in the intake form. Your 8-of-8 determinism with identical pool counters is itself the best datum: this instance is not timing-sensitive — it is a budget that does not fit.
Author
Owner

@⁠CaptureLance35 on GitHub · 2026-11-24 17:55 UTC · original · edited 2026-11-24 17:59 UTC

Update: Watchdog patch results (HUGE PROGRESS)
I applied the VICTORY_PATCH to NOP the watchdog instruction (mov qword ptr [0]) as suggested.
Result: The game does NOT crash anymore! It successfully bypasses the Prestream loading and reaches the actual prologue cutscene. Subtitles appear, and audio/logic seems to be running.
However: The 3D world is not rendering (black screen). The VIctory overlay shows the game is running at 28 FPS with only 3 draws/frame (likely just the UI/subtitles).
The attached log shows a massive amount of shader translation and pipeline binding, but no visible 3D geometry.
This confirms the watchdog was correctly detecting a stalled render thread due to missing/broken shader features (or memory pressure), but the engine itself is alive.
Attached is the log from the successful (but black screen) run.

2026-11-24T174903.232505Z INFO vic.txt
victory-20261124-205035-8236.crash.log

**@⁠CaptureLance35** on GitHub · 2026-11-24 17:55 UTC · [original](https://github.com/Marvisak/VIctory/issues/1118#issuecomment-7139908571) · edited 2026-11-24 17:59 UTC Update: Watchdog patch results (HUGE PROGRESS) I applied the VICTORY_PATCH to NOP the watchdog instruction (mov qword ptr [0]) as suggested. Result: The game does NOT crash anymore! It successfully bypasses the Prestream loading and reaches the actual prologue cutscene. Subtitles appear, and audio/logic seems to be running. However: The 3D world is not rendering (black screen). The VIctory overlay shows the game is running at 28 FPS with only 3 draws/frame (likely just the UI/subtitles). The attached log shows a massive amount of shader translation and pipeline binding, but no visible 3D geometry. This confirms the watchdog was correctly detecting a stalled render thread due to missing/broken shader features (or memory pressure), but the engine itself is alive. Attached is the log from the successful (but black screen) run. [2026-11-24T174903.232505Z INFO vic.txt](https://github.com/user-attachments/files/35360979/2026-11-24T174903.232505Z.INFO.vic.txt) [victory-20261124-205035-8236.crash.log](https://github.com/user-attachments/files/35361131/victory-20261124-205035-8236.crash.log)
Author
Owner

@⁠Aminou973 on GitHub · 2026-11-24 18:00 UTC · original

Same kill on an RTX 3080 10 GB (driver 621.14, Windows 11), bittertea0323/VIctory try/wave64 diag build with VICTORY_WAVE64_EMULATE=emulate + VICTORY_TEXTURE_MIP_DROP=1: 0 refused pipelines, no TDR, intro story SRL in Prestream, Game Physical 2182462320/2305818624 (identical to the report above), watchdog +0x23cf683 at frame 1967.

VICTORY_STACKS=60,90: title-main waits in the watchdog's own function (+0x23cf735, via +0x56a0d, a wait on an event); all 15 job workers are idle (+0x221c3c2) and all 9 dstorage threads are idle. Nothing is working on what main waits for, so a completion that is never signalled (a fence or a DirectStorage request) looks more likely than memory pressure.

(AI-assisted analysis; measured on my own copy, no game data attached.)

**@⁠Aminou973** on GitHub · 2026-11-24 18:00 UTC · [original](https://github.com/Marvisak/VIctory/issues/1118#issuecomment-7140016790) Same kill on an RTX 3080 10 GB (driver 621.14, Windows 11), `bittertea0323/VIctory` `try/wave64` diag build with `VICTORY_WAVE64_EMULATE=emulate` + `VICTORY_TEXTURE_MIP_DROP=1`: 0 refused pipelines, no TDR, intro story SRL in Prestream, Game Physical 2182462320/2305818624 (identical to the report above), watchdog `+0x23cf683` at frame 1967. `VICTORY_STACKS=60,90`: `title-main` waits in the watchdog's own function (`+0x23cf735`, via `+0x56a0d`, a wait on an event); all 15 job workers are idle (`+0x221c3c2`) and all 9 dstorage threads are idle. Nothing is working on what main waits for, so a completion that is never signalled (a fence or a DirectStorage request) looks more likely than memory pressure. (AI-assisted analysis; measured on my own copy, no game data attached.)
Author
Owner

@⁠CaptureLance35 on GitHub · 2026-11-24 18:02 UTC · original

Wow, excellent analysis! Thanks for testing this. So it's a deadlock in the DirectStorage/fence synchronization rather than a pure memory issue. This is a huge clue for the dev

**@⁠CaptureLance35** on GitHub · 2026-11-24 18:02 UTC · [original](https://github.com/Marvisak/VIctory/issues/1118#issuecomment-7140067344) Wow, excellent analysis! Thanks for testing this. So it's a deadlock in the DirectStorage/fence synchronization rather than a pure memory issue. This is a huge clue for the dev
Author
Owner

@⁠CaptureLance35 on GitHub · 2026-11-24 18:11 UTC · original · edited 2026-11-24 18:13 UTC

Confirmed: It's a deadlock, not just a memory issue

I tested the VICTORY_TEXTURE_MIP_DROP=1 flag along with the Watchdog patch (VICTORY_PATCH).
Result: The game successfully loaded into the prologue cutscene (subtitles appeared, running at ~28 FPS), but after about 2 minutes, it hard froze on a black screen.

The emulator log abruptly ends without any crash error. This perfectly confirms @⁠Aminou973's analysis: without the watchdog to kill the process, the engine just waits forever for a DirectStorage/fence completion signal that never arrives. The log also shows a WARN victory_gpu::list: texture to buffer copies not implemented, which might be related to the stalled thread.

The game logic is alive, but the streaming/render pipeline deadlocks. We'll have to wait for a code fix regarding DirectStorage fences or texture copy implementations.

Update: Tested VICTORY_TEXTURE_MIP_DROP=1 and Watchdog patch

I ran the game with both the Watchdog patch (VICTORY_PATCH) and the texture downscaling flag (VICTORY_TEXTURE_MIP_DROP=1).

Results:

  1. The game successfully bypassed the initial crash and loaded into the intro prologue cutscene (subtitles displayed, running at ~28 FPS for about 1.5 minutes).
  2. However, it eventually hard-froze on a black screen. The emulator log just stops abruptly (classic deadlock, as @⁠Aminou973 pointed out).
  3. Looking at the game's internal crash context (victory-...crash.log), the memory is STILL pegged at 95% (2182787488/2305818624), even with the MIP_DROP flag. The TileHeap is at 3638MB.

This confirms that the MIP_DROP flag doesn't reduce memory pressure enough to prevent the deadlock. The game's streaming thread stalls, and without the watchdog to kill it, it hangs forever.

Attaching the new crash.log and the tail end of crashes.log.

2026-11-24T174903.248793Z INFO vic.txt

crashes.log

victory-20261124-210515-19996.crash.log

**@⁠CaptureLance35** on GitHub · 2026-11-24 18:11 UTC · [original](https://github.com/Marvisak/VIctory/issues/1118#issuecomment-7140291231) · edited 2026-11-24 18:13 UTC Confirmed: It's a deadlock, not just a memory issue I tested the VICTORY_TEXTURE_MIP_DROP=1 flag along with the Watchdog patch (VICTORY_PATCH). Result: The game successfully loaded into the prologue cutscene (subtitles appeared, running at ~28 FPS), but after about 2 minutes, it hard froze on a black screen. The emulator log abruptly ends without any crash error. This perfectly confirms @⁠Aminou973's analysis: without the watchdog to kill the process, the engine just waits forever for a DirectStorage/fence completion signal that never arrives. The log also shows a WARN victory_gpu::list: texture to buffer copies not implemented, which might be related to the stalled thread. The game logic is alive, but the streaming/render pipeline deadlocks. We'll have to wait for a code fix regarding DirectStorage fences or texture copy implementations. **Update: Tested VICTORY_TEXTURE_MIP_DROP=1 and Watchdog patch** I ran the game with both the Watchdog patch (`VICTORY_PATCH`) and the texture downscaling flag (`VICTORY_TEXTURE_MIP_DROP=1`). **Results:** 1. The game successfully bypassed the initial crash and loaded into the intro prologue cutscene (subtitles displayed, running at ~28 FPS for about 1.5 minutes). 2. However, it eventually hard-froze on a black screen. The emulator log just stops abruptly (classic deadlock, as @⁠Aminou973 pointed out). 3. Looking at the game's internal crash context (`victory-...crash.log`), the memory is STILL pegged at 95% (`2182787488/2305818624`), even with the MIP_DROP flag. The TileHeap is at 3638MB. This confirms that the `MIP_DROP` flag doesn't reduce memory pressure enough to prevent the deadlock. The game's streaming thread stalls, and without the watchdog to kill it, it hangs forever. Attaching the new `crash.log` and the tail end of `crashes.log`. [2026-11-24T174903.248793Z INFO vic.txt](https://github.com/user-attachments/files/35361518/2026-11-24T174903.248793Z.INFO.vic.txt) [crashes.log](https://github.com/user-attachments/files/35361587/crashes.log) [victory-20261124-210515-19996.crash.log](https://github.com/user-attachments/files/35361590/victory-20261124-210515-19996.crash.log)
Author
Owner

@⁠Aminou973 on GitHub · 2026-11-24 18:24 UTC · original

Follow-up on the stall: two candidates ruled out here, one left.

  • A list's bottom-of-pipe write landing on a fence's value address (only signal() wakes SetEventOnCompletion waiters): instrumented host.rs to wake waiters after deferred writes; never triggered.
  • DirectStorage queue slot 0x28 (EnqueueSignal) is missing, but the title never calls it in this run.
  • Readbacks: copy_texture_region drops texture-to-buffer copies (host_resource(dst) is None). Counting them: the title issues one about every frame, always into the same buffer (dst=0xfd9f5d430, footprint form), from the first loading frames until the watchdog (64 dropped by the end of a ~100 s run). A title that waits on that readback's contents would explain a wait nobody completes. Working on an implementation (host readback buffer, copied into the title's buffer after the submission), will report.

RTX 3080 10 GB, driver 621.14, try/wave64 diag. (AI-assisted, no game data.)

**@⁠Aminou973** on GitHub · 2026-11-24 18:24 UTC · [original](https://github.com/Marvisak/VIctory/issues/1118#issuecomment-7140605295) Follow-up on the stall: two candidates ruled out here, one left. - A list's bottom-of-pipe write landing on a fence's value address (only `signal()` wakes `SetEventOnCompletion` waiters): instrumented `host.rs` to wake waiters after deferred writes; never triggered. - DirectStorage queue slot 0x28 (EnqueueSignal) is `missing`, but the title never calls it in this run. - **Readbacks**: `copy_texture_region` drops texture-to-buffer copies (`host_resource(dst)` is None). Counting them: the title issues one about every frame, always into the same buffer (`dst=0xfd9f5d430`, footprint form), from the first loading frames until the watchdog (64 dropped by the end of a ~100 s run). A title that waits on that readback's contents would explain a wait nobody completes. Working on an implementation (host readback buffer, copied into the title's buffer after the submission), will report. RTX 3080 10 GB, driver 621.14, `try/wave64` diag. (AI-assisted, no game data.)
Author
Owner

@⁠CaptureLance35 on GitHub · 2026-11-24 18:32 UTC · original

Thanks for tracking that down, @⁠Aminou973! That makes total sense given the texture to buffer copies not implemented warning and the game hanging right after loading into the cutscene.

Let me know once you have the readback implementation ready—I'll be happy to test a new build and share the logs.

**@⁠CaptureLance35** on GitHub · 2026-11-24 18:32 UTC · [original](https://github.com/Marvisak/VIctory/issues/1118#issuecomment-7140784548) Thanks for tracking that down, @⁠Aminou973! That makes total sense given the `texture to buffer copies not implemented` warning and the game hanging right after loading into the cutscene. Let me know once you have the readback implementation ready—I'll be happy to test a new build and share the logs.
Author
Owner

@⁠Aminou973 on GitHub · 2026-11-24 18:39 UTC · original

Readback implemented (texture to title buffer through a host READBACK buffer, copied after the submission; no more "texture to buffer copies not implemented"), but here it does not move the kill: still Prestream, watchdog at frame 1660. Reading the title's code: main waits in +0x23ceeb0 on the object at global +0xa210cf8 (relative to the image base), which a dedicated worker thread (entry +0x23cefb0) should complete, and by 90 s no thread runs that worker. So it seems to exit early without completing. Breaking on it next. Happy to push the readback change to a branch if you want to try it anyway.

**@⁠Aminou973** on GitHub · 2026-11-24 18:39 UTC · [original](https://github.com/Marvisak/VIctory/issues/1118#issuecomment-7140942457) Readback implemented (texture to title buffer through a host READBACK buffer, copied after the submission; no more "texture to buffer copies not implemented"), but here it does not move the kill: still Prestream, watchdog at frame 1660. Reading the title's code: main waits in `+0x23ceeb0` on the object at global `+0xa210cf8` (relative to the image base), which a dedicated worker thread (entry `+0x23cefb0`) should complete, and by 90 s no thread runs that worker. So it seems to exit early without completing. Breaking on it next. Happy to push the readback change to a branch if you want to try it anyway.
Author
Owner

@⁠CaptureLance35 on GitHub · 2026-11-24 18:44 UTC · original

Makes sense—no need to push the readback branch just yet since it still stalls at the same Prestream spot. I'll wait to hear what turns up from breaking on +0x23cefb0. Thanks for digging into this!

**@⁠CaptureLance35** on GitHub · 2026-11-24 18:44 UTC · [original](https://github.com/Marvisak/VIctory/issues/1118#issuecomment-7141075897) Makes sense—no need to push the readback branch just yet since it still stalls at the same Prestream spot. I'll wait to hear what turns up from breaking on `+0x23cefb0`. Thanks for digging into this!
Author
Owner

@⁠Aminou973 on GitHub · 2026-11-24 19:00 UTC · original

Correction to my last comment: the worker (+0x23cefb0) does not exit. Later snapshots (taken past 100 s) show it alive and blocked: +0x23cf4f2 → … → +0x2474ff4 → +0x2a442d. Just before that it was inside the host D3D12 runtime (via victory.exe+0x183e21).

What it waits on, from the title's code at +0x2a4380: a turn (ticket) gate. The 64-bit counter at +0x75e5ed8 (image-relative) must reach the caller's ticket (rbx). The thread holding that turn then adds its count (lock cmpxchg), writes a 0x50-byte entry into a 256-slot ring (index at +0x75e5ed4, wraps at 0x100) and kicks it (+0x4da9930). The counter is only advanced inside this gate.

So main waits for the worker, and the worker waits for a turn whose earlier holder never came through. A ticket taken by a path that then failed would do this, for example one that hit an unimplemented method (this run logs device slots 0x218 and 0x1c8 as not implemented) or a dropped pipeline. Looking for where the tickets are handed out next.

**@⁠Aminou973** on GitHub · 2026-11-24 19:00 UTC · [original](https://github.com/Marvisak/VIctory/issues/1118#issuecomment-7141469341) Correction to my last comment: the worker (`+0x23cefb0`) does not exit. Later snapshots (taken past 100 s) show it alive and blocked: `+0x23cf4f2 → … → +0x2474ff4 → +0x2a442d`. Just before that it was inside the host D3D12 runtime (via `victory.exe+0x183e21`). What it waits on, from the title's code at `+0x2a4380`: a turn (ticket) gate. The 64-bit counter at `+0x75e5ed8` (image-relative) must reach the caller's ticket (`rbx`). The thread holding that turn then adds its count (`lock cmpxchg`), writes a 0x50-byte entry into a 256-slot ring (index at `+0x75e5ed4`, wraps at 0x100) and kicks it (`+0x4da9930`). The counter is only advanced inside this gate. So main waits for the worker, and the worker waits for a turn whose earlier holder never came through. A ticket taken by a path that then failed would do this, for example one that hit an unimplemented method (this run logs device slots 0x218 and 0x1c8 as not implemented) or a dropped pipeline. Looking for where the tickets are handed out next.
Author
Owner

@⁠YaBulochka on GitHub · 2026-11-24 19:26 UTC · original

Same fault on Linux/RADV, reached with all pipeline crashes removed first - so this is not a Windows/NVIDIA-only path.

Title 1.0.2.1, Series X dump
OS Linux, Wine 11.22 in a Proton 11.0 prefix, vkd3d-proton from Proton
GPU RX 7600 XT, RADV from Mesa 26.3.1
Tree ffe310e + #994 + #491
  • Fault: 0xc0000005, write to 0x0, at victory-image-...+0x23cf683, Current SRL State: Prestream Metadata, around frame 1165.
  • Before it the title plays the intro's title cards, then the prologue (prison scene, audio and logic), then the pause menu draws at 28 draws/frame and 2 fps. So the title is otherwise alive when it reaches Prestream.
  • No OOM and no allocation-failure line: the run sits inside a 12 GB cgroup that is never hit, and ends in the same Prestream state you describe.
  • The pipeline journal is what gets us there: three pipelines refused (4e296b1885c37b29, 8bb272e763f76148, 02384a60fda6f2d0), no vkCreate* crash left.

Your turn-gate reading matches what we see: the main thread waits in Prestream and the dedicated worker never finishes. One extra data point that rules the descriptor side out: with #1548 the same run reports 507,328 title slot past the host heap ... for_draw=false warnings and zero for_draw=true, so no draw loses its slot - and the Prestream stop is unchanged.

If the ticket is a turn the title expects a compute or copy submission to complete, the next thing I can try here is VICTORY_DEBUG_PS=1 + VICTORY_NO_WATCHDOG=1 (the combination that reaches gameplay in #994) and see whether the turn advances with debug flat shading.

**@⁠YaBulochka** on GitHub · 2026-11-24 19:26 UTC · [original](https://github.com/Marvisak/VIctory/issues/1118#issuecomment-7142106321) Same fault on Linux/RADV, reached with all pipeline crashes removed first - so this is not a Windows/NVIDIA-only path. | | | |---|---| | Title | `1.0.2.1`, Series X dump | | OS | Linux, Wine 11.22 in a Proton 11.0 prefix, vkd3d-proton from Proton | | GPU | RX 7600 XT, RADV from Mesa 26.3.1 | | Tree | `ffe310e` + #994 + #491 | - Fault: `0xc0000005`, write to `0x0`, at `victory-image-...`+`0x23cf683`, `Current SRL State: Prestream Metadata`, around frame 1165. - Before it the title plays the intro's title cards, then the prologue (prison scene, audio and logic), then the pause menu draws at 28 draws/frame and 2 fps. So the title is otherwise alive when it reaches Prestream. - No OOM and no allocation-failure line: the run sits inside a 12 GB cgroup that is never hit, and ends in the same Prestream state you describe. - The pipeline journal is what gets us there: three pipelines refused (`4e296b1885c37b29`, `8bb272e763f76148`, `02384a60fda6f2d0`), no `vkCreate*` crash left. Your turn-gate reading matches what we see: the main thread waits in Prestream and the dedicated worker never finishes. One extra data point that rules the descriptor side out: with #1548 the same run reports 507,328 `title slot past the host heap ... for_draw=false` warnings and **zero** `for_draw=true`, so no draw loses its slot - and the Prestream stop is unchanged. If the ticket is a turn the title expects a compute or copy submission to complete, the next thing I can try here is `VICTORY_DEBUG_PS=1` + `VICTORY_NO_WATCHDOG=1` (the combination that reaches gameplay in #994) and see whether the turn advances with debug flat shading.
Author
Owner

@⁠Aminou973 on GitHub · 2026-11-24 19:43 UTC · original

DRED on the same RTX 3080 (TdrDelay=10): device-removed in a 30-list submission; with VICTORY_GPU_TIMING=1 the last list starts at 5 s in with no commands done and ~1,100 indirect kind 10 draws, each with a mesh pipeline (b7a81f5b96f4ca93/43e24028d4a1faef …); a previous list sat 14 s on computes. So this looks like mesh/ExecuteIndirect GPU work never completing on 32-lane hosts, which matches the slow host list shape and the black world. Bisecting which mesh pipeline hangs with VICTORY_SKIP_PIPELINES next.

**@⁠Aminou973** on GitHub · 2026-11-24 19:43 UTC · [original](https://github.com/Marvisak/VIctory/issues/1118#issuecomment-7142506476) DRED on the same RTX 3080 (TdrDelay=10): device-removed in a 30-list submission; with `VICTORY_GPU_TIMING=1` the last list starts at 5 s in with no commands done and ~1,100 `indirect kind 10` draws, each with a mesh pipeline (`b7a81f5b96f4ca93`/`43e24028d4a1faef` …); a previous list sat 14 s on computes. So this looks like mesh/`ExecuteIndirect` GPU work never completing on 32-lane hosts, which matches the `slow host list` shape and the black world. Bisecting which mesh pipeline hangs with `VICTORY_SKIP_PIPELINES` next.
Author
Owner

@⁠Aminou973 on GitHub · 2026-11-24 19:49 UTC · original

Bisection result: skipping all ~120 shaders of the previous hung batch does not move the kill; the next batch of 28 lists (13 s in, 77 new mesh+pixel pipelines, e.g. 0384efa1b7bcd540/1d96551fdd673db7) device-removes the same way, still in Prestream at frame 1137. So this is not one bad pipeline: many of the title's mesh draws hang this NVIDIA host. Running the D3D12 debug layer next to name the exact command.

**@⁠Aminou973** on GitHub · 2026-11-24 19:49 UTC · [original](https://github.com/Marvisak/VIctory/issues/1118#issuecomment-7142632454) Bisection result: skipping all ~120 shaders of the previous hung batch does not move the kill; the next batch of 28 lists (13 s in, 77 new mesh+pixel pipelines, e.g. `0384efa1b7bcd540`/`1d96551fdd673db7`) device-removes the same way, still in Prestream at frame 1137. So this is not one bad pipeline: many of the title's mesh draws hang this NVIDIA host. Running the D3D12 debug layer next to name the exact command.
Author
Owner

@⁠Aminou973 on GitHub · 2026-11-24 19:53 UTC · original

With VICTORY_D3D12_DEBUG=1 on this build the title asserts at exe+0x19f4f58 (int3, frame 0, before any rendering), and VIctory's log_messages() records no debug-layer errors at all. So this debug layer on the proxy device surfaces a new failing setup call instead of the mesh hang. Has anyone captured debug-layer or debug-device messages from a working (pre-hang) run here?

**@⁠Aminou973** on GitHub · 2026-11-24 19:53 UTC · [original](https://github.com/Marvisak/VIctory/issues/1118#issuecomment-7142729304) With `VICTORY_D3D12_DEBUG=1` on this build the title asserts at `exe+0x19f4f58` (int3, frame 0, before any rendering), and VIctory's `log_messages()` records no debug-layer errors at all. So this debug layer on the proxy device surfaces a new failing setup call instead of the mesh hang. Has anyone captured debug-layer or debug-device messages from a working (pre-hang) run here?
Author
Owner

@⁠Aminou973 on GitHub · 2026-11-24 19:55 UTC · original

Pushed our two fixes to a branch on our fork (Aminou973/VIctory, branch try/wave64-readback, based on try/wave64 + #1059):

  • gpu: texture-to-buffer readbacks, no more "texture to buffer copies not implemented";
  • loader: VICTORY_PATCH panicked on a real entry (range 37549699 out of range for slice of length 11, @⁠CaptureLance35 and I both hit it) — patch::apply passed a slice starting at the patch address while write() indexes from the image start.
    Happy to open proper PRs against the right bases if the maintainers want them.
**@⁠Aminou973** on GitHub · 2026-11-24 19:55 UTC · [original](https://github.com/Marvisak/VIctory/issues/1118#issuecomment-7142794286) Pushed our two fixes to a branch on our fork (`Aminou973/VIctory`, branch `try/wave64-readback`, based on try/wave64 + #1059): - gpu: texture-to-buffer readbacks, no more "texture to buffer copies not implemented"; - loader: `VICTORY_PATCH` panicked on a real entry (`range 37549699 out of range for slice of length 11`, @⁠CaptureLance35 and I both hit it) — `patch::apply` passed a slice starting at the patch address while `write()` indexes from the image start. Happy to open proper PRs against the right bases if the maintainers want them.
Author
Owner

@⁠Aminou973 on GitHub · 2026-11-24 20:02 UTC · original

--console series-s run: the window stays responsive and presenting (frame 4,150 reached, vs ~1,400 before), but the host still gets device-removed in the same 30-list batch shape during Prestream. So the mesh-batch hang on this driver is not a workload-size effect; it's the mesh draw execution itself. Our fork's branch (try/wave64-readback) is current with the readback + VICTORY_PATCH fixes.

**@⁠Aminou973** on GitHub · 2026-11-24 20:02 UTC · [original](https://github.com/Marvisak/VIctory/issues/1118#issuecomment-7142962754) `--console series-s` run: the window stays responsive and presenting (frame 4,150 reached, vs ~1,400 before), but the host still gets device-removed in the same 30-list batch shape during Prestream. So the mesh-batch hang on this driver is not a workload-size effect; it's the mesh draw execution itself. Our fork's branch (`try/wave64-readback`) is current with the readback + VICTORY_PATCH fixes.
Author
Owner

@⁠Ceereals on GitHub · 2026-11-24 20:33 UTC · original

A data point on what the main thread ends up waiting for, from Linux/RADV. It may be a different way into the same stall, so treat it as one more shape rather than the answer.

Setup: RX 9070 XT (RADV, Mesa 26.3.1), Proton Experimental (vkd3d-proton), title 1.0.2.1 Series X. Tree: fxceless/victory-gta6 at 578d459 + #454 (VICTORY_NO_WATCHDOG=1) + a DXC fallback for the runtime HLSL compiles. Diagnostics build, VICTORY_STACKS every 40 s.

What happens: with the watchdog off, the stall does not end. In 2 of 3 such runs the title stopped presenting, 2.6 and 6.6 minutes into the world (SRL state Prestream), and one title worker stayed at 100% CPU until I ended the run. The third run did not stall and ended 9.8 minutes in at +0x63966f (#698). Without #454 an earlier run on this tree died in the watchdog at +0x2215c35 about 4 minutes into Prestream.

Stacks during the stall (identical in six dumps over 4 minutes):

  • the spinning worker: +0x50eb826 ← +0x31962 ← +0x317fd ← +0x25d801b ← +0x221c29c ← +0x2215eca
  • another worker, waiting: +0x55bfc39 ← +0x3d75259 ← +0x63e78 ← +0x4eaa05a ← +0x221c29c ← +0x2215eca
  • the worker from this issue, waiting: +0x43c3d5d ← +0x23cf4f2 ← +0x23cf2d3 ← +0x23cf104 ← +0x2215eca (same +0x23cf4f2 frame as @⁠Aminou973's, a different leaf: no thread of ours is at +0x2a442d)
  • main, waiting: +0x509898d ← +0x7b5a9d ← +0x21b6d0d ← +0x81269b ← +0x53ec040

What the spinning worker is doing, read from the title's code (offsets only):

  • +0x50eb750 looks a key up in a hash table probed in groups of 16 (table pointer at +0x876fc50, group count at +0x876fc48, entry count at +0x876fc4c).
  • The probe loop has no exit for a key that is not there: when a group has no match it goes on to the next group, and it never tests for an empty slot. A missing key spins forever.
  • The key is an entity handle: pool index (17 bits), entity type (5 bits, pool table at +0xabbe7c0) and the generation the pool holds for that index at the time of the lookup.
  • Entries are added by +0x35b70c0 (calls the insert at +0x554f7e0), keyed the same way, with a running index as the value.
  • The second worker above is the routine that empties this table (+0x55bfa00). It is waiting for the lock, so it is not what removed the key.

So in that run the stall is a lookup of an entity that is not in that table. I do not know yet whether it was never added, or was added under an older generation (the pool slot reused between the insert and the lookup). I have a probe for that in the stack dumper and will report what it finds the next time the stall shows.

The stacks are from one run on one machine, and the stall is intermittent here. AI-assisted (Claude Code), measured on my machine with my own copy. Offsets and counts only, no game data.

**@⁠Ceereals** on GitHub · 2026-11-24 20:33 UTC · [original](https://github.com/Marvisak/VIctory/issues/1118#issuecomment-7143720530) A data point on what the main thread ends up waiting for, from Linux/RADV. It may be a different way into the same stall, so treat it as one more shape rather than the answer. **Setup:** RX 9070 XT (RADV, Mesa 26.3.1), Proton Experimental (vkd3d-proton), title 1.0.2.1 Series X. Tree: `fxceless/victory-gta6` at `578d459` + #454 (`VICTORY_NO_WATCHDOG=1`) + a DXC fallback for the runtime HLSL compiles. Diagnostics build, `VICTORY_STACKS` every 40 s. **What happens:** with the watchdog off, the stall does not end. In 2 of 3 such runs the title stopped presenting, 2.6 and 6.6 minutes into the world (SRL state `Prestream`), and one title worker stayed at 100% CPU until I ended the run. The third run did not stall and ended 9.8 minutes in at `+0x63966f` (#698). Without #454 an earlier run on this tree died in the watchdog at `+0x2215c35` about 4 minutes into `Prestream`. **Stacks during the stall** (identical in six dumps over 4 minutes): - the spinning worker: `+0x50eb826 ← +0x31962 ← +0x317fd ← +0x25d801b ← +0x221c29c ← +0x2215eca` - another worker, waiting: `+0x55bfc39 ← +0x3d75259 ← +0x63e78 ← +0x4eaa05a ← +0x221c29c ← +0x2215eca` - the worker from this issue, waiting: `+0x43c3d5d ← +0x23cf4f2 ← +0x23cf2d3 ← +0x23cf104 ← +0x2215eca` (same `+0x23cf4f2` frame as @⁠Aminou973's, a different leaf: no thread of ours is at `+0x2a442d`) - main, waiting: `+0x509898d ← +0x7b5a9d ← +0x21b6d0d ← +0x81269b ← +0x53ec040` **What the spinning worker is doing**, read from the title's code (offsets only): - `+0x50eb750` looks a key up in a hash table probed in groups of 16 (table pointer at `+0x876fc50`, group count at `+0x876fc48`, entry count at `+0x876fc4c`). - The probe loop has no exit for a key that is not there: when a group has no match it goes on to the next group, and it never tests for an empty slot. A missing key spins forever. - The key is an entity handle: pool index (17 bits), entity type (5 bits, pool table at `+0xabbe7c0`) and the generation the pool holds for that index at the time of the lookup. - Entries are added by `+0x35b70c0` (calls the insert at `+0x554f7e0`), keyed the same way, with a running index as the value. - The second worker above is the routine that empties this table (`+0x55bfa00`). It is waiting for the lock, so it is not what removed the key. So in that run the stall is a lookup of an entity that is not in that table. I do not know yet whether it was never added, or was added under an older generation (the pool slot reused between the insert and the lookup). I have a probe for that in the stack dumper and will report what it finds the next time the stall shows. The stacks are from one run on one machine, and the stall is intermittent here. AI-assisted (Claude Code), measured on my machine with my own copy. Offsets and counts only, no game data.
Author
Owner

@⁠HocotateGuy15 on GitHub · 2026-11-24 20:41 UTC · original

Independent reproduction using WARP on Windows 10 22H2 (19045.7846). Diagnostics build combined #175 (Agility SDK 1.620.2), #189 (54b333f, Wave64 emulation forced), and the GPU changes from #334 (c99e429). I verified the process loaded the Microsoft WARP 1.0.22 app-local DLL. D3D12 debug and DRED were enabled.

The process exited with an unhandled 0xc0000005 write to address zero at +0x23cf683. The next two frames were +0x2215c35 and +0x2215eca, matching the original report. Our crash context reported Game Running, Game Physical 2,151,497,568 / 2,305,818,624 bytes, and TileHeap 2,606 / 6,236 MB. The last logged software-renderer submission took 687 ms. There was no D3D12 device removal in this run and no Windows Display 4101 event at the crash time. The earlier hardware run on the same PC ended with DXGI_ERROR_DEVICE_HUNG (#1096). This records the matching title-side crash under WARP without attributing it to a particular subsystem.

AI-assisted diagnostics and write-up.

**@⁠HocotateGuy15** on GitHub · 2026-11-24 20:41 UTC · [original](https://github.com/Marvisak/VIctory/issues/1118#issuecomment-7143937327) Independent reproduction using WARP on Windows 10 22H2 (19045.7846). Diagnostics build combined #175 (Agility SDK 1.620.2), #189 (54b333f, Wave64 emulation forced), and the GPU changes from #334 (c99e429). I verified the process loaded the Microsoft WARP 1.0.22 app-local DLL. D3D12 debug and DRED were enabled. The process exited with an unhandled 0xc0000005 write to address zero at +0x23cf683. The next two frames were +0x2215c35 and +0x2215eca, matching the original report. Our crash context reported Game Running, Game Physical 2,151,497,568 / 2,305,818,624 bytes, and TileHeap 2,606 / 6,236 MB. The last logged software-renderer submission took 687 ms. There was no D3D12 device removal in this run and no Windows Display 4101 event at the crash time. The earlier hardware run on the same PC ended with DXGI_ERROR_DEVICE_HUNG (#1096). This records the matching title-side crash under WARP without attributing it to a particular subsystem. AI-assisted diagnostics and write-up.
Author
Owner

@⁠Aminou973 on GitHub · 2026-11-24 21:08 UTC · original

RTX 3080 10 GB (driver 621.14, Win 11), the fxceless/victory-gta6 fork (main, diag build, fresh cache): 0x887A0001 (INVALID_CALL) device removal at frame 2,498, still in Prestream; the segment before presented 11,221 draws/frame with no hang, and an earlier run reached 3,610+ frames with no device loss — the upstream 0x887A0006 mesh-batch hang is gone on this card. Immediately before the removal, repeated victory_gpu::descriptor::host: unordered access view of a depth texture resource=0x102127e950 view=Some([56,...]) / view=Some([62,4,0,1,...]) logs — a compute pass taking UAVs of a depth texture. Rerunning with VICTORY_D3D12_DEBUG=1 to name the exact rejected command. Measured on my own copy; no game data. AI-assisted.

**@⁠Aminou973** on GitHub · 2026-11-24 21:08 UTC · [original](https://github.com/Marvisak/VIctory/issues/1118#issuecomment-7144536103) RTX 3080 10 GB (driver 621.14, Win 11), the `fxceless/victory-gta6` fork (main, diag build, fresh cache): **0x887A0001 (INVALID_CALL) device removal at frame 2,498**, still in Prestream; the segment before presented 11,221 draws/frame with no hang, and an earlier run reached 3,610+ frames with no device loss — the upstream 0x887A0006 mesh-batch hang is gone on this card. Immediately before the removal, repeated `victory_gpu::descriptor::host: unordered access view of a depth texture resource=0x102127e950 view=Some([56,...])` / `view=Some([62,4,0,1,...])` logs — a compute pass taking UAVs of a depth texture. Rerunning with `VICTORY_D3D12_DEBUG=1` to name the exact rejected command. Measured on my own copy; no game data. AI-assisted.
Author
Owner

@⁠Jitheswar on GitHub · 2026-11-24 21:24 UTC · original

What the Prestream stop waits on, read from the title's code at ffe310e. Offsets are image-relative, and no game data is included.

The chain, from the stuck worker to VIctory

  1. The worker that main waits on (+0x23cf4f2 … +0x2a442d, per @⁠Aminou973) is a producer waiting for a free ring slot, not a ticket holder. In +0x2a42d0 the counter at +0x75e5ed8 holds the free slots in its high 32 bits. The producer waits for at least one (rbx = 1<<32), takes it (rsi = -1<<32), writes a 0x50-byte entry into a 256-entry ring (base +0x75e0e98, entries at +0x38, write index +0x503c, read index +0x5038, counter +0x5040), then flushes through +0x50bb280.
  2. The flush passes the pending entries and the counter's address to +0x1f6330. That posts a request into a second 96-entry queue (+0x75df2a8, stride 0x48) and wakes its consumer through the semaphore at +0x75e0dd0. Nothing else in the title addresses +0x75e5ed8 by name.
  3. The consumer is a dedicated submission thread: entry +0x2481e90, created by +0x5caba60 with a 32 KiB stack. For each request it calls, on the title's queue object, slot 35 (ExecuteX, command lists batched up to 256), slot 32 (PresentX) and slot 16 (Signal), plus device slot 80 (VIctory's frame::wait, bounded to one tick). Only after those calls return does it give the slots back (+= count<<32 at +0x24825a3).
  4. In VIctory, ExecuteX → execute → Host::execute is synchronous: one submission at a time under submitted, SetEventOnCompletion + WaitForSingleObject(INFINITE) on the host fence, then copy-back (crates/victory-gpu/src/host.rs, the wait in execute).

So when a host submission runs for seconds, or hangs, the title's one submission thread sits inside VIctory. The ring stops refilling, the producer blocks, main waits on the producer, and the watchdog fires. That fits @⁠HeavenPierceHer971's 687 ms WARP submissions, the 8-28 s submission right before the stop in #1232 (and the stop going away under VICTORY_SHADER_LOOP_LIMIT / #452), and "the worker was inside the host D3D12 runtime just before". It also explains why the readback and fence-wake experiments didn't move the stop.

What follows for fixes

  • Shorter GPU time (#452, #579, wave64 fixes) helps, because it shortens how long the thread is held.
  • Making ExecuteX asynchronous is necessary but not enough while PresentX still drains. In #595 (7465030), Host::present calls drain(), and the consumer calls PresentX before it returns slots, so the wait moves from ExecuteX to PresentX. The 16-submission cap (IN_FLIGHT) blocks the same thread again once 16 are in flight. A fix for this stop would need PresentX (and the cap) not to wait for GPU completion on the title's thread.
  • Separately: bottom-of-pipe memory writes to a fence's GPU address update the value but don't wake events armed with SetEventOnCompletion (only Fence::Signal does). #32 covers this, and it's a different hang from this one.

Not verified here: an RTX 3050 6 GB (Linux, Proton 11, vkd3d-proton) can't reach Prestream on main. VRAM fills during the story load (5.86 of 6 GB), and the NVIDIA driver segfaults in vkAllocateMemory/vkCreateComputePipelines (kernel NV_ERR_NO_MEMORY), so the stack at the stop is inferred from the code and the reports above, not captured. Anyone who reaches the stop can confirm with VICTORY_STACKS: thread +0x2481e90 should be inside victory.exe (host execute or present) when the watchdog fires.

AI-assisted analysis (Claude Code, Codex, Antigravity). Offsets only, measured on my own copy.

**@⁠Jitheswar** on GitHub · 2026-11-24 21:24 UTC · [original](https://github.com/Marvisak/VIctory/issues/1118#issuecomment-7144881521) What the Prestream stop waits on, read from the title's code at `ffe310e`. Offsets are image-relative, and no game data is included. **The chain, from the stuck worker to VIctory** 1. The worker that main waits on (`+0x23cf4f2 … +0x2a442d`, per @⁠Aminou973) is a **producer waiting for a free ring slot**, not a ticket holder. In `+0x2a42d0` the counter at `+0x75e5ed8` holds the free slots in its high 32 bits. The producer waits for at least one (`rbx = 1<<32`), takes it (`rsi = -1<<32`), writes a 0x50-byte entry into a 256-entry ring (base `+0x75e0e98`, entries at +0x38, write index +0x503c, read index +0x5038, counter +0x5040), then flushes through `+0x50bb280`. 2. The flush passes the pending entries **and the counter's address** to `+0x1f6330`. That posts a request into a second 96-entry queue (`+0x75df2a8`, stride 0x48) and wakes its consumer through the semaphore at `+0x75e0dd0`. Nothing else in the title addresses `+0x75e5ed8` by name. 3. The consumer is a dedicated submission thread: entry `+0x2481e90`, created by `+0x5caba60` with a 32 KiB stack. For each request it calls, on the title's queue object, slot 35 (`ExecuteX`, command lists batched up to 256), slot 32 (`PresentX`) and slot 16 (`Signal`), plus device slot 80 (VIctory's `frame::wait`, bounded to one tick). Only **after those calls return** does it give the slots back (`+= count<<32` at `+0x24825a3`). 4. In VIctory, `ExecuteX` → `execute` → `Host::execute` is synchronous: one submission at a time under `submitted`, `SetEventOnCompletion` + `WaitForSingleObject(INFINITE)` on the host fence, then copy-back (`crates/victory-gpu/src/host.rs`, the wait in `execute`). So when a host submission runs for seconds, or hangs, the title's one submission thread sits inside VIctory. The ring stops refilling, the producer blocks, main waits on the producer, and the watchdog fires. That fits @⁠HeavenPierceHer971's 687 ms WARP submissions, the 8-28 s submission right before the stop in #1232 (and the stop going away under `VICTORY_SHADER_LOOP_LIMIT` / #452), and "the worker was inside the host D3D12 runtime just before". It also explains why the readback and fence-wake experiments didn't move the stop. **What follows for fixes** - Shorter GPU time (#452, #579, wave64 fixes) helps, because it shortens how long the thread is held. - Making `ExecuteX` asynchronous is necessary but not enough while `PresentX` still drains. In #595 (`7465030`), `Host::present` calls `drain()`, and the consumer calls `PresentX` before it returns slots, so the wait moves from `ExecuteX` to `PresentX`. The 16-submission cap (`IN_FLIGHT`) blocks the same thread again once 16 are in flight. A fix for this stop would need `PresentX` (and the cap) not to wait for GPU completion on the title's thread. - Separately: bottom-of-pipe memory writes to a fence's GPU address update the value but don't wake events armed with `SetEventOnCompletion` (only `Fence::Signal` does). #32 covers this, and it's a different hang from this one. **Not verified here:** an RTX 3050 6 GB (Linux, Proton 11, vkd3d-proton) can't reach Prestream on `main`. VRAM fills during the story load (5.86 of 6 GB), and the NVIDIA driver segfaults in `vkAllocateMemory`/`vkCreateComputePipelines` (kernel `NV_ERR_NO_MEMORY`), so the stack at the stop is inferred from the code and the reports above, not captured. Anyone who reaches the stop can confirm with `VICTORY_STACKS`: thread `+0x2481e90` should be inside `victory.exe` (host execute or present) when the watchdog fires. AI-assisted analysis (Claude Code, Codex, Antigravity). Offsets only, measured on my own copy.
Author
Owner

@⁠Jitheswar on GitHub · 2026-11-24 23:50 UTC · original

Follow-up with live stacks: the stop is now reproduced on an RTX 3050 6 GB laptop (Linux, Proton 11, vkd3d-proton), so this confirms the chain from my earlier comment and says what it waits on.

Tree: ffe310e + #1296 (VICTORY_TEXTURE_MIP_DROP=2, otherwise VRAM fills during the story load) + #595 (7465030) + #491 (VICTORY_PIPELINE_JOURNAL). Over four runs the journal learned two compute pipelines whose creation crashes the NVIDIA Linux driver (exit 3, vkCreateComputePipelines faults; one was 0xc000001d). After that the stop came at 85-146 s, with the same +0x23cf683 ← +0x2215c35 ← +0x2215eca.

Where the threads are (VICTORY_STACKS at 60-90 s, every dump the same):

  • The title's submission thread (+0x2481e90) returns to +0x24824c7. That's right after its call *0x100(%rax), queue slot 32 = PresentX. Inside VIctory it is in Host::present → drain → settle → wait_gpu → WaitForSingleObject.
  • victory-gpu-finisher is in finish_loop → finish → wait_gpu the whole time: the host fence for the oldest submission never completes.
  • Frames stop being presented a few seconds before the watchdog.

So, on this host, what main ends up waiting for is GPU work that never completes. The title's submission thread is held in PresentX (with #595) or ExecuteX (on main), the ring stops refilling, and the watchdog fires. With present changed to wait only for the previous frame (wbkepler/VIctory#5), the thread sits in previous_frame → wait_gpu instead, with the same timing (3 runs each, with and without). That change doesn't fix the stop, which is consistent with the GPU being stuck.

VICTORY_SHADER_LOOP_LIMIT=4096 didn't remove it either (1 run reached the stop at 95 s), so on this card it's not loops running to the 2^20 limit. Runs with #1271 (glc → globally coherent) and with #579 (VICTORY_SKIP_WAVE64=mesh) were cut short by new driver crashes in different pipeline variants, so those two are untested here. Anyone on Windows/NVIDIA who reaches the stop can tell a GPU hang from a CPU-side wait this way: the finisher thread's stack shows it.

AI-assisted (Claude Code). Offsets and counts only, measured on my own copy.

**@⁠Jitheswar** on GitHub · 2026-11-24 23:50 UTC · [original](https://github.com/Marvisak/VIctory/issues/1118#issuecomment-7147852475) Follow-up with live stacks: the stop is now reproduced on an RTX 3050 6 GB laptop (Linux, Proton 11, vkd3d-proton), so this confirms the chain from my earlier comment and says what it waits on. **Tree:** `ffe310e` + #1296 (`VICTORY_TEXTURE_MIP_DROP=2`, otherwise VRAM fills during the story load) + #595 (`7465030`) + #491 (`VICTORY_PIPELINE_JOURNAL`). Over four runs the journal learned two compute pipelines whose creation crashes the NVIDIA Linux driver (exit 3, `vkCreateComputePipelines` faults; one was `0xc000001d`). After that the stop came at 85-146 s, with the same `+0x23cf683 ← +0x2215c35 ← +0x2215eca`. **Where the threads are (`VICTORY_STACKS` at 60-90 s, every dump the same):** - The title's submission thread (`+0x2481e90`) returns to `+0x24824c7`. That's right after its `call *0x100(%rax)`, queue slot 32 = `PresentX`. Inside VIctory it is in `Host::present` → `drain` → `settle` → `wait_gpu` → `WaitForSingleObject`. - `victory-gpu-finisher` is in `finish_loop` → `finish` → `wait_gpu` the whole time: the host fence for the oldest submission never completes. - Frames stop being presented a few seconds before the watchdog. So, on this host, what main ends up waiting for is **GPU work that never completes**. The title's submission thread is held in `PresentX` (with #595) or `ExecuteX` (on `main`), the ring stops refilling, and the watchdog fires. With present changed to wait only for the previous frame (wbkepler/VIctory#5), the thread sits in `previous_frame` → `wait_gpu` instead, with the same timing (3 runs each, with and without). That change doesn't fix the stop, which is consistent with the GPU being stuck. `VICTORY_SHADER_LOOP_LIMIT=4096` didn't remove it either (1 run reached the stop at 95 s), so on this card it's not loops running to the 2^20 limit. Runs with #1271 (glc → globally coherent) and with #579 (`VICTORY_SKIP_WAVE64=mesh`) were cut short by new driver crashes in different pipeline variants, so those two are untested here. Anyone on Windows/NVIDIA who reaches the stop can tell a GPU hang from a CPU-side wait this way: the finisher thread's stack shows it. AI-assisted (Claude Code). Offsets and counts only, measured on my own copy.
Author
Owner

@⁠Jitheswar on GitHub · 2026-11-25 01:08 UTC · original

More from the RTX 3050 6 GB (Linux, Proton 11), same tree as above plus #579. Counts only.

  • Without skips, the stop at +0x23cf683 came in most runs at 85-146 s.
  • With VICTORY_SKIP_WAVE64=mesh (118 wave64 mesh programs skipped): 0 of 5 runs reached that stop. One run kept presenting world frames for 254 s (0.2-1.4 fps, heavy copy-back) and then ended at the title's other watchdog site, +0x2215c35. The other four ended in new NVIDIA-driver faults in vkCreate*Pipelines at 117-136 s (#491's journal still learning them), so they're weak evidence. This matches #1232 (same GPU class: #579 kept the device up) and #778.
  • A bisection over the 118 converged on one program, but skipping only that one still hung in 2 of 3 runs. So more than one wave64 mesh program is involved, or the hang needs several of them together.
  • Reading the converged program: its branches only go forward (no loops), and the only barriers are the one after GS_ALLOC_REQ (already dropped by the no_barrier pass) and one reached by every lane. So if it hangs, it's not a loop that never ends. Candidates are the translated form: barriers or SetMeshOutputCounts reached non-uniformly once the 64-lane group runs as two 32-lane host waves.

So on NVIDIA, the GPU work behind this stop is very likely wave64 mesh programs running on 32-lane hosts (#578 refuses them, #579 skips them, nobody emulates them yet). A real fix is making those programs correct on 32-lane waves. I couldn't pin the exact construct on this host: the Linux driver crashes on other pipelines too often to get clean A/Bs. Windows with a debug layer or DRED would be the place to finish it.

AI-assisted (Claude Code). No game data.

**@⁠Jitheswar** on GitHub · 2026-11-25 01:08 UTC · [original](https://github.com/Marvisak/VIctory/issues/1118#issuecomment-7149239319) More from the RTX 3050 6 GB (Linux, Proton 11), same tree as above plus #579. Counts only. - Without skips, the stop at `+0x23cf683` came in most runs at 85-146 s. - With `VICTORY_SKIP_WAVE64=mesh` (118 wave64 mesh programs skipped): 0 of 5 runs reached that stop. One run kept presenting world frames for 254 s (0.2-1.4 fps, heavy copy-back) and then ended at the title's other watchdog site, `+0x2215c35`. The other four ended in new NVIDIA-driver faults in `vkCreate*Pipelines` at 117-136 s (#491's journal still learning them), so they're weak evidence. This matches #1232 (same GPU class: #579 kept the device up) and #778. - A bisection over the 118 converged on one program, but skipping only that one still hung in 2 of 3 runs. So **more than one** wave64 mesh program is involved, or the hang needs several of them together. - Reading the converged program: its branches only go forward (no loops), and the only barriers are the one after `GS_ALLOC_REQ` (already dropped by the `no_barrier` pass) and one reached by every lane. So if it hangs, it's not a loop that never ends. Candidates are the translated form: barriers or `SetMeshOutputCounts` reached non-uniformly once the 64-lane group runs as two 32-lane host waves. So on NVIDIA, the GPU work behind this stop is very likely wave64 mesh programs running on 32-lane hosts (#578 refuses them, #579 skips them, nobody emulates them yet). A real fix is making those programs correct on 32-lane waves. I couldn't pin the exact construct on this host: the Linux driver crashes on other pipelines too often to get clean A/Bs. Windows with a debug layer or DRED would be the place to finish it. AI-assisted (Claude Code). No game data.
Author
Owner

@⁠Calvix2k on GitHub · 2026-11-25 01:19 UTC · original

Related data for this signature: while testing the Series S multi-plane fix (#211) on Windows 10 + RX 7800 XT, a placed SRV handle (CreatePlacedShaderResourceView) pointed at memory that was not CPU-writable (␀x336f0f60). Guarding descriptor::record against that write made the run continue, and it then hit exactly ictory-image+0x23cf683 (write 0x0) — the skipped placed view was later dereferenced. The fix direction is to map the placed descriptor heap's GPU pages for CPU writes (the console's unified memory allows it), rather than dropping the view.

**@⁠Calvix2k** on GitHub · 2026-11-25 01:19 UTC · [original](https://github.com/Marvisak/VIctory/issues/1118#issuecomment-7149430032) Related data for this signature: while testing the Series S multi-plane fix (#211) on Windows 10 + RX 7800 XT, a placed SRV handle (CreatePlacedShaderResourceView) pointed at memory that was not CPU-writable (␀x336f0f60). Guarding descriptor::record against that write made the run continue, and it then hit exactly ictory-image+0x23cf683 (write 0x0) — the skipped placed view was later dereferenced. The fix direction is to map the placed descriptor heap's GPU pages for CPU writes (the console's unified memory allows it), rather than dropping the view.
Author
Owner

@⁠Jitheswar on GitHub · 2026-11-25 08:47 UTC · original

Where the #1118 stop hangs on NVIDIA under Proton, and how three open PRs behave on it. RTX 3050 6 GB Laptop, Linux, Proton 11, vkd3d-proton. Tree: ffe310e + #1296 (VICTORY_TEXTURE_MIP_DROP=2) + #491 (pipeline journal). Counts, hashes and offsets only; no game data.

It's a real GPU hang inside one command. I added local probes (not in any PR):

  • A finisher-side watch shows the host fence sitting one value short of the waited submission for the whole 30 s. nvidia-smi shows the GPU at 100% for that time and VRAM at 5.1–5.5 of 6 GB, so it isn't idle or out of memory.
  • WriteBufferImmediate markers (MARKER_IN/OUT per noted command, in a mapped readback buffer, zeroed per submission) locate the command. The marker before it is reached, everything before it is done, and the next marker never comes. Every hang was in one of two programs:
    • mesh 92 [mesh d4111a6e6ea49d91, pixel c0a7fe77b1862e10], in 3 of 3 hangs on this tree;
    • with all 118 wave64 mesh programs skipped, dispatch 48x96x1 [compute ef05293f6107fc99], in 2 of 2 (a wave32 program).
  • Both have exactly one loop. The mesh one is a scalar for (i = 0; i < n; i++) over constant-buffer records with two flag exits; the compute one is a per-lane march with exit tests. With VICTORY_SHADER_LOOP_LIMIT=64 both still hang at the same command (2 of 2), so it isn't a bounded loop running long.
  • Ruled out on this tree:
    • Dropping every s_barrier in divergent flow didn't help (6 programs have one; 2 of 2 still hang).
    • Refusing d4111a6e6ea49d91 or skipping all wave64 mesh programs moves the hang to ef05293f6107fc99 rather than removing it. (Earlier I reported the wave64 mesh skip avoiding the stop on a tree with #579; on this tree it doesn't.)

A/B on the same tree, 2 runs each (hands-free, 180 s):

tree watchdog stop outcome
control 2/2 stop at +0x23cf683 (frames 1629, 1655)
+ #1540 2/2 same (1362, 1291); this hang doesn't take its path
+ #1750 0/2 the hang is still there: #1750 reports "host GPU has not finished a submission of 27 lists in 25 s" and ends the run cleanly (frames 1714, 1719), instead of the title's watchdog crash
+ #1799 0/6 inconclusive: all 6 runs ended in NVIDIA driver crashes while creating new pipelines (exit 3, frames 1575–1846), before the point where the hang comes

So on this host #1750 turns the stop into a clear report, but none of the three removes the hang. The next question is what those two loops read that never lets them exit (a wrong descriptor or data the host hasn't filled yet) when they run as translated code.

AI-assisted (Claude Code, with Antigravity for the log analysis). Tested only with my own dump of Grand Theft Auto VI 1.0.2.1.

**@⁠Jitheswar** on GitHub · 2026-11-25 08:47 UTC · [original](https://github.com/Marvisak/VIctory/issues/1118#issuecomment-7157465868) Where the #1118 stop hangs on NVIDIA under Proton, and how three open PRs behave on it. RTX 3050 6 GB Laptop, Linux, Proton 11, vkd3d-proton. Tree: `ffe310e` + #1296 (`VICTORY_TEXTURE_MIP_DROP=2`) + #491 (pipeline journal). Counts, hashes and offsets only; no game data. **It's a real GPU hang inside one command.** I added local probes (not in any PR): - A finisher-side watch shows the host fence sitting one value short of the waited submission for the whole 30 s. `nvidia-smi` shows the GPU at 100% for that time and VRAM at 5.1–5.5 of 6 GB, so it isn't idle or out of memory. - `WriteBufferImmediate` markers (MARKER_IN/OUT per noted command, in a mapped readback buffer, zeroed per submission) locate the command. The marker before it is reached, everything before it is done, and the next marker never comes. Every hang was in one of two programs: - `mesh 92 [mesh d4111a6e6ea49d91, pixel c0a7fe77b1862e10]`, in 3 of 3 hangs on this tree; - with all 118 wave64 mesh programs skipped, `dispatch 48x96x1 [compute ef05293f6107fc99]`, in 2 of 2 (a wave32 program). - Both have exactly one loop. The mesh one is a scalar `for (i = 0; i < n; i++)` over constant-buffer records with two flag exits; the compute one is a per-lane march with exit tests. With `VICTORY_SHADER_LOOP_LIMIT=64` both still hang at the same command (2 of 2), so it isn't a bounded loop running long. - Ruled out on this tree: - Dropping every `s_barrier` in divergent flow didn't help (6 programs have one; 2 of 2 still hang). - Refusing `d4111a6e6ea49d91` or skipping all wave64 mesh programs moves the hang to `ef05293f6107fc99` rather than removing it. (Earlier I reported the wave64 mesh skip avoiding the stop on a tree with #579; on this tree it doesn't.) **A/B on the same tree, 2 runs each (hands-free, 180 s):** | tree | watchdog stop | outcome | |---|---|---| | control | 2/2 | stop at `+0x23cf683` (frames 1629, 1655) | | + #1540 | 2/2 | same (1362, 1291); this hang doesn't take its path | | + #1750 | 0/2 | the hang is still there: #1750 reports "host GPU has not finished a submission of 27 lists in 25 s" and ends the run cleanly (frames 1714, 1719), instead of the title's watchdog crash | | + #1799 | 0/6 | inconclusive: all 6 runs ended in NVIDIA driver crashes while creating new pipelines (exit 3, frames 1575–1846), before the point where the hang comes | So on this host #1750 turns the stop into a clear report, but none of the three removes the hang. The next question is what those two loops read that never lets them exit (a wrong descriptor or data the host hasn't filled yet) when they run as translated code. AI-assisted (Claude Code, with Antigravity for the log analysis). Tested only with my own dump of Grand Theft Auto VI 1.0.2.1.
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 10:04 UTC · original · edited 2026-11-25 15:48 UTC

Automated triage for the maintainers.

This is the oldest report of the stop at +0x23cf683 (write to 0x0, frames +0x2215c35/+0x2215eca) in Prestream, so this thread is where that stop is tracked. The comments establish that it is the title's own watchdog firing, not a null pointer in VIctory. On NVIDIA (RTX 3080, RTX 3050 under Proton), the thing it waits for is GPU work that never completes. On main, Host::execute (crates/victory-gpu/src/host.rs) waits on the host fence with no timeout, so the title's submission thread stays in VIctory and the title's watchdog fires first. Open PR #1750 makes that wait end and report a GPU stall instead. It does not remove the hang. The mesh-draw hang on NVIDIA is tracked in #71. #1232, #1286 and now #2477 (GTX 1060 3 GB) reach this stop on other cards.

New data point (GTX 1060 3 GB, a fork tree with wave64 emulation): with both watchdog sites patched out, the title's crash context shows the world loaded, and the run later ends in a device removal with host textures far above the card's memory. On small cards, texture residency may be a separate wall after this one.

Since these runs, main changed submission order (9cc37c5: queues hold a list until the memory values it waits on are written, crates/victory-gpu/src/hold.rs), which may change which GPU work is in flight when the title waits. A run of current main (da82e44) would show where this stop stands now.

@⁠CaptureLance35, to complete your own run, please add the NVIDIA driver version, the Windows build, and the VIctory commit (git rev-parse HEAD).

Please describe the title's code by offset only; disassembly or bytes of the title's executable must not be posted here.


Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-25 10:04 UTC · [original](https://github.com/Marvisak/VIctory/issues/1118#issuecomment-7159188519) · edited 2026-11-25 15:48 UTC <!-- victory-issue-triage v1 verdict=needs-info seen=2026-11-25T15:18:59Z at=2026-11-25T15:48:02Z --> Automated triage for the maintainers. This is the oldest report of the stop at `+0x23cf683` (write to `0x0`, frames `+0x2215c35`/`+0x2215eca`) in `Prestream`, so this thread is where that stop is tracked. The comments establish that it is the title's own watchdog firing, not a null pointer in VIctory. On NVIDIA (RTX 3080, RTX 3050 under Proton), the thing it waits for is GPU work that never completes. On `main`, `Host::execute` (`crates/victory-gpu/src/host.rs`) waits on the host fence with no timeout, so the title's submission thread stays in VIctory and the title's watchdog fires first. Open PR #1750 makes that wait end and report a GPU stall instead. It does not remove the hang. The mesh-draw hang on NVIDIA is tracked in #71. #1232, #1286 and now #2477 (GTX 1060 3 GB) reach this stop on other cards. New data point (GTX 1060 3 GB, a fork tree with wave64 emulation): with both watchdog sites patched out, the title's crash context shows the world loaded, and the run later ends in a device removal with host textures far above the card's memory. On small cards, texture residency may be a separate wall after this one. Since these runs, `main` changed submission order (9cc37c5: queues hold a list until the memory values it waits on are written, `crates/victory-gpu/src/hold.rs`), which may change which GPU work is in flight when the title waits. A run of current `main` (`da82e44`) would show where this stop stands now. @⁠CaptureLance35, to complete your own run, please add the NVIDIA driver version, the Windows build, and the VIctory commit (`git rev-parse HEAD`). Please describe the title's code by offset only; disassembly or bytes of the title's executable must not be posted here. --- _Generated by [Claude Code](https://claude.ai/code)_
Author
Owner

@⁠nnkmn on GitHub · 2026-11-25 15:18 UTC · original

Data point from a Series X (Anaconda) build on a 3 GB GTX 1060 — a host with no wave64 support, so host waves are 32 lanes. Three things seem worth recording, because they separate problems that all look like "black screen".

1. Both self-kill sites are reachable, and the world does load

NOPing both +0x23cf683 (mov dword ptr [0], 0x4D8BD421) and the sibling at +0x2215c35 (mov qword ptr [0], 0) gets past the watchdog. The title's own crash context then shows the world fully loaded: SRL fbk_stry000_FBK_STRY000_INTRO / State Prestream, player at <1828.47, 139.70, 2.80>, health 130/130, BUILDING 7393/22500, OBJECT 4908/27500, INSTANCE_LIST 18458/45000, TileHeap 2595/6236 MB, Game Physical 2182257472/2305818624 (94.6%). So the "3 draws black screen" state is not "the world failed to build".

2. On a 32-lane host, Wave64 emulation drives compute refusals to zero — and the black screen becomes a white screen

With VICTORY_WAVE64_EMULATE=emulate (PR #189 tree): the 102 host pipeline refused error=参数错误 (0x80070057) lines disappear entirely, and 49 shader translations are refused with

a shader cannot translate: LDS accesses without a uniform LDS fence in split wave64 is not supported

Screen: white, 13 draws/frame, 15 fps. That is the gap PR #192's LDS barrier work would fill, so the remaining work is at least named instead of guessed.

3. Right after world entry most draws are dropped for pipelines that do not exist yet — and they do get made

Same run, first frames inside the world:

3722.3 ms on the GPU, 31 draws/frame,
dropped 2754 without a host pipeline (995 being made), 4281 indirect

Each new pipeline costs 55-3299 ms of CPU. After about eight minutes of leaving it alone, draws/frame had climbed 31 -> 316 while dropped fell only slightly, and per-frame GPU time grew to 10.2 s. Then the driver reset:

host GPU device removed after a submission of 28 lists; no breadcrumbs (0x887A0004);
GPU is not responding to more commands (0x887A0007)

Host textures were 9692 MB at that point on a 3 GB card, so for small-VRAM hosts the wall may be TDR plus texture residency rather than translation — worth knowing before someone spends a night merging the wave64 stack expecting a picture.

The pipeline library does carry across runs: host pipeline library loaded bytes=364252014 ms=225, and the logo splash only stutters while a frame is compiling hundreds of pipelines (audio is fine once the loading screen has a warm cache).

Cross-ref: #2477 is my write-up of the pre-NOP crash.

**@⁠nnkmn** on GitHub · 2026-11-25 15:18 UTC · [original](https://github.com/Marvisak/VIctory/issues/1118#issuecomment-7166648900) Data point from a Series X (Anaconda) build on a 3 GB GTX 1060 — a host with no wave64 support, so host waves are 32 lanes. Three things seem worth recording, because they separate problems that all look like "black screen". ## 1. Both self-kill sites are reachable, and the world does load NOPing both `+0x23cf683` (`mov dword ptr [0], 0x4D8BD421`) and the sibling at `+0x2215c35` (`mov qword ptr [0], 0`) gets past the watchdog. The title's own crash context then shows the world fully loaded: SRL `fbk_stry000_FBK_STRY000_INTRO` / State `Prestream`, player at `<1828.47, 139.70, 2.80>`, health 130/130, BUILDING 7393/22500, OBJECT 4908/27500, INSTANCE_LIST 18458/45000, TileHeap 2595/6236 MB, Game Physical 2182257472/2305818624 (94.6%). So the "3 draws black screen" state is not "the world failed to build". ## 2. On a 32-lane host, Wave64 emulation drives compute refusals to zero — and the black screen becomes a white screen With `VICTORY_WAVE64_EMULATE=emulate` (PR #189 tree): the 102 `host pipeline refused error=参数错误 (0x80070057)` lines disappear entirely, and 49 shader translations are refused with ``` a shader cannot translate: LDS accesses without a uniform LDS fence in split wave64 is not supported ``` Screen: white, 13 draws/frame, 15 fps. That is the gap PR #192's LDS barrier work would fill, so the remaining work is at least named instead of guessed. ## 3. Right after world entry most draws are dropped for pipelines that do not exist yet — and they do get made Same run, first frames inside the world: ``` 3722.3 ms on the GPU, 31 draws/frame, dropped 2754 without a host pipeline (995 being made), 4281 indirect ``` Each new pipeline costs 55-3299 ms of CPU. After about eight minutes of leaving it alone, `draws/frame` had climbed 31 -> 316 while `dropped` fell only slightly, and per-frame GPU time grew to 10.2 s. Then the driver reset: ``` host GPU device removed after a submission of 28 lists; no breadcrumbs (0x887A0004); GPU is not responding to more commands (0x887A0007) ``` Host textures were 9692 MB at that point on a 3 GB card, so for small-VRAM hosts the wall may be TDR plus texture residency rather than translation — worth knowing before someone spends a night merging the wave64 stack expecting a picture. The pipeline library does carry across runs: `host pipeline library loaded bytes=364252014 ms=225`, and the logo splash only stutters while a frame is compiling hundreds of pipelines (audio is fine once the loading screen has a warm cache). Cross-ref: #2477 is my write-up of the pre-NOP crash.
Author
Owner

@⁠krcenov on GitHub · 2026-11-26 15:20 UTC · original

RTX 3070 on Windows 10: capping shader loops at 32 stopped the GPU-wait version of this crash. With the cap, the game then stopped on RAM instead: a full INSTANCE_LIST, and a watchdog stop while paging. Four runs, one change at a time.

Setup:

  • RTX 3070 8 GB (driver 32.0.16.1714), i9-11900K, 32 GB RAM, Windows 10 19045, TdrDelay 60.
  • Title 930.048.020, Series X profile unless noted.
  • main at 63bcca4, plus:
    • an Agility SDK export, needed on Windows 10;
    • the pipeline-library save fix (as in #2328 and #3181), without which RAM ran out before the world.
  • Runs B to D use the diagnostics build, each in its own cache folder.
run change longest submission how it ended game time / frame title's crash context
A none (release build) not logged +0x23cf683 14:08 / 1651 Unsignaled CrossQueueBarrier; SRL fbk_stry000_FBK_STRY000_INTRO Prestream; INSTANCE_LIST 44,900/45,000
B VICTORY_SHADER_LOOP_LIMIT=32 381 ms 0x80000003 at +0x63966f (#698) 11:39 / 986 INSTANCE_LIST 44,998/45,000, BUILDING 21,164/22,500, same SRL
C B + VICTORY_POOL_SCALE=3 (lhnizdo's diag/pool-scale, 124fade) + #2644 VICTORY_STEP_OVER=63966f,5149aec 309 ms +0x23cf683 11:29 / 2430 no Unsignaled CrossQueueBarrier line; BUILDING 15,124/67,500; INSTANCE_LIST 45,000/45,000
D C + --console series-s 407 ms still running after 22 min n/a n/a

What these runs show:

  1. With the cap, this crash stopped coming from GPU work. Without the cap the crash context names an unsignaled cross-queue barrier. With the cap no submission passed 0.41 s in any run. This matches #1232's RTX 3050 result on a second NVIDIA card and on Windows 10.
  2. The run then reached the intro cutscene: dialogue and subtitles, about 3 minutes after launch. The screen was black throughout, as in #1671. It ended on the INSTANCE_LIST pool (#698).
  3. VICTORY_POOL_SCALE=3 grew BUILDING but not INSTANCE_LIST. BUILDING capacity went from 22,500 to 67,500. INSTANCE_LIST still reported a capacity of 45,000 and was full. So in this image, hash 0x0BA88904 is not what INSTANCE_LIST's capacity comes from, or INSTANCE_LIST is sized some other way. The #2644 step-over never fired.
  4. Run C's +0x23cf683 looks like a stop on memory, not on the GPU:
    • The crash context had no cross-queue barrier line.
    • Free RAM fell to 0.3 GB. Peak private memory was 23.3 GB, and other processes held about 4 GB.
    • The last frames each spent 6.4 GB on refreshes (about 7,000 per frame) and 5.4 s in moves.
    • The last log line came 33 s before the stop.
    • So on 32 GB the watchdog can also fire on a frame slowed by paging.
  5. Series S mode (D) ran longest:
    • Private memory 22.7 GB, with free RAM around 3 GB.
    • Refreshes about 10.5 GB per frame.
    • The screen was black. From minute 12 the per-frame title-memory work stayed flat at about 100 draws/dispatches, and I couldn't see from the log whether loading was still progressing.

Not tested: more than one run per row, the loop cap alone in Series S mode, and loop limits other than 32.

AI use: Claude Code (Claude Opus 5.5) built the trees, ran the title on my machine and drafted this; results are from the runs described. No game data is included.

**@⁠krcenov** on GitHub · 2026-11-26 15:20 UTC · [original](https://github.com/Marvisak/VIctory/issues/1118#issuecomment-7196118561) RTX 3070 on Windows 10: capping shader loops at 32 stopped the GPU-wait version of this crash. With the cap, the game then stopped on RAM instead: a full INSTANCE_LIST, and a watchdog stop while paging. Four runs, one change at a time. **Setup:** - RTX 3070 8 GB (driver 32.0.16.1714), i9-11900K, 32 GB RAM, Windows 10 19045, TdrDelay 60. - Title 930.048.020, Series X profile unless noted. - `main` at `63bcca4`, plus: - an Agility SDK export, needed on Windows 10; - the pipeline-library save fix (as in #2328 and #3181), without which RAM ran out before the world. - Runs B to D use the diagnostics build, each in its own cache folder. | run | change | longest submission | how it ended | game time / frame | title's crash context | |---|---|---|---|---|---| | A | none (release build) | not logged | `+0x23cf683` | 14:08 / 1651 | `Unsignaled CrossQueueBarrier`; SRL `fbk_stry000_FBK_STRY000_INTRO` Prestream; INSTANCE_LIST 44,900/45,000 | | B | `VICTORY_SHADER_LOOP_LIMIT=32` | **381 ms** | `0x80000003` at `+0x63966f` (#698) | 11:39 / 986 | INSTANCE_LIST **44,998/45,000**, BUILDING 21,164/22,500, same SRL | | C | B + `VICTORY_POOL_SCALE=3` (lhnizdo's `diag/pool-scale`, `124fade`) + #2644 `VICTORY_STEP_OVER=63966f,5149aec` | 309 ms | `+0x23cf683` | 11:29 / **2430** | **no** `Unsignaled CrossQueueBarrier` line; BUILDING 15,124/**67,500**; INSTANCE_LIST **45,000/45,000** | | D | C + `--console series-s` | 407 ms | still running after 22 min | n/a | n/a | **What these runs show:** 1. **With the cap, this crash stopped coming from GPU work.** Without the cap the crash context names an unsignaled cross-queue barrier. With the cap no submission passed 0.41 s in any run. This matches #1232's RTX 3050 result on a second NVIDIA card and on Windows 10. 2. **The run then reached the intro cutscene:** dialogue and subtitles, about 3 minutes after launch. The screen was black throughout, as in #1671. It ended on the INSTANCE_LIST pool (#698). 3. **`VICTORY_POOL_SCALE=3` grew BUILDING but not INSTANCE_LIST.** BUILDING capacity went from 22,500 to 67,500. INSTANCE_LIST still reported a capacity of 45,000 and was full. So in this image, hash `0x0BA88904` is not what INSTANCE_LIST's capacity comes from, or INSTANCE_LIST is sized some other way. The #2644 step-over never fired. 4. **Run C's `+0x23cf683` looks like a stop on memory, not on the GPU:** - The crash context had no cross-queue barrier line. - Free RAM fell to 0.3 GB. Peak private memory was 23.3 GB, and other processes held about 4 GB. - The last frames each spent 6.4 GB on refreshes (about 7,000 per frame) and 5.4 s in moves. - The last log line came 33 s before the stop. - So on 32 GB the watchdog can also fire on a frame slowed by paging. 5. **Series S mode (D) ran longest:** - Private memory 22.7 GB, with free RAM around 3 GB. - Refreshes about 10.5 GB per frame. - The screen was black. From minute 12 the per-frame title-memory work stayed flat at about 100 draws/dispatches, and I couldn't see from the log whether loading was still progressing. **Not tested:** more than one run per row, the loop cap alone in Series S mode, and loop limits other than 32. AI use: Claude Code (Claude Opus 5.5) built the trees, ran the title on my machine and drafted this; results are from the runs described. No game data is included.
Author
Owner

@⁠krcenov on GitHub · 2026-11-26 15:44 UTC · original

RTX 3070 on Windows 10: capping shader loops at 32 stopped the GPU-wait version of this crash. With the cap, the game then stopped on RAM instead: a full INSTANCE_LIST, and a watchdog stop while paging. Freeing RAM fixed that too (run E): the title got past the intro into gameplay (the first control prompt) and ran 16.5 minutes until I closed it, with no stop. Five runs, one change at a time.

Setup:

  • RTX 3070 8 GB (driver 32.0.16.1714), i9-11900K, 32 GB RAM, Windows 10 19045, TdrDelay 60.
  • Title 930.048.020, Series X profile unless noted.
  • main at 63bcca4, plus:
    • an Agility SDK export, needed on Windows 10;
    • the pipeline-library save fix (as in #2328 and #3181), without which RAM ran out before the world.
  • Runs B to E use the diagnostics build, all with one cache folder of their own, separate from run A's (the loop limit changes the translation).
run change longest submission how it ended game time / frame title's crash context
A none (release build) not logged +0x23cf683 14:08 / 1651 Unsignaled CrossQueueBarrier; SRL fbk_stry000_FBK_STRY000_INTRO Prestream; INSTANCE_LIST 44,900/45,000
B VICTORY_SHADER_LOOP_LIMIT=32 381 ms 0x80000003 at +0x63966f (#698) 11:39 / 986 INSTANCE_LIST 44,998/45,000, BUILDING 21,164/22,500, same SRL
C B + VICTORY_POOL_SCALE=3 (lhnizdo's diag/pool-scale, 124fade) + #2644 VICTORY_STEP_OVER=63966f,5149aec 309 ms +0x23cf683 11:29 / 2430 no Unsignaled CrossQueueBarrier line; BUILDING 15,124/67,500; INSTANCE_LIST 45,000/45,000
D C + --console series-s 407 ms closed by hand after 25 min n/a n/a
E C (Series X) + #3230 + #2129 + #2146 with VICTORY_TEXTURE_MIP_DROP=1 524 ms no stop: reached gameplay; closed by hand after 16.5 min, clean shutdown and final library save n/a n/a

What these runs show:

  1. With the cap, this crash stopped coming from GPU work. Without the cap the crash context names an unsignaled cross-queue barrier. With the cap no submission passed 0.41 s in any run. This matches #1232's RTX 3050 result on a second NVIDIA card and on Windows 10.
  2. The run then reached the intro cutscene: dialogue and subtitles, about 3 minutes after launch. The screen was black throughout, as in #1671. It ended on the INSTANCE_LIST pool (#698).
  3. VICTORY_POOL_SCALE=3 grew BUILDING but not INSTANCE_LIST. BUILDING capacity went from 22,500 to 67,500. INSTANCE_LIST still reported a capacity of 45,000 and was full. So in this image, hash 0x0BA88904 is not what INSTANCE_LIST's capacity comes from, or INSTANCE_LIST is sized some other way. The #2644 step-over never fired.
  4. Run C's +0x23cf683 looks like a stop on memory, not on the GPU:
    • The crash context had no cross-queue barrier line.
    • Free RAM fell to 0.3 GB. Peak private memory was 23.3 GB, and other processes held about 4 GB.
    • The last frames each spent 6.4 GB on refreshes (about 7,000 per frame) and 5.4 s in moves.
    • The last log line came 33 s before the stop.
    • So on 32 GB the watchdog can also fire on a frame slowed by paging.
  5. Series S mode (D) ran longest:
    • Private memory 22.7 GB, with free RAM around 3 GB.
    • Refreshes about 10.5 GB per frame.
    • The screen was black. From minute 12 the per-frame title-memory work stayed flat at about 100 draws/dispatches, and the log gave no sign that loading was still progressing. I closed it after 25 min.
  6. Freeing RAM let the game through to gameplay (E).
    • The intro played, then the first control prompt ("Move around / Move the camera") came up at about 9 min.

    • Frames took about 0.83 s in gameplay, against 3.7 s in run B's cutscene.

    • The keyboard stand-in pad was connected, and the prompt went away after keys were held. Nothing else could be checked: the 3D picture was black throughout (#1671).

    • It ran 16.5 minutes until I closed the window. Shutdown was clean: "title did not finish suspending in time" and a final library save. No device removal, and the #2644 step-over never fired.

    • Memory with the same title settings as C:

      C E
      peak private 23.3 GB 22.7 GB
      process commit (max) 25.0 GB 24.4 GB
      resources in system memory (VRAM spill) 8.1 GB 7.7 GB
      placed textures made 1,865 MB 1,450 MB
      moves per frame, last minutes 2,962-5,352 ms about 21 ms
    • The margin is thin. During the intro load (minutes 2 to 6) free RAM still touched 0.4 GB, and moves reached 1.9-7.4 s per frame. It then recovered to about 3 GB free for the rest of the run.

    • I can't split the gain between the three PRs from one run. #2129 should matter least here: this cache's library was only about 315 MB.

Not tested: more than one run per row; each PR in E on its own; VICTORY_TEXTURE_MIP_DROP=2; #2389 (it conflicts with #2146 in make_texture); the loop cap alone in Series S mode; loop limits other than 32.

AI use: Claude Code (Claude Opus 5.5) built the trees, ran the title on my machine and drafted this; results are from the runs described. No game data is included.

**@⁠krcenov** on GitHub · 2026-11-26 15:44 UTC · [original](https://github.com/Marvisak/VIctory/issues/1118#issuecomment-7196695017) RTX 3070 on Windows 10: capping shader loops at 32 stopped the GPU-wait version of this crash. With the cap, the game then stopped on RAM instead: a full INSTANCE_LIST, and a watchdog stop while paging. Freeing RAM fixed that too (run E): the title got past the intro into gameplay (the first control prompt) and ran 16.5 minutes until I closed it, with no stop. Five runs, one change at a time. **Setup:** - RTX 3070 8 GB (driver 32.0.16.1714), i9-11900K, 32 GB RAM, Windows 10 19045, TdrDelay 60. - Title 930.048.020, Series X profile unless noted. - `main` at `63bcca4`, plus: - an Agility SDK export, needed on Windows 10; - the pipeline-library save fix (as in #2328 and #3181), without which RAM ran out before the world. - Runs B to E use the diagnostics build, all with one cache folder of their own, separate from run A's (the loop limit changes the translation). | run | change | longest submission | how it ended | game time / frame | title's crash context | |---|---|---|---|---|---| | A | none (release build) | not logged | `+0x23cf683` | 14:08 / 1651 | `Unsignaled CrossQueueBarrier`; SRL `fbk_stry000_FBK_STRY000_INTRO` Prestream; INSTANCE_LIST 44,900/45,000 | | B | `VICTORY_SHADER_LOOP_LIMIT=32` | **381 ms** | `0x80000003` at `+0x63966f` (#698) | 11:39 / 986 | INSTANCE_LIST **44,998/45,000**, BUILDING 21,164/22,500, same SRL | | C | B + `VICTORY_POOL_SCALE=3` (lhnizdo's `diag/pool-scale`, `124fade`) + #2644 `VICTORY_STEP_OVER=63966f,5149aec` | 309 ms | `+0x23cf683` | 11:29 / **2430** | **no** `Unsignaled CrossQueueBarrier` line; BUILDING 15,124/**67,500**; INSTANCE_LIST **45,000/45,000** | | D | C + `--console series-s` | 407 ms | closed by hand after 25 min | n/a | n/a | | E | C (Series X) + #3230 + #2129 + #2146 with `VICTORY_TEXTURE_MIP_DROP=1` | 524 ms | **no stop**: reached gameplay; closed by hand after 16.5 min, clean shutdown and final library save | n/a | n/a | **What these runs show:** 1. **With the cap, this crash stopped coming from GPU work.** Without the cap the crash context names an unsignaled cross-queue barrier. With the cap no submission passed 0.41 s in any run. This matches #1232's RTX 3050 result on a second NVIDIA card and on Windows 10. 2. **The run then reached the intro cutscene:** dialogue and subtitles, about 3 minutes after launch. The screen was black throughout, as in #1671. It ended on the INSTANCE_LIST pool (#698). 3. **`VICTORY_POOL_SCALE=3` grew BUILDING but not INSTANCE_LIST.** BUILDING capacity went from 22,500 to 67,500. INSTANCE_LIST still reported a capacity of 45,000 and was full. So in this image, hash `0x0BA88904` is not what INSTANCE_LIST's capacity comes from, or INSTANCE_LIST is sized some other way. The #2644 step-over never fired. 4. **Run C's `+0x23cf683` looks like a stop on memory, not on the GPU:** - The crash context had no cross-queue barrier line. - Free RAM fell to 0.3 GB. Peak private memory was 23.3 GB, and other processes held about 4 GB. - The last frames each spent 6.4 GB on refreshes (about 7,000 per frame) and 5.4 s in moves. - The last log line came 33 s before the stop. - So on 32 GB the watchdog can also fire on a frame slowed by paging. 5. **Series S mode (D) ran longest:** - Private memory 22.7 GB, with free RAM around 3 GB. - Refreshes about 10.5 GB per frame. - The screen was black. From minute 12 the per-frame title-memory work stayed flat at about 100 draws/dispatches, and the log gave no sign that loading was still progressing. I closed it after 25 min. 6. **Freeing RAM let the game through to gameplay (E).** - The intro played, then the first control prompt ("Move around / Move the camera") came up at about 9 min. - Frames took about 0.83 s in gameplay, against 3.7 s in run B's cutscene. - The keyboard stand-in pad was connected, and the prompt went away after keys were held. Nothing else could be checked: the 3D picture was black throughout (#1671). - It ran 16.5 minutes until I closed the window. Shutdown was clean: "title did not finish suspending in time" and a final library save. No device removal, and the #2644 step-over never fired. - Memory with the same title settings as C: | | C | E | |---|---|---| | peak private | 23.3 GB | 22.7 GB | | process commit (max) | 25.0 GB | 24.4 GB | | resources in system memory (VRAM spill) | 8.1 GB | 7.7 GB | | placed textures made | 1,865 MB | 1,450 MB | | moves per frame, last minutes | 2,962-5,352 ms | about 21 ms | - The margin is thin. During the intro load (minutes 2 to 6) free RAM still touched 0.4 GB, and moves reached 1.9-7.4 s per frame. It then recovered to about 3 GB free for the rest of the run. - I can't split the gain between the three PRs from one run. #2129 should matter least here: this cache's library was only about 315 MB. **Not tested:** more than one run per row; each PR in E on its own; `VICTORY_TEXTURE_MIP_DROP=2`; #2389 (it conflicts with #2146 in `make_texture`); the loop cap alone in Series S mode; loop limits other than 32. AI use: Claude Code (Claude Opus 5.5) built the trees, ran the title on my machine and drafted this; results are from the runs described. No game data is included.
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/Marvisak--VIctory#1118
No description provided.