RTX 4060 Ti (8 GB): #189 clears all 92 refused compute pipelines; the remaining +0x23cf683 trap is not a pipeline problem #1286
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory#1286
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?
@aef200 on GitHub · 2026-11-24 17:08 UTC · original
RTX 4060 Ti (8 GB): #189 clears all 92 refused compute pipelines — the remaining
+0x23cf683trap is not a pipeline problemTitle: VIctory (1.0.2.1 retail Xbox Series build,
game_scarlett_master.exe)Host: Windows 11 26200 · i7-14700KF · 64 GB · NVIDIA RTX 4060 Ti 8 GB, driver 32.0.16.2124 · DXC 1.9.2602.17 (SDK 10.0.26100.0)
Build: workspace built with
cargo build --release -p victory --features diagnosticsTwo things that may be useful for the merge queue, both measured on the card the title is hardest to run:
1. #189 fixes the wave64 refusals completely
Before #189 (main
ffe310eb), with the D3D12 debug layer on, the first refused compute pipeline reported:That is the reason behind every
host pipeline refused error=参数错误 (0x80070057)on this card.With #189 alone (
54b333f Shaders: default <64-lane hosts to Emulate instead of Wave32):host pipeline refused0x80070057Zero refusals, first time in this whole exercise. #189 does what it says on a 32-lane host.
2. #1076 and #189 do not stack
Both change
crates/victory-shader, and the two branches have diverged structurally:emit::translate_with(...)withTranslateOptions/Wave64Modeemit::translate_for_wave(container, max_wave)built onemit_for_wave(...)Merging #1076 then #189 (or the reverse, with
-X theirs) leaveslower.rscallingemulate_wave64,emu_total,emu_exchange_pair,console_subwaveon aLowerthat does not define them:Taking only
crates/victory-gpu/srcfrom #1076 onto #189 gets further but stops at:So the two need a rebase against each other before either lands, or one of them should adopt the other's entry point. We could not run #1076 and #189 together at all, which matters because:
a draw or dispatch dropped: no dynamic slots for its tables— i.e. the descriptor heap headroom that #1076 addresses;Individually each PR fixes half of this card's problem.
3. The
+0x23cf683trap survives all of itWith zero refused pipelines the title still dies at
exactly as on main, and as reported in #675 (and reproduced on Proton/vkd3d by
am-cob). Two more data points from this side:XCL_ACTIVITY-equivalent timing here: the last present is ~30–40 s before the fault; the queue is empty (0 submits), so it is not the GPU being busy.+0x23cf735, inside the poll loop at+0x23cf716(call 0x1423cb280/test al,al/jne/Sleep(1)/ loop) — waiting for a producer that never reports ready.+0x23cf71d75→EB) made the title assert earlier (0x80000003at+0x1377e7, 50 s instead of 111 s), which says the data really is absent, not merely late.So the trap is a consequence, not the bug — no pipeline fix will remove it.
What would help most
victory_gpu=debugrun produced 213 MB / 1,000,000 log lines in 90 s and the frame rate fell from 13.6 to 0.5 fps, so the wait tracing needs a narrower target filter to be usable at world load.Happy to rerun anything on the 4060 Ti and report back.
@MichaelSmithAI on GitHub · 2026-11-24 17:15 UTC · original
One detail for anyone comparing this with an earlier #189 build on a 32-lane GPU: the reported commit
54b333fchanged automatic selection from Wave32 to Emulate. That revision accepts bothVICTORY_WAVE64_EMULATE=wave32andVICTORY_WAVE64_EMULATE=emulate. Comparing those on the same binary, with the same scene and logging settings, isolates mode selection from the other #189 changes.For scoring that comparison, the 92 → 0 figure counts “host pipeline refused” messages. The report also counts three remaining E_INVALIDARG messages, and the title still reaches the same later stop. For the subsequent “no dynamic slots” drops, the request size, largest free span, and slots retained by earlier declined binds would distinguish several allocator causes. The drop count alone doesn’t determine how much extra capacity the heap needs. We haven't reproduced this title run locally.
Automatic mode change · Mode override on the reported revision
@aef200 on GitHub · 2026-11-24 17:28 UTC · original · edited 2026-11-24 18:14 UTC
Ran all three modes on the same binary (built from
54b333f,--features diagnostics, RTX 4060 Ti 8 GB, DXC 1.9.2602.17, same scene,VICTORY_LOG=victory_loader=info,info):VICTORY_WAVE64_EMULATEnative+0x23cf683)wave32emulate(auto's choice here)Correction to my first report: the 92 refusals I quoted there came from a different build (main + #1076), so it is not comparable with the 116 above. Within this one binary the comparison is 116 -> 0, and
wave64_mode=Emulateis whatrecommended_wave64_modelogs on this card before any override.So mode selection is the lever:
nativereproduces the refusal on its own, and either override clears it.The D3D12 debug layer names the cause, first refusal,
nativemode:So those refusals are native-wave64 bytecode reaching
CreateComputeShader- not an allocator or root-signature problem. What I cannot tell from logs is whetherwave32andemulatediffer in dispatch results; #1132 suggests the two integrations differ on a standalonev_readfirstlane_b32, and I have no way to check that from the title's logs here.On the
no dynamic slotsdrops: I added a diagnostic inHostHeap::dynamicthat printsrequested,capacity,in_useandlargest_free_runat the refusal. The condition is intermittent (0-15 occurrences per run), so I do not have a sample yet; I will post the numbers as soon as a run hits it. If you would rather have different values, say which.@aef200 on GitHub · 2026-11-24 18:32 UTC · original
Status on the allocator numbers: I added the diagnostic in three places in
HostHeap:capacity,in_use,largest_free_run,allocations, plus the first allocation);requested,capacity,in_use,largest_free_run);requested,capacity).On this build (#189 + #1251) the path is not reached at all: several runs get to 0.3-1.5 fps with the world still not drawing, then stop at
+0x23cf683, and no dynamic allocation happens. The 15no dynamic slotsdrops I mentioned earlier came from a different build (#189 alone), which is why I can quote the drop count but not the sizes.I will post
requested/capacity/in_use/largest_free_runas soon as a run reaches that path. If you would rather have a different metric, or want it logged unconditionally rather than once, say which.@aef200 on GitHub · 2026-11-24 19:22 UTC · original
fxceless/victory-gta6at6a2d9f9(that fork's shadow/trace commits on top offfe310eb) and captured frames withVICTORY_CAPTURE/VICTORY_CAPTURE_FRAMES:Americasposter, jungle collage, Lucia) render correctly at 1920x1080, no corruption;The run reached roughly frame 1400 before the usual stop at
+0x23cf683; a dense capture (every 5th frame over 1000-1400) produced 52 frames, 40+ of them with real content.So the renderer is not the wall on this card - a 32-lane Ada host gets geometry, textures, characters and subtitles out. The wall remains the same
+0x23cf683.The image above is
frame-1145.pngfrom that run, unmodified.@aef200 on GitHub · 2026-11-24 21:48 UTC · original
I owe you the allocator numbers, and I have to report that I could not produce them.
I put the diagnostic on the refusal in
HostHeap::dynamic- it logs the run requested, the heap's dynamic capacity, how many slots are taken, and the largest free run there was to offer - and ran it on both trees:ffe310e: 143 refused host pipelines, 0 allocator refusals;1684989: 5 refused host pipelines, 0 allocator refusals;no dynamic slotsdrops.The drop did appear once, 15 times, in a run of a build carrying
#189with a different switch set, and I only kept the count, not the sizes. That one is on me.What I can say about the shape of it: upstream stops after about two minutes on this card, which may be too early to ever reach the state where per-draw tables exhaust - the only runs long enough to get there were on the fork, and the fork's README lists "per-draw descriptor tables could run out, after which draws used slots never made for them and the card hung; fixed" among its changes.
So the numbers are still owed. Reproducing them needs a build that survives long enough with the allocator fix taken out; if that is worth doing I can instrument the fork with that one change reverted and run it, but it is a longer job than a single run and I would rather say so than hand you a drop count with no sizes behind it.
@Marvisak on GitHub · 2026-11-25 10:13 UTC · original · edited 2026-11-25 12:44 UTC
Automated triage for the maintainers.
Thanks, a complete report: RTX 4060 Ti 8 GB, driver 32.0.16.2124, Windows 11 26200,
ffe310ediag build with #189, and the stop's error text.+0x23cf683(write0x0) is tracked in #1118, the oldest report of it. The comments there show it is the title's own watchdog. Your observation that the queue was empty (0 presents, 0 submits) before the stop is a useful data point for that thread; please post it there. (#675, cited above, is a docs pull request, not this crash.)2119b0e,5fa126b), not of this repository'smain, so they do not show whethermainmoved.mainis now940d32f(it includesd71c388,0b35b7fand the copy-back changesed0dbfd,cd94d35,940d32f). A run of940d32fitself, with how far it gets and the lastcrashes.logline, would answer that.Please keep descriptions of the title's own code to offsets and register values.
Generated by Claude Code
@aef200 on GitHub · 2026-11-25 11:38 UTC · original
Thanks - and noted on the scope rule: offsets and register values only from here. The disassembly and the byte patch in my earlier comments predate that note; I will not repeat them.
Answering your question about whether the stop moves on current
main: on this card it does, and by a lot.ffe310ewith #189: stops at+0x23cf683in the opening cutscene, about two minutes in.fxceless/victory-forkat2119b0e(newer thanffe310e): reaches gameplay, and the stop moves to a control hand-off instead - switching control to Jason, or the taser-and-arrest beat - at about 26 and 31 minutes.ka1qux/victory-ka1quxat5fa126b(built on310c6eb, so newer again): reaches the first room with the player moving, and the story then stops on the boat mission rather than on the watchdog.So on this card the watchdog no longer ends the opening cutscene; it ends long sessions, at the moments control changes hands. Frame rate at those stops is 2 to 4 fps, and the frame is bound by preparation and copy-back rather than by the card.
For #1118, the observation in detail: in the seconds before the stop the queue was empty - 0 presents and 0 submits in the activity lines, with the frame still being presented at 1 to 3 fps. If that thread wants it I can produce the same activity lines again on a current tree, and say which transition it happened at.
On the mode table: I will put it on #189 as you suggest, with the same three rows. And the #675 citation was mine to get wrong - thank you for the correction.
@RobertAndreiGit on GitHub · 2026-11-26 13:31 UTC · original
Same title-relative trap on a 3060 Ti under Proton. On title 1.0.2.1, a downstream
cool_foxrun ended at+0x23cf683,0xc0000005, write to null. The kernel logged an NVIDIAXid 31during the trial. A laterdbghelpfault was in error reporting. This corroborates the address in this issue on another host; it does not establish what caused the original write.Environment: Series S, Ryzen 5 5600, RTX 3060 Ti 8 GB, driver 615.78.08, CachyOS Proton, vkd3d-proton 3.2.0. Downstream base
f4b48ad766dd, experimental runner SHA-256750a8d0fc3885f67d82ec00b8483cb23ff062e547aeee7d161d045f2777c8c8a.The trial included a 64 KiB cap on table constant-buffer reads/copies. Both focused tests passed, including GPU readback/device health for an oversized view, but the game logged zero trimmed views and zero bytes saved before exit code 5. We got zero qualifying world samples. The previous, visibly better run used a different executable and a different requested resolution. We can’t attribute the crash to the cap or recommend it as a performance fix.
Separately, a first-world-load run on vkd3d-proton 3.1.0 crashed; pinning 3.2.0 allowed repeat world entry, but did not eliminate the above trap. We don’t have a matched stack implicating the same driver routine as #144.