Native RDNA4: 2/2 runs die in the first minute on main 70564ae — 0xc0000005 at amdxc64.dll+0x861b9f in a pipeline worker #1785
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory#1785
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?
@KingKaom on GitHub · 2026-11-24 22:30 UTC · original
Symptom. On native Windows RDNA4 (RX 9070 XT), plain
main70564ae(diagnostics build,VICTORY_D3D12_DRED=1, standardVICTORY_KEYSpress-through) died in 2 of 2 runs within the first minute. Both runs: a first-chance and then unhandled0xc0000005atamdxc64.dll+0x861b9f(read 0x8: nothing mapped there), with the whole backtrace insideamdxc64.dll— a host-CPU crash inside AMD's offline shader compiler. It is not our GPU-side fault family: no DRED breadcrumbs, no device removal, no0x887A…exit; the process just exits0xc0000005.The two runs (identical binary and knobs; run 2 had a warm shader cache from run 1):
compute 334cf8d4ab5e2968, 4599 ms user). Before the crash the prologue presented at a steady 30.0 fps / 33.3 ms/frame with only 7 uniquedoes not translaterefusals (all GFX10 shapes) — the refusal count is the headline: our lineage and even the tested fork dropped ~330 and 4 unique shaders at the boot→menus milestone where main stops at 7. Last captured present before death: frame 1024, 4188 draws / 512 dispatches, the prologue scene on screen.Same fault instruction, different phase and frame: the trigger looks timing-dependent, the fault site is deterministic.
Why it matters. It kills the run before world entry, so it masks everything the new commits fixed behind it — we could not measure this card's in-world survival on the merged null-views / depth-twins work at all.
Context only we can add. Our previous ~10 runs on this card, on older lineages through
ffe310eplus merged fixes, never crashed inside the compiler. Both affected runs are on the new pipeline-queue path (c47b529pipeline queue fixes,9c58a1cpipeline pre-build), and in both runs the crashing compile ran while the pipeline worker queue was draining bursts of compiles. Question for anyone who knows the area: isamdxc64.dllexpected to be safe to call concurrently from more than one pipeline worker? (System copy here: file version 8.18.10.0514.)AI-assisted (Hermes Agent).
@KingKaom on GitHub · 2026-11-24 22:57 UTC · original
Addendum, same head: the fault does not need the game running.
On the same binary (
70564ae, diagnostics build, RX 9070 XT),victory translate --cache --pipelinesover the title's shader pack completes translation of 25,985 containers in 148 s, then exits with0xc0000005about 8 s into the pipeline phase — last linetitle pipelines to start early pipelines=3019, nothing after it. A pre-warmed shader cache does not protect a gameruneither: with the translation cache full, the game died 1.5 s after device creation at the same instruction (amdxc64.dll+0x861b9f, read 0x8, same 30-frame compiler backtrace) — earlier than the uncached runs (20–43 s), so cache state moves the timing, not the fault.So
translate --cache --pipelinesis a no-game, ~3-minute reproduction harness for this crash on RDNA4 (the pipeline phase crashed on its first attempt; the game path on this head 3/3).AI-assisted (Hermes Agent)
@KingKaom on GitHub · 2026-11-25 00:11 UTC · original
Concurrency A/B on the game-free harness, same head (
70564ae), same binary, warm cache — the thread-count question from the body is tested and does not hold as a dodge.Source first:
translate --jobs Nflows straight into the pipeline phase —warm()ends withprebuild::run(&paths, threads)(translate.rs:424), and the pre-build runs its pipeline jobs through exactlythreadsworker threads (prebuild.rs:204,each()spawnsthreadsworkers). So--jobs 1serializes every host-side compiler call in the crashing phase.Measured, from D3D12 device-ready to exit:
0xc0000005, ~7.5 s into early pipelines — 2/20xc0000005, 9.3 s into early pipelines(The serialized run's container pass was 100% cache hits in 104.7 s vs 91.5 s default — the container pass is not what dies; both runs stop at the same place, ~8–9 s into the 3019-early-pipeline phase. Game runs on this head are separately 3/3 at the same instruction.)
Reading: one call at a time does not dodge the fault, and time-to-death barely moves, so a pure interleaving race is not the trigger — either the bad state is reached deterministically in the first compiler work of the phase, or inside the compiler itself (its own internal threading is not something we can rule out from here). Weakening rather than dismissing the concurrency angle: it just isn't required to reproduce.
AI-assisted (Hermes Agent)
@KingKaom on GitHub · 2026-11-25 00:35 UTC · original
Still reproduces on newest
main— retested4118f33(217 commits past the previously tested head, several of them shader-translator changes feeding this compiler different DXIL). Same fault, new timing:0xc0000005, first-chance and unhandled, atamdxc64.dll+0x861b9f(read0x8), identical backtrace through the D3D12Core pipeline-state path, RX 9070 XT, driver 32.0.32029.2010.translate --cache --pipelinesharness. None of the 217 commits moved it.AI-assisted (Hermes Agent)
@Luislariosss on GitHub · 2026-11-25 01:14 UTC · original
Independent reproduction of the same fault family on a different RDNA4 card, plus a candidate for the "bad state reached deterministically" question in the body.
Our setup. RX 9060 XT (RDNA4, 16 GB),
amdxc64.dll32.0.32015.7029, Windows 11 26200,main70564ae(re-checked on42363ab). Same shape of death as yours:0xc0000005with the whole stack insideamdxc64.dll, no DRED breadcrumbs, no0x887A…exit. Two offsets, both ours:amdxc64.dll+0x85fd0f— three runs, in-game only, 42–90 s after world entry.amdxc64.dll+0x861b9f— the offset in your report, once, in-game.So on this card the fault site is not a single instruction; it is "somewhere in the compiler", and which one you land on depends on which program it was compiling.
What we hand that compiler. We ran the official DXIL validator over the shader pack (
victory translate --validate --list <archive>,VICTORY_DXIL= DXC 1.9.2609.5dxil.dll), i.e. on exactly whatpipeline.rswould pass toCreateComputePipelineState/ graphics PSO creation:The runtime does not validate before pipeline creation by design (
emit/validator.rs:1-6: the DXIL carries the container hash we compute ourselves, so D3D12 takes it). That is a plausible answer to your concurrency question from the addendum: an interleaving race is not required if some of the work handed to the compiler is invalid in the first place. It also fits the phase you measured — your--jobs 1run dies ~8–9 s into the same early-pipeline subset with the timing barely moving.The crash follows the programs, not the session. With
VICTORY_SKIP_PIPELINESset to three compute hashes that crashed the compiler, one run stayed in the world for 4m38s (against 42–90 s without them) and was still presenting when the harness ended it. Skipping is a blunt instrument — it drops the draws — but it says the compiler dies per program.Watch out for memory pressure when you compare timings. Our last run died with
E_OUTOFMEMORY (0x8007000E)on 4 MB shared buffers a fraction of a second before the0xc0000005. The Breakpad context at that point: 3.1 GB of a 47.2 GB commit limit free, 585 MB of RAM free, working set paged down to ~2 GB. You measured "time-to-death barely moves" with plenty of RAM; here the same fault arrives earlier when the process is thrashing, and the allocation failure immediately precedes it. Worth checking whether your harness sits anywhere near a commit limit.Reproduction, no game needed on your side either:
It prints one line per rejected program with the program name, stage and the class; on
42363abwe get 808 again (736 + 72), i.e. the 288 commits since70564aedo not change it. If your card reproduces the compiler fault with no game running, this gives you a way to know which programs are invalid before compiling any of them.What we are doing about it. #1936 adds a gate in
victory-gpu::shader_cache::host_shader: a translation the validator rejects becomes a cached refusal with its reason (the draws are dropped, like any other refusal), so invalid DXIL never reaches the driver, and the count of refusals is logged. It does not make these programs correct — for the compute class the emitter's own stage checks seem to be involved — but it stops the driver from being asked to compile them.One honest caveat on the compute class: we dumped three of the rejected programs and the individual operations in them (implicit
Sample,Gather,SampleCmpLevelZero, f16 conversions) are each legal in a 32×1×1 compute group at SM 6.6 when compiled from HLSL with DXC, so the incompatibility is somewhere else in what we emit around them. We are still narrowing that down; the validator refuses them either way.AI-assisted.
@Luislariosss on GitHub · 2026-11-25 01:29 UTC · original
Correction and follow-up to my previous comment.
Correction. I wrote that the individual operations in the rejected compute programs are legal in a 32×1×1 group. That is true when DXC compiles HLSL, but misleading here: DXC 1.9 writes validator version 1.9 by default, and the translator declares 1.6. Before 1.8, DXC treats
Sample/SampleBiasas pixel-only, so any compute or mesh program that emits them fails with the generic "Function uses features incompatible with the shader stage (cs)" and no detail line. Compiling a minimalTexture2D.Samplein[numthreads(32,1,1)]with-validator-version 1.6or1.7reproduces the exact text;1.8accepts it. So the compute class is invalid by construction, not a quirk of one group size.Result of the gate. On hardware, with #1936 and no skip-list, one RX 9060 XT run stayed in the world about 5 min 40 s with no
0xc0000005, refusing 223 distinct compute programs on the way. That supports the reading that the compiler dies on specific invalid programs, not on timing alone.Caveat. That run also logged a flood of
E_OUTOFMEMORYon small shared buffers after ~1 min 45 s in the world, so I am not claiming it is stable, only that the compiler fault did not occur.AI-assisted.
@KingKaom on GitHub · 2026-11-25 01:31 UTC · original
Second RDNA4 box confirms the census — RX 9070 XT, driver 32.0.32029.2010, same harness on
main4118f33(our SDK's validator: dxil.dll 1.9.2602.17, a minor behind yours).dxil.dll.eeed82b877b44b5f, that head's DRED-faulting compute) survived 61 min in-world vs 620 s on the same binary. Caveat: that head (a pr336-lineage base) died with the GPU-side page-fault class, notamdxc64.dll— so it is per-program death, but not the compiler crash itself. Are your three compiler-crash skip hashes on record somewhere, and does one of them matcheeed82b877b44b5f? The #59 thread independently fingered that program with a host-side null-SRV mechanism (view on a 56-byte record), so it plausibly carries more than one failure mode.AI-assisted (Hermes Agent)
@KingKaom on GitHub · 2026-11-25 04:40 UTC · original
In-game verdict on #1936 (the validator gate), RX 9070 XT: the gate dodges the compiler crash completely. Our blocker moved from "does the compiler survive" to "what wedges the run ~39 minutes in".
Two runs on the current head, one variable (the gate):
main940d32f(the copy-back page-marking head):0xc0000005, first-chance and unhandled, atamdxc64.dll+0x861b9f(read0x8), byte-identical backtrace, dead 34.4 s after device ready with 881 frames presented (prologue), no world entry. Fourth consecutive head, fifth game repro — the current translator churn has not moved it.940d32f+ #1936 merged (only conflict was in the shader-cache gate call site), validator gate ON with our SDK'sdxil.dll(1.9.2602.17): 5,251 frames presented across 36.4 minutes, zero0xc0000005, zero device removals. The frame curve is the usual lineage shape: frames 1–1000 at ~31 fps, then a drop through ~1.4 fps from ~frame 2000 — our runs' world-entry signature — holding 1.4–2.2 fps for the last ~33 minutes (202 draws/dispatches per frame with page-table copies active). So on this card the firstmain-based run I have that gets past the compiler at all and presents half an hour of post-prologue frames.shaders_rejectedclimbed from 83 to a final 283 (278 by minute 12, only +5 over the last 27 minutes — it converges). Cold-cache note: the gate keys the shader cache, so the whole pack re-translated once.E_OUTOFMEMORYat all. @Luislariosss's RX 9060 XT flooded small shared buffers after ~1m45s under the gate; on this 32 GB card there was no memory pressure for the whole run.The run ended a different way, and I want to flag it before it is mistaken for the same family: 38 min 48 s after launch, the log went silent mid frame-loop — after presenting frame 5,251, the last lines are the frame-wait poll returning normally and a
title memory page table copies=5088 blocks=63summary. No fault, nodevice removed, no DRED breadcrumbs, no new log line for the next 1h43m; process alive but wedged (working set had fallen 17.6 GB → 3.9 GB); we killed it. That reads title/host-side, not compiler-side.Two questions for gated runs (@Luislariosss, anyone else on #1936): (1) does your run's log stay alive the whole time, or have you seen it go silent mid-frame-loop like this? (2) world entry — do your gated runs actually reach the world (frame-rate drop past the prologue), or stop at the prologue too?
Net for the milestone chain: the gate turns "die 30–90 s in, inside the compiler" into "39 minutes of frames, then a different wedge." Worth landing — the crash family it screens out is exactly the one this issue is about.
AI-assisted (Hermes Agent)
@Marvisak on GitHub · 2026-11-25 12:46 UTC · original · edited 2026-11-26 00:49 UTC
Automated triage for the maintainers.
Run report: RX 9070 XT (RDNA4), driver 32.0.32029.2010. The crash is
0xc0000005atamdxc64.dll+0x861b9f(read 0x8) inside AMD's shader compiler during pipeline creation. It reproduced in-game and withtranslate --cache --pipelinesalone on70564ae,4118f33and940d32f. #1783 is an earlier report of the same address, and #2124 bisects its appearance toc75fdba.Fixed on main. A bisect in this thread (FrozenGuy7, RX 9070 XT, 70 compute containers that faulted the driver, each translated and built in its own process) puts the fix at
850b66f("Shaders: one handle per descriptor at a fixed address, and per join"), which is inmain:940d32fand286a00e(the parent of850b66f): 55 of 70 fault.850b66fand842b0cb: 0 faults, without #2122.translate --cache --pipelineson842b0cb(RX 9070 XT) is clean: 23,503 pipelines made, no compiler fault.842b0cbwith the driver's cache moved aside compiled 1,911 host pipelines over 18 min 51 s with noamdxc64.dllfault.The change is in the handle emission in
crates/victory-shader/src/emit/lower.rs(one heap handle per descriptor at a fixed address, cached in the entry block), which cuts the number of handles per program from thousands to dozens. Current main is63bcca4.Open PR #2122 (a buffer size query gets a handle of its own) is still open and rebased onto
13f91ca. It was the first change shown to remove this crash, and its own GPU test still kills the process on the 9070 XT when the size query is forced back onto the loads' handle. So it may still be worth having as a guard. That decision is for the maintainers, and it does not need to keep this report open.Other failures seen in this thread are separate and need their own issues if they reproduce on current main:
+0x536df19(#2122 alone,940d32f);+0x308f3bwith memory load at 97 % (842b0cb).Note for testers: AMD's own shader cache for
victory.exe(%LOCALAPPDATA%\AMD\DxcCache) can grow to several GB after full pre-builds. At ~7.8 GB the title stopped ~1 s after launch (0x80000003, out of memory) until that cache was moved aside. Clear it before comparing runs.This issue will be closed in 48 hours unless the reporter replies or a maintainer removes the
triage: proposed closelabel.Generated by Claude Code
@KingKaom on GitHub · 2026-11-25 13:19 UTC · original
Triage asked whether #2122 alone is enough on RDNA4 — tested, and the answer is: yes for the compiler crash, no for getting to the world. RX 9070 XT, one variable against the control in my comment above (plain
main940d32f→ that head + #2122e14ee3d, merged base is exactly this main), same binary profile (diag), same key schedule, cold shader cache (the translator change re-translates the pack, as the PR notes).amdxc64.dllfault is gone. Control940d32fdied at 34.4 s after device ready with the byte-identicalamdxc64.dll+0x861b9f(read0x8) crash from this thread; the #2122 build showed zero compiler faults while running 2,912 translations and 1,271 host-pipeline builds from a cold cache — and the compiler stayed busy the whole run, so this is not a cache-hit dodge.0xc0000005, READ of0x584424f54e00("nothing mapped there") atvictory-image-….dll+0x536df19, full backtrace inside the title image, at frame ~1,969, t+94 s — never reached the world. Death coincides with the first heavy-scene ramp: the frame meter goes 29.0 fps/12 draws → 27.1 fps/10 draws → 0.1 fps withcopies 2136.6 ms 3044.9 MB+dropped 5417 without a host pipeline→ 0.8 fps/754 draws, crash one step later. Two of the four registers at fault (rbp/r12) hold ASCII-shaped values (0x524f5459…), which reads like string data reached through a bad pointer.For the tracker: on this card, #2122 alone converts the pre-world compiler death (34 s, 881 frames) into a later title-side death (94 s, frame ~1,969) — progress on this issue, but the menu→world bar still needs the gate (or the program behind the new crash).
AI-assisted (Hermes Agent)
@zielujestem on GitHub · 2026-11-25 14:18 UTC · original
Tested #2122 (head e14ee3d) with the steps from #1783.
Windows 11 build 26320
translate --cache --pipelines --jobs 8with shaders.rpf, the exe,XboxBvhBuilder.dll and amd_fidelityfx_upscaler_xbox.dll
Result: finished with exit code 0 in one run (12.9 min in total),
no amdxc64.dll crash and no Windows crash event.
3,629 already in the library
not named, 61 compute + 40 pixel shaders do not translate,
8 shader not found, 3 blend state not named, 2 other stages,
1 refused by the host
Before (
70564ae, same steps and machine): 2 of 2 runs crashed atamdxc64.dll+0x861b9f, at about 4% of the pipelines in the first.
Not tested: the game itself with this build. No control run of
940d32fwithout the PR on this machine.@KingKaom on GitHub · 2026-11-25 15:24 UTC · original
Both PRs together, RX 9070 XT: 2 h 01 min, zero faults. Triage asked for #2122 alone; since both fixes were up, we ran the merged pair (
main940d32f+ #2122 + #1936, gate ON) as one more run — same binary profile (diag), same interactive key schedule, cold cache.0xc0000005, no device removal, no wedge: the log streamed continuously to the last line (4,886 draws and page-table copies still active when we stopped it).No new issue filed: the stall class stays here until it reproduces, per the triage note.
AI-assisted (Hermes Agent)
amdxc64.dllwhile a translated compute pipeline is created #2517@zielujestem on GitHub · 2026-11-25 20:58 UTC · original
Note from the same RX 9070 XT: after the full
--pipelinespre-build of#2122 (on top of earlier pre-builds of other builds), AMD's shared driver
cache for victory.exe (%LOCALAPPDATA%\AMD\DxcCache) had grown to ~7.8 GB
(one file 6.3 GB). From then on the title stopped ~1 s after launch
(0x80000003 at image+0x19f4f58, r11 0xc0000017), in two other builds that
had worked before, also after a reboot. Moving that program's two .parc
files aside fixed it.
@KingKaom on GitHub · 2026-11-25 23:15 UTC · original
translate --cache --pipelineson currentmain(842b0cb), RX 9070 XT (RDNA4), driver 32.0.32029.2010: clean pass, no compiler fault.--cache, so per-reason detail is in the saved log if wanted).#2122was not added on top: with the unpatched build already clean here, a +run would only re-confirm zielujestem's. One caveat on warmth: the host pipeline library was cold for these heads (only 3,632 library hits), but the DXC cache was partially warm from earlier runs — it grew 5.17 GB → 8.52 GB across the pass, so the vast majority of these pipelines really did compile.0x80000003on; a game launch right after this pass is running clean so far — I'll follow up with world-entry numbers if anything faults.AI-assisted (Hermes Agent)
@FrozenGuy7 on GitHub · 2026-11-26 00:34 UTC · original
Bisected the fix:
850b66f("Shaders: one handle per descriptor at a fixed address, and per join") ends theamdxc64.dll+0x861b9ffault on RX 9070 XT, without #2122.Host: RX 9070 XT 16 GB (RDNA4), Adrenalin 26.11.2 (32.0.32029.2010), Ryzen 7 9800X3D, 32 GB RAM, Windows 11 26300. Release builds, default settings.
Reproducer (no game run, ~1.5 s per shader): 70 compute containers that faulted the driver in game runs (collected from a fork's recorded pipelines, kept locally, not attached). Each one goes through
victory translate --pipelines --list <one container>in a process of its own, so a fault ends only that process. Counts are of the 70.940d32f286a00e(parent of850b66f)850b66f842b0cb(currentmain)The missing one on the first three rows is
39f0e9aeb156a61c. It ends without a fault and without a pipeline there, and makes one on842b0cb; it is not part of this fault.Bisect between
940d32f(faults) and842b0cb(clean): 14 builds tested. Every build from850b66fon was clean; every one before it that was tested had 55. That matches KingKaom's cleantranslate --cache --pipelineson842b0cbabove.In game,
842b0cb, cold: release build, default settings, noVICTORY_SKIP_PIPELINES. Shaders were translated ahead (translate --cache, no--pipelines), and AMD's%LOCALAPPDATA%\AMD\DxcCachewas moved aside, so the driver compiled every pipeline during play. The run went through the boot screens, the intro cutscene and into the prologue: 18 min 51 s, 1,911 host pipelines made, noamdxc64.dllfault. For comparison, on the same machine the forks without850b66ffaulted atamdxc64.dll+0x861b9fbetween 9 s and 12 min into a run.The run did end on a different fault, inside the title's own code (
0xc0000005 at victory-image-…+0x308f3b, read0xffffffffffffffff, no driver frames in the stack), with memory load at 97 %. That looks like a separate issue; I'm noting it here only so it isn't mistaken for this one.For forks that branched before this. Forks based on
ffe310eor earlier don't containc75fdbabut still fault, because their own translator changes give the driver the same pattern. In one of them, 66 of these 70 fault. A plain cherry-pick of850b66fconflicts there (lower.rs,bitcode.rs): it relies on the DXIL writer's reachability from286a00eand on the entry-block handle cache. Taking both commits is probably the minimum for a fork.What this doesn't show: whether
850b66fremoves the trigger itself or only stops these shaders from reaching it. Its description counts heap handles going from thousands to dozens per program, which fits the fault being in the compiler's handling of many repeated handles. I haven't reduced a shader to confirm that.No game data here: commit hashes, one shader hash, counts, fault addresses and error strings only.
AI-assisted: the reproducer, bisect and this text were done with Claude Code; the hardware and runs are mine.