Queue: held waits nothing meets go unmet after 1.5 s without a present #901
No reviewers
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!901
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-901"
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 08:48 UTC · original
pr/held-wait→main· +306 −5 · 4 files · 2 commits · closed without mergingFixes #846.
Sometimes the title stops presenting while a value wait is held, and nothing ever meets that wait. The title's watchdog then writes to 0 at
+0x23cf683(the "GPU Loc Sig" fatal from #628). The held wait passes only once a present is queued, the fence signal sits behind it, and the title thread never wakes.194fb78b: 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.3a62c3f2: review fixes.Testing:
cargo test -p victory-gpu: 458 passed, 0 failed (36 ignored), on top of63b902fe.First landed in our fork:
github.com/Machad3x/VIctory-nvidia-RTX@10fcc252andgithub.com/Machad3x/VIctory-nvidia-RTX@d4c31913(fork main 0fa96c91). Cherry-picked onto current main here.🤖 Generated with Claude Code
@Machad3x on GitHub · 2026-11-28 08:59 UTC · original
Update: the crash happened again on a build with this change (our fork main
0fa96c91, which has these two commits), in a run withVICTORY_PLACED_READS=1 VICTORY_PLACED_ORDER=1also set. Same write to 0 at+0x23cf683, with+0x2215c35as the caller.What the log shows:
So this stall is not a held value wait. Something else stops the frames, possibly on our side. I'm looking into it and will post what I find. This PR still fixes the held-wait case, but on its own it does not close #846.
@Dukestar69 on GitHub · 2026-11-28 09:34 UTC · original · approved these changes
Tested locally merged onto
main(63b902f).cargo xtask policypassed (294 files ok).cargo test -p victory-gpu --lib queue::passed (15 passed; 0 failed, includinga_wait_nothing_meets_goes_unmet_after_a_while,each_wait_gets_its_own_time,a_title_waiting_for_a_held_signal_lets_the_wait_go,a_present_goes_behind_everything_before_it_met_or_not, andan_urge_passes_only_the_wait_in_front_of_its_signal) with 0 compiler warnings.Great deadlock-recovery guard for unmet held queue waits with thorough unit coverage. LGTM.
Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).
@Exopus-0x65f7ad0 on GitHub · 2026-11-28 14:51 UTC · original
Tested on a machine that reproduces the #846 stall often: RTX 5060 Ti 8 GB, 16 GB RAM, Windows 11 26300.
63b902f+ this PR, release, with README launcher defaults (VICTORY_RELAY=2,THIN=1, sobehind::on()is true and the valve is live), Series X, native 1440p, DLSS Quality. My local build also has the title's watchdog fault patched out, so a stall stays a stall instead of becoming the+0x23cf683crash, which makes it easy to see whether anything ever unsticks it.4 starts in a row, 120 s in the world each:
held work runs without its unmet waita queue still stood at a wait at a presentSo on this machine the valve never fired, not even in the two runs that stalled for over 3 minutes, and the stall didn't clear. Without the PR I had 4 such stalls in ~14 starts today, so the rate looks unchanged (small numbers, though). It matches #990's "the fix never fires here".
What these stalls look like (details in #846): all 78 host threads are idle at 0 CPU and the driver threads are idle. One title thread keeps looping (~24 % of a core, half the samples in an
ntdllwait), and no host log lines appear except the xmem timer. Since the valve never sees a held wait, I think this kind of stall isn't a value wait parked inqueue/behind.rs. The title is waiting on something the host never completes, but not through a queue wait the valve can pass.The change itself looks harmless: no new warnings, and the two good runs played normally. Happy to run a build with extra logging around title fence waits (
title_waits/current()values) if you want to see what the title is spinning on.@Exopus-0x65f7ad0 on GitHub · 2026-11-28 16:02 UTC · original
Correction, please discount my test above. The stalls in my four runs were very likely caused by a local, unpublished commit in my build: a dispatch that waits for its compute pipeline with no time limit. With that turned off (
VICTORY_PIPELINE_COMPUTE_WAIT=0), the same build stalled 0 times in 5 starts, against ~6 in 20 with it on (details on #846). So "the valve never fired" was simply because those stalls weren't held queue waits at all. That says nothing against this PR for the real+0x23cf683case on upstream builds. Sorry for the false lead.@Razen114514 on GitHub · 2026-11-28 19:46 UTC · original
A longer run on an 8 GB card: 3 h 9 m with no fault, against every previous run stopping at 56 min
Not a new diagnosis — just a longer soak than the two 240 s runs in the PR, on a card and profile that this thread has less of.
Setup. RTX 5060 8 GB, driver 32.0.16.2124, Windows 11 26300, 32 GB RAM, title
1.0.2.1, imageb99f876b74d4a77f. Built from63b902fwith #850, #857, #851 and #901 merged. Series S, DLSS performance, frame generation 2x,VICTORY_INPLACE=2,VICTORY_AMBIENT_SHADE=0,0.6,VICTORY_AMBIENT_ONCE=1.+0x23cf683unhandled exceptionThe failing run was the same build minus #901, same machine, same profile; it reached the city at about 10,000 draws and stopped 55 minutes in, at the watchdog.
The world played normally throughout at 5–14 fps depending on draw count, including the dense-crowd and dense-foliage scenes that used to kill it.
Two caveats, because they matter.
held waitnever logged anything, and reading the patch it may not log at all. So I cannot show the new path executed; only that the fault which used to end these runs did not happen. If there is a switch or a counter that shows the held wait being passed, I will run again with it and report what it says.For anyone else on a small card: the same watchdog stop is documented at
+0x2215c35/+0x23cf683indocs/crash-addresses.md, and on this hardware it is what a 55-minute session used to end with.Pull request closed