RTX 50: compute 7f61193d2c0e5f22 (weatherParticle:CS_BeginUpdate) still refused with E_OUTOFMEMORY; #1939 shows merged but is not in main #4450
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#4450
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?
@tyr0nsur on GitHub · 2026-11-30 20:26 UTC · original
What happens
On RTX 50 cards the compute pipeline
7f61193d2c0e5f22(weatherParticle:CS_BeginUpdate, per #1939) is still refused by the driver withE_OUTOFMEMORYon the v2026.11.30 builds. It is retried every second, never made, and its dispatches are dropped. The one RTX 40 run that asked for it (an RTX 4060) made it.I compared the play logs attached to recent issues (no new runs of mine). For each log: whether the shader was translated (t), made (m), and refused with E_OUTOFMEMORY (oom):
In 18 other logs on RTX 20 to 50 cards the shader was never asked for (t = 0), so they say nothing either way. RTX 50 refuses it every time it is asked for; the one RTX 40 run makes it in about 0.1 s. In #4136 the PC had 19.6 GB free and 74 GB left to commit at the first refusal, so this is not memory pressure:
Where the earlier fix went
mainon 2026-11-30 at 14:12, with merge commitd62c7d55. But that commit is not an ancestor of the currentmain(e1251c31), and none of its code (Module::atomic_subtracts,VICTORY_ATOMIC_SUB_LOOP,atomic_sub_loops=in the cache key) is in the tree. It has no revert commit either. It looks lost in the batch merge of that minute: 107 PRs show as merged at 14:12, and their merge commits are not inmaineither. I checked their diffs againstmain. All but four have their changes inmainin some form. Three of those four were reverted on purpose (#1930, #1995, #2336), which leaves #1939.maininstead hasLower::lds_sub(emit/lower/memory.rs):ds_sub_u32becomes a compare-exchange loop, andRmw::Subwas removed. #1939 also rewrote anatomicrmw addof a negated value, at the bitcode level. Whatever this program still does that the Blackwell compiler refuses,lds_subdoesn't reach it: perhaps ads_addof a negated or constant-negative value,ds_rsub_u32,ds_dec_u32, or a subtraction on a non-LDS atomic.Suggestions
git cherry-pick b6ce5d7eno longer builds onmain, sinceRmw::Subis gone) is still needed besidelds_sub.VICTORY_DUMP_MATCH=<dir>;#7f61193d2c0e5f22 victory translate <dump>/shaders.rpf --pipelines --listshows the program's atomics without game data leaving the PC.main. #1939 is the only one I found missing without a revert, but the others' authors may assume their exact versions landed.AI-assisted with Claude Code (log comparison and history check; no RTX 50 here to test a fix).
@github-actions[bot] on GitHub · 2026-11-30 20:26 UTC · original
Please attach both logs from the run that went wrong. Without them we can only guess. Paste
%LOCALAPPDATA%into the address bar of File Explorer to get there.%LOCALAPPDATA%\victory\logs\: the newestvictory-nvidia-play-<date>-<time>-<number>.log(fromvictory.exe) orvictory-nvidia-<date>-<time>.log(from the script launcher). The window shows its path at the start, on the lineLog: ....%LOCALAPPDATA%\VIctory\data\7952987A\crashes.log, and, if there is one from that run, the newestvictory-<date>-<time>-<number>.crash.login%LOCALAPPDATA%\VIctory\data\7952987A\temp\.Also say which GPU, Windows version (10 or 11)
@adelmosabba on GitHub · 2026-11-30 23:03 UTC · original · edited 2026-11-30 23:05 UTC
RTX 5060 Ti 16 GB (RTX 50 / Blackwell), Windows 11 — same failure here.
Build v2026.11.30.03 (
e1251c31, source build), Series X + DLSS Ultra Performance (also seen in Series S runs).Play logs, several runs (Nov 29–30, 2026):
INFO victory_gpu::pipeline: shader translated stage="compute" hash=7f61193d2c0e5f22 user_data=4 samplers=0
WARN victory_gpu::pipeline::make: host pipeline not made: D3D12 returned E_OUTOFMEMORY; it is tried again 1000 ms later, its draws are dropped until then shaders=[compute 7f61193d2c0e5f22] so_far=1
(so_far=2 in longer runs; the 2026-11-29 build logged the same as
host pipeline refused error=... (0x8007000E) shaders=[compute 7f61193d2c0e5f22].)Standalone, same build:
VICTORY_TRANSLATE_ONLY=7f61193d2c0e5f22 victory translate shaders.rpf --pipelines --list
weatherParticle:CS_BeginUpdate_f7374ac1_Wrapped #7f61193d2c0e5f22 ~a953ed9c Cs emitted ee7c002a67c55698
pipeline: E_INVALIDARG (0x80070057)
The container translates (324 IR instructions, 227 vector, 6 branches/lane) and emits DXIL; the host pipeline is refused. In the standalone tool the driver answers E_INVALIDARG rather than the game's E_OUTOFMEMORY — the tool's pipeline state is not the title's, but the shader cannot get a pipeline on this card either way. No game data was shared; the container dump stays local.
I don't have a branch with #1939 that builds (
b6ce5d7eno longer cherry-picks), but I can build and test any branch/commit you want on this RTX 5060 Ti, including a reworked LDS-atomic lowering, and report the pipeline outcome and logs. If there is a diagnostic that prints the program's atomics (translate --list does not), point me at it and I will run it here.@tyr0nsur on GitHub · 2026-11-30 23:18 UTC · original
Thanks for testing the 5060 Ti. Current main already lowers a direct LDS
ds_sub_u32to a compare-exchange loop. The other form handled by #1939 was an LDSatomicrmw addwhose operand is a negated value. This build can dump the emitted DXIL locally without creating a graphics pipeline. From PowerShell, withdxc.exeon PATH and your own path to the archive:The useful summary is whether an
atomicrmw addon address space 3 is present and whether its input is defined assub i32 0, ...or an equivalent negation. The definition may be above the three context lines. Please keep the DXIL and the disassembly local. The runtime PSO outcome on your card is the useful test for an adapted branch.@adelmosabba on GitHub · 2026-11-30 23:22 UTC · original
yes, atomicrmw add on addrspace(3) with operand defined as sub i32 0, %419
@tyr0nsur on GitHub · 2026-11-30 23:34 UTC · original · edited 2026-11-30 23:56 UTC
That confirms the instruction form the old workaround handled. The adapted branch is in draft #4596 at
913335f012ff70b764049ded662ada07000420b5(tyr0nsur/VIctory-NVIDIA, branchclaude/atomic-add-of-negation-loop). The IR rewrite test and the existing LDS subtraction dispatch test passed on the Windows RTX 4060 test system.For the 5060 Ti comparison, build this head with
cargo build --release --locked -p victoryand use the same in-game load that previously translated7f61193d2c0e5f22and logged the repeatedE_OUTOFMEMORY. The translator fingerprint selects the patched translation at normal startup. The useful result is whether the game reaches that shader and the host still refuses its pipeline. The same short log excerpt you shared before would be enough.Update after the upstream history rewrite: the current draft head is
dd7e00a2c94d08464465628b6cdeb3ad6654be3fon7d93ee07. Use that head for a new build. The two-file rewrite is identical to the patch described above.@adelmosabba on GitHub · 2026-11-30 23:53 UTC · original
RTX 5060 Ti 16 GB (RTX 50 / Blackwell), Windows 11 — tested the #4596 head
913335f012ff70b764049ded662ada07000420b5(source build:cargo build --release --locked -p victory; Series X + DLSS Quality, 1440, no frame generation; the same beach save/load that previously logged the repeated E_OUTOFMEMORY).The game reaches the shader and the host now creates its pipeline:
No
host pipeline not made: ... E_OUTOFMEMORYand nohost pipeline refusedfor this shader in the run. The previous build (v2026.11.30.03) logged on the same load:host pipeline not made: D3D12 returned E_OUTOFMEMORY; it is tried again 1000 ms later, its draws are dropped until then shaders=[compute 7f61193d2c0e5f22] so_far=1So the check this draft was waiting for passes on this card. Game data kept local.