Intermittent title crash (write 0x0 at +0x23cf683) after a stall with no presents: held value wait never released #846
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA#846
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@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:
Likely cause: a queue deadlock. In
queue/behind.rs(Lane::step) andqueue.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).@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
8fc22547plus our off-by-default ports, Series S, DLSS Performance), the title died twice withunhandled 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).
@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 afterVICTORY_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;=0restores the old behaviour. The release logsheld 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.@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::GetCompletedValuewas 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 aGetCompletedValuespin, 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 theGetCompletedValuecount. 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).
@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.
63b902fplus local commits, none of them inqueue/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
+0x23cf683crash.8.0 fps, 125.3 ms/frame … 2960 draws/frame, dropped 369 without a host pipeline1.0 fps, 1030.0 ms/frame … 3611 draws/frame, dropped 338 without a host pipelinea 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 withcopies 100–216 ms,388–520 ms on the GPUWhat may help narrow it down:
victory_gpu::host,land,drawordescriptorsummary appears again, although they normally come every 5 s. The only lines that keep coming, every 10 s for the whole 98 minutes, arevictory_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 staysResponding=True(the window pumps).held work …line appears, because main doesn't have theVICTORY_HELD_WAIT_MSchange (Machad3x's fork commit0fa96c91above).texture queue's room … 90.0 % of a budget of 7013 MB: no roomright 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 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 was5.0 fps, 201.0 ms/frameand followed a0.6 fps, 1566.9 ms/frame (734.7 preparing: copies 269.2 ms 747.0 MB …)spike. The last log lines (14:03:52) arefirst 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):
victory.exe(host: relay, submit, landing, helpers…)Wait(UserRequest / Unknown)+0x2215ea0(the title's thread entry, the same as frame #2+0x2215ecain the watchdog stacks above)nvwgf2umx.dll(driver)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_MSchange in Machad3x's fork targets.Next time I'll try to get a symbolized host stack (the Windows SDK
cdb.exeon 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 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):
held work runs without its unmet waitand 0a queue still stood at a wait…lines (details on #901). So at least the stalls on this machine aren't a value wait parked inqueue/behind.rs.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 bufferswas 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 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()inpipeline::make::readyinstead of the frame-budgetedwait; switchVICTORY_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'sOnceLockfor 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:
VICTORY_PIPELINE_COMPUTE_WAIT=0(upstream behaviour)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
+0x23cf683stall people get on upstream builds. Sorry for the noise. The thread-analysis method (Win32StartAddressper thread plus RIP sampling) still works if someone wants to use it on an upstream stall.@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:
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.
0xc0000005atvictory-image-…dll+0x23cf683(write 0x0) during cutscene prestream on 8 GB RTX 4060 Laptop (Series S mode) #1031@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
77df871ewith a cold pipeline cache it happened in 3 of 3 starts. WithVICTORY_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.
@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!