play: VICTORY_UAV_FOLD off by default again: host lists failed to close with it (#4081) #4453
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/4453"
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?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by banaanpapa on 2026-11-30T20:32:37Z.
Works around #4081 ("a host command list did not close (0x80070057)"), without fixing its cause: the launcher no longer sets
VICTORY_UAV_FOLD=1. With it, the failure ended play within minutes on one PC, three times out of three. With only this switch off, it never came in 47 minutes over five runs.--set VICTORY_UAV_FOLD=1turns it back on.How it was found
One PC (RTX 5080 16 GB, Ryzen 9 9950X3D, Windows 11 26300), one save of the title, Series X profile, 1440p, DLSS Quality. Every start of that save plays the same opening scene, then stands in the world. Release
v2026.11.30.03(=e1251c31) unless noted. The nine switchesc71899d9added to the launcher's defaults were turned off, then halved:e1251c31with other open pull requests, diagnostics buildVICTORY_LIBRARY_MAP=0VICTORY_LIBRARY_MAP=0 VICTORY_CARD_ALL=0VICTORY_LIBRARY_MAP=0and all nine new defaults offVICTORY_LIBRARY_MAP=0, off:UAV_FOLD,TABLE_SAME,TEXTURE_SOFT_MB,CARD_CPU_FILEVICTORY_LIBRARY_MAP=0 VICTORY_UAV_FOLD=0VICTORY_UAV_FOLD=0VICTORY_UAV_FOLD=0Driver 617.42, except the last run. The keys came from
VICTORY_KEYS_FILE: one Enter at the start screen, nothing after it.So, in about 11 minutes of play with
VICTORY_UAV_FOLD=1, three failures, and none in 47 minutes without it.VICTORY_LIBRARY_MAP=0, the workaround in #4081's comments, did not prevent it here: two of the three failures had it.What is not known
fold_uavsonly leaves unordered access barriers out, and that can't make a list fail to close by itself. Folding also marks a full wait as kept (State::waited), whichwait_neededhands to the indirect argument clamp (indirect::bound). That is where I'd look first, but I have not shown it. A diagnostics build withVICTORY_D3D12_DEBUG=1names the command. The PC this was found on has no Graphics Tools, so it could not.play.rs), and its own share of that was not measured apart from the rest. On this PC, in the world on this build, the card was 99 to 100 % busy, so I can't measure its gain here either.VICTORY_LIBRARY_MAP=0).A separate crash, for the record
Two of the runs without the switch ended after about 10 minutes standing in the world, both the same way:
unhandled exception 0xc0000005 at <title image>+0xa1fa8e (read …: nothing mapped there), with the same stack. One was the release, so it is not from any pull request. It has nothing to do with closing lists and this change does not touch it.Run
cargo test --release -p victory: 91, 1 and 2 pass.After a driver update to 621.40 (same PC, 2026-11-30, later)
What is above was measured on driver 617.42. On 621.40 the picture changed, so here it is as measured:
VICTORY_UAV_FOLD=1(a 10-minute session of a diagnostics build, and the release with its defaults).DXGI_ERROR_DEVICE_HUNG, 0x887A0006, "the device was lost before fence value ... was reached") with the switch on and with it off: once in the release with its defaults (after 317 s) and once in a diagnostics build withVICTORY_UAV_FOLD=0(after 177 s). Several other runs with the switch off went 5 to 10 minutes without it.So on 621.40 this switch does not decide whether a session holds, and this change is backed by the 617.42 measurements only. #4521 (texture copies D3D12 forbids, into placed twins) reports the same
0x80070057on its own route and is another candidate for its cause; the two aren't tested against each other here yet.🤖 Generated with Claude Code
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by IRennie74 on 2026-11-30T22:38:36Z.
Some data from a 5600X + RTX 3060 (driver 621.40), from #4554, that bears on whether
VICTORY_UAV_FOLDis the trigger:41adb551, which has noVICTORY_UAV_FOLDat all, 3 of 18 walking runs ended with "a host command list did not close" (E_INVALIDARG), each with texture memory near full.playsetsVICTORY_UAV_FOLD=1, it appeared in 0 of 11 runs.So here the failure came without the fold and went away with it on. That fits #4080/#4040, or something memory-pressure related, better than the fold. It is consistent with your 621.40 result that the switch does not decide it. I'd hold off on turning the fold off by default until the 617.42 result is reproduced against a build that has #4080/#4040, or until
VICTORY_D3D12_DEBUG=1names the command.On the separate crash: we hit the same
0xc0000005at+0xa1fa8e(title image), once in 11 runs, on a walking route about two minutes into the world. It was a read of an address that looks like a title pointer with its top bits lost (0x8669ebf0, next to registers holding0x9xxxxxxxx); details are in #4554. Your release-build hit confirms it is not from that PR set.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by banaanpapa on 2026-11-30T23:10:34Z.
@IRennie74 thank you, that's the counter-evidence this needed, and I agree with your reading.
What I have is one scene on one PC: on driver 617.42, 3 failures to close in about 11 minutes with the fold on, and none in about 47 minutes with it off (no #4080, #4040 or #4521 in that build). Your runs show the same failure without the fold on a build without those texture-copy fixes, and none with the fold on a build with them. So the fold is at most one of the things that bring it on; illegal texture copies (#4080, #4040, and #4521's cross-family copies into placed twins) fit both of our results better. On 621.40 I couldn't reproduce the failure to close at all, with the fold on or off.
So I'm putting this on hold: it shouldn't be merged on what's here. The test that would decide it is my 617.42 scene with the fold on and #4521 (or #4080 and #4040) applied. I'll post that if I can get back to 617.42; otherwise this pull request can be closed.
On
+0xa1fa8e: the "top bits lost" reading fits mine too. One of my four reads was0x7ccdc0d0, the other three0x28fd23ed90,0x2a3d30e970and0x8272d50df0. On this PC it went away with full DRED on (3 x 12 minutes, 0 faults), and so did a card hang in a meshlet culling pass (details in #4524). So timing matters, which fits a pointer being read while it's half written.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by IRennie74 on 2026-11-30T23:29:35Z.
@banaanpapa, more on the title crash at
+0xa1fa8e, which we now have twice in 13 runs on an e1251c31-based build (RTX 3060, 621.40) and never in ~60 runs on a41adb551base:cine@leadout@int_prolo@int@leadout_min), with the title's pools nearly full.[T + 6*0x150 + 0x58]) and uses it asBase + idx*0xb0, so what goes wrong is a garbage index in title memory, not a damaged pointer. Every faulting address reported so far fits that.c71899d9are the likeliest:VICTORY_LAZY_NARROW=1first.Line::blocking()then waits only for the "hot" pieces of large copies, and its own doc says a piece written for the first time is read as the title has it until the sweep finds it. A first write during a prestream would fit. ThenVICTORY_LAZY_COMPARE_MB=64,VICTORY_CARD_ALL=1,VICTORY_WAIT_SHARE=1.Since your rig hits it more often than ours, would you be willing to run a few sessions with
VICTORY_LAZY_NARROW=0(and, if it still happens, withVICTORY_LAZY_COMPARE_MB=0as well)? We are running the same arms on the 3060 and will post the counts.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by banaanpapa on 2026-11-30T23:53:41Z.
One correction to my last comment: the DRED part doesn't hold. Over all sessions on 621.40, the fault and the hangs came at about one per 22 minutes, in clusters, so 36 clean minutes with full DRED is roughly a 1-in-5 chance and says nothing about timing. 48 later minutes without DRED were clean too. Details in #4524.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by IRennie74 on 2026-12-01T01:24:01Z.
Counts for the
+0xa1fa8ecrash from the 3060 (621.40), same e1251c31-based build, 5 minutes in the world per run from the same save, alternating arms:LAZY_NARROW,LAZY_COMPARE_MB,CARD_ALL,WAIT_SHARE,UAV_FOLD,TABLE_SAME,CARD_CPU_FILE,QUIET_WAITS= 0)VICTORY_LAZY_NARROW=0onlyAt the default arm's rate, 16 clean runs would come by chance about 7% of the time, so this points at
VICTORY_LAZY_NARROWwithout proving it. It is consistent with the hole its own doc describes (a piece written for the first time is read as the title has it until the sweep finds it), and with the fault being a garbage index read from a table record during the leadout's prestream. We are running withVICTORY_LAZY_NARROW=0from here on and will report if it ever comes back. A run of your scene with it off would settle it faster than ours.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by IRennie74 on 2026-12-01T02:59:43Z.
Correction to my last comment: the
+0xa1fa8ecrash came back withVICTORY_LAZY_NARROW=0. Same offset, same kind of bad index (read 0x5b5cb8c0), on a newer build of ours (e1251c31+ a few open PRs + texture-memory changes), walking in the opening area withVICTORY_PACE=auto. So the 16 clean runs were mostly chance, andLAZY_NARROWis not the cause, or not the only one. Sorry for the noise; please don't take my earlier counts as pointing at it.Tally so far on the 3060: 3 crashes in about 40 runs of e1251c31-based builds, 0 in about 60 runs of 41adb551-based ones.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by tillo88 on 2026-12-01T12:07:01Z.
A data point for the question in your on-hold note: #4453 (head
90348608, fold no longer set) merged on top of v2026.11.30.03, driver 621.40, no texture-copy fix in the build, against the bare release (which setsVICTORY_UAV_FOLD=1) on the same bench and route.Crashes (warm-up runs included; one launch that failed before the game started is left out):
a host command list did not close (0x80070057)at +2:15 and +2:16, one second after the masked twin[mesh 480d53fc48107a50, pixel f41ec9d9437c021c-mask]is made: the same point and error as the base failures (#2237). So with the fold off and no copy fix, the failure to close still happens on this route, at least as often as in the base.unhandled exception 0xc0000005 at <title image>+0x2ab96f (read ...: nothing mapped there)at +4:57, a different offset from your+0xa1fa8e. This bench saw the same+0x2ab96fbefore in runs of #2305 and #3792 on v2026.11.29.05, so I don't count it against this PR.Speed (complete measured runs only):
+0.6% fps: no measurable difference.
Setup: Ryzen 7 9800X3D, RTX 5070 Ti 16 GB (driver 621.40), 32 GB RAM, Windows 11, release build, Series X 1440p, DLSS Quality, frame generation off, ray tracing off. Route: same save restored before each run (start of the game), prison cutscene, plane cutscene, first boat section, about 6 minutes.
Measured unattended on a replay bench (same save, recorded controller input via VICTORY_INPUT_REPLAY); numbers and text prepared with Claude.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by trustno1-coder on 2026-12-01T18:41:30Z.
Closing this as part of moving main to the texture and video-memory rework (v2026.12.01.01-test). A lot of the code changed, and this pull request no longer applies cleanly to it; it would need to be rewritten against the new main rather than rebased. Thank you for the work. If the change is still needed, please open a new pull request based on the current main.
Pull request closed