RDNA 4 AMD shader compiler crash #8
Labels
No labels
accessibility
already-solved
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
merged
needs-decision
needs-game-run
needs-rebase
not-merged
nvidia
obsolete
question
security
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/avatarmanz--VIctory-7900XTX#8
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?
@62koen on GitHub · 2026-11-25 23:11 UTC · original
First time it lasted a minute or two and now it's crashing instantly.
It's an issue on other VIctory forks too.
run-1795648103686-7640.log
@Sandro12366 on GitHub · 2026-11-25 23:15 UTC · original
Same crash here on another RDNA 4 card. Here is what we found; I think the root cause is the AMD shader compiler, not backtrace.io.
System: Radeon RX 9070 XT (RDNA 4), AMD driver 32.0.32029.2010, Ryzen 7 7800X3D, 32 GB RAM plus a 64 GB page file, Windows 11 (10.0.26300). Build: this fork at
0a43566,--profile diag --features diagnostics, started withscripts\play.ps1 -Safe. Shaders were pre-built withvictory shaders(25,782 in the cache).What happens: boot, intro video, loading screen, first cutscene caption, then a black screen with the cutscene's audio playing. About 2 minutes after start:
The
HTTP connection blocked submit.backtrace.io:443line comes afterwards: it is the title's own crash reporter trying to upload a minidump, which is correctly blocked. It is a symptom, not the cause.It reproduces identically (same offset
amdxc64.dll+0x861b9f, the same read of0x8, always inside a host compute pipeline creation) in:-Safe;victory translate <game> --validate --pipelines --jobs 8without running the title (segfault after ~3 min). So it is reachable offline.Not tied to one shader. I added a local log line before every host pipeline build, plus an opt-in
VICTORY_NO_BUILD=<hashes>that never passes the listed shaders to the driver:VICTORY_PIPELINE_WORKERS=1, exactly one compute pipeline was unfinished.So the AMD compiler seems to crash on whatever compute pipeline it compiles at roughly that point in the game, independent of the shader and of concurrency. That suggests driver state corrupted earlier, or a DXIL construct common to many of these compute shaders. The
VICTORY_SKIP_PIPELINESswitch does not help, because it only drops draws and dispatches; the pipeline is still created.Suggestions:
victory translate --validate --pipelines --jobs 1on an RDNA 4 machine should give a deterministic first failing pipeline without the title, which would make a clean report to AMD possible.__tryaroundCreateComputePipelineState(with SEH) would let the run continue with that pipeline missing instead of ending the process, at least for diagnosis.Happy to run further diagnostics on the 9070 XT if useful.
@DevingClaudio on GitHub · 2026-11-25 23:28 UTC · original
Title: Crash in amdxc64.dll (null deref, read 0x8) on RX 9070 XT (RDNA 4), reproduces 5/5 runs
Summary
On an RX 9070 XT the process dies with an access violation inside AMD's shader compiler (
amdxc64.dll+0x861b9f, read of0x8,rcx = 0). The game-side frames are identical every time. This looks like the same crash as [link to the existing RDNA 4 issue]. I'm on the same driver build as that report (32.0.32029.2010) and get the identical fault offset, so this is a second independent confirmation on the sameamdxc64.dll.System
cargo build --locked --profile diag -p victory --features diagnostics(builds cleanly, 6 warnings, no errors)What happens
fbk_stry000_FBK_STRY000_INTROwas inPrestream, with 109 streaming requestspending.
Game Init, frame 0, 0s runtime. The timing varies, but the fault does not.Crash details
5 crashes across 5 processes (18740, 21384, 7012, 3080, 6724). All have:
unhandled exception 0xc0000005 at amdxc64.dll+0x861b9f (read 0x8: nothing mapped there)rcx 0x0(null base pointer, field at +8)amdxc64.dll, #29-#37 inD3D12Core.dll/d3d12.dll, thenvictory.exe+0x3bbecaandvictory.exe+0x43b07aOnly register values and PIDs differ between runs. The identical offsets mean the same
amdxc64.dllbuild each time.Full
crashes.logand one*.crash.logattached.Notes
victory.exe+0x3bbecaagainst the PDB to confirm the exact call.crashes.log
victory-20261126-000546-7012.crash.log
victory-20261126-000925-3080.crash.log
victory-20261126-001128-6724.crash.log
@QuelDude on GitHub · 2026-11-25 23:32 UTC · original
0098c090-9c58-4ba8-b567-a2cf8bb6ffbd.dmp
victory-20261125-182633-14880.crash.log
Same error on 9060xt 16 gig
amdxc64.dll+0x861b9f
@itsonewi on GitHub · 2026-11-25 23:38 UTC · original
One correction to the experiments above, because both conclusions drawn from
VICTORY_SKIP_PIPELINESare guaranteed by how the switch is implemented.It cannot stop a pipeline from being made. The hash list is read in
crates/victory-gpu/src/pipeline.rs:475-505and consulted fromis_skipped()where draws and dispatches are issued — i.e. after the pipeline exists. The documented wording agrees (docs/README-fxceless.md:323: "omit draws and dispatches ... whose pipeline contains a listed hash"). So "with that one shader blocked, the crash came again with other compute pipelines mid-build" and "the crash just moves to another pipeline" do not distinguish a shader-specific fault from a state/shared-construct fault: the blocked hash was still compiled, just not dispatched afterwards.A well-formed hash that matches nothing is silent.
parse_skip_hasheswarns only for hashes that are not 16 hex digits; whether a listed hash ever matched a pipeline is never printed. Before relying on it, check the drops summary or theDROPPED skipped shader <hash>lines.What would actually isolate this, and what already exists in the tree: the process has a first-chance VEH (
crates/victory-gpu/src/watch.rs,on_write) that rewritesRipfor faults raised inside our own copies (safecopy::failing_exit). The same shape can mark a pipeline-creation thread as "inside the driver call", catch0xc0000005, and continue with that one pipeline missing instead of ending the process — the pipeline then reports as missing and its draws are dropped, exactly like a refused pipeline today. That turns a 5/5 process death into a run that keeps going and names every hash the driver crashed on, which is the clean list AMD would want.Two smaller things in the reports above that may be worth one run each:
translate --pipelinesoffline, it should reproduce with the iGPU disabled, which would settle whether adapter enumeration matters.0x80070057root-signature refusals in #12 are a separate, already-filed issue here.AI use
AI-assisted reply (source reading). No build, no hardware run, no game files.
@Sandro12366 on GitHub · 2026-11-25 23:39 UTC · original
my igpu is disabled
@whiteblackonezero on GitHub · 2026-11-25 23:40 UTC · original
Same crash on an RX 9070 XT (RDNA 4).
0a43566, diag build-Safe: reaches the intro cutscene (black screen, audio), crash at frame ~2096first-chance exception 0xc0000005 at amdxc64.dll+0x861b9f (read 0x8), identical 40-frame stack (#28 amdxc64.dll+0x2660d7...#38 victory.exe+0x3bbeca)dropped ~2230/frame without a host pipeline: being made, ~0.9 fps)iGPU disabled.
@Caat0rce on GitHub · 2026-11-25 23:27 UTC · original · edited 2026-11-25 23:42 UTC
Same crash here on RDNA 4.
GPU: Radeon RX 9060 XT
Driver: 32.0.32029.2010 (Adrenalin 26.11.2)
OS: Windows 11, 32 GB RAM + large page file
Build: this fork, diag profile, scripts\play.ps1 -Safe
The title boots and renders ~60-70 frames, then ~2 seconds later it dies with:
first-chance exception 0xc0000005 at amdxc64.dll+0x861b9f (read 0x8: nothing mapped there)
stack: amdxc64.dll -> D3D12Core.dll -> d3d12.dll -> victory.exe, on a victory-pipelines worker thread
Same offset and same read of 0x8 as reported above. It reproduces on every run (5+ runs, identical stack).
I haven't been able to isolate a single shader (I only tried VICTORY_SKIP_PIPELINES, which I now understand
only drops draws/dispatches after the pipeline is created, so it doesn't tell us anything).
Happy to test a build that catches the exception around pipeline creation and logs the failing hashes,
or any other diagnostic.
@schmiticle on GitHub · 2026-11-26 00:43 UTC · original
RX 9070 XT:
0a43566runs the world at about 21 fps; the compiler crash still ends sessions, and one of the fork's own tests reproduces it in secondsMachine: RX 9070 XT 16 GB, Adrenalin 26.11.2 (32.0.32029.2010), Ryzen 7 7800X3D, 32 GB DDR5-6000 + 32 GB page file, Windows 11 26300.
0a43566, diag build, Series X,scripts\play.ps1settings (not-Safe) plusVICTORY_SKIP_PIPELINES=42683eebec081520(that program page-faulted this card on other trees). Shaders translated ahead withvictory shaders.With Marvisak/VIctory #317 added (
annotateHandleasEffect::Lanesinbitcode/opt.rs), the first-room crash within a minute that others report here went away:39f0e9aeb156a61calone about 90 s, all 10 workers at full CPU), then the worldamdxc64.dll+0x861b9f(read 0x8)For comparison on this machine: victory-amd
f25e735about 195 ms a frame, DexNom2e01ab4about 241 ms.What did not stop the crash:
handleswith a second cache around thehandle()call indescriptor_data; this tree has noentry_handles):victory translate <game> --pipelinesstill dies after 59 s, and Windows' error log namesamdxc64.dlloffset0x861b9f. I may have ported it incompletely, since upstream's version sits on 850b66f's handle caches.A reproducer without the title:
emit::size_tests::the_record_count_of_a_structured_buffer_read_by_indexkills the test process on this card (STATUS_ACCESS_VIOLATION) with and without the #2122 port. The other 277 tests ofvictory-shader --libpass:It runs on hardware and WARP, so on an RDNA 4 card it is a seconds-long check for any fix of this crash.
Happy to test a branch or a patch.
AI-assisted (Claude Code): measured on this machine with my own copy of the game. Names, hashes and counts only; no screenshots or game data.
@schmiticle on GitHub · 2026-11-26 01:23 UTC · original
A workaround that works on the RX 9070 XT: take the compiler's fault on the pipeline worker, leave that pipeline out, and carry on
Follow-up to my comment above. Neither #317 nor my port of upstream #2122 stopped
amdxc64.dll+0x861b9f; after a translator change (so about 1,700 pipelines to make again) the title died within 2-40 s of starting, three launches running, also withVICTORY_PIPELINE_WORKERS=2.So I added the recovery policy Belobug's fork uses (
crates/victory-gpu/src/pipeline/library.rsat 71652a2; rpmaster2 describes it in Marvisak/VIctory #2124), written anew for this tree inpipeline/make.rs, about 150 lines:Pending::makerunsHostPipeline::newwith the pipeline's key in a thread-local, onvictory-pipelines-*threads only.amdxc64.dll(its range learnt outside the handler) and the thread is making a pipeline. Anything else goes on to the write guards and the crash reporter as before.crashed-pipelines.txtbeside the library, takes the pipeline offWAITING, and parks the thread for good (it never returns into the compiler).makereturnsNoneat once for any key in the file (logged), so draws that need it are dropped like a refused pipeline's.VICTORY_COMPILER_GUARD=0turns it off.Result, same machine and build: the next launch hit the fault at startup on pipeline
0629334fc89d66f8cd24f4f5d4b88871(amdxc64.dll+0x861b9f). The handler took it, a replacement worker started, and the title ran 13 more minutes until I closed it, with the pipeline library saved. The launch after that skipped it at startup (left out: the driver's compiler crashed making it in an earlier run key=0629334f… shaders=f16876929fa64f9f) and has run since. That compute program is also the last one translated before the in-game crash in my comment above, so on this card at least one fault is tied to one program, not to chance. One pipeline left out, nothing visibly missing.The usual caveat applies: a thread abandoned inside the driver's compiler may hold a lock of the driver's. I have not seen a hang from it in two sessions, but it is a workaround for the driver's bug, not a fix. Happy to share the patch if it is useful.
AI-assisted (Claude Code): measured on this machine with my own copy of the game. Names, hashes and counts only; no screenshots or game data.
@KingKaom on GitHub · 2026-11-26 08:32 UTC · original
VICTORY_SHADER_OPT=59carries a live run past this wall on0ce46d5(RX 9070 XT, measured) — tested on RX 9070 XT (RDNA4), driver 32.0.32029.2010.0ce46d5, defaults: first frame at t+1.7 s, thenfirst-chance exception 0xc0000005 at amdxc64.dll+0x861b9f (read 0x8: nothing mapped there)at t+6.7 s (identical signature to the reports above, same fault offset), after 862 shaders translated, during the next shader batch after the 4K backbuffers.VICTORY_SHADER_OPT=59: zero first-chance exceptions in 9.4 min — 4,410 shaders translated, 6,335 frames presented, host stats steady at 30.0 fps. We ended the run at the first-time account picker, which did not react to any keyboard input on our host; the four containers that still fault under=59in the #52 table are presumably waiting at world load.So #52's offline table reproduces in-game on a fresh head for us: defaults die at the compiler,
=59compiles its way to the sign-in gate.AI-assisted (Hermes Agent)
@0xmp3 on GitHub · 2026-11-26 08:50 UTC · original
0ce46d5no longer boots on RX 9070 XT at all — same fault as #52/#145, and no switch gets past it (it did at0a43566)Pulled main today after 137 commits and it dies in AMD's compiler before the first frame, whatever the shader switches.
The build 137 commits earlier runs the game here, so this looks like a regression in the window, not a missing workaround.
Machine: RX 9070 XT 16 GB (gfx1201), driver 32.0.32015.7029, Ryzen 5 5600, 64 GB, Windows 11 26300, Series X.
Build:
0ce46d5,cargo build --locked --profile diag -p victory --features diagnostics,scripts\play.ps1 -Safe, freshcrashed.txt(emptied first, so nothing was skipped by an earlier run's record).Every configuration dies the same way,
0xc0000005 at amdxc64.dll+0x85fd0f (read 0x8), always while making acompute pipeline, and each time on a different program:
9209777e8face9ddVICTORY_SHADER_OPT=5905e074ad67e0d6d6VICTORY_SHADER_OPT=59+ 4 skippedd2f4f8e0e2610d8cVICTORY_SHADER_OPT=0(no clean-up at all)726205f726e842e7VICTORY_SHADER_OPT=59+VICTORY_RDNA_FLOAT=0+ 5 skippedTwo things that follow:
SHADER_OPT=0emits the module exactly as the lowering made it, and thatstill kills the compiler — so whatever RDNA 4's compiler objects to is in the emitted code as such, not in the
optimiser's output. (
SHADER_OPT=59was the fix for the older0x85fd0ffault, which is why it was the first thing I tried.)0a43566, wherea fixed pair of programs crashed and skipping them was enough.
The comparison build:
0a43566(137 commits back),-Safe+VICTORY_SHADER_OPT=59+VICTORY_SKIP_PIPELINES=39f0e9aeb156a61c,f16876929fa64f9fplays: the prologue, the whole first mission (boat missionincluded, hull correct), police chases, a cop shootout, death and respawn, saves written and loaded across a restart —
573 world frames at 129.6 ms / 7.7 fps median, peak 15,288 draws, zero faults in 59 minutes.
So between
0a43566and0ce46d5something changed that makes RDNA 4's compiler reject the emitted compute programsbroadly. I can bisect that window (137 commits, roughly seven build-and-boot steps) and report the commit — say the word
and I will. If you already suspect which merge it is (the pipeline/shader ones from the 33-PR triage are candidates),
the confirmation is cheap from my side either way.
@0xmp3 on GitHub · 2026-11-26 08:51 UTC · original
Correction: this is the driver, not a regression in
0ce46d5— and my skip-list claim was wrong@KingKaom's run above is the control I was missing: same card,
0ce46d5,VICTORY_SHADER_OPT=59, zero first-chanceexceptions over 9.4 minutes and 4,410 shaders translated. Mine crashes with that switch, without it, and with no
clean-up passes at all.
What differs is the driver. Mine is 32.0.32015.7029 (2026-10-18); theirs is 32.0.32029.2010 (Adrenalin 26.11.2). The
fault offset moves with it, which is the tell: I get
amdxc64.dll+0x85fd0f, they get+0x861b9f, and #52's table andthe earlier reports in this thread use yet another. A fault offset belongs to one driver build, and I compared mine
against theirs as if the offset were a property of the code.
Second correction, also mine. I wrote that our skip list was "carrying" our runs. It cannot:
is_skipped()isconsulted where draws and dispatches are issued, from a pipeline that already exists (
pipeline.rs:508, and@itsonewi's note above says the same thing).
VICTORY_SKIP_PIPELINESnever prevents a pipeline from being made, so itcould not have been shielding us from a compiler crash. Our working configuration at
0a43566was most likelySHADER_OPT=59on its own — we never ran that combination in isolation, and I should have before writing any of this up.What I am doing about it: updating to 26.11.2 and re-running
0ce46d5with=59and no skip list, thenreporting the result here either way. Withdrawing the "regression" reading until that comes back — on the current
evidence it looks like
0ce46d5is fine and my driver is stale, which is a much less interesting finding but thecorrect one.
@mintymerry7-create on GitHub · 2026-11-26 20:10 UTC · original
For the
+0x861b9fvariant (Adrenalin 26.11.2, 32.0.32029.2010): on our RDNA4 card (RX 9060 XT) it was always compute shaderf16876929fa64f9f, right after its translation. Leaving that one pipeline out (VICTORY_LEAVE_OUT, its default in https://github.com/mintymerry7-create/VIctory-7900XTX/tree/rdna4-perf) stopped the crashes. A crash book there also remembers whichever pipeline was compiling when the process died and skips it if it crashes again. Details and a full RDNA4 config: #345.(AI-assisted)
@KingKaom on GitHub · 2026-11-26 20:40 UTC · original
RX 9070 XT input on the leave-out: our tip runs (
cd8dfc0-era lineage, clean boots 4/4 today) never hit0x861b9fat translate, soVICTORY_LEAVE_OUThas not been needed here — good insurance idea regardless, and the crash-book auto-skip is the right shape. We'll test therdna4-perfbranch when it rebases onto a tip we can reach free roam on.— AI-assisted (Hermes Agent)