Intermittent title crash (write 0x0 at +0x23cf683) after a stall with no presents: held value wait never released #846

Closed
opened 2026-11-28 14:28:56 +00:00 by github-bot · 10 comments
Owner

@⁠Machad3x on GitHub · 2026-11-28 07:39 UTC · original

Summary: an intermittent title crash about 30-66 s into loading the world. The title's own thread writes to address 0, always at <title image>+0x23cf683 (8 runs) or +0x2215c35 (2 runs).

How often: 10 of 114 runs across our builds, including tn1 main with no changes of ours. Recent builds are worse: 6 of 13 runs.

What it looks like: the registers are identical in every crash across 4 days and several builds. It runs on a title thread of its own, and Breakpad starts right after. We read it as the title's own hang watchdog crashing on purpose after a stretch with no presents. This is inferred from registers and timing only, without disassembly.

What comes before it, in 8 of 10 crashes: the title keeps submitting, but the frame number stops and no present comes for 10-30 s. On two builds that log held waits, the compute queue was stuck on a value wait that nothing ever writes:

VIctory: first-chance exception 0xc0000005 at <title image>+0x23cf683 (write 0x0: nothing mapped there)
  rax 0x0 rbx 0x0 rcx 0xd0024c348 rdx 0x1 rbp 0x0 r8 0xd074d8c40 r9 0xd074d8e20 r10 0xd074d8ad8 r11 0xd074d8c40
  #0 <title image>+0x23cf683  #1 <title image>+0x2215c35  #2 <title image>+0x2215eca  #3 KERNEL32.DLL+0x2dda7
VIctory: first-chance exception 0xc0000005 at <title image>+0x2215c35 (write 0x0) rcx 0x4189374bc6a7f0 r11 0xfffffffff85a9e6f
INFO victory_hle::modules::audio: first coprocessor command of this kind command=5
INFO victory_gpu::list: indirect execution dropped (first time for this signature) stride=12 args=[[105, 0, 60000, 0]] max=1
INFO victory_gpu::lightlog: lightlog texture made frame=1573 uses=0 again=true   (same frame number for 10-30 s, no present)
WARN victory_gpu::queue: held work runs without its waits after 10s (safety valve) queue=2 frame=2233 waits=[ValueWait { address: 0xd0417fe10, bytes: 8, comparison: 7, reference: 2237 }] now=[Some(0)] by=[None]

Likely cause: a queue deadlock. In queue/behind.rs (Lane::step) and queue.rs, an unmet value wait is passed only when a present is queued. The fence signals queued behind it are held too. A title thread waiting on that fence's event never wakes, the present never comes, and the watchdog fires. tn1 main has no time-based release for this.

Fix we are trying: force the oldest held wait after about 1-2 s when no present is queued, and at once when the title waits on a fence whose signal is held behind an unmet wait. We will post results here.

Setup: RTX 3080 Ti, driver 621.40, Windows 11 Pro build 26300, Ryzen 7 5700X, RT on (VICTORY_BVH_BUILDER=1).

**@⁠Machad3x** on GitHub · 2026-11-28 07:39 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/846) **Summary:** an intermittent title crash about 30-66 s into loading the world. The title's own thread writes to address 0, always at `<title image>+0x23cf683` (8 runs) or `+0x2215c35` (2 runs). **How often:** 10 of 114 runs across our builds, including tn1 main with no changes of ours. Recent builds are worse: 6 of 13 runs. **What it looks like:** the registers are identical in every crash across 4 days and several builds. It runs on a title thread of its own, and Breakpad starts right after. We read it as the title's own hang watchdog crashing on purpose after a stretch with no presents. This is inferred from registers and timing only, without disassembly. **What comes before it, in 8 of 10 crashes:** the title keeps submitting, but the frame number stops and no present comes for 10-30 s. On two builds that log held waits, the compute queue was stuck on a value wait that nothing ever writes: ``` VIctory: first-chance exception 0xc0000005 at <title image>+0x23cf683 (write 0x0: nothing mapped there) rax 0x0 rbx 0x0 rcx 0xd0024c348 rdx 0x1 rbp 0x0 r8 0xd074d8c40 r9 0xd074d8e20 r10 0xd074d8ad8 r11 0xd074d8c40 #0 <title image>+0x23cf683 #1 <title image>+0x2215c35 #2 <title image>+0x2215eca #3 KERNEL32.DLL+0x2dda7 VIctory: first-chance exception 0xc0000005 at <title image>+0x2215c35 (write 0x0) rcx 0x4189374bc6a7f0 r11 0xfffffffff85a9e6f INFO victory_hle::modules::audio: first coprocessor command of this kind command=5 INFO victory_gpu::list: indirect execution dropped (first time for this signature) stride=12 args=[[105, 0, 60000, 0]] max=1 INFO victory_gpu::lightlog: lightlog texture made frame=1573 uses=0 again=true (same frame number for 10-30 s, no present) WARN victory_gpu::queue: held work runs without its waits after 10s (safety valve) queue=2 frame=2233 waits=[ValueWait { address: 0xd0417fe10, bytes: 8, comparison: 7, reference: 2237 }] now=[Some(0)] by=[None] ``` **Likely cause:** a queue deadlock. In `queue/behind.rs` (`Lane::step`) and `queue.rs`, an unmet value wait is passed only when a present is queued. The fence signals queued behind it are held too. A title thread waiting on that fence's event never wakes, the present never comes, and the watchdog fires. tn1 main has no time-based release for this. **Fix we are trying:** force the oldest held wait after about 1-2 s when no present is queued, and at once when the title waits on a fence whose signal is held behind an unmet wait. We will post results here. **Setup:** RTX 3080 Ti, driver 621.40, Windows 11 Pro build 26300, Ryzen 7 5700X, RT on (`VICTORY_BVH_BUILDER=1`).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 14:28:56 +00:00
Author
Owner

@⁠Jesper-Andersson on GitHub · 2026-11-28 08:15 UTC · original

This looks like the same watchdog that #628 identified (jessebuffington's disassembly: +0x23cf683 is the title's deliberate "GPU Loc Sig" fatal after the frames stop). Two data points that may help here:

Any long stall triggers it, not only a GPU wait. On an RTX 2070 SUPER 8 GB, Ryzen 7 5800X, Windows 11 (diag build of trustno1/main 8fc22547 plus our off-by-default ports, Series S, DLSS Performance), the title died twice with unhandled exception 0xc0000005 at victory-image-b99f876b74d4a77f.dll+0x23cf683 (write 0x0) while the frame recorder (VICTORY_RECORD) stalled it to write one capture of about 4.6 GB (once to a SATA SSD, once to NVMe). Going by the log timestamps around the crash, both died about 32-33 s into the stall.

A diagnostic switch to see what the stall does without the watchdog. We ported a loader patch (from the victory-perf patches, itself from ZigZagBoi1/ScarlettPort) that disarms it: VICTORY_NO_WATCHDOG=1, off by default. It checks the image hash and the exact bytes at both sites and refuses on any mismatch (unit-tested). With it, the same kind of capture took 33.0 s, finished, and the title was not killed by the watchdog. That could show whether your held value wait (queue=2, waiting for 2237) releases on its own or never does. Not tested: normal play with the switch on, or any stall other than a capture. Tried only on the 1.0.2.1 image. It is on our fork, not in this repo: Jesper-Andersson/VIctory-8GB-30fps, branch t1p-watchdog, commit f221bf54; happy to open a PR if wanted. It hides the crash and does not fix the stall.

This comment was drafted with AI assistance (Claude Code).

**@⁠Jesper-Andersson** on GitHub · 2026-11-28 08:15 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/846#issuecomment-7236461318) This looks like the same watchdog that #628 identified (jessebuffington's disassembly: +0x23cf683 is the title's deliberate "GPU Loc Sig" fatal after the frames stop). Two data points that may help here: **Any long stall triggers it, not only a GPU wait.** On an RTX 2070 SUPER 8 GB, Ryzen 7 5800X, Windows 11 (diag build of trustno1/main 8fc22547 plus our off-by-default ports, Series S, DLSS Performance), the title died twice with `unhandled exception 0xc0000005 at victory-image-b99f876b74d4a77f.dll+0x23cf683 (write 0x0)` while the frame recorder (`VICTORY_RECORD`) stalled it to write one capture of about 4.6 GB (once to a SATA SSD, once to NVMe). Going by the log timestamps around the crash, both died about 32-33 s into the stall. **A diagnostic switch to see what the stall does without the watchdog.** We ported a loader patch (from the victory-perf patches, itself from ZigZagBoi1/ScarlettPort) that disarms it: `VICTORY_NO_WATCHDOG=1`, off by default. It checks the image hash and the exact bytes at both sites and refuses on any mismatch (unit-tested). With it, the same kind of capture took 33.0 s, finished, and the title was not killed by the watchdog. That could show whether your held value wait (queue=2, waiting for 2237) releases on its own or never does. Not tested: normal play with the switch on, or any stall other than a capture. Tried only on the 1.0.2.1 image. It is on our fork, not in this repo: Jesper-Andersson/VIctory-8GB-30fps, branch t1p-watchdog, commit f221bf54; happy to open a PR if wanted. It hides the crash and does not fix the stall. This comment was drafted with AI assistance (Claude Code).
Author
Owner

@⁠Machad3x on GitHub · 2026-11-28 08:17 UTC · original

Fix pushed to our fork main: github.com/Machad3x/VIctory-nvidia-RTX@0fa96c91 (the change is in 10fcc252 plus the review fixes from d4c31913, crates/victory-gpu/src/queue/behind.rs). A held value wait that nothing meets is passed after VICTORY_HELD_WAIT_MS (default 1500) when no present is queued. It is passed at once when the title waits on a fence whose signal is held behind that wait in the same queue. The held work still runs, in order; =0 restores the old behaviour. The release logs held work runs without its unmet wait (VICTORY_HELD_WAIT_MS). In 2 runs of 240 s (RTX 3080 Ti, driver 621.40, Windows 11 26300) it never fired and nothing crashed. The crash rate was about 1 in 10, so this needs more runs before it counts as confirmed. We will update here.

**@⁠Machad3x** on GitHub · 2026-11-28 08:17 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/846#issuecomment-7236492384) Fix pushed to our fork main: https://github.com/Machad3x/VIctory-nvidia-RTX/commit/0fa96c91 (the change is in 10fcc252 plus the review fixes from d4c31913, `crates/victory-gpu/src/queue/behind.rs`). A held value wait that nothing meets is passed after `VICTORY_HELD_WAIT_MS` (default 1500) when no present is queued. It is passed at once when the title waits on a fence whose signal is held behind that wait in the same queue. The held work still runs, in order; `=0` restores the old behaviour. The release logs `held work runs without its unmet wait (VICTORY_HELD_WAIT_MS)`. In 2 runs of 240 s (RTX 3080 Ti, driver 621.40, Windows 11 26300) it never fired and nothing crashed. The crash rate was about 1 in 10, so this needs more runs before it counts as confirmed. We will update here.
Author
Owner

@⁠ArturoWolff on GitHub · 2026-11-28 11:18 UTC · original

One Linux run on the same watchdog, not a fix.

Measured on an RTX 4060 8 GB desktop, 16 GB RAM, NVIDIA 620.73, GE-Proton11-14 / vkd3d-proton 3.2.0, Series X, 1920×1080 client fitted from an internal 2560×1440 window, DLSS and frame generation off, ray tracing and water light on, full write-back. The host memory floor was 128 MiB and was not reached (lowest available about 2.0 GiB). The process exited on its own after 126 s. The last capture was a black frame with an FPS overlay, not a world.

Presents stopped at 1296. For the next 35 s none were counted, then the same title watchdog write as this report. During that window ID3D12Fence::GetCompletedValue was not called (12 calls in the whole run, the last one before the window). Fence signals also stopped after six late signals about 12 s into the window. So this stall is not a GetCompletedValue spin, and it matches #990: the held-value-wait release does not describe this case.

What did continue: pipeline compile log lines, thousands of them, while presents were stuck. Proton's log had no overflowed its stack, and the frame-rate lines never showed (7 being made), so this run is not the vkd3d-proton DXIL hang described on #120. A title that reads a fence word in place would not show up in the GetCompletedValue count. That path was not instrumented.

Hypothesis, not measured: the watchdog is a no-present timer, and the present thread is blocked on something other than the fence API. One run.

AI assistance: Hermes Agent, working on behalf of ArturoWolff. (GPT 6.2 Sol High).

**@⁠ArturoWolff** on GitHub · 2026-11-28 11:18 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/846#issuecomment-7238467913) One Linux run on the same watchdog, not a fix. Measured on an RTX 4060 8 GB desktop, 16 GB RAM, NVIDIA 620.73, GE-Proton11-14 / vkd3d-proton 3.2.0, Series X, 1920×1080 client fitted from an internal 2560×1440 window, DLSS and frame generation off, ray tracing and water light on, full write-back. The host memory floor was 128 MiB and was not reached (lowest available about 2.0 GiB). The process exited on its own after 126 s. The last capture was a black frame with an FPS overlay, not a world. Presents stopped at 1296. For the next 35 s none were counted, then the same title watchdog write as this report. During that window `ID3D12Fence::GetCompletedValue` was not called (12 calls in the whole run, the last one before the window). Fence signals also stopped after six late signals about 12 s into the window. So this stall is not a `GetCompletedValue` spin, and it matches #990: the held-value-wait release does not describe this case. What did continue: pipeline compile log lines, thousands of them, while presents were stuck. Proton's log had no `overflowed its stack`, and the frame-rate lines never showed `(7 being made)`, so this run is not the vkd3d-proton DXIL hang described on #120. A title that reads a fence word in place would not show up in the `GetCompletedValue` count. That path was not instrumented. Hypothesis, not measured: the watchdog is a no-present timer, and the present thread is blocked on something other than the fence API. One run. AI assistance: Hermes Agent, working on behalf of ArturoWolff. (GPT 6.2 Sol High).
Author
Owner

@⁠Exopus-0x65f7ad0 on GitHub · 2026-11-28 13:32 UTC · original

A data point from a build with the title's watchdog fault patched out (a local loader change that skips the deliberate write at +0x23cf683). It answers one question: does the stall clear by itself given time? On this machine it doesn't.

Machine: RTX 5060 Ti 8 GB (DXGI local budget ~7.0 GB), 16 GB RAM, 64 GB page file, Windows 11 26300. 63b902f plus local commits, none of them in queue/ or the relay. Series X, native 1440p, DLSS Quality or Balanced, no frame generation. Pipelines preloaded.

How often: 2 of the 10 starts I made today stopped this way, both during the first world load, ~60–90 s after the menus. Upstream, these would have been the +0x23cf683 crash.

start 11:22 (DLSS Balanced) start 14:24 (DLSS Quality, + #1015)
last frame line 8.0 fps, 125.3 ms/frame … 2960 draws/frame, dropped 369 without a host pipeline 1.0 fps, 1030.0 ms/frame … 3611 draws/frame, dropped 338 without a host pipeline
just before a texture already on the card is brought up to date although the card has no room (VRAM full) new memory waited for … 21000 times, 13349 ms, the longest 456.5 ms; frames of 200–770 ms with copies 100–216 ms, 388–520 ms on the GPU
how long it stayed stopped 98 min, until I killed it 3 min, until my script killed it

What may help narrow it down:

  • The host's own periodic lines stop too. After the last frame line, not a single victory_gpu::host, land, draw or descriptor summary appears again, although they normally come every 5 s. The only lines that keep coming, every 10 s for the whole 98 minutes, are victory_hle::modules::xmem: title views kept in the books alone …, from their own timer. So it's not only the title's frame counter that stops: whatever thread writes the host's 5-second summaries is blocked as well. The process stays Responding=True (the window pumps).
  • No held work … line appears, because main doesn't have the VICTORY_HELD_WAIT_MS change (Machad3x's fork commit 0fa96c91 above).
  • Both stalls came at the VRAM peak of world load on an 8 GB card (texture queue's room … 90.0 % of a budget of 7013 MB: no room right before).

If it happens again here, I can take thread stacks of the stalled process before killing it. Tell me if a particular thread or lock is worth looking at.

**@⁠Exopus-0x65f7ad0** on GitHub · 2026-11-28 13:32 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/846#issuecomment-7240003201) A data point from a build with the **title's watchdog fault patched out** (a local loader change that skips the deliberate write at `+0x23cf683`). It answers one question: does the stall clear by itself given time? On this machine it doesn't. **Machine:** RTX 5060 Ti 8 GB (DXGI local budget ~7.0 GB), 16 GB RAM, 64 GB page file, Windows 11 26300. `63b902f` plus local commits, none of them in `queue/` or the relay. Series X, native 1440p, DLSS Quality or Balanced, no frame generation. Pipelines preloaded. **How often:** 2 of the 10 starts I made today stopped this way, both during the first world load, ~60–90 s after the menus. Upstream, these would have been the `+0x23cf683` crash. | | start 11:22 (DLSS Balanced) | start 14:24 (DLSS Quality, + #1015) | |---|---|---| | last frame line | `8.0 fps, 125.3 ms/frame … 2960 draws/frame, dropped 369 without a host pipeline` | `1.0 fps, 1030.0 ms/frame … 3611 draws/frame, dropped 338 without a host pipeline` | | just before | `a texture already on the card is brought up to date although the card has no room` (VRAM full) | `new memory waited for … 21000 times, 13349 ms, the longest 456.5 ms`; frames of 200–770 ms with `copies 100–216 ms`, `388–520 ms on the GPU` | | how long it stayed stopped | **98 min**, until I killed it | 3 min, until my script killed it | What may help narrow it down: - **The host's own periodic lines stop too.** After the last frame line, not a single `victory_gpu::host`, `land`, `draw` or `descriptor` summary appears again, although they normally come every 5 s. The only lines that keep coming, every 10 s for the whole 98 minutes, are `victory_hle::modules::xmem: title views kept in the books alone …`, from their own timer. So it's not only the title's frame counter that stops: whatever thread writes the host's 5-second summaries is blocked as well. The process stays `Responding=True` (the window pumps). - No `held work …` line appears, because main doesn't have the `VICTORY_HELD_WAIT_MS` change (Machad3x's fork commit `0fa96c91` above). - Both stalls came at the VRAM peak of world load on an 8 GB card (`texture queue's room … 90.0 % of a budget of 7013 MB: no room` right before). If it happens again here, I can take thread stacks of the stalled process before killing it. Tell me if a particular thread or lock is worth looking at.
Author
Owner

@⁠Exopus-0x65f7ad0 on GitHub · 2026-11-28 14:25 UTC · original

Follow-up: I caught another one live and looked at the threads before killing it. That's 4 stalls today on this machine, all during the first world load.

The run: same machine, 63b902f + #1095 (texture pass change, unrelated), README defaults. The last frame line at 14:03:48 UTC was 5.0 fps, 201.0 ms/frame and followed a 0.6 fps, 1566.9 ms/frame (734.7 preparing: copies 269.2 ms 747.0 MB …) spike. The last log lines (14:03:52) are first bind pipeline … stage="mesh"/"pixel"; after that, only the xmem timer lines. I sampled it 10 minutes into the stall.

CPU per thread over 5 s, grouped by thread start address (162 threads):

started in threads CPU in the 5 s
victory.exe (host: relay, submit, landing, helpers…) 78 ≈ 0: all in Wait (UserRequest / Unknown)
title image +0x2215ea0 (the title's thread entry, the same as frame #2 +0x2215eca in the watchdog stacks above) 50 one thread at ~1.2 s per 5 s (~24 % of a core); the rest idle
nvwgf2umx.dll (driver) 11 ≈ 0

RIP samples of that one busy title thread (20 samples, 150 ms apart): 11 in ntdll+0x166464 (a wait or delay syscall return), 8 spread over title code (+0x4d9e62b, +0x4da08b2, +0x4db14ac, +0x4dcce52, +0x4dcef03, +0x4e5eebc, +0x4e5f6a3, +0x5594f6c), and 1 in a host HLE function (victory.exe+0x22ad9d).

So in this state nothing on the host side is working: the submitting and landing threads don't spin and don't stay busy, and the driver threads are idle. Meanwhile one title thread keeps looping: it wakes, runs a bit of game code, and sleeps again. That looks like the title waiting (polling) on something only the host can complete: a fence or value it never sees reached, or a present that never comes. It's not a host thread stuck in a long operation or a lock convoy. It fits the "held value wait that nothing ever writes" explanation, which #846's VICTORY_HELD_WAIT_MS change in Machad3x's fork targets.

Next time I'll try to get a symbolized host stack (the Windows SDK cdb.exe on this box turned out to be a 0-byte stub). If someone has a specific counter or log switch that would show which fence or value the title is polling, I can run with it. This machine reproduces it about 1 start in 3 at the moment.

**@⁠Exopus-0x65f7ad0** on GitHub · 2026-11-28 14:25 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/846#issuecomment-7240663035) Follow-up: I caught another one live and looked at the threads before killing it. That's 4 stalls today on this machine, all during the first world load. The run: same machine, `63b902f` + #1095 (texture pass change, unrelated), README defaults. The last frame line at 14:03:48 UTC was `5.0 fps, 201.0 ms/frame` and followed a `0.6 fps, 1566.9 ms/frame (734.7 preparing: copies 269.2 ms 747.0 MB …)` spike. The last log lines (14:03:52) are `first bind pipeline … stage="mesh"/"pixel"`; after that, only the xmem timer lines. I sampled it 10 minutes into the stall. **CPU per thread over 5 s, grouped by thread start address (162 threads):** | started in | threads | CPU in the 5 s | |---|---|---| | `victory.exe` (host: relay, submit, landing, helpers…) | 78 | **≈ 0**: all in `Wait` (UserRequest / Unknown) | | title image `+0x2215ea0` (the title's thread entry, the same as frame #2 `+0x2215eca` in the watchdog stacks above) | 50 | one thread at **~1.2 s per 5 s** (~24 % of a core); the rest idle | | `nvwgf2umx.dll` (driver) | 11 | ≈ 0 | **RIP samples of that one busy title thread** (20 samples, 150 ms apart): 11 in `ntdll+0x166464` (a wait or delay syscall return), 8 spread over title code (`+0x4d9e62b`, `+0x4da08b2`, `+0x4db14ac`, `+0x4dcce52`, `+0x4dcef03`, `+0x4e5eebc`, `+0x4e5f6a3`, `+0x5594f6c`), and 1 in a host HLE function (`victory.exe+0x22ad9d`). So in this state **nothing on the host side is working**: the submitting and landing threads don't spin and don't stay busy, and the driver threads are idle. Meanwhile one title thread keeps looping: it wakes, runs a bit of game code, and sleeps again. That looks like the title waiting (polling) on something only the host can complete: a fence or value it never sees reached, or a present that never comes. It's not a host thread stuck in a long operation or a lock convoy. It fits the "held value wait that nothing ever writes" explanation, which #846's `VICTORY_HELD_WAIT_MS` change in Machad3x's fork targets. Next time I'll try to get a symbolized host stack (the Windows SDK `cdb.exe` on this box turned out to be a 0-byte stub). If someone has a specific counter or log switch that would show which fence or value the title is polling, I can run with it. This machine reproduces it about 1 start in 3 at the moment.
Author
Owner

@⁠Exopus-0x65f7ad0 on GitHub · 2026-11-28 15:14 UTC · original

Two more data points on the same machine (RTX 5060 Ti 8 GB, 16 GB, watchdog patched out so stalls persist):

  • With #901, the stall still happens and the valve never fires. 2 of 4 starts stalled for 3+ minutes, with 0 held work runs without its unmet wait and 0 a queue still stood at a wait… lines (details on #901). So at least the stalls on this machine aren't a value wait parked in queue/behind.rs.
  • A maybe, from too few runs to claim anything: with VICTORY_CARD_BUFFERS_MIN_KB=16384 (tested for #994), 0 of 3 starts stalled, against 2 of 4 on the same build with the launcher's 64, and ~1 in 3 over the day with 64. The 16 MiB floor makes the world ~3.7× slower, so it's no workaround. But if someone has a theory linking the stall to many small card copies of title buffers being live at world load (kept for card copies of title buffers was 553 MB with the floor), this is a cheap A/B to run. I'll add runs when I can.
**@⁠Exopus-0x65f7ad0** on GitHub · 2026-11-28 15:14 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/846#issuecomment-7241307576) Two more data points on the same machine (RTX 5060 Ti 8 GB, 16 GB, watchdog patched out so stalls persist): - **With #901, the stall still happens and the valve never fires.** 2 of 4 starts stalled for 3+ minutes, with 0 `held work runs without its unmet wait` and 0 `a queue still stood at a wait…` lines (details on #901). So at least the stalls on this machine aren't a value wait parked in `queue/behind.rs`. - **A maybe, from too few runs to claim anything:** with `VICTORY_CARD_BUFFERS_MIN_KB=16384` (tested for #994), 0 of 3 starts stalled, against 2 of 4 on the same build with the launcher's 64, and ~1 in 3 over the day with 64. The 16 MiB floor makes the world ~3.7× slower, so it's no workaround. But if someone has a theory linking the stall to many small card copies of title buffers being live at world load (`kept for card copies of title buffers` was 553 MB with the floor), this is a cheap A/B to run. I'll add runs when I can.
Author
Owner

@⁠Exopus-0x65f7ad0 on GitHub · 2026-11-28 16:02 UTC · original

Correction to my three comments above: please discount my stall data. The stalls on my machine were very likely caused by a local, unpublished commit in my own build, not by upstream code.

My build carries a commit of mine, never sent as a PR, that makes a dispatch wait for its compute pipeline with no time limit (p.make() in pipeline::make::ready instead of the frame-budgeted wait; switch VICTORY_PIPELINE_COMPUTE_WAIT, on by default in my branch). If a worker is already building that pipeline and is itself held up, the submitting thread blocks on the pipeline's OnceLock for ever. That fits what I saw: all host threads idle, (0 being made) in the last frame line, and no held wait for #901's valve to pass.

Same build, same machine, same launcher defaults:

starts stalled at world load
my compute wait on (all my runs today) ~20 6
VICTORY_PIPELINE_COMPUTE_WAIT=0 (upstream behaviour) 5 0

So my "stalls forever with the watchdog patched out", "host threads idle while one title thread polls" and the #901 "valve never fires" results describe my bug, not the +0x23cf683 stall people get on upstream builds. Sorry for the noise. The thread-analysis method (Win32StartAddress per thread plus RIP sampling) still works if someone wants to use it on an upstream stall.

**@⁠Exopus-0x65f7ad0** on GitHub · 2026-11-28 16:02 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/846#issuecomment-7241934394) **Correction to my three comments above: please discount my stall data.** The stalls on my machine were very likely caused by a **local, unpublished commit in my own build**, not by upstream code. My build carries a commit of mine, never sent as a PR, that makes a dispatch wait for its compute pipeline **with no time limit** (`p.make()` in `pipeline::make::ready` instead of the frame-budgeted `wait`; switch `VICTORY_PIPELINE_COMPUTE_WAIT`, on by default in my branch). If a worker is already building that pipeline and is itself held up, the submitting thread blocks on the pipeline's `OnceLock` for ever. That fits what I saw: all host threads idle, `(0 being made)` in the last frame line, and no held wait for #901's valve to pass. Same build, same machine, same launcher defaults: | | starts | stalled at world load | |---|---|---| | my compute wait on (all my runs today) | ~20 | **6** | | `VICTORY_PIPELINE_COMPUTE_WAIT=0` (upstream behaviour) | 5 | **0** | So my "stalls forever with the watchdog patched out", "host threads idle while one title thread polls" and the #901 "valve never fires" results describe **my bug**, not the `+0x23cf683` stall people get on upstream builds. Sorry for the noise. The thread-analysis method (`Win32StartAddress` per thread plus RIP sampling) still works if someone wants to use it on an upstream stall.
Author
Owner

@⁠Exopus-0x65f7ad0 on GitHub · 2026-11-28 16:48 UTC · original

An update that tempers my correction above. With my local compute-pipeline wait off, I've now had one more stall at world load, in 8 starts since I turned it off. It had the same signature: all host threads idle, the title's threads looping, the last frame line at 4.3 fps and then nothing. That build also had #1193 (triple buffering) merged for an A/B, so I can't tell whether that change played a part.

So the honest summary for this machine:

  • compute wait on: ~6 stalls in ~20 starts;
  • compute wait off: 1 in 8 (and that one with #1193 on top).

My local commit clearly made it much more frequent, but a stall of the same shape still exists without it. My earlier thread data (host idle, one title thread polling) may therefore still be relevant to the upstream stall after all. I'll leave the counting there for today.

**@⁠Exopus-0x65f7ad0** on GitHub · 2026-11-28 16:48 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/846#issuecomment-7242522253) **An update that tempers my correction above.** With my local compute-pipeline wait **off**, I've now had one more stall at world load, in 8 starts since I turned it off. It had the same signature: all host threads idle, the title's threads looping, the last frame line at 4.3 fps and then nothing. That build also had #1193 (triple buffering) merged for an A/B, so I can't tell whether that change played a part. So the honest summary for this machine: - compute wait **on**: ~6 stalls in ~20 starts; - compute wait **off**: 1 in 8 (and that one with #1193 on top). My local commit clearly made it much more frequent, but a stall of the same shape still exists without it. My earlier thread data (host idle, one title thread polling) may therefore still be relevant to the upstream stall after all. I'll leave the counting there for today.
Author
Owner

@⁠postblink on GitHub · 2026-11-28 22:49 UTC · original

Same crash here on Linux (RTX 5080, 620.73.04, vkd3d-proton under GE-Proton), same address: <title image>+0x23cf683 (write 0x0), during the first world load, about 2:20-2:40 in.

On main 77df871e with a cold pipeline cache it happened in 3 of 3 starts. With VICTORY_PIPELINE_COMPUTE_WAIT=0 (the wait arrived with #243 and is on by default) the next 2 starts reached the world in about 185 s and ran for 6.5-7 minutes with no crash: 10 fps median, full Series X with the title's ray tracing on. That fits Exopus's finding that an unbounded compute-pipeline wait stalls world loading until the title's watchdog fires.

Small sample, and a warm pipeline cache may hide it. But on a first start after an update, the default wait looks like a likely trigger.

**@⁠postblink** on GitHub · 2026-11-28 22:49 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/846#issuecomment-7247011718) Same crash here on Linux (RTX 5080, 620.73.04, vkd3d-proton under GE-Proton), same address: `<title image>+0x23cf683` (write 0x0), during the first world load, about 2:20-2:40 in. On main `77df871e` with a cold pipeline cache it happened in 3 of 3 starts. With `VICTORY_PIPELINE_COMPUTE_WAIT=0` (the wait arrived with #243 and is on by default) the next 2 starts reached the world in about 185 s and ran for 6.5-7 minutes with no crash: 10 fps median, full Series X with the title's ray tracing on. That fits Exopus's finding that an unbounded compute-pipeline wait stalls world loading until the title's watchdog fires. Small sample, and a warm pipeline cache may hide it. But on a first start after an update, the default wait looks like a likely trigger.
Author
Owner

@⁠trustno1-coder on GitHub · 2026-11-29 19:48 UTC · original

Closing this one because it was reported on a build from before v2026.11.28.03 (more than 4 releases ago) and has had no activity since v2026.11.29.01. A lot has changed since then.

If it still happens on the latest release, please open a new issue with the play log and crashes.log from that run. Thanks for reporting!

**@⁠trustno1-coder** on GitHub · 2026-11-29 19:48 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/846#issuecomment-7261575929) Closing this one because it was reported on a build from before v2026.11.28.03 (more than 4 releases ago) and has had no activity since v2026.11.29.01. A lot has changed since then. If it still happens on the [latest release](https://github.com/trustno1-coder/VIctory-NVIDIA/releases/latest), please open a new issue with the play log and crashes.log from that run. Thanks for reporting!
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#846
No description provided.