Crash 0xc0000005 (write 0x0) while loading the boat cutscene — reproducible 3x on latest main #80
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/DoubleGhosty--cool_fox#80
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@Cush-dev on GitHub · 2026-11-27 09:46 UTC · original
Hardware
Build
bd8b4f5, cargo build --release --locked -p victoryPORT_GUARD=1, PORT_JOURNAL=1, PORT_CONSTANTS=0, PORT_CBV=0, cache-pareto)
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:
The crash lands immediately after the same two compute shaders fail to
translate (same hashes on every run):
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), sothe 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: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.
@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+0x23cf683with the same#1 +0x2215c35,#2 +0x2215ecastack, on different hardware:ff6fdf23ce0b9048and0a5ecfee6b79e13bfailed to translate;CS_Prop_BatchNoCull_c47eb2b0and a dispatch was dropped;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 withVICTORY_WAVE_WHY=1, the log will say whetherff6fdf23ce0b9048took 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.
@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
3277b15Identical fault, different card, and a version boundary that may narrow it down.
The fault is the same, frame for frame
#0,#1and#2match yours exactly. Mine lands 79 s after launch, while the run isstill translating (the last lines before it are
shader translated …), not on a cutsceneload — so the trigger may differ even though the fault does not.
Hardware
game_scarlett_master.exeblake3b99f876b74d4a77f03af5f878223b27bd647b5c35a79d5decd9f716504239e93, title7952987AYours is a 20 GB A4500 and mine is an 8 GB 5060, and both fault at
+0x23cf683withwrite 0x0. That rules out video memory as the cause.The version boundary — the part that may help
+0x23cf6833277b15(2026-11-26 18:59)9a4aa8d(2026-11-27 09:41)all3n1k/VIctory-RTX3090@abf70c4(vendors the 2026-11-27 cool_fox tree)So on this machine it is not present before the 27th and present after. It is also not
tied to
VICTORY_WAVE_WIDE: on3277b15I ran six full sessions with the wave-wide formon, off, with library mapping disabled, with no
StorePipeline, with a halved renderscale 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
9a4aa8dthe fault appears regardless of that switch.What I cannot tell you
I have no symbols, so
+0x2215c35and+0x2215ecamean nothing to me beyond the factthat 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-RTX3090vendors this tree and reproduces it, so the tree's own launcherdefaults are probably not the difference. Both my runs use
--console series-s; I havenot tried
series-xon9a4aa8d.@DoubleGhosty on GitHub · 2026-11-27 10:41 UTC · original
main now includes #81 (
d2f23973):ff6fdf23ce0b9048is translated with its branches on the mask's SCC split per lane, as before #66, instead of being refused and its dispatch dropped.a4af70beaddsVICTORY_LANE_SPLITto the shader cache key.Between
3277b15(no fault) and9a4aa8d(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 on3277b15as well, so it is not the regression.Please try current main to the same point with
VICTORY_WAVE_WHY=1: aWAVE64-RETRY branches on a mask's SCC split per lane (inexact): translatedline confirms the fallback ran. The translator changed, so cached translations are rebuilt automatically.@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
mainnow.)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 between3277b15and9a4aa8d, and that program is now translated with its SCC branches split per lane, as before #66, instead of its dispatch being dropped. WithVICTORY_WAVE_WHY=1, the lineWAVE64-RETRY branches on a mask's SCC split per lane (inexact): translatedconfirms 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 unlessVICTORY_HAIR=1: the hair strands, but alsoCS_CullMaskPass,CS_ProjDecalCut,CS_CalculateFireVolumesandCS_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 withVICTORY_HAIR=1(on currentmainit has to be1; on9a4aa8dany value turns them on). The same commit also dropsCS_ScreenProbes_ActivateRayswhile rays are off, butVICTORY_RAYS=1changes much more, so try that only second.3. If neither:
3277b15is an ancestor of9a4aa8d, 94 commits apart, sogit bisect start 9a4aa8d 3277b15gets there in about 7 runs.For any of these,
VICTORY_LOG=info VICTORY_WAVE_WHY=1names 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.
@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_PIPELINESmatches a hash of any stage, notonly 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.cmddefaults plus:Fresh
VICTORY_CACHE_DIR.Result
+0x23cf683main @ a4af70b, no skipmain @ a4af70b,VICTORY_HAIR=1main @ a4af70b, the two hashes skippedThe
VICTORY_HAIR=1run is included because @Hasusmogus suggested it and it did notchange anything here; and
VICTORY_WAVE_WHY=1confirmed #81's fallback ran(
WAVE64-RETRY branches on a mask's SCC split per lane (inexact): translated), so therefusal #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:
I had wrongly concluded twice that
SKIP_PIPELINEScould not touch it because it was agraphics 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 thatleaving 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.
@Hasusmogus on GitHub · 2026-11-27 11:38 UTC · original
@Razen114514 Great result, and thanks for running the
VICTORY_HAIR=1one 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+0x23cf683is the title's 30 s watchdog, any GPU hang that stops frames ends in this same fault. So the chain may be: the480d53fc48107a50mesh 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 inemit/mod.rs.Two runs would tell which it is:
VICTORY_WAVE_WIDE=1, with and withoutVICTORY_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.VICTORY_WAVE_WHY=1lines for that shader. Since3a7e7e7each line starts with its hash, sofindstr 480d53fc48107a50on the run's output (or theVICTORY_LOG_FILEonce #82 is in) shows which form it was translated in. Awave-wide branchesor anAPPROXIMATEline 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.
@Razen114514 on GitHub · 2026-11-27 11:58 UTC · original
The two runs you asked for: the skip only helps with
VICTORY_WAVE_WIDE=1Your 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_WIDEVICTORY_SKIP_PIPELINES=480d53fc48107a50,f41ec9d9437c021c+0x23cf683So: 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 ownstopping 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:
that version is the one that can hang; with it off they are refused or dropped
instead, and something else faults first.
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
=0runs at allGrepping the two
WAVE_WIDE=0logs I already had:Neither shader is reached without the switch. So
VICTORY_SKIP_PIPELINESwas a no-opin both
=0runs — it excluded nothing, because nothing was there to exclude. The=0half 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
=0runs are is simplya different failure, earlier, that does not involve this pair.
What survives is the narrow statement: on this card, with
VICTORY_WAVE_WIDE=1, the tworuns 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
=0runs do not reach it, so they cannotanswer that question.
@Cush-dev on GitHub · 2026-11-27 13:19 UTC · original
Final update: with VICTORY_HAIR=1 on
d2f23973the 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:20 UTC · original
@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=1does not helpSystem / build
42b95b990f(2026-11-27) — includes the #81 fixd2f23973f6(66 commits ahead, 0 behind per compare API)GTA6.Xbox.v1.0.2.1-CYBERLEEK(Xbox leak build), TitleID7952987a, version930.048.020-vb_sub_storyCrash — 3/3 runs, byte-identical signature (21:08 / 21:10 / 23:26 local, pids 26136 / 27100 / 23400)
rax=0 rbx=0 rdx=1) every runfbk_stry000_FBK_STRY000_INTRO(state Prestream), player(-1782.7, -1913.0, 5.0), camera(1847.0, 147.3, 5.4), ~frame 2640, uptime ~1m36sGame Physical 2.18/2.3 GB,TileHeap 3457/6236 MBat crash timeVICTORY_HAIR=1tested: no effect — first two crashes without the flag, third crash with it set; identical+0x23cf683in all three, so the wave-wide-branch workaround doesn't fix it on RDNA3Minidumps (~30 MB each) available on request.
— report filed by Hermes Agent on behalf of the reporter
@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
raxrbxrbprdxrcx0xd0024c3480x90024c348r80xd074d8c400x9072a0c40r90xd074d8e200x9072a0e20r100xd074d8ad80x9072a0ad8r110xd074d8c400x9072a0c40r130x7fff20e35c280x7ffd74675c28r140x7ffff07fb2200x7ffe67ffb220+0x23cf683,+0x2215c35,+0x2215ecarax,rbxandrbpare zero andrdxis one on both. Every differing register holdsthe 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
+0x23cf683is, it is decided by the translatedprogram rather than by the card.
@fantaoranges also ruled out memory pressure (
Game Physical 2.18/2.3 GB,TileHeap 3457/6236 MBat the fault); mine has 1.4 GB of a 7.1 GB budget free at thatpoint. So neither of us is short of memory.
My runs, for the same table
b99f876b…dump, title7952987A3277b15: no fault, 5 min 24 s and still going9a4aa8d,bd8b4f5,42b95b9,all3n1k/VIctory-RTX3090(vendors the 27th tree):fault at 1 min 12 s – 1 min 26 s,
write 0x0, same registersVICTORY_HAIR=1: no effect here eitherVICTORY_WAVE_WIDEon or off: no effect on this fault in those buildsThe 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
bd8b4f5and42b95b9on demand, four minutes a run, and I can runa 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.
@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
42b95b9build). They are identical at the byte level.Module:
victory-image-b99f876b74d4a77f.dll0x7fff1a5f0000, size184,995,840bytes (176.4 MiB) — identical in all three dumps0x7fff1c9bf683→ RVA0x23cf683ExceptionInformation = [1, 0]→ access type 1 (write), target0x0Symbols: 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:
The 16 bytes before that are
c7 c0 f4 ff ff ff | c6 44 04 41 00 | 48 ff c0 | 75 f6—mov eax,-12then a 12-iterationmov byte [rsp+rax+0x41],0 / inc rax / jneclearing loop that exits withrax = 0.That last point matters, and it changes the "null pointer" framing: the faulting instruction does not write through
rax,rbxorrbp. It is an absolute-store form —mov dword ptr [disp32], imm32withdisp32 = 0— so the destination address is a constant 0 baked into the translated code, andrax = 0is 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 atvictory-image-*.dll base + 0x23cf683. If they startc7 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):
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 APId2f23973(#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
42b95b9and it faults; I have not run3277b15myself, 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: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,.textsection, RVA0x23cf620–0x23cf692). The bytes match the dump exactly, so this is the code that ran:Two things fall out of this:
1. Every path through this function reaches the faulting store.
jne 0x1423cf683jumps 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 4dismov dword ptr [0x0], 0x4d8bd421(SIB, no base, absolutedisp32 = 0). No pointer is dereferenced here at all —rax = 0at 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 bemov [reg], imm; it is not.The whole
.text(99.9 MB) contains exactly 7 occurrences of thatmov dword ptr [0x0], imm32encoding: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,
d2f23973is an ancestor of42b95b9) changes nothing here.What I would ask you to check (cheap, no build): in your
bd8b4f5/42b95b9image, isRVA 0x23cf683the samec7 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.
@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.dll120,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:0x23cea830x4d8bd4210x23cf6830x4d8bd4210x22150350x000000000x2215c350x22151a90x000000000x2215da90x258a4000x2ef1e94b0x258b0000x29dfc800x4d795ee10x29e08800x390d4c00xb90ee7780x390e0c00x402a0700x182830880x402ac70Seven, in both. Every one of mine sits exactly
0x800below 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:
TileHeap 3457/6236 MB, my 1.4 GB free of 7.1(
rax/rbx/rbpzero,rdxone)VICTORY_HAIR=1no effect on either of us,WAVE_WIDEon or offno effect on this fault
3277b15does notfault and everything from
9a4aa8don doesThe 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.
@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:
0x2215c350x000000000x22150350x000000000x2215da90x000000000x22151a90x000000000x23cf6830x4d8bd4210x23cea830x4d8bd4210x258b0000x2ef1e94b0x258a4000x2ef1e94b0x29e08800x4d795ee10x29dfc800x4d795ee10x390e0c00xb90ee7780x390d4c00xb90ee7780x402ac700x182830880x402a0700x18283088Seven 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:So
mov [rip+disp32], immsurvives translation intact in this very function, while sevenmov [abs32], imm32forms 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], imm32with 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.@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
Yours:
Same distance (
0x73between the two), same RIP displacement (0x7e4176a), sameabsolute-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
0x2215035and0x22151a9carry immediate0x00000000. If theencoder 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, at0x23cea12.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.
@fantaoranges on GitHub · 2026-11-27 16:29 UTC · original
The image carries no base relocations, and those seven
disp32are zero in the file itself — so this is a zero-page access, not a lost symbolI 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
.relocdirectory in the image at all.And the loader mapped it somewhere else anyway — my dump has it at base
0x7fff1a5f0000, nowhere near the declared0x140000000.2. Those seven
disp32are zero on disk, not zeroed by the loader. I scanned the file before it was ever mapped: all seven sites carry00 00 00 00, and none of them has a relocation entry (there are no relocations to have one).That last point matters because
victorydoes not rewrite code.crates/victory-loader/src/prepare.rsturns the console image into a DLL by settingIMAGE_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. Somov dword ptr [0x0], 0x4d8bd421is 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:
VirtualAllocat0x1000-ish fails, at0x10000succeeds, at0you 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.
3277b15not 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
NtMapViewOfSectionwithBaseAddress = 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.Two things you can check faster than I can: in your dump, is the module also mapped outside
0x140000000(mine is at0x7fff1a5f0000), and does your image have a.relocdirectory? 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:35 UTC · original
My RIP displacement matches yours byte-for-byte — but the two
imm32 = 0sites are not lost destinations, they are an indirect-call guardYour check first: mine is
6a 17 e4 07at0x23cf612(displacement0x7e4176a), i.e. identical to yours, at the identical0x73distance 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
0x2215c35and0x2215da9are 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:mov [0], 0followed byint3is the compiler's own "this must never be reached" sequence — a fail-fast, not a lost address.0x2215da9is 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 = 0anddisp32 = 0not 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— stores0x4d8bd421to0and thenadd rsp, 0x48; ret. Noint3, no null check in front of it. The only guard iscmp 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.pdatafunction 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
0x23cf683is 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 samemov rax,[rip+disp] / test / je / call raxshape in front of0x2215035. 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: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
.relocdirectory. It does:
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'
disp32fields is covered by any relocation entry — I checked all 599,676 — so those zeros are still notfixups 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-*.dllon disk.victory-loader/src/windows.rs::map_dllreads the originalmodule, calls
prepare()on it, andwrite_if_changed()rewrites the image on every launch. I patched allseven sites in the dll by hand, launched, and got the identical fault at
+0x23cf683— because my bytes hadalready been replaced by freshly prepared ones before the game started.
So the fix has to live in
prepare(). Mine is a 40-lineredirect_zero_stores()there:.textforc7 04 25 00 00 00 00(mov dword [0], imm32)c7 05 <rip+disp32> <imm32> 90— same 11 bytes, trailing byte becomesnop.data's virtual extent, i.e. beyond the raw data, so the loader maps itzero-filled and writable and nothing initialises it
.textcontains no read of a zeroaddress 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).