Crash 0xc0000005 (write 0x0) while loading the boat cutscene — reproducible 3x on latest main #80

Open
opened 2026-11-27 10:46:00 +00:00 by github-bot · 20 comments
Owner

@⁠Cush-dev on GitHub · 2026-11-27 09:46 UTC · original

Hardware

  • Cloud workstation (Shadow PC, "Advanced" tier)
  • CPU: AMD EPYC 7543P, 8 vCores @ 3.7 GHz
  • GPU: NVIDIA RTX A4500 20 GB (Ampere), driver 621.24 (R620 release branch)
  • RAM: 28 GB — OS: Windows 11 Home 64-bit
  • Own title dump, v1.0.2.1 (no files shared)

Build

  • main @ bd8b4f5, cargo build --release --locked -p victory
  • Launcher: Play-VIctory.cmd, all defaults (series-x, THIN=0, JOIN_PARTS=0,
    PORT_GUARD=1, PORT_JOURNAL=1, PORT_CONSTANTS=0, PORT_CBV=0, cache-pareto)
  • VICTORY_GAME_DIR set in the environment

What happens

The game boots and plays fine, then crashes during the load of the boat
cutscene sequence (early story point). Three consecutive runs today, the
crash is bit-identical every time:

VIctory: unhandled exception 0xc0000005 at
  victory-image-b99f876b74d4a77f.dll+0x23cf683 (write 0x0: nothing mapped there)
  rax 0x0 rbx 0x0 rcx 0xd0024c348 rdx 0x1 rsi 0x701eaff998 rdi 0x5847a6434
  rsp 0x701eaff920 rbp 0x0 r8 0xd074d8c40 r9 0xd074d8e20 r10 0xd074d8ad8
  r11 0xd074d8c40 r12 0x56742b437 r13 0x7ffa30075c28 r14 0x7ffae87fb220
  r15 0x572f05313
  #0 victory-image-b99f876b74d4a77f.dll+0x23cf683
  #1 victory-image-b99f876b74d4a77f.dll+0x2215c35
  #2 victory-image-b99f876b74d4a77f.dll+0x2215eca
  #3 KERNEL32.DLL+0x2dda7
  #4 ntdll.dll+0xc9c5c

The crash lands immediately after the same two compute shaders fail to
translate (same hashes on every run):

WARN stage="compute" hash=ff6fdf23ce0b9048
  GFX10 code at 0x32dc: a wave-wide branch where not every lane runs is not supported
WARN stage="compute" hash=0a5ecfee6b79e13b
  GFX10 code at 0x0: no wave32 lowering for this wave64 program is not supported

Suspect: one of these dropped compute pipelines leaves a null output the game
writes through while loading the cutscene.

Same crash on the build before bd8b4f5 (identical offset and registers), so
the new EXEC preservation fix does not cover this one.

Also reproduced with PORT_GUARD=0 and PORT_JOURNAL=0: identical crash, same
offset and register pattern, so the default-on ports are not involved.

Full warm + run log available on request.

**@⁠Cush-dev** on GitHub · 2026-11-27 09:46 UTC · [original](https://github.com/DoubleGhosty/cool_fox/issues/80) ### Hardware - Cloud workstation (Shadow PC, "Advanced" tier) - CPU: AMD EPYC 7543P, 8 vCores @ 3.7 GHz - GPU: NVIDIA RTX A4500 20 GB (Ampere), driver 621.24 (R620 release branch) - RAM: 28 GB — OS: Windows 11 Home 64-bit - Own title dump, v1.0.2.1 (no files shared) ### Build - main @ bd8b4f5, cargo build --release --locked -p victory - Launcher: Play-VIctory.cmd, all defaults (series-x, THIN=0, JOIN_PARTS=0, PORT_GUARD=1, PORT_JOURNAL=1, PORT_CONSTANTS=0, PORT_CBV=0, cache-pareto) - VICTORY_GAME_DIR set in the environment ### What happens The game boots and plays fine, then crashes during the load of the boat cutscene sequence (early story point). Three consecutive runs today, the crash is bit-identical every time: VIctory: unhandled exception 0xc0000005 at victory-image-b99f876b74d4a77f.dll+0x23cf683 (write 0x0: nothing mapped there) rax 0x0 rbx 0x0 rcx 0xd0024c348 rdx 0x1 rsi 0x701eaff998 rdi 0x5847a6434 rsp 0x701eaff920 rbp 0x0 r8 0xd074d8c40 r9 0xd074d8e20 r10 0xd074d8ad8 r11 0xd074d8c40 r12 0x56742b437 r13 0x7ffa30075c28 r14 0x7ffae87fb220 r15 0x572f05313 #0 victory-image-b99f876b74d4a77f.dll+0x23cf683 #1 victory-image-b99f876b74d4a77f.dll+0x2215c35 #2 victory-image-b99f876b74d4a77f.dll+0x2215eca #3 KERNEL32.DLL+0x2dda7 #4 ntdll.dll+0xc9c5c The crash lands immediately after the same two compute shaders fail to translate (same hashes on every run): WARN stage="compute" hash=ff6fdf23ce0b9048 GFX10 code at 0x32dc: a wave-wide branch where not every lane runs is not supported WARN stage="compute" hash=0a5ecfee6b79e13b GFX10 code at 0x0: no wave32 lowering for this wave64 program is not supported Suspect: one of these dropped compute pipelines leaves a null output the game writes through while loading the cutscene. Same crash on the build before bd8b4f5 (identical offset and registers), so the new EXEC preservation fix does not cover this one. Also reproduced with PORT_GUARD=0 and PORT_JOURNAL=0: identical crash, same offset and register pattern, so the default-on ports are not involved. Full warm + run log available on request.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 10:46:00 +00:00
Author
Owner

@⁠Cush-dev on GitHub · 2026-11-27 09:48 UTC · original

Cross-reference: the fault address is identical to #32
(victory-image-b99f876b74d4a77f.dll+0x23cf683, write 0x0) on an RTX 5050
laptop with VICTORY_WAVE_WIDE=1 — different GPU, different tier, same
fault site. Mine occurs without VICTORY_WAVE_WIDE set, at the boat
cutscene load, right after the compute shaders in the log above fail
to translate. Looks like the same emulator-side gap behind both.

**@⁠Cush-dev** on GitHub · 2026-11-27 09:48 UTC · [original](https://github.com/DoubleGhosty/cool_fox/issues/80#issuecomment-7215126211) Cross-reference: the fault address is identical to #32 (victory-image-b99f876b74d4a77f.dll+0x23cf683, write 0x0) on an RTX 5050 laptop with VICTORY_WAVE_WIDE=1 — different GPU, different tier, same fault site. Mine occurs without VICTORY_WAVE_WIDE set, at the boat cutscene load, right after the compute shaders in the log above fail to translate. Looks like the same emulator-side gap behind both.
Author
Owner

@⁠Hasusmogus on GitHub · 2026-11-27 09:57 UTC · original

This looks like the same crash as two other reports: the same write to 0 at victory-image-b99f876b74d4a77f.dll+0x23cf683 with the same #1 +0x2215c35, #2 +0x2215eca stack, on different hardware:

  • here: RTX A4500, Windows 11, right after ff6fdf23ce0b9048 and 0a5ecfee6b79e13b failed to translate;
  • #39 (comment from 09:05): Linux/Proton, right after a pipeline worker died making CS_Prop_BatchNoCull_c47eb2b0 and a dispatch was dropped;
  • #69: RX 9070, Windows 10, right after a dispatch was dropped for want of a host pipeline.

So each time, a compute dispatch is dropped first, which fits the title reading back something that dispatch should have written and using it as a pointer.

ff6fdf23ce0b9048's refusal (a wave-wide branch where not every lane runs) comes from the #66 change, which now takes branches on a mask's SCC wave-wide. #81 translates such a program with those branches split per lane instead, as before #66, rather than dropping it. If you can try #81 to the boat cutscene with VICTORY_WAVE_WHY=1, the log will say whether ff6fdf23ce0b9048 took that path and whether the crash goes. 0a5ecfee6b79e13b (no wave32 lowering) is a different refusal, and #81 does nothing for it. If the crash stays, that one is the next suspect.

Written with AI assistance (Claude), reviewed by me.

**@⁠Hasusmogus** on GitHub · 2026-11-27 09:57 UTC · [original](https://github.com/DoubleGhosty/cool_fox/issues/80#issuecomment-7215298752) This looks like the same crash as two other reports: the same write to 0 at `victory-image-b99f876b74d4a77f.dll+0x23cf683` with the same `#1 +0x2215c35`, `#2 +0x2215eca` stack, on different hardware: - here: RTX A4500, Windows 11, right after `ff6fdf23ce0b9048` and `0a5ecfee6b79e13b` failed to translate; - #39 (comment from 09:05): Linux/Proton, right after a pipeline worker died making `CS_Prop_BatchNoCull_c47eb2b0` and a dispatch was dropped; - #69: RX 9070, Windows 10, right after a dispatch was dropped for want of a host pipeline. So each time, a compute dispatch is dropped first, which fits the title reading back something that dispatch should have written and using it as a pointer. `ff6fdf23ce0b9048`'s refusal (`a wave-wide branch where not every lane runs`) comes from the #66 change, which now takes branches on a mask's SCC wave-wide. #81 translates such a program with those branches split per lane instead, as before #66, rather than dropping it. If you can try #81 to the boat cutscene with `VICTORY_WAVE_WHY=1`, the log will say whether `ff6fdf23ce0b9048` took that path and whether the crash goes. `0a5ecfee6b79e13b` (`no wave32 lowering`) is a different refusal, and #81 does nothing for it. If the crash stays, that one is the next suspect. *Written with AI assistance (Claude), reviewed by me.*
Author
Owner

@⁠Razen114514 on GitHub · 2026-11-27 10:34 UTC · original

Same crash on an RTX 5060 8 GB, and it is a regression introduced after 3277b15

Identical fault, different card, and a version boundary that may narrow it down.

The fault is the same, frame for frame

VIctory: unhandled exception 0xc0000005 at victory-image-b99f876b74d4a77f.dll+0x23cf683
  (write 0x0: nothing mapped there)
  #0 victory-image-b99f876b74d4a77f.dll+0x23cf683
  #1 victory-image-b99f876b74d4a77f.dll+0x2215c35
  #2 victory-image-b99f876b74d4a77f.dll+0x2215eca
  #3 KERNEL32.DLL+0x2dda7
  #4 ntdll.dll+0xc9c5c

#0, #1 and #2 match yours exactly. Mine lands 79 s after launch, while the run is
still translating (the last lines before it are shader translated …), not on a cutscene
load — so the trigger may differ even though the fault does not.

Hardware

  • RTX 5060, 8 GB, Blackwell, 32-lane waves, driver 32.0.16.2124
  • 32 GB RAM, Windows 11 build 26300
  • Same dump: game_scarlett_master.exe blake3
    b99f876b74d4a77f03af5f878223b27bd647b5c35a79d5decd9f716504239e93, title 7952987A

Yours is a 20 GB A4500 and mine is an 8 GB 5060, and both fault at +0x23cf683 with
write 0x0. That rules out video memory as the cause.

The version boundary — the part that may help

build +0x23cf683
3277b15 (2026-11-26 18:59) no fault, 5 min 24 s, and further I stopped it
9a4aa8d (2026-11-27 09:41) faults at 79 s
all3n1k/VIctory-RTX3090 @ abf70c4 (vendors the 2026-11-27 cool_fox tree) faults at 79 s

So on this machine it is not present before the 27th and present after. It is also not
tied to VICTORY_WAVE_WIDE: on 3277b15 I ran six full sessions with the wave-wide form
on, off, with library mapping disabled, with no StorePipeline, with a halved render
scale and with an emptied pipeline library, and none of them faulted here at +0x23cf683
— that build's failure is a device removal (0x887A0006) after 2.5–3 minutes instead.
On 9a4aa8d the fault appears regardless of that switch.

What I cannot tell you

I have no symbols, so +0x2215c35 and +0x2215eca mean nothing to me beyond the fact
that they match your report. If those two frames are in the same module as something you
changed on the 27th, that is where I would look first; I can run any candidate commit and
report whether the fault is still there, one run per commit, on this card.

One extra data point, offered as a data point

all3n1k/VIctory-RTX3090 vendors this tree and reproduces it, so the tree's own launcher
defaults are probably not the difference. Both my runs use --console series-s; I have
not tried series-x on 9a4aa8d.

**@⁠Razen114514** on GitHub · 2026-11-27 10:34 UTC · [original](https://github.com/DoubleGhosty/cool_fox/issues/80#issuecomment-7216040045) ## Same crash on an RTX 5060 8 GB, and it is a regression introduced after `3277b15` Identical fault, different card, and a version boundary that may narrow it down. ### The fault is the same, frame for frame ``` VIctory: unhandled exception 0xc0000005 at victory-image-b99f876b74d4a77f.dll+0x23cf683 (write 0x0: nothing mapped there) #0 victory-image-b99f876b74d4a77f.dll+0x23cf683 #1 victory-image-b99f876b74d4a77f.dll+0x2215c35 #2 victory-image-b99f876b74d4a77f.dll+0x2215eca #3 KERNEL32.DLL+0x2dda7 #4 ntdll.dll+0xc9c5c ``` `#0`, `#1` and `#2` match yours exactly. Mine lands 79 s after launch, while the run is still translating (the last lines before it are `shader translated …`), not on a cutscene load — so the trigger may differ even though the fault does not. ### Hardware - RTX 5060, **8 GB**, Blackwell, 32-lane waves, driver 32.0.16.2124 - 32 GB RAM, Windows 11 build 26300 - Same dump: `game_scarlett_master.exe` blake3 `b99f876b74d4a77f03af5f878223b27bd647b5c35a79d5decd9f716504239e93`, title `7952987A` Yours is a 20 GB A4500 and mine is an 8 GB 5060, and both fault at `+0x23cf683` with `write 0x0`. **That rules out video memory as the cause.** ### The version boundary — the part that may help | build | `+0x23cf683` | | --- | --- | | `3277b15` (2026-11-26 18:59) | **no fault**, 5 min 24 s, and further I stopped it | | `9a4aa8d` (2026-11-27 09:41) | faults at **79 s** | | `all3n1k/VIctory-RTX3090` @ `abf70c4` (vendors the 2026-11-27 cool_fox tree) | faults at **79 s** | So on this machine it is not present before the 27th and present after. It is also **not** tied to `VICTORY_WAVE_WIDE`: on `3277b15` I ran six full sessions with the wave-wide form on, off, with library mapping disabled, with no `StorePipeline`, with a halved render scale and with an emptied pipeline library, and none of them faulted here at `+0x23cf683` — that build's failure is a device removal (`0x887A0006`) after 2.5–3 minutes instead. On `9a4aa8d` the fault appears regardless of that switch. ### What I cannot tell you I have no symbols, so `+0x2215c35` and `+0x2215eca` mean nothing to me beyond the fact that they match your report. If those two frames are in the same module as something you changed on the 27th, that is where I would look first; I can run any candidate commit and report whether the fault is still there, one run per commit, on this card. ### One extra data point, offered as a data point `all3n1k/VIctory-RTX3090` vendors this tree and reproduces it, so the tree's own launcher defaults are probably not the difference. Both my runs use `--console series-s`; I have not tried `series-x` on `9a4aa8d`.
Author
Owner

@⁠DoubleGhosty on GitHub · 2026-11-27 10:41 UTC · original

main now includes #81 (d2f23973): ff6fdf23ce0b9048 is translated with its branches on the mask's SCC split per lane, as before #66, instead of being refused and its dispatch dropped. a4af70be adds VICTORY_LANE_SPLIT to the shader cache key.

Between 3277b15 (no fault) and 9a4aa8d (fault at 79 s), that refusal (a wave-wide branch where not every lane runs, from the #66 change) is the only new one. 0a5ecfee6b79e13b (no wave32 lowering for this wave64 program) was refused on 3277b15 as well, so it is not the regression.

Please try current main to the same point with VICTORY_WAVE_WHY=1: a WAVE64-RETRY branches on a mask's SCC split per lane (inexact): translated line confirms the fallback ran. The translator changed, so cached translations are rebuilt automatically.

**@⁠DoubleGhosty** on GitHub · 2026-11-27 10:41 UTC · [original](https://github.com/DoubleGhosty/cool_fox/issues/80#issuecomment-7216187621) main now includes #81 (`d2f23973`): `ff6fdf23ce0b9048` is translated with its branches on the mask's SCC split per lane, as before #66, instead of being refused and its dispatch dropped. `a4af70be` adds `VICTORY_LANE_SPLIT` to the shader cache key. Between `3277b15` (no fault) and `9a4aa8d` (fault at 79 s), that refusal (`a wave-wide branch where not every lane runs`, from the #66 change) is the only new one. `0a5ecfee6b79e13b` (`no wave32 lowering for this wave64 program`) was refused on `3277b15` as well, so it is not the regression. Please try current main to the same point with `VICTORY_WAVE_WHY=1`: a `WAVE64-RETRY branches on a mask's SCC split per lane (inexact): translated` line confirms the fallback ran. The translator changed, so cached translations are rebuilt automatically.
Author
Owner

@⁠Hasusmogus on GitHub · 2026-11-27 10:42 UTC · original · edited 2026-11-27 10:44 UTC

@⁠Razen114514 That boundary is really useful, thanks. (Edited: when I first wrote this I hadn't seen the comment above, which says #81 is in main now.)

1. First try current main. It has #81 (d2f2397). ff6fdf23ce0b9048's refusal (a wave-wide branch where not every lane runs) is the only new refusal between 3277b15 and 9a4aa8d, and that program is now translated with its SCC branches split per lane, as before #66, instead of its dispatch being dropped. With VICTORY_WAVE_WHY=1, the line WAVE64-RETRY branches on a mask's SCC split per lane (inexact): translated confirms it took that path. Cached translations rebuild by themselves.

2. If it still faults, no rebuild needed: f4164f8 (26 Nov 20:56, also in your range) leaves out 18 programs by name unless VICTORY_HAIR=1: the hair strands, but also CS_CullMaskPass, CS_ProjDecalCut, CS_CalculateFireVolumes and CS_LodBlend. A cull mask or decal pass that never runs is a plausible thing for the title to read back as a pointer. Run once with VICTORY_HAIR=1 (on current main it has to be 1; on 9a4aa8d any value turns them on). The same commit also drops CS_ScreenProbes_ActivateRays while rays are off, but VICTORY_RAYS=1 changes much more, so try that only second.

3. If neither: 3277b15 is an ancestor of 9a4aa8d, 94 commits apart, so git bisect start 9a4aa8d 3277b15 gets there in about 7 runs.

For any of these, VICTORY_LOG=info VICTORY_WAVE_WHY=1 names what was dropped right before the fault (a dispatch without a host pipeline dropped, left out, does not translate). Comparing that list between a faulting and a non-faulting run is the quickest way to the culprit.

Written with AI assistance (Claude), reviewed by me.

**@⁠Hasusmogus** on GitHub · 2026-11-27 10:42 UTC · [original](https://github.com/DoubleGhosty/cool_fox/issues/80#issuecomment-7216218225) · edited 2026-11-27 10:44 UTC @⁠Razen114514 That boundary is really useful, thanks. *(Edited: when I first wrote this I hadn't seen the comment above, which says #81 is in `main` now.)* **1. First try current `main`.** It has #81 (`d2f2397`). `ff6fdf23ce0b9048`'s refusal (`a wave-wide branch where not every lane runs`) is the only new refusal between `3277b15` and `9a4aa8d`, and that program is now translated with its SCC branches split per lane, as before #66, instead of its dispatch being dropped. With `VICTORY_WAVE_WHY=1`, the line `WAVE64-RETRY branches on a mask's SCC split per lane (inexact): translated` confirms it took that path. Cached translations rebuild by themselves. **2. If it still faults, no rebuild needed:** `f4164f8` (26 Nov 20:56, also in your range) leaves out 18 programs by name unless `VICTORY_HAIR=1`: the hair strands, but also `CS_CullMaskPass`, `CS_ProjDecalCut`, `CS_CalculateFireVolumes` and `CS_LodBlend`. A cull mask or decal pass that never runs is a plausible thing for the title to read back as a pointer. Run once with `VICTORY_HAIR=1` (on current `main` it has to be `1`; on `9a4aa8d` any value turns them on). The same commit also drops `CS_ScreenProbes_ActivateRays` while rays are off, but `VICTORY_RAYS=1` changes much more, so try that only second. **3. If neither:** `3277b15` is an ancestor of `9a4aa8d`, 94 commits apart, so `git bisect start 9a4aa8d 3277b15` gets there in about 7 runs. For any of these, `VICTORY_LOG=info VICTORY_WAVE_WHY=1` names what was dropped right before the fault (`a dispatch without a host pipeline dropped`, `left out`, `does not translate`). Comparing that list between a faulting and a non-faulting run is the quickest way to the culprit. *Written with AI assistance (Claude), reviewed by me.*
Author
Owner

@⁠Razen114514 on GitHub · 2026-11-27 11:02 UTC · original

Skipping the mesh/pixel pair that is the last library line before the fault stops the fault

@⁠DoubleGhosty's correction — VICTORY_SKIP_PIPELINES matches a hash of any stage, not
only compute — turned the one thing I could not test into a test. Result: the crash goes
away on this card.

The configuration

main @ a4af70b (so #81 is in), Play-VIctory.cmd defaults plus:

set VICTORY_WAVE_WIDE=1
set VICTORY_TEXTURE_NO_WAIT=0
set VICTORY_SKIP_PIPELINES=480d53fc48107a50,f41ec9d9437c021c

Fresh VICTORY_CACHE_DIR.

Result

run fault at +0x23cf683 longest
main @ a4af70b, no skip yes, 1 min 26 s —
main @ a4af70b, VICTORY_HAIR=1 yes, 1 min 16 s —
main @ a4af70b, the two hashes skipped no 4 min 16 s, still running, 10 fps at 1769 draws

The VICTORY_HAIR=1 run is included because @⁠Hasusmogus suggested it and it did not
change anything here; and VICTORY_WAVE_WHY=1 confirmed #81's fallback ran
(WAVE64-RETRY branches on a mask's SCC split per lane (inexact): translated), so the
refusal #81 removed is not what I am still hitting.

Why this pair

It is the same line in every faulting run, 5.5 s before the device goes:

pipeline library: loaded [mesh 480d53fc48107a50, pixel f41ec9d9437c021c] in 6.8 / 25.2 ms
   … about 5.5 s …
host GPU device removed / unhandled exception

I had wrongly concluded twice that SKIP_PIPELINES could not touch it because it was a
graphics pipeline. It can, and skipping it is enough.

What it looks like without it

Nothing obviously missing in the frames I have seen so far — the menu and the intro into
chapter 1 render, the water is not black-patched, and the frame rate is higher than with
the pair present (10 fps against 6–7 on 3277b15). That is against the expectation that
leaving a mesh pipeline out would visibly cost geometry, which is why I am reporting it
rather than just using it: either this pair is not what draws that geometry, or what it
draws is being drawn by something else here.

Caveats

4 min 16 s is not a long soak. I will keep it running and report if it faults later, and
I have not established why building/holding that pair leads to the fault — only that
leaving it out does.

Thanks for the two corrections; both changed what I could measure.

**@⁠Razen114514** on GitHub · 2026-11-27 11:02 UTC · [original](https://github.com/DoubleGhosty/cool_fox/issues/80#issuecomment-7216610062) ## Skipping the mesh/pixel pair that is the last library line before the fault stops the fault @⁠DoubleGhosty's correction — `VICTORY_SKIP_PIPELINES` matches a hash of **any** stage, not only compute — turned the one thing I could not test into a test. Result: the crash goes away on this card. ### The configuration `main @ a4af70b` (so #81 is in), `Play-VIctory.cmd` defaults plus: ```bat set VICTORY_WAVE_WIDE=1 set VICTORY_TEXTURE_NO_WAIT=0 set VICTORY_SKIP_PIPELINES=480d53fc48107a50,f41ec9d9437c021c ``` Fresh `VICTORY_CACHE_DIR`. ### Result | run | fault at `+0x23cf683` | longest | | --- | --- | --- | | `main @ a4af70b`, no skip | yes, 1 min 26 s | — | | `main @ a4af70b`, `VICTORY_HAIR=1` | yes, 1 min 16 s | — | | **`main @ a4af70b`, the two hashes skipped** | **no** | **4 min 16 s, still running, 10 fps at 1769 draws** | The `VICTORY_HAIR=1` run is included because @⁠Hasusmogus suggested it and it did not change anything here; and `VICTORY_WAVE_WHY=1` confirmed #81's fallback ran (`WAVE64-RETRY branches on a mask's SCC split per lane (inexact): translated`), so the refusal #81 removed is not what I am still hitting. ### Why this pair It is the same line in every faulting run, 5.5 s before the device goes: ``` pipeline library: loaded [mesh 480d53fc48107a50, pixel f41ec9d9437c021c] in 6.8 / 25.2 ms … about 5.5 s … host GPU device removed / unhandled exception ``` I had wrongly concluded twice that `SKIP_PIPELINES` could not touch it because it was a graphics pipeline. It can, and skipping it is enough. ### What it looks like without it Nothing obviously missing in the frames I have seen so far — the menu and the intro into chapter 1 render, the water is not black-patched, and the frame rate is *higher* than with the pair present (10 fps against 6–7 on `3277b15`). That is against the expectation that leaving a mesh pipeline out would visibly cost geometry, which is why I am reporting it rather than just using it: either this pair is not what draws that geometry, or what it draws is being drawn by something else here. ### Caveats 4 min 16 s is not a long soak. I will keep it running and report if it faults later, and I have not established *why* building/holding that pair leads to the fault — only that leaving it out does. Thanks for the two corrections; both changed what I could measure.
Author
Owner

@⁠Hasusmogus on GitHub · 2026-11-27 11:38 UTC · original

@⁠Razen114514 Great result, and thanks for running the VICTORY_HAIR=1 one too; that rules the hair list out.

Your runs may combine two failures, and that's worth separating. They have VICTORY_WAVE_WIDE=1, which on your card loses the device after 2–3 minutes (#70), and your timeline ends in "host GPU device removed / unhandled exception". Since +0x23cf683 is the title's 30 s watchdog, any GPU hang that stops frames ends in this same fault. So the chain may be: the 480d53fc48107a50 mesh shader hangs the card → device removed → no more frames → watchdog. A mesh shader fits that: like a compute shader it runs as a thread group with barriers, and a group barrier that not every lane reaches never returns. That's the hazard the wave-wide form is warned about in emit/mod.rs.

Two runs would tell which it is:

  1. The same pair of runs without VICTORY_WAVE_WIDE=1, with and without VICTORY_SKIP_PIPELINES=480d53fc48107a50,f41ec9d9437c021c. If it still faults without the switch and the skip still stops it, the mesh shader is broken on its own. If it only faults with the switch on, it's #70's barrier hazard reaching a mesh shader.
  2. VICTORY_WAVE_WHY=1 lines for that shader. Since 3a7e7e7 each line starts with its hash, so findstr 480d53fc48107a50 on the run's output (or the VICTORY_LOG_FILE once #82 is in) shows which form it was translated in. A wave-wide branches or an APPROXIMATE line there would point straight at the cause.

The higher frame rate with the pair skipped (10 fps against 6–7) also suggests it's an expensive pass, possibly one that's already running wrong.

Written with AI assistance (Claude), reviewed by me.

**@⁠Hasusmogus** on GitHub · 2026-11-27 11:38 UTC · [original](https://github.com/DoubleGhosty/cool_fox/issues/80#issuecomment-7217307198) @⁠Razen114514 Great result, and thanks for running the `VICTORY_HAIR=1` one too; that rules the hair list out. Your runs may combine two failures, and that's worth separating. They have `VICTORY_WAVE_WIDE=1`, which on your card loses the device after 2–3 minutes (#70), and your timeline ends in "host GPU device removed / unhandled exception". Since `+0x23cf683` is the title's 30 s watchdog, any GPU hang that stops frames ends in this same fault. So the chain may be: **the `480d53fc48107a50` mesh shader hangs the card → device removed → no more frames → watchdog.** A mesh shader fits that: like a compute shader it runs as a thread group with barriers, and a group barrier that not every lane reaches never returns. That's the hazard the wave-wide form is warned about in `emit/mod.rs`. Two runs would tell which it is: 1. **The same pair of runs without `VICTORY_WAVE_WIDE=1`**, with and without `VICTORY_SKIP_PIPELINES=480d53fc48107a50,f41ec9d9437c021c`. If it still faults without the switch and the skip still stops it, the mesh shader is broken on its own. If it only faults with the switch on, it's #70's barrier hazard reaching a mesh shader. 2. **`VICTORY_WAVE_WHY=1` lines for that shader.** Since `3a7e7e7` each line starts with its hash, so `findstr 480d53fc48107a50` on the run's output (or the `VICTORY_LOG_FILE` once #82 is in) shows which form it was translated in. A `wave-wide branches` or an `APPROXIMATE` line there would point straight at the cause. The higher frame rate with the pair skipped (10 fps against 6–7) also suggests it's an expensive pass, possibly one that's already running wrong. *Written with AI assistance (Claude), reviewed by me.*
Author
Owner

@⁠Razen114514 on GitHub · 2026-11-27 11:58 UTC · original

The two runs you asked for: the skip only helps with VICTORY_WAVE_WIDE=1

Your hypothesis was that the fault may end a chain of "mesh shader hangs the card →
device removed → no frames → the title's watchdog". I ran the pair you suggested on
a4af70b. The answer is the second branch you named, and one step further from it.

The four combinations, same card, same scene, fresh cache each

VICTORY_WAVE_WIDE VICTORY_SKIP_PIPELINES=480d53fc48107a50,f41ec9d9437c021c fault at +0x23cf683 longest run
1 no yes 1 min 26 s
1 yes no 4 min 16 s (an earlier run), 2 min 55 s on the repeat
0 no yes 2 min 05 s
0 yes yes 1 min 12 s

So: without the switch the skip does not stop it at all — 1 min 12 s against 2 min 05 s
is the same band, not an improvement — and with the switch the skip stops it. The
difference between 4 min 16 s and 2 min 55 s on the two =1 + skip runs is my own
stopping point, not a fault: neither run reported one.

What that says about your two branches

You offered: if it still faults without the switch and the skip still stops it, the mesh
shader is broken on its own; if it only faults with the switch on, it is #70's barrier
hazard reaching a mesh shader.

It did fault without the switch, and the skip did not stop it. That is neither
branch as stated — the skip's ability to prevent the fault depends on the wave-wide form
being on. Which reads as: the pair on its own is not what faults, and skipping it on its
own is not what prevents the fault. Both need WAVE_WIDE=1.

I cannot tell you what that means mechanically. Two readings I can see, and I cannot
separate them from here:

  1. With the wave-wide form on, one of those two shaders is translated differently and
    that version is the one that can hang; with it off they are refused or dropped
    instead, and something else faults first.
  2. With the form off, a different program faults well before the mesh shader matters, so
    the skip has nothing to save. The 1 min 12 s / 2 min 05 s band is early enough that
    this is plausible.

The check I said I would do: neither hash appears in the =0 runs at all

Grepping the two WAVE_WIDE=0 logs I already had:

cf-test1-noskip.log  (WAVE_WIDE=0)   480d53fc48107a50: 0    f41ec9d9437c021c: 0
cf-test1-skip.log    (WAVE_WIDE=0)   480d53fc48107a50: 0    f41ec9d9437c021c: 0

Neither shader is reached without the switch. So VICTORY_SKIP_PIPELINES was a no-op
in both =0 runs — it excluded nothing, because nothing was there to exclude. The =0
half of your test therefore says nothing about the mesh shader, and I should not have
reported it as if it did.

That also removes my reading 2: with the switch off the pair never comes up, so the skip
cannot have "nothing to save" — it had nothing to act on. What the =0 runs are is simply
a different failure, earlier, that does not involve this pair.

What survives is the narrow statement: on this card, with VICTORY_WAVE_WIDE=1, the two
runs that include this pair fault within about 90 s and the two that exclude it do not.

Whether the shader is wrong on its own, or is reached only in a form the wave-wide
lowering produces, I cannot separate — the =0 runs do not reach it, so they cannot
answer that question.

**@⁠Razen114514** on GitHub · 2026-11-27 11:58 UTC · [original](https://github.com/DoubleGhosty/cool_fox/issues/80#issuecomment-7217684132) ## The two runs you asked for: the skip only helps with `VICTORY_WAVE_WIDE=1` Your hypothesis was that the fault may end a chain of "mesh shader hangs the card → device removed → no frames → the title's watchdog". I ran the pair you suggested on `a4af70b`. The answer is the second branch you named, and one step further from it. ### The four combinations, same card, same scene, fresh cache each | `VICTORY_WAVE_WIDE` | `VICTORY_SKIP_PIPELINES=480d53fc48107a50,f41ec9d9437c021c` | fault at `+0x23cf683` | longest run | | --- | --- | --- | ---: | | 1 | no | **yes** | 1 min 26 s | | **1** | **yes** | **no** | **4 min 16 s** (an earlier run), 2 min 55 s on the repeat | | 0 | no | **yes** | 2 min 05 s | | 0 | yes | **yes** | 1 min 12 s | So: without the switch the skip does not stop it at all — 1 min 12 s against 2 min 05 s is the same band, not an improvement — and with the switch the skip stops it. The difference between 4 min 16 s and 2 min 55 s on the two `=1` + skip runs is my own stopping point, not a fault: neither run reported one. ### What that says about your two branches You offered: if it still faults without the switch and the skip still stops it, the mesh shader is broken on its own; if it only faults with the switch on, it is #70's barrier hazard reaching a mesh shader. **It did fault without the switch, and the skip did not stop it.** That is neither branch as stated — the skip's ability to prevent the fault depends on the wave-wide form being on. Which reads as: the pair on its own is not what faults, and skipping it on its own is not what prevents the fault. Both need `WAVE_WIDE=1`. I cannot tell you what that means mechanically. Two readings I can see, and I cannot separate them from here: 1. With the wave-wide form on, one of those two shaders is *translated differently* and that version is the one that can hang; with it off they are refused or dropped instead, and something else faults first. 2. With the form off, a different program faults well before the mesh shader matters, so the skip has nothing to save. The 1 min 12 s / 2 min 05 s band is early enough that this is plausible. ### The check I said I would do: neither hash appears in the `=0` runs at all Grepping the two `WAVE_WIDE=0` logs I already had: ``` cf-test1-noskip.log (WAVE_WIDE=0) 480d53fc48107a50: 0 f41ec9d9437c021c: 0 cf-test1-skip.log (WAVE_WIDE=0) 480d53fc48107a50: 0 f41ec9d9437c021c: 0 ``` **Neither shader is reached without the switch.** So `VICTORY_SKIP_PIPELINES` was a no-op in both `=0` runs — it excluded nothing, because nothing was there to exclude. The `=0` half of your test therefore says nothing about the mesh shader, and I should not have reported it as if it did. That also removes my reading 2: with the switch off the pair never comes up, so the skip cannot have "nothing to save" — it had nothing to act on. What the `=0` runs are is simply a different failure, earlier, that does not involve this pair. What survives is the narrow statement: **on this card, with `VICTORY_WAVE_WIDE=1`, the two runs that include this pair fault within about 90 s and the two that exclude it do not.** Whether the shader is wrong on its own, or is reached only in a form the wave-wide lowering produces, I cannot separate — the `=0` runs do not reach it, so they cannot answer that question.
Author
Owner

@⁠Cush-dev on GitHub · 2026-11-27 13:19 UTC · original

Final update: with VICTORY_HAIR=1 on d2f23973 the hair renders again
(confirmed in screenshots), but the horizontal black bands remain (so
CS_CullMaskPass was not the cause) and the water is still absent at the
boat scene, so that mission cannot be completed. Overlay at that point:
9 fps, 116.1 ms/frame, 4189 draws/frame. Crash-wise the fix holds —
the story now plays well past the boat cutscene. Remaining issues are
rendering (bands, water), likely tied to the still-refused shaders
(e.g. 0a5ecfee6b79e13b) and the inexact per-lane fallback.

**@⁠Cush-dev** on GitHub · 2026-11-27 13:19 UTC · [original](https://github.com/DoubleGhosty/cool_fox/issues/80#issuecomment-7219343693) Final update: with VICTORY_HAIR=1 on d2f23973 the hair renders again (confirmed in screenshots), but the horizontal black bands remain (so CS_CullMaskPass was not the cause) and the water is still absent at the boat scene, so that mission cannot be completed. Overlay at that point: 9 fps, 116.1 ms/frame, 4189 draws/frame. Crash-wise the fix holds — the story now plays well past the boat cutscene. Remaining issues are rendering (bands, water), likely tied to the still-refused shaders (e.g. 0a5ecfee6b79e13b) and the inexact per-lane fallback.
Author
Owner

@⁠Cush-dev on GitHub · 2026-11-27 13:20 UTC · original

bug 2 bug 3 bug
**@⁠Cush-dev** on GitHub · 2026-11-27 13:20 UTC · [original](https://github.com/DoubleGhosty/cool_fox/issues/80#issuecomment-7219359447) <img width="1364" height="718" alt="bug 2" src="https://github.com/user-attachments/assets/400efaea-8e16-4b8f-a138-c1255976d34c" /> <img width="1365" height="719" alt="bug 3" src="https://github.com/user-attachments/assets/3c5d8f30-5c25-4b94-bf43-6c4294878190" /> <img width="1363" height="716" alt="bug" src="https://github.com/user-attachments/assets/91bbe054-e6e8-4fb8-abe9-adf34d743739" />
Author
Owner

@⁠fantaoranges on GitHub · 2026-11-27 15:46 UTC · original

AMD RX 7900 XT (RDNA3, 20 GB) data point — same crash on current master, and VICTORY_HAIR=1 does not help

System / build

  • GPU: AMD Radeon RX 7900 XT, 20 GB VRAM (RDNA3)
  • Driver: 32.0.32029.2010
  • OS: Windows 11, build 26100
  • VIctory: locally built from 42b95b990f (2026-11-27) — includes the #81 fix d2f23973f6 (66 commits ahead, 0 behind per compare API)
  • Game: GTA6.Xbox.v1.0.2.1-CYBERLEEK (Xbox leak build), TitleID 7952987a, version 930.048.020-vb_sub_story

Crash — 3/3 runs, byte-identical signature (21:08 / 21:10 / 23:26 local, pids 26136 / 27100 / 23400)

VIctory: unhandled exception 0xc0000005 at victory-image-b99f876b74d4a77f.dll+0x23cf683 (write 0x0: nothing mapped there)
  rax 0x0 rbx 0x0 rcx 0xd0024c348 rdx 0x1 rsi 0xff6d2ff6f8 rdi 0xa739115b1f8 rsp 0xff6d2ff680 rbp 0x0
  r8 0xd074d8c40 r9 0xd074d8e20 r10 0xd074d8ad8 r11 0xd074d8c40 r12 0xa7378a23433 r13 0x7fff20e35c28 r14 0x7ffff07fb220 r15 0xa737f885cad
  #0  victory-image-b99f876b74d4a77f.dll+0x23cf683
  #1  victory-image-b99f876b74d4a77f.dll+0x2215c35
  #2  victory-image-b99f876b74d4a77f.dll+0x2215eca
  #3  KERNEL32.DLL+0x2dda7
  #4  ntdll.dll+0xc9c5c
  • Fully deterministic: same offset, same stack, same registers (rax=0 rbx=0 rdx=1) every run
  • Scene: fbk_stry000_FBK_STRY000_INTRO (state Prestream), player (-1782.7, -1913.0, 5.0), camera (1847.0, 147.3, 5.4), ~frame 2640, uptime ~1m36s
  • Not a memory-exhaustion crash: Game Physical 2.18/2.3 GB, TileHeap 3457/6236 MB at crash time
  • VICTORY_HAIR=1 tested: no effect — first two crashes without the flag, third crash with it set; identical +0x23cf683 in all three, so the wave-wide-branch workaround doesn't fix it on RDNA3

Minidumps (~30 MB each) available on request.

— report filed by Hermes Agent on behalf of the reporter

**@⁠fantaoranges** on GitHub · 2026-11-27 15:46 UTC · [original](https://github.com/DoubleGhosty/cool_fox/issues/80#issuecomment-7222467008) **AMD RX 7900 XT (RDNA3, 20 GB) data point — same crash on current master, and `VICTORY_HAIR=1` does not help** **System / build** - GPU: AMD Radeon RX 7900 XT, 20 GB VRAM (RDNA3) - Driver: 32.0.32029.2010 - OS: Windows 11, build 26100 - VIctory: locally built from `42b95b990f` (2026-11-27) — **includes the #81 fix `d2f23973f6`** (66 commits ahead, 0 behind per compare API) - Game: `GTA6.Xbox.v1.0.2.1-CYBERLEEK` (Xbox leak build), TitleID `7952987a`, version `930.048.020-vb_sub_story` **Crash — 3/3 runs, byte-identical signature (21:08 / 21:10 / 23:26 local, pids 26136 / 27100 / 23400)** ``` VIctory: unhandled exception 0xc0000005 at victory-image-b99f876b74d4a77f.dll+0x23cf683 (write 0x0: nothing mapped there) rax 0x0 rbx 0x0 rcx 0xd0024c348 rdx 0x1 rsi 0xff6d2ff6f8 rdi 0xa739115b1f8 rsp 0xff6d2ff680 rbp 0x0 r8 0xd074d8c40 r9 0xd074d8e20 r10 0xd074d8ad8 r11 0xd074d8c40 r12 0xa7378a23433 r13 0x7fff20e35c28 r14 0x7ffff07fb220 r15 0xa737f885cad #0 victory-image-b99f876b74d4a77f.dll+0x23cf683 #1 victory-image-b99f876b74d4a77f.dll+0x2215c35 #2 victory-image-b99f876b74d4a77f.dll+0x2215eca #3 KERNEL32.DLL+0x2dda7 #4 ntdll.dll+0xc9c5c ``` - Fully deterministic: same offset, same stack, same registers (`rax=0 rbx=0 rdx=1`) every run - Scene: `fbk_stry000_FBK_STRY000_INTRO` (state Prestream), player `(-1782.7, -1913.0, 5.0)`, camera `(1847.0, 147.3, 5.4)`, ~frame 2640, uptime ~1m36s - Not a memory-exhaustion crash: `Game Physical 2.18/2.3 GB`, `TileHeap 3457/6236 MB` at crash time - **`VICTORY_HAIR=1` tested: no effect** — first two crashes without the flag, third crash with it set; identical `+0x23cf683` in all three, so the wave-wide-branch workaround doesn't fix it on RDNA3 Minidumps (~30 MB each) available on request. — *report filed by Hermes Agent on behalf of the reporter*
Author
Owner

@⁠Razen114514 on GitHub · 2026-11-27 15:56 UTC · original

The same crash on an NVIDIA 8 GB card, with the same four registers — this is hardware-independent

@⁠fantaoranges's AMD 20 GB report and mine on an NVIDIA 8 GB card fault at the same
place with the same register file, which should settle whether this is a hardware or
memory problem.

Side by side

register RX 7900 XT 20 GB (RDNA3) RTX 5060 8 GB (Blackwell)
rax 0x0 0x0
rbx 0x0 0x0
rbp 0x0 0x0
rdx 0x1 0x1
rcx 0xd0024c348 0x90024c348
r8 0xd074d8c40 0x9072a0c40
r9 0xd074d8e20 0x9072a0e20
r10 0xd074d8ad8 0x9072a0ad8
r11 0xd074d8c40 0x9072a0c40
r13 0x7fff20e35c28 0x7ffd74675c28
r14 0x7ffff07fb220 0x7ffe67ffb220
stack +0x23cf683, +0x2215c35, +0x2215eca identical

rax, rbx and rbp are zero and rdx is one on both. Every differing register holds
the same low 32 bits on both and differs only in its high half — i.e. the same two
structures, at different heap addresses on the two machines.

Two vendors, two architectures, 8 GB against 20 GB, different drivers, same fault and
same register contents.
Whatever +0x23cf683 is, it is decided by the translated
program rather than by the card.

@⁠fantaoranges also ruled out memory pressure (Game Physical 2.18/2.3 GB,
TileHeap 3457/6236 MB at the fault); mine has 1.4 GB of a 7.1 GB budget free at that
point. So neither of us is short of memory.

My runs, for the same table

  • RTX 5060 8 GB, driver 32.0.16.2124, Windows 11 26300, b99f876b… dump, title 7952987A
  • 3277b15: no fault, 5 min 24 s and still going
  • 9a4aa8d, bd8b4f5, 42b95b9, all3n1k/VIctory-RTX3090 (vendors the 27th tree):
    fault at 1 min 12 s – 1 min 26 s, write 0x0, same registers
  • VICTORY_HAIR=1: no effect here either
  • VICTORY_WAVE_WIDE on or off: no effect on this fault in those builds

The version boundary is the only thing that has moved it so far: absent before the
27th, present after.

What I can add

I have the fault in bd8b4f5 and 42b95b9 on demand, four minutes a run, and I can run
a candidate commit with any switch either of you wants. If @⁠fantaoranges's minidumps
point at a symbol, tell me which module and I will check whether my dump resolves to the
same place — that costs one run and no guessing.

**@⁠Razen114514** on GitHub · 2026-11-27 15:56 UTC · [original](https://github.com/DoubleGhosty/cool_fox/issues/80#issuecomment-7222658788) ## The same crash on an NVIDIA 8 GB card, with the same four registers — this is hardware-independent @⁠fantaoranges's AMD 20 GB report and mine on an NVIDIA 8 GB card fault at the same place with **the same register file**, which should settle whether this is a hardware or memory problem. ### Side by side | register | RX 7900 XT 20 GB (RDNA3) | RTX 5060 8 GB (Blackwell) | | --- | --- | --- | | `rax` | **0x0** | **0x0** | | `rbx` | **0x0** | **0x0** | | `rbp` | **0x0** | **0x0** | | `rdx` | **0x1** | **0x1** | | `rcx` | `0xd0024c348` | `0x90024c348` | | `r8` | `0xd074d8c40` | `0x9072a0c40` | | `r9` | `0xd074d8e20` | `0x9072a0e20` | | `r10` | `0xd074d8ad8` | `0x9072a0ad8` | | `r11` | `0xd074d8c40` | `0x9072a0c40` | | `r13` | `0x7fff20e35c28` | `0x7ffd74675c28` | | `r14` | `0x7ffff07fb220` | `0x7ffe67ffb220` | | stack | `+0x23cf683`, `+0x2215c35`, `+0x2215eca` | identical | `rax`, `rbx` and `rbp` are zero and `rdx` is one on both. Every differing register holds the same low 32 bits on both and differs only in its high half — i.e. the same two structures, at different heap addresses on the two machines. **Two vendors, two architectures, 8 GB against 20 GB, different drivers, same fault and same register contents.** Whatever `+0x23cf683` is, it is decided by the translated program rather than by the card. @⁠fantaoranges also ruled out memory pressure (`Game Physical 2.18/2.3 GB`, `TileHeap 3457/6236 MB` at the fault); mine has 1.4 GB of a 7.1 GB budget free at that point. So neither of us is short of memory. ### My runs, for the same table - RTX 5060 8 GB, driver 32.0.16.2124, Windows 11 26300, `b99f876b…` dump, title `7952987A` - `3277b15`: **no fault**, 5 min 24 s and still going - `9a4aa8d`, `bd8b4f5`, `42b95b9`, `all3n1k/VIctory-RTX3090` (vendors the 27th tree): **fault at 1 min 12 s – 1 min 26 s**, `write 0x0`, same registers - `VICTORY_HAIR=1`: no effect here either - `VICTORY_WAVE_WIDE` on or off: no effect on this fault in those builds The version boundary is the only thing that has moved it so far: absent before the 27th, present after. ### What I can add I have the fault in `bd8b4f5` and `42b95b9` on demand, four minutes a run, and I can run a candidate commit with any switch either of you wants. If @⁠fantaoranges's minidumps point at a symbol, tell me which module and I will check whether my dump resolves to the same place — that costs one run and no guessing.
Author
Owner

@⁠fantaoranges on GitHub · 2026-11-27 16:12 UTC · original

What my minidumps actually resolve to: module, RVA, and the faulting instruction bytes

@⁠Razen114514 — here is the answer to your question. I parsed all three of my dumps (21:08, 21:10, 23:26 local; the 23:26 one is the 42b95b9 build). They are identical at the byte level.

Module: victory-image-b99f876b74d4a77f.dll

  • base 0x7fff1a5f0000, size 184,995,840 bytes (176.4 MiB) — identical in all three dumps
  • fault address 0x7fff1c9bf683 → RVA 0x23cf683
  • ExceptionInformation = [1, 0] → access type 1 (write), target 0x0

Symbols: there are none to give you. The image carries no PDB and no exports in the dump, so no function name exists — only an RVA. But the instruction bytes are a better handle than a name, because they are symbol-independent:

RVA 0x23cf683:
  c7 04 25 00 00 00 00 21 d4 8b 4d   mov dword ptr [0x0], 0x4d8bd421
  48 83 c4 48                        add rsp, 0x48
  c3                                 ret

The 16 bytes before that are c7 c0 f4 ff ff ff | c6 44 04 41 00 | 48 ff c0 | 75 f6 — mov eax,-12 then a 12-iteration mov byte [rsp+rax+0x41],0 / inc rax / jne clearing loop that exits with rax = 0.

That last point matters, and it changes the "null pointer" framing: the faulting instruction does not write through rax, rbx or rbp. It is an absolute-store form — mov dword ptr [disp32], imm32 with disp32 = 0 — so the destination address is a constant 0 baked into the translated code, and rax = 0 is just where the preceding clearing loop landed. It is not a pointer that got clobbered; the write target itself is zero in the emitted code. The value being stored, 0x4d8bd421, would be the interesting thing to identify.

One run for you to confirm we are at the same statement: in bd8b4f5 / 42b95b9, read 16 bytes at victory-image-*.dll base + 0x23cf683. If they start c7 04 25 00 00 00 00 21 d4 8b 4d, it is literally the same translated store, and the hardware question is closed. If they differ, the image layout moved and the "same offset" across builds deserves a second look.

Registers from my dumps, for your table (identical across all three):

rax=0 rbx=0 rbp=0 rdx=1 rcx=0xd0024c348 r8=0xd074d8c40 r9=0xd074d8e20
r10=0xd074d8ad8 r11=0xd074d8c40 r13=0x7fff20e35c28 r14=0x7ffff07fb220

These match your RTX 5060 row exactly apart from r12/r15 (stack/thread junk) and the high halves.

Build detail you may want: mine is 42b95b9 (cloned 19:41 local), and per the compare API d2f23973 (#81) is already an ancestor of it — so the #81 fix is present in the binary I dumped and does not cover this fault.

Also confirming your boundary from this side: my very first build was 42b95b9 and it faults; I have not run 3277b15 myself, so your "clean before the 27th, broken after" is the only boundary evidence we have and I am not contradicting it.

**@⁠fantaoranges** on GitHub · 2026-11-27 16:12 UTC · [original](https://github.com/DoubleGhosty/cool_fox/issues/80#issuecomment-7222983528) ## What my minidumps actually resolve to: module, RVA, and the faulting instruction bytes @⁠Razen114514 — here is the answer to your question. I parsed all three of my dumps (21:08, 21:10, 23:26 local; the 23:26 one is the `42b95b9` build). They are identical at the byte level. **Module**: `victory-image-b99f876b74d4a77f.dll` - base `0x7fff1a5f0000`, size `184,995,840` bytes (176.4 MiB) — identical in all three dumps - fault address `0x7fff1c9bf683` → **RVA `0x23cf683`** - `ExceptionInformation = [1, 0]` → access type 1 (write), target `0x0` **Symbols: there are none to give you.** The image carries no PDB and no exports in the dump, so no function name exists — only an RVA. But the instruction bytes are a better handle than a name, because they are symbol-independent: ``` RVA 0x23cf683: c7 04 25 00 00 00 00 21 d4 8b 4d mov dword ptr [0x0], 0x4d8bd421 48 83 c4 48 add rsp, 0x48 c3 ret ``` The 16 bytes *before* that are `c7 c0 f4 ff ff ff | c6 44 04 41 00 | 48 ff c0 | 75 f6` — `mov eax,-12` then a 12-iteration `mov byte [rsp+rax+0x41],0 / inc rax / jne` clearing loop that exits with `rax = 0`. **That last point matters, and it changes the "null pointer" framing:** the faulting instruction does not write through `rax`, `rbx` or `rbp`. It is an absolute-store form — `mov dword ptr [disp32], imm32` with `disp32 = 0` — so the destination address is a **constant 0 baked into the translated code**, and `rax = 0` is just where the preceding clearing loop landed. It is not a pointer that got clobbered; the write target itself is zero in the emitted code. The value being stored, `0x4d8bd421`, would be the interesting thing to identify. **One run for you to confirm we are at the same statement:** in `bd8b4f5` / `42b95b9`, read 16 bytes at `victory-image-*.dll base + 0x23cf683`. If they start `c7 04 25 00 00 00 00 21 d4 8b 4d`, it is literally the same translated store, and the hardware question is closed. If they differ, the image layout moved and the "same offset" across builds deserves a second look. Registers from my dumps, for your table (identical across all three): ``` rax=0 rbx=0 rbp=0 rdx=1 rcx=0xd0024c348 r8=0xd074d8c40 r9=0xd074d8e20 r10=0xd074d8ad8 r11=0xd074d8c40 r13=0x7fff20e35c28 r14=0x7ffff07fb220 ``` These match your RTX 5060 row exactly apart from `r12`/`r15` (stack/thread junk) and the high halves. Build detail you may want: mine is `42b95b9` (cloned 19:41 local), and per the compare API `d2f23973` (#81) is already an ancestor of it — so the #81 fix is present in the binary I dumped and does not cover this fault. Also confirming your boundary from this side: my very first build was `42b95b9` and it faults; I have not run `3277b15` myself, so your "clean before the 27th, broken after" is the only boundary evidence we have and I am not contradicting it.
Author
Owner

@⁠fantaoranges on GitHub · 2026-11-27 16:18 UTC · original

The faulting statement is a plain absolute store on the function's return path — that does not fit the "lost pointer" story

I disassembled the whole function around the fault out of the image on disk (cache-pareto/images/victory-image-b99f876b74d4a77f.dll, .text section, RVA 0x23cf620–0x23cf692). The bytes match the dump exactly, so this is the code that ran:

023cf620  sub   rsp, 0x48
023cf624  call  0x142483ea0
023cf629  lea   rdx, [rsp+0x28]
023cf62e  movabs rcx, 0x1b5d6844174b453b
023cf638  mov   r8d, 0xc
023cf63e  mov   [rdx], rcx
023cf641  lea   rcx, [rsp+0x35]
023cf646  mov   dword [rdx+8], 0xff65664f
023cf64d  mov   byte [rdx+0xc], 1
023cf651  movzx r9d, byte [rdx]          ; 12-iteration checksum loop over the blob
023cf655  add   r9d, r8d
023cf658  mov   [rdx+0xd], r9b
023cf65c  inc   rdx
023cf65f  dec   r8
023cf662  jne   0x1423cf651
023cf664  mov   edx, eax
023cf666  call  0x142215950
023cf66b  cmp   byte [rsp+0x34], 1
023cf670  jne   0x1423cf683
023cf672  mov   rax, -12
023cf679  mov   byte [rsp+rax+0x41], 0   ; clear the 12-byte blob
023cf67e  inc   rax
023cf681  jne   0x1423cf679
023cf683  mov   dword ptr [0], 0x4d8bd421   <-- fault
023cf68e  add   rsp, 0x48
023cf692  ret

Two things fall out of this:

1. Every path through this function reaches the faulting store. jne 0x1423cf683 jumps straight to it; the other branch clears 12 bytes and then falls through into it. So it is not a guard that a wrong value sent us into — it is the tail of the function, always executed.

2. The destination is a compile-time constant 0, not a register. c7 04 25 00 00 00 00 21 d4 8b 4d is mov dword ptr [0x0], 0x4d8bd421 (SIB, no base, absolute disp32 = 0). No pointer is dereferenced here at all — rax = 0 at the fault is just where the preceding 12-iteration clearing loop stopped. If the shader dispatch had been dropped and something downstream read a null pointer, the store would have to be mov [reg], imm; it is not.

The whole .text (99.9 MB) contains exactly 7 occurrences of that mov dword ptr [0x0], imm32 encoding:

0x2215c35, 0x2215da9, 0x23cf683, 0x258b000, 0x29e0880, 0x390e0c0, 0x402ac70

Seven in ninety-nine megabytes is not a codegen pattern; it looks like seven places where a global's address never got resolved and was emitted as 0.

So my read is that the causal chain "shader rejected → dispatch dropped → null pointer → store to 0" does not hold for this crash: the store target is zero in the image, so any run that walks into this function's tail faults regardless of what the shader did, which would also explain why the #81 fix (present in the binary I dumped, d2f23973 is an ancestor of 42b95b9) changes nothing here.

What I would ask you to check (cheap, no build): in your bd8b4f5 / 42b95b9 image, is RVA 0x23cf683 the same c7 04 25 00 00 00 00 21 d4 8b 4d, and does your image also contain only a handful of that encoding? If your fault lands on the same statement, this is a translation/relocation defect rather than a GPU one, and the shader-drop theory needs a different repro to stand.

I am reading this statically from the dumped image, so if any of the above is off — wrong section mapping, wrong decode — say so and I will redo it from the minidump directly.

**@⁠fantaoranges** on GitHub · 2026-11-27 16:18 UTC · [original](https://github.com/DoubleGhosty/cool_fox/issues/80#issuecomment-7223112626) ## The faulting statement is a plain absolute store on the function's return path — that does not fit the "lost pointer" story I disassembled the whole function around the fault out of the image on disk (`cache-pareto/images/victory-image-b99f876b74d4a77f.dll`, `.text` section, RVA `0x23cf620`–`0x23cf692`). The bytes match the dump exactly, so this is the code that ran: ``` 023cf620 sub rsp, 0x48 023cf624 call 0x142483ea0 023cf629 lea rdx, [rsp+0x28] 023cf62e movabs rcx, 0x1b5d6844174b453b 023cf638 mov r8d, 0xc 023cf63e mov [rdx], rcx 023cf641 lea rcx, [rsp+0x35] 023cf646 mov dword [rdx+8], 0xff65664f 023cf64d mov byte [rdx+0xc], 1 023cf651 movzx r9d, byte [rdx] ; 12-iteration checksum loop over the blob 023cf655 add r9d, r8d 023cf658 mov [rdx+0xd], r9b 023cf65c inc rdx 023cf65f dec r8 023cf662 jne 0x1423cf651 023cf664 mov edx, eax 023cf666 call 0x142215950 023cf66b cmp byte [rsp+0x34], 1 023cf670 jne 0x1423cf683 023cf672 mov rax, -12 023cf679 mov byte [rsp+rax+0x41], 0 ; clear the 12-byte blob 023cf67e inc rax 023cf681 jne 0x1423cf679 023cf683 mov dword ptr [0], 0x4d8bd421 <-- fault 023cf68e add rsp, 0x48 023cf692 ret ``` Two things fall out of this: **1. Every path through this function reaches the faulting store.** `jne 0x1423cf683` jumps straight to it; the other branch clears 12 bytes and then falls through into it. So it is not a guard that a wrong value sent us into — it is the tail of the function, always executed. **2. The destination is a compile-time constant 0, not a register.** `c7 04 25 00 00 00 00 21 d4 8b 4d` is `mov dword ptr [0x0], 0x4d8bd421` (SIB, no base, absolute `disp32 = 0`). No pointer is dereferenced here at all — `rax = 0` at the fault is just where the preceding 12-iteration clearing loop stopped. If the shader dispatch had been dropped and something downstream read a null pointer, the store would have to be `mov [reg], imm`; it is not. The whole `.text` (99.9 MB) contains exactly **7** occurrences of that `mov dword ptr [0x0], imm32` encoding: ``` 0x2215c35, 0x2215da9, 0x23cf683, 0x258b000, 0x29e0880, 0x390e0c0, 0x402ac70 ``` Seven in ninety-nine megabytes is not a codegen pattern; it looks like seven places where a global's address never got resolved and was emitted as 0. So my read is that the causal chain "shader rejected → dispatch dropped → null pointer → store to 0" does not hold for this crash: the store target is zero *in the image*, so any run that walks into this function's tail faults regardless of what the shader did, which would also explain why the #81 fix (present in the binary I dumped, `d2f23973` is an ancestor of `42b95b9`) changes nothing here. **What I would ask you to check** (cheap, no build): in your `bd8b4f5` / `42b95b9` image, is `RVA 0x23cf683` the same `c7 04 25 00 00 00 00 21 d4 8b 4d`, and does your image also contain only a handful of that encoding? If your fault lands on the same statement, this is a translation/relocation defect rather than a GPU one, and the shader-drop theory needs a different repro to stand. I am reading this statically from the dumped image, so if any of the above is off — wrong section mapping, wrong decode — say so and I will redo it from the minidump directly.
Author
Owner

@⁠Razen114514 on GitHub · 2026-11-27 16:22 UTC · original

Confirming your count from a different image: 7 sites, and the key immediate is identical

I checked the image my runs made and your reading holds. Different build, different size,
same pattern, same count, and the constant at the faulting site is byte-identical.

My image

C:\Users\Administrator\AppData\Local\victory\cache\images\victory-image-b99f876b74d4a77f.dll
120,181,760 bytes (114.6 MiB) — yours is 184,995,840 (176.4 MiB), so these are two
different translations of the same title, as expected for a JIT image.

Every c7 04 25 00 00 00 00 <imm32> in it:

mine immediate yours your immediate
0x23cea83 0x4d8bd421 0x23cf683 0x4d8bd421
0x2215035 0x00000000 0x2215c35 —
0x22151a9 0x00000000 0x2215da9 —
0x258a400 0x2ef1e94b 0x258b000 —
0x29dfc80 0x4d795ee1 0x29e0880 —
0x390d4c0 0xb90ee778 0x390e0c0 —
0x402a070 0x18283088 0x402ac70 —

Seven, in both. Every one of mine sits exactly 0x800 below yours — the same section,
a build's worth of drift — and the one that faults carries the same immediate,
0x4d8bd421, in both images.

So the two things you were unsure about resolve in your favour: the section mapping and
the decode. And the strongest form of your conclusion now has two independent
observations behind it: the destination of that store is a compile-time zero in the
emitted code, in two translations made on two machines, and the value it tries to write
is the same constant both times.

What this rules out

Everything I had been chasing. My earlier guesses were that a compute dispatch was
dropped and the title read a zero back as a pointer; the store target being an immediate
zero in the code means no runtime value can change where it writes. It also fits what you
and I both measured and could not explain:

  • it is not memory: your TileHeap 3457/6236 MB, my 1.4 GB free of 7.1
  • it is not the card: RDNA3 and Blackwell, same immediate, same register file
    (rax/rbx/rbp zero, rdx one)
  • it is not a switch: VICTORY_HAIR=1 no effect on either of us, WAVE_WIDE on or off
    no effect on this fault
  • it is not the 27th's five changelists: the boundary I have is that 3277b15 does not
    fault and everything from 9a4aa8d on does

The one thing that does not fit, stated plainly

If the zero were simply emitted for a global whose address never got resolved, I would
expect it to fault the first time that code runs, not 80–90 seconds in. So either the
function is reached late, or something else decides when it is reached. That part I have
not settled, and I am not going to guess at it.

What I can do next

I can read the seven sites out of any build either of you names, the way I read mine —
no build, no game, one pass over the image — and say whether the set or the immediates
changed. That would show quickly whether a candidate fix moved any of them, which is
cheaper than a four-minute run.

Thanks for pulling the instruction bytes out; that is what made this checkable at all.

**@⁠Razen114514** on GitHub · 2026-11-27 16:22 UTC · [original](https://github.com/DoubleGhosty/cool_fox/issues/80#issuecomment-7223177110) ## Confirming your count from a different image: 7 sites, and the key immediate is identical I checked the image my runs made and your reading holds. Different build, different size, same pattern, same count, and the constant at the faulting site is byte-identical. ### My image `C:\Users\Administrator\AppData\Local\victory\cache\images\victory-image-b99f876b74d4a77f.dll` **120,181,760 bytes (114.6 MiB)** — yours is 184,995,840 (176.4 MiB), so these are two different translations of the same title, as expected for a JIT image. Every `c7 04 25 00 00 00 00 <imm32>` in it: | mine | immediate | yours | your immediate | | --- | --- | --- | --- | | **`0x23cea83`** | **`0x4d8bd421`** | **`0x23cf683`** | **`0x4d8bd421`** | | `0x2215035` | `0x00000000` | `0x2215c35` | — | | `0x22151a9` | `0x00000000` | `0x2215da9` | — | | `0x258a400` | `0x2ef1e94b` | `0x258b000` | — | | `0x29dfc80` | `0x4d795ee1` | `0x29e0880` | — | | `0x390d4c0` | `0xb90ee778` | `0x390e0c0` | — | | `0x402a070` | `0x18283088` | `0x402ac70` | — | **Seven, in both.** Every one of mine sits exactly `0x800` below yours — the same section, a build's worth of drift — and the one that faults carries the same immediate, `0x4d8bd421`, in both images. So the two things you were unsure about resolve in your favour: the section mapping and the decode. And the strongest form of your conclusion now has two independent observations behind it: **the destination of that store is a compile-time zero in the emitted code, in two translations made on two machines, and the value it tries to write is the same constant both times.** ### What this rules out Everything I had been chasing. My earlier guesses were that a compute dispatch was dropped and the title read a zero back as a pointer; the store target being an immediate zero in the code means no runtime value can change where it writes. It also fits what you and I both measured and could not explain: - it is not memory: your `TileHeap 3457/6236 MB`, my 1.4 GB free of 7.1 - it is not the card: RDNA3 and Blackwell, same immediate, same register file (`rax`/`rbx`/`rbp` zero, `rdx` one) - it is not a switch: `VICTORY_HAIR=1` no effect on either of us, `WAVE_WIDE` on or off no effect on this fault - it is not the 27th's five changelists: the boundary I have is that `3277b15` does not fault and everything from `9a4aa8d` on does ### The one thing that does not fit, stated plainly If the zero were simply emitted for a global whose address never got resolved, I would expect it to fault the first time that code runs, not 80–90 seconds in. So either the function is reached late, or something else decides when it is reached. That part I have not settled, and I am not going to guess at it. ### What I can do next I can read the seven sites out of any build either of you names, the way I read mine — no build, no game, one pass over the image — and say whether the set or the immediates changed. That would show quickly whether a candidate fix moved any of them, which is cheaper than a four-minute run. Thanks for pulling the instruction bytes out; that is what made this checkable at all.
Author
Owner

@⁠fantaoranges on GitHub · 2026-11-27 16:27 UTC · original

All seven imm32 match, not just the faulting one — and the difference between the seven sites and their neighbours points at relocation

@⁠Razen114514 — I pulled every immediate out of my image too. Your table and mine line up exactly, all seven, in the same order:

# mine (RVA) mine (imm32) yours (RVA) yours (imm32)
1 0x2215c35 0x00000000 0x2215035 0x00000000
2 0x2215da9 0x00000000 0x22151a9 0x00000000
3 0x23cf683 0x4d8bd421 0x23cea83 0x4d8bd421
4 0x258b000 0x2ef1e94b 0x258a400 0x2ef1e94b
5 0x29e0880 0x4d795ee1 0x29dfc80 0x4d795ee1
6 0x390e0c0 0xb90ee778 0x390d4c0 0xb90ee778
7 0x402ac70 0x18283088 0x402a070 0x18283088

Seven sites, seven identical immediates, two images of different sizes produced on two machines. Whatever picks that constant is deterministic and independent of the translation run; whatever decides the destination is not, because that part came out as zero both times.

The thing worth looking at next is the contrast inside the same function. Four instructions above the fault, at 0x23cf610, the same function writes a different global and it does it the normal way:

023cf610  c6 05 6a 17 e4 07 00   mov byte ptr [rip + 0x7e4176a], 0
023cf683  c7 04 25 00 00 00 00 21 d4 8b 4d   mov dword ptr [0x0], 0x4d8bd421

So mov [rip+disp32], imm survives translation intact in this very function, while seven mov [abs32], imm32 forms across the image come out pointing at 0. That is the shape of a relocation problem, not a shader problem: a rip-relative store needs no fixup and works; an absolute-address store needs its target rewritten for the new image and those seven were not rewritten (or the symbols behind them had no address at all).

That also explains why the fault is late and why the timing wanders (40 s, 72 s, 96 s): the seven sites sit far apart in .text (0x2215c35 … 0x402ac70), so they belong to different subsystems, and which one kills the run depends on which of those paths the title reaches first. It is not one delayed function — it is seven different landmines, and we have only detonated one.

On your "does not fit" point: I think the zero is not a global whose address failed to resolve at runtime — it is a target that was already zero when the image was written, which is why it cannot depend on anything we measured. What remains unexplained is only which store executes first.

Cheapest next step, and it uses exactly what you offered: the seven sites are a complete test set that needs no game. If a candidate build's image still carries seven mov [abs32], imm32 with destinations of 0, it cannot have fixed this, no matter what changed in the shader lowering — one pass over the image, as you said. If a build comes out with those seven rewritten to real addresses (or with the stores turned back into rip-relative form), that is the fix, and it would be worth four minutes to confirm it survives the cutscene.

**@⁠fantaoranges** on GitHub · 2026-11-27 16:27 UTC · [original](https://github.com/DoubleGhosty/cool_fox/issues/80#issuecomment-7223275038) ## All seven imm32 match, not just the faulting one — and the difference between the seven sites and their neighbours points at relocation @⁠Razen114514 — I pulled every immediate out of my image too. Your table and mine line up exactly, all seven, in the same order: | # | mine (RVA) | mine (imm32) | yours (RVA) | yours (imm32) | | --- | --- | --- | --- | --- | | 1 | `0x2215c35` | `0x00000000` | `0x2215035` | `0x00000000` | | 2 | `0x2215da9` | `0x00000000` | `0x22151a9` | `0x00000000` | | 3 | **`0x23cf683`** | **`0x4d8bd421`** | **`0x23cea83`** | **`0x4d8bd421`** | | 4 | `0x258b000` | `0x2ef1e94b` | `0x258a400` | `0x2ef1e94b` | | 5 | `0x29e0880` | `0x4d795ee1` | `0x29dfc80` | `0x4d795ee1` | | 6 | `0x390e0c0` | `0xb90ee778` | `0x390d4c0` | `0xb90ee778` | | 7 | `0x402ac70` | `0x18283088` | `0x402a070` | `0x18283088` | Seven sites, seven identical immediates, two images of different sizes produced on two machines. Whatever picks that constant is deterministic and independent of the translation run; whatever decides the destination is not, because that part came out as zero both times. **The thing worth looking at next is the contrast inside the same function.** Four instructions above the fault, at `0x23cf610`, the same function writes a *different* global and it does it the normal way: ``` 023cf610 c6 05 6a 17 e4 07 00 mov byte ptr [rip + 0x7e4176a], 0 023cf683 c7 04 25 00 00 00 00 21 d4 8b 4d mov dword ptr [0x0], 0x4d8bd421 ``` So `mov [rip+disp32], imm` survives translation intact in this very function, while seven `mov [abs32], imm32` forms across the image come out pointing at 0. That is the shape of a **relocation** problem, not a shader problem: a rip-relative store needs no fixup and works; an absolute-address store needs its target rewritten for the new image and those seven were not rewritten (or the symbols behind them had no address at all). That also explains why the fault is late and why the timing wanders (40 s, 72 s, 96 s): the seven sites sit far apart in `.text` (`0x2215c35` … `0x402ac70`), so they belong to different subsystems, and which one kills the run depends on which of those paths the title reaches first. It is not one delayed function — it is seven different landmines, and we have only detonated one. **On your "does not fit" point:** I think the zero is not a global whose address failed to resolve at runtime — it is a target that was already zero when the image was written, which is why it cannot depend on anything we measured. What remains unexplained is only *which* store executes first. **Cheapest next step, and it uses exactly what you offered:** the seven sites are a complete test set that needs no game. If a candidate build's image still carries seven `mov [abs32], imm32` with destinations of 0, it cannot have fixed this, no matter what changed in the shader lowering — one pass over the image, as you said. If a build comes out with those seven rewritten to real addresses (or with the stores turned back into rip-relative form), that is the fix, and it would be worth four minutes to confirm it survives the cutscene.
Author
Owner

@⁠Razen114514 on GitHub · 2026-11-27 16:28 UTC · original

Confirmed on my image: the RIP-relative store above it matches, and the absolute one is byte-identical

Your contrast is there in my image too, at the same distance from the fault.

My bytes

0x23cea10  c6 05 6a 17 e4 07 00   mov byte ptr [rip + 0x7e4176a], 0
0x23cea83  c7 04 25 00 00 00 00   mov dword ptr [0x0], 0x4d8bd421
                                     21 d4 8b 4d

Yours:

0x23cf610  c6 05 6a 17 e4 07 00   mov byte ptr [rip + 0x7e4176a], 0
0x23cf683  c7 04 25 00 00 00 00   mov dword ptr [0x0], 0x4d8bd421
                                     21 d4 8b 4d

Same distance (0x73 between the two), same RIP displacement (0x7e4176a), same
absolute-store encoding, same immediate. Two images of different sizes, made on two
machines from two vendors.

So the split inside one function is real and reproducible: the store four instructions
earlier reaches its global correctly through RIP, and this one has a zero where an address
belongs. One address resolved, the other emitted as nothing, in the same compiled
function.

I agree with where that points. It also explains something I could not account for
earlier: the two sites at 0x2215035 and 0x22151a9 carry immediate 0x00000000. If the
encoder were dropping the destination, those two would still be writing something
somewhere; with a zero immediate and a zero destination they are effectively no-ops. So
"destination lost" and "value is zero" happen independently, which is more consistent with
an unresolved relocation than with a single bad pointer.

One thing I would check before anyone chases the JIT

Is 0x7e4176a — the displacement that did work — consistent between our two images?
If both translations emit the same RIP displacement from different base addresses, the
fixup machinery resolved it correctly in both, and only the absolute form is affected. If
the displacements differ, then it is the same machinery failing differently and the
distinction I am drawing above is wrong.

It is one read each. Mine is 6a 17 e4 07, at 0x23cea12.

What I still cannot explain

Why it takes 80–90 seconds to arrive at a store that always faults. Both of us reach the
world, play, and then this. If the zero is baked into the code, the first execution of
that path should be the one that dies. Something decides when the path is taken, and I
have no evidence about what. I would rather leave that open than invent a reason for it.

**@⁠Razen114514** on GitHub · 2026-11-27 16:28 UTC · [original](https://github.com/DoubleGhosty/cool_fox/issues/80#issuecomment-7223309423) ## Confirmed on my image: the RIP-relative store above it matches, and the absolute one is byte-identical Your contrast is there in my image too, at the same distance from the fault. ### My bytes ``` 0x23cea10 c6 05 6a 17 e4 07 00 mov byte ptr [rip + 0x7e4176a], 0 0x23cea83 c7 04 25 00 00 00 00 mov dword ptr [0x0], 0x4d8bd421 21 d4 8b 4d ``` Yours: ``` 0x23cf610 c6 05 6a 17 e4 07 00 mov byte ptr [rip + 0x7e4176a], 0 0x23cf683 c7 04 25 00 00 00 00 mov dword ptr [0x0], 0x4d8bd421 21 d4 8b 4d ``` Same distance (`0x73` between the two), same RIP displacement (`0x7e4176a`), same absolute-store encoding, same immediate. Two images of different sizes, made on two machines from two vendors. **So the split inside one function is real and reproducible:** the store four instructions earlier reaches its global correctly through RIP, and this one has a zero where an address belongs. One address resolved, the other emitted as nothing, in the same compiled function. I agree with where that points. It also explains something I could not account for earlier: the two sites at `0x2215035` and `0x22151a9` carry immediate `0x00000000`. If the encoder were dropping the destination, those two would still be writing *something* somewhere; with a zero immediate and a zero destination they are effectively no-ops. So "destination lost" and "value is zero" happen independently, which is more consistent with an unresolved relocation than with a single bad pointer. ### One thing I would check before anyone chases the JIT Is `0x7e4176a` — the displacement that *did* work — consistent between our two images? If both translations emit the same RIP displacement from different base addresses, the fixup machinery resolved it correctly in both, and only the absolute form is affected. If the displacements differ, then it is the same machinery failing differently and the distinction I am drawing above is wrong. It is one read each. Mine is `6a 17 e4 07`, at `0x23cea12`. ### What I still cannot explain Why it takes 80–90 seconds to arrive at a store that always faults. Both of us reach the world, play, and then this. If the zero is baked into the code, the first execution of that path should be the one that dies. Something decides when the path is taken, and I have no evidence about what. I would rather leave that open than invent a reason for it.
Author
Owner

@⁠fantaoranges on GitHub · 2026-11-27 16:29 UTC · original

The image carries no base relocations, and those seven disp32 are zero in the file itself — so this is a zero-page access, not a lost symbol

I went one level below the runtime bytes and read the image as a PE. Two facts change the shape of the problem.

1. There is no .reloc directory in the image at all.

ImageBase          0x140000000
DllCharacteristics 0x8160  (DYNAMIC_BASE | HIGH_ENTROPY_VA | NX_COMPAT)
DIRECTORY_ENTRY_BASERELOC  absent

And the loader mapped it somewhere else anyway — my dump has it at base 0x7fff1a5f0000, nowhere near the declared 0x140000000.

2. Those seven disp32 are zero on disk, not zeroed by the loader. I scanned the file before it was ever mapped: all seven sites carry 00 00 00 00, and none of them has a relocation entry (there are no relocations to have one).

That last point matters because victory does not rewrite code. crates/victory-loader/src/prepare.rs turns the console image into a DLL by setting IMAGE_FILE_DLL, clearing the entry point, pointing the import directory at its empty terminator and clearing the TLS callback — pure header surgery, no instruction patching. So mov dword ptr [0x0], 0x4d8bd421 is what the console binary says, and it says it in both of our images, seven times, with the same immediates.

What that implies

On the console, offset 0 is a mapped page and those stores are harmless. On Windows the first 64 KiB are reserved — I checked on this machine: VirtualAlloc at 0x1000-ish fails, at 0x10000 succeeds, at 0 you just get whatever address the allocator picks. So a store to absolute 0 is an instant fault on PC no matter what the GPU, the driver or the shader translator does — which is exactly why the signature is identical across RDNA3 and Blackwell and why no switch moves it.

It also reframes your boundary. 3277b15 not faulting does not have to mean the defect arrived on the 27th; it can mean the run never got to one of these stores before. The seven sites sit 30+ MB apart in .text, so they belong to different subsystems, and which one you die on depends on how far the run gets — 40 s, 72 s, 96 s matches that better than a single broken function.

Directions, cheapest first

  1. Check whether Windows will let us map a writable page at 0 (NtMapViewOfSection with BaseAddress = 0). If yes, that is a five-line fix in the loader and it un-breaks all seven sites at once — the console got away with it, so nothing in the title expects that page to be special.
  2. If it refuses, patch the seven stores to a scratch page — they write constants, they do not depend on the destination, so redirecting them is safe; only the one that is read back later would need care.
  3. A vectored handler covering the first 64 KiB is the last resort, and I would rather not.

Two things you can check faster than I can: in your dump, is the module also mapped outside 0x140000000 (mine is at 0x7fff1a5f0000), and does your image have a .reloc directory? If your answer matches mine on both, then every run of this build on any PC should fault on the first of these seven stores it reaches, and the version boundary is about reachability rather than introduction.

**@⁠fantaoranges** on GitHub · 2026-11-27 16:29 UTC · [original](https://github.com/DoubleGhosty/cool_fox/issues/80#issuecomment-7223331254) ## The image carries no base relocations, and those seven `disp32` are zero in the file itself — so this is a zero-page access, not a lost symbol I went one level below the runtime bytes and read the image as a PE. Two facts change the shape of the problem. **1. There is no `.reloc` directory in the image at all.** ``` ImageBase 0x140000000 DllCharacteristics 0x8160 (DYNAMIC_BASE | HIGH_ENTROPY_VA | NX_COMPAT) DIRECTORY_ENTRY_BASERELOC absent ``` And the loader mapped it somewhere else anyway — my dump has it at base `0x7fff1a5f0000`, nowhere near the declared `0x140000000`. **2. Those seven `disp32` are zero on disk, not zeroed by the loader.** I scanned the file before it was ever mapped: all seven sites carry `00 00 00 00`, and none of them has a relocation entry (there are no relocations to have one). That last point matters because `victory` does not rewrite code. `crates/victory-loader/src/prepare.rs` turns the console image into a DLL by setting `IMAGE_FILE_DLL`, clearing the entry point, pointing the import directory at its empty terminator and clearing the TLS callback — pure header surgery, no instruction patching. So **`mov dword ptr [0x0], 0x4d8bd421` is what the console binary says**, and it says it in both of our images, seven times, with the same immediates. ### What that implies On the console, offset 0 is a mapped page and those stores are harmless. On Windows the first 64 KiB are reserved — I checked on this machine: `VirtualAlloc` at `0x1000`-ish fails, at `0x10000` succeeds, at `0` you just get whatever address the allocator picks. So a store to absolute 0 is an instant fault on PC no matter what the GPU, the driver or the shader translator does — which is exactly why the signature is identical across RDNA3 and Blackwell and why no switch moves it. It also reframes your boundary. `3277b15` not faulting does not have to mean the defect arrived on the 27th; it can mean the run never *got* to one of these stores before. The seven sites sit 30+ MB apart in `.text`, so they belong to different subsystems, and which one you die on depends on how far the run gets — 40 s, 72 s, 96 s matches that better than a single broken function. ### Directions, cheapest first 1. **Check whether Windows will let us map a writable page at 0** (`NtMapViewOfSection` with `BaseAddress = 0`). If yes, that is a five-line fix in the loader and it un-breaks all seven sites at once — the console got away with it, so nothing in the title expects that page to be special. 2. If it refuses, **patch the seven stores to a scratch page** — they write constants, they do not depend on the destination, so redirecting them is safe; only the one that is read back later would need care. 3. A vectored handler covering the first 64 KiB is the last resort, and I would rather not. **Two things you can check faster than I can:** in your dump, is the module also mapped outside `0x140000000` (mine is at `0x7fff1a5f0000`), and does your image have a `.reloc` directory? If your answer matches mine on both, then every run of this build on any PC should fault on the first of these seven stores it reaches, and the version boundary is about reachability rather than introduction.
Author
Owner

@⁠fantaoranges on GitHub · 2026-11-27 16:35 UTC · original

My RIP displacement matches yours byte-for-byte — but the two imm32 = 0 sites are not lost destinations, they are an indirect-call guard

Your check first: mine is 6a 17 e4 07 at 0x23cf612 (displacement 0x7e4176a), i.e. identical to yours, at the identical 0x73 distance from the absolute store. Two images of different sizes, same displacement, so the fixup machinery is consistent between the two translations and only the absolute form is affected — the distinction you drew holds.

Where I have to correct the reading of the two zero sites

0x2215c35 and 0x2215da9 are not stores whose destination went missing. They are what an MSVC null-checked indirect call compiles to, and the code immediately in front of them says so:

02215c27  48 8b 05 1a 07 fa 04   mov  rax, qword ptr [rip + 0x4fa071a]   ; the function pointer
02215c2e  48 85 c0               test rax, rax
02215c31  74 02                  je   0x142215c35                        ; NULL -> trap
02215c33  ff d0                  call rax
02215c35  c7 04 25 00 00 00 00 00 00 00 00   mov dword ptr [0], 0        ; deliberate fault
02215c40  cc                     int3

mov [0], 0 followed by int3 is the compiler's own "this must never be reached" sequence — a fail-fast, not a lost address. 0x2215da9 is the same shape in the same function (0x2215a60–0x2215e09), guarding a second pointer. Both sit inside one function that is itself an indirect-dispatch helper.

So the pair carries imm32 = 0 and disp32 = 0 not because two independent failures lined up, but because both halves were emitted deliberately. That weakens the "unresolved relocation" reading of those two — they tell us nothing about address resolution.

Which leaves the fault site as the odd one out

Three of the seven, then, are traps of a kind; but they are not all the same kind, and our site is the different one:

  • 0x2215c35, 0x2215da9 — mov [0], 0 + int3, guarded by a null check. Compiler-generated fail-fast.
  • 0x23cf683 — stores 0x4d8bd421 to 0 and then add rsp, 0x48; ret. No int3, no null check in front of it. The only guard is cmp byte [rsp+0x34], 1; jne — and the other branch clears 12 bytes and falls straight through into the same store. Both paths arrive.
  • 0x258b000, 0x29e0880, 0x390e0c0, 0x402ac70 — not inside any .pdata function range (I parsed all 299,257 runtime-function entries). These four are not in code the unwinder knows about; I have not classified them and will not guess.

So the honest state is: two of the seven are deliberate traps, one is a store of a constant magic to zero inside a normal function tail, four are unclassified. "Seven unresolved relocations" was too tidy; I would drop that framing.

Your open question gets worse, not better, under this reading. If 0x23cf683 is a store of a constant to a fixed address inside a function that returns normally afterwards, then the console must have had something writable at 0 — otherwise the game would fault there on the console too, on every path through that tail. That is testable in principle and I cannot test it here.

One read you can do that I cannot: whether your 0x2215c27-equivalent carries the same mov rax,[rip+disp] / test / je / call rax shape in front of 0x2215035. If it does, the trap reading is confirmed on your side too. If your bytes there are different, tell me and I will re-read mine from the dump rather than the image.


Report filed by Hermes Agent on behalf of the reporter (@⁠fantaoranges).

**@⁠fantaoranges** on GitHub · 2026-11-27 16:35 UTC · [original](https://github.com/DoubleGhosty/cool_fox/issues/80#issuecomment-7223439256) ## My RIP displacement matches yours byte-for-byte — but the two `imm32 = 0` sites are not lost destinations, they are an indirect-call guard **Your check first:** mine is `6a 17 e4 07` at `0x23cf612` (displacement `0x7e4176a`), i.e. identical to yours, at the identical `0x73` distance from the absolute store. Two images of different sizes, same displacement, so the fixup machinery is consistent between the two translations and only the absolute form is affected — the distinction you drew holds. ## Where I have to correct the reading of the two zero sites `0x2215c35` and `0x2215da9` are not stores whose destination went missing. They are what an MSVC null-checked indirect call compiles to, and the code immediately in front of them says so: ``` 02215c27 48 8b 05 1a 07 fa 04 mov rax, qword ptr [rip + 0x4fa071a] ; the function pointer 02215c2e 48 85 c0 test rax, rax 02215c31 74 02 je 0x142215c35 ; NULL -> trap 02215c33 ff d0 call rax 02215c35 c7 04 25 00 00 00 00 00 00 00 00 mov dword ptr [0], 0 ; deliberate fault 02215c40 cc int3 ``` `mov [0], 0` followed by `int3` is the compiler's own "this must never be reached" sequence — a fail-fast, not a lost address. `0x2215da9` is the same shape in the same function (`0x2215a60`–`0x2215e09`), guarding a second pointer. Both sit inside one function that is itself an indirect-dispatch helper. So the pair carries `imm32 = 0` and `disp32 = 0` not because two independent failures lined up, but because both halves were emitted deliberately. That weakens the "unresolved relocation" reading of *those two* — they tell us nothing about address resolution. ## Which leaves the fault site as the odd one out Three of the seven, then, are traps of a kind; but they are not all the same kind, and our site is the different one: - `0x2215c35`, `0x2215da9` — `mov [0], 0` + `int3`, guarded by a null check. Compiler-generated fail-fast. - **`0x23cf683`** — stores `0x4d8bd421` to `0` and then `add rsp, 0x48; ret`. No `int3`, no null check in front of it. The only guard is `cmp byte [rsp+0x34], 1; jne` — and the *other* branch clears 12 bytes and falls straight through into the same store. Both paths arrive. - `0x258b000`, `0x29e0880`, `0x390e0c0`, `0x402ac70` — **not inside any `.pdata` function range** (I parsed all 299,257 runtime-function entries). These four are not in code the unwinder knows about; I have not classified them and will not guess. So the honest state is: two of the seven are deliberate traps, one is a store of a constant magic to zero inside a normal function tail, four are unclassified. "Seven unresolved relocations" was too tidy; I would drop that framing. **Your open question gets worse, not better, under this reading.** If `0x23cf683` is a store of a constant to a fixed address inside a function that returns normally afterwards, then the console must have had something writable at 0 — otherwise the game would fault there on the console too, on every path through that tail. That is testable in principle and I cannot test it here. **One read you can do that I cannot:** whether your `0x2215c27`-equivalent carries the same `mov rax,[rip+disp] / test / je / call rax` shape in front of `0x2215035`. If it does, the trap reading is confirmed on your side too. If your bytes there are different, tell me and I will re-read mine from the dump rather than the image. --- *Report filed by Hermes Agent on behalf of the reporter (@⁠fantaoranges).*
Author
Owner

@⁠fantaoranges on GitHub · 2026-11-27 16:47 UTC · original

Correction, and one practical note on testing

Correction first, because I got this wrong in my previous comment. I said the image has no .reloc
directory. It does:

DIRECTORY_ENTRY_BASERELOC  VA 0xaf41000  size 0x12a350   2763 blocks / 599,676 entries

My earlier read used a parser that skips the base-relocation directory, and I reported its silence as absence.
That was my mistake, not a property of the image. What survives the correction: none of the seven sites'
disp32 fields is covered by any relocation entry
— I checked all 599,676 — so those zeros are still not
fixups waiting for a rebase. But "the image has no relocations at all" was false and the reasoning based on it
should be discarded.

And a note for anyone who tries this at home: you cannot test a fix by patching
cache-pareto/images/victory-image-*.dll on disk. victory-loader/src/windows.rs::map_dll reads the original
module, calls prepare() on it, and write_if_changed() rewrites the image on every launch. I patched all
seven sites in the dll by hand, launched, and got the identical fault at +0x23cf683 — because my bytes had
already been replaced by freshly prepared ones before the game started.

So the fix has to live in prepare(). Mine is a 40-line redirect_zero_stores() there:

  • scan .text for c7 04 25 00 00 00 00 (mov dword [0], imm32)
  • rewrite each to c7 05 <rip+disp32> <imm32> 90 — same 11 bytes, trailing byte becomes nop
  • target: the last 16 bytes of .data's virtual extent, i.e. beyond the raw data, so the loader maps it
    zero-filled and writable and nothing initialises it
  • safe by construction for these seven because the whole 99.9 MB .text contains no read of a zero
    address in any encoding — only these writes — so no code observes where the value lands

It compiles now. I will report what the run does either way — if the fault moves elsewhere, that is worth
knowing too.


Report filed by Hermes Agent on behalf of the reporter (@⁠fantaoranges).

**@⁠fantaoranges** on GitHub · 2026-11-27 16:47 UTC · [original](https://github.com/DoubleGhosty/cool_fox/issues/80#issuecomment-7223677195) ## Correction, and one practical note on testing **Correction first, because I got this wrong in my previous comment.** I said the image has no `.reloc` directory. It does: ``` DIRECTORY_ENTRY_BASERELOC VA 0xaf41000 size 0x12a350 2763 blocks / 599,676 entries ``` My earlier read used a parser that skips the base-relocation directory, and I reported its silence as absence. That was my mistake, not a property of the image. What survives the correction: **none of the seven sites' `disp32` fields is covered by any relocation entry** — I checked all 599,676 — so those zeros are still not fixups waiting for a rebase. But "the image has no relocations at all" was false and the reasoning based on it should be discarded. **And a note for anyone who tries this at home:** you cannot test a fix by patching `cache-pareto/images/victory-image-*.dll` on disk. `victory-loader/src/windows.rs::map_dll` reads the original module, calls `prepare()` on it, and `write_if_changed()` rewrites the image on **every launch**. I patched all seven sites in the dll by hand, launched, and got the identical fault at `+0x23cf683` — because my bytes had already been replaced by freshly prepared ones before the game started. So the fix has to live in `prepare()`. Mine is a 40-line `redirect_zero_stores()` there: - scan `.text` for `c7 04 25 00 00 00 00` (`mov dword [0], imm32`) - rewrite each to `c7 05 <rip+disp32> <imm32> 90` — same 11 bytes, trailing byte becomes `nop` - target: the last 16 bytes of `.data`'s virtual extent, i.e. beyond the raw data, so the loader maps it zero-filled and writable and nothing initialises it - safe by construction for these seven because the whole 99.9 MB `.text` contains **no read** of a zero address in any encoding — only these writes — so no code observes where the value lands It compiles now. I will report what the run does either way — if the fault moves elsewhere, that is worth knowing too. --- *Report filed by Hermes Agent on behalf of the reporter (@⁠fantaoranges).*
This discussion has been locked. Commenting is limited to contributors.
No description provided.