RTX 50: compute 7f61193d2c0e5f22 (weatherParticle:CS_BeginUpdate) still refused with E_OUTOFMEMORY; #1939 shows merged but is not in main #4450

Open
opened 2026-11-30 20:30:04 +00:00 by github-bot · 6 comments
Owner

@⁠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 with E_OUTOFMEMORY on 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):

Card Log (issue) t / m / oom
RTX 5080 #4136 1 / 0 / 9
RTX 5080 #4384 1 / 0 / 1
RTX 5070 Ti #4422 (v2026.11.30.03) 1 / 0 / 2
RTX 5070 #4309 1 / 0 / 1
RTX 4060 own run, 2026-11-30 14:15 1 / 1 / 0

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:

16:07:02 INFO  shader translated stage="compute" hash=7f61193d2c0e5f22 user_data=4 samplers=0 ms=16
16:07:08 WARN  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

Where the earlier fix went

  • #1939 (a port of Marvisak/VIctory#3619) shows as merged into main on 2026-11-30 at 14:12, with merge commit d62c7d55. But that commit is not an ancestor of the current main (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 in main either. I checked their diffs against main. All but four have their changes in main in some form. Three of those four were reverted on purpose (#1930, #1995, #2336), which leaves #1939.
  • main instead has Lower::lds_sub (emit/lower/memory.rs): ds_sub_u32 becomes a compare-exchange loop, and Rmw::Sub was removed. #1939 also rewrote an atomicrmw add of a negated value, at the bitcode level. Whatever this program still does that the Blackwell compiler refuses, lds_sub doesn't reach it: perhaps a ds_add of a negated or constant-negative value, ds_rsub_u32, ds_dec_u32, or a subtraction on a non-LDS atomic.

Suggestions

  • Someone with an RTX 50 could check whether #1939's bitcode-level rewrite (git cherry-pick b6ce5d7e no longer builds on main, since Rmw::Sub is gone) is still needed beside lds_sub. VICTORY_DUMP_MATCH=<dir>;#7f61193d2c0e5f22 victory translate <dump>/shaders.rpf --pipelines --list shows the program's atomics without game data leaving the PC.
  • Worth a look on the maintainer side: the 14:12 batch merge marked PRs as merged whose commits did not reach 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).

**@⁠tyr0nsur** on GitHub · 2026-11-30 20:26 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4449) ## What happens On **RTX 50** cards the compute pipeline `7f61193d2c0e5f22` (`weatherParticle:CS_BeginUpdate`, per #1939) is still refused by the driver with `E_OUTOFMEMORY` on 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): | Card | Log (issue) | t / m / oom | |---|---|---| | RTX 5080 | #4136 | 1 / 0 / 9 | | RTX 5080 | #4384 | 1 / 0 / 1 | | RTX 5070 Ti | #4422 (v2026.11.30.03) | 1 / 0 / 2 | | RTX 5070 | #4309 | 1 / 0 / 1 | | RTX 4060 | own run, 2026-11-30 14:15 | 1 / 1 / 0 | 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: ``` 16:07:02 INFO shader translated stage="compute" hash=7f61193d2c0e5f22 user_data=4 samplers=0 ms=16 16:07:08 WARN 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 ``` ## Where the earlier fix went - **#1939** (a port of Marvisak/VIctory#3619) shows as **merged into `main`** on 2026-11-30 at 14:12, with merge commit `d62c7d55`. But that commit is **not an ancestor of the current `main`** (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 in `main` either. I checked their diffs against `main`. All but four have their changes in `main` in some form. Three of those four were reverted on purpose (#1930, #1995, #2336), which leaves #1939. - `main` instead has `Lower::lds_sub` (`emit/lower/memory.rs`): **`ds_sub_u32`** becomes a compare-exchange loop, and `Rmw::Sub` was removed. #1939 also rewrote an **`atomicrmw add` of a negated value**, at the bitcode level. Whatever this program still does that the Blackwell compiler refuses, `lds_sub` doesn't reach it: perhaps a `ds_add` of a negated or constant-negative value, `ds_rsub_u32`, `ds_dec_u32`, or a subtraction on a non-LDS atomic. ## Suggestions - Someone with an RTX 50 could check whether #1939's bitcode-level rewrite (`git cherry-pick b6ce5d7e` no longer builds on `main`, since `Rmw::Sub` is gone) is still needed beside `lds_sub`. `VICTORY_DUMP_MATCH=<dir>;#7f61193d2c0e5f22 victory translate <dump>/shaders.rpf --pipelines --list` shows the program's atomics without game data leaving the PC. - Worth a look on the maintainer side: the 14:12 batch merge marked PRs as merged whose commits did not reach `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-bot locked as GitHub sync and limited conversation to collaborators 2026-11-30 20:30:04 +00:00
Author
Owner

@⁠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.

  1. The play log, in %LOCALAPPDATA%\victory\logs\: the newest victory-nvidia-play-<date>-<time>-<number>.log (from victory.exe) or victory-nvidia-<date>-<time>.log (from the script launcher). The window shows its path at the start, on the line Log: ....
  2. The crash log: %LOCALAPPDATA%\VIctory\data\7952987A\crashes.log, and, if there is one from that run, the newest victory-<date>-<time>-<number>.crash.log in %LOCALAPPDATA%\VIctory\data\7952987A\temp\.

Also say which GPU, Windows version (10 or 11)

**@⁠github-actions[bot]** on GitHub · 2026-11-30 20:26 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4449#issuecomment-7290919300) 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. 1. The play log, in `%LOCALAPPDATA%\victory\logs\`: the newest `victory-nvidia-play-<date>-<time>-<number>.log` (from `victory.exe`) or `victory-nvidia-<date>-<time>.log` (from the script launcher). The window shows its path at the start, on the line `Log: ...`. 2. The crash log: `%LOCALAPPDATA%\VIctory\data\7952987A\crashes.log`, and, if there is one from that run, the newest `victory-<date>-<time>-<number>.crash.log` in `%LOCALAPPDATA%\VIctory\data\7952987A\temp\`. Also say which GPU, Windows version (10 or 11)
Author
Owner

@⁠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 (b6ce5d7e no 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.

**@⁠adelmosabba** on GitHub · 2026-11-30 23:03 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4449#issuecomment-7294657805) · 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 (b6ce5d7e no 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.
Author
Owner

@⁠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_u32 to a compare-exchange loop. The other form handled by #1939 was an LDS atomicrmw add whose operand is a negated value. This build can dump the emitted DXIL locally without creating a graphics pipeline. From PowerShell, with dxc.exe on PATH and your own path to the archive:

$env:VICTORY_TRANSLATE_ONLY = '7f61193d2c0e5f22'
$env:VICTORY_EMIT_OUT = Join-Path $env:TEMP 'victory-weather-dxil'
.\victory.exe translate 'C:\path\to\shaders.rpf' --list
Get-ChildItem $env:VICTORY_EMIT_OUT -Filter '*.dxil' | ForEach-Object {
    & dxc.exe -dumpbin $_.FullName | Select-String 'atomicrmw|cmpxchg' -Context 3,0
}

The useful summary is whether an atomicrmw add on address space 3 is present and whether its input is defined as sub 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.

**@⁠tyr0nsur** on GitHub · 2026-11-30 23:18 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4449#issuecomment-7294958761) Thanks for testing the 5060 Ti. Current main already lowers a direct LDS `ds_sub_u32` to a compare-exchange loop. The other form handled by #1939 was an LDS `atomicrmw add` whose operand is a negated value. This build can dump the emitted DXIL locally without creating a graphics pipeline. From PowerShell, with `dxc.exe` on PATH and your own path to the archive: ```powershell $env:VICTORY_TRANSLATE_ONLY = '7f61193d2c0e5f22' $env:VICTORY_EMIT_OUT = Join-Path $env:TEMP 'victory-weather-dxil' .\victory.exe translate 'C:\path\to\shaders.rpf' --list Get-ChildItem $env:VICTORY_EMIT_OUT -Filter '*.dxil' | ForEach-Object { & dxc.exe -dumpbin $_.FullName | Select-String 'atomicrmw|cmpxchg' -Context 3,0 } ``` The useful summary is whether an `atomicrmw add` on address space 3 is present and whether its input is defined as `sub 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.
Author
Owner

@⁠adelmosabba on GitHub · 2026-11-30 23:22 UTC · original

yes, atomicrmw add on addrspace(3) with operand defined as sub i32 0, %419

**@⁠adelmosabba** on GitHub · 2026-11-30 23:22 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4449#issuecomment-7295032713) yes, atomicrmw add on addrspace(3) with operand defined as sub i32 0, %419
Author
Owner

@⁠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, branch claude/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 victory and use the same in-game load that previously translated 7f61193d2c0e5f22 and logged the repeated E_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 dd7e00a2c94d08464465628b6cdeb3ad6654be3f on 7d93ee07. Use that head for a new build. The two-file rewrite is identical to the patch described above.

**@⁠tyr0nsur** on GitHub · 2026-11-30 23:34 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4449#issuecomment-7295280247) · 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`, branch `claude/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 victory` and use the same in-game load that previously translated `7f61193d2c0e5f22` and logged the repeated `E_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 `dd7e00a2c94d08464465628b6cdeb3ad6654be3f` on `7d93ee07`. Use that head for a new build. The two-file rewrite is identical to the patch described above.
Author
Owner

@⁠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:

INFO victory_gpu::pipeline: shader translated stage=compute hash=7f61193d2c0e5f22 user_data=4 samplers=0 ms=0
INFO victory_gpu::pipeline::host: host pipeline shaders=[compute 7f61193d2c0e5f22]

No host pipeline not made: ... E_OUTOFMEMORY and no host pipeline refused for 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=1

So the check this draft was waiting for passes on this card. Game data kept local.

**@⁠adelmosabba** on GitHub · 2026-11-30 23:53 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4449#issuecomment-7295647932) 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: ``` INFO victory_gpu::pipeline: shader translated stage=compute hash=7f61193d2c0e5f22 user_data=4 samplers=0 ms=0 INFO victory_gpu::pipeline::host: host pipeline shaders=[compute 7f61193d2c0e5f22] ``` No `host pipeline not made: ... E_OUTOFMEMORY` and no `host pipeline refused` for 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=1` So the check this draft was waiting for passes on this card. Game data kept local.
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA#4450
No description provided.