RX 9070 XT (RDNA 4): amdxc64.dll+0x861b9f, the driver's shader compiler crashes in loading #52
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#52
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?
@AwkGrep256 on GitHub · 2026-11-26 00:28 UTC · original
🧨 RX 9070 XT (RDNA 4): the driver's shader compiler crashes in loading
On an RX 9070 XT, this fork crashes while it loads the world. The crash is inside AMD's DX12 shader compiler, not in VIctory or the title:
🔍 What it is
39f0e9aeb156a61c) just moved the crash to the next one. Across the runs, 32 different pipelines crashed the compiler.🩹 What gets it running today
Belobug 0d2f6a6, ported in the PR linked below. When the driver's compiler crashes making a pipeline:
crashed.txtbeside the pipeline library, skipped on later runs);The workaround leaves those passes out. The real fix is translating them so the compiler copes: porting upstream 286a00e or Belobug 1503444 to this fork's translator. I tried 286a00e directly. With this fork's own translator changes, it crashes one of the fork's GPU tests (
emit::size_tests::the_record_count_of_a_structured_buffer_read_by_index), so it needs someone who knows those changes.💾 Also on 32 GB
The full
play.ps1mode commits about 36 GB here: 1–3 fps while it pages.-Safecommits about 29 GB and runs at 18–19 fps, so the numbers in the PR are all-Safe.@FrozenGuy7 on GitHub · 2026-11-26 00:41 UTC · original
Same crash here (RX 9070 XT, 32.0.32029.2010, Ryzen 7 9800X3D, 32 GB). A one-shader reproducer, the upstream commit that fixes it, and a correction:
286a00ealone is not enough.Reproducer, no game run: I took the 70 compute containers that faulted
amdxc64.dll+0x861b9fin my runs of this fork (from the fork's recorded pipelines; kept locally, not attached). Each one goes throughvictory translate --pipelines --list <one container>in a process of its own, about 1.5 s each. A fault ends only that process, so every shader gets its own verdict.0a43566, defaults0a43566,VICTORY_SHADER_OPT=59286a00e850b66f842b0cb(main)What this shows:
VICTORY_SHADER_OPT=59, as 0xmp3 found on #44, makes all 66 compile.=59are exactly the four BrokeAsh lists in PastiiJay/klbf-lab#2:878933b499cfa14d,a567b9ef845fb680,f16876929fa64f9f,c1eee35dbc50a9ef. That's the load at an offset computed from the same buffer's record count. It's also what Marvisak/VIctory#2122 works around.850b66f("Shaders: one handle per descriptor at a fixed address, and per join"). I bisected940d32f..842b0cbwith the reproducer: every build with850b66fhas 0 faults, and every build without it has 55. That includes its parent,286a00e. So286a00eis a prerequisite (its writer reachability is what850b66fbuilds on), not the fix by itself.main, cold driver cache, no skip list, played 18 min 51 s into the prologue. 1,911 pipelines were compiled during play and there was noamdxc64fault. Details: Marvisak/VIctory#1785 (comment-7178902388).For this fork: a plain cherry-pick of
850b66fconflicts here (4 hunks inlower.rs, 1 inbitcode.rs). Taking286a00eand850b66ftogether, fitted to this fork's translator, looks like the real fix. I haven't tried the pair here; you hit asize_testsfailure with286a00ealone.Two things that tripped me up, in case they help:
VICTORY_SKIP_PIPELINEShere only drops the draws and dispatches. The pipeline is still created, and creation is where the driver faults, so skipping can't avoid this crash. A small local change that checks the list beforeCreateComputePipelineStatemade it work.host pipelinelog line is written after a pipeline is made, so the last pipeline named before a fault is usually not the culprit. Logging just before creation names it.No game data here: hashes, counts and fault addresses only.
AI-assisted: the reproducer, the bisect and this text were done with Claude Code; the hardware and runs are mine.
@Toons29 on GitHub · 2026-11-26 02:35 UTC · original
Same crash on a plain RX 9070 (non-XT) at
e2a28ec, newer than the0a43566reports above, in the opening cutscene on a cold first run.e2a28ec70632f5112be085abfa7d0a557b25e8d8(main; #53 and #55 not in it)cargo +stable build --locked --profile diag -p victory --features diagnostics(Rust 1.100.0; not the pinned 1.98.1)scripts\play.ps1settings, normal mode (no-Safe), Series X profile, title 1.0.2.1, fresh cache and data folders, nowarm/shadersbeforehandWhat happened (one run):
victory_gpu::pipeline::host: host pipeline shaders=[compute ...].Not tested:
-Safe,-RayTracing,victory warmfirst, a second (warm) run, #53 or #55.AI use: Claude Code (Claude Opus 5.5) built the project, wrote the launch script, read the logs and drafted this comment. I started and played the game myself and checked the comment before posting.
@avatarmanz on GitHub · 2026-11-26 07:31 UTC · original
Duplicate of #8 (the same amdxc64.dll+0x861b9f compiler crash on RDNA 4).