RX 9070 XT (RDNA 4): amdxc64.dll+0x861b9f, the driver's shader compiler crashes in loading #52

Closed
opened 2026-11-26 03:31:34 +00:00 by github-bot · 3 comments
Owner

@⁠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:

VIctory: unhandled exception 0xc0000005 at amdxc64.dll+0x861b9f (read 0x8: nothing mapped there)
  #0  amdxc64.dll+0x861b9f
  ...
  #37 D3D12Core.dll+0xd896c
  #38 victory.exe+0x24305a     <- pipeline creation on a pipeline worker
🖥️ GPU AMD Radeon RX 9070 XT, driver 32.0.32029.2010
🧠 CPU / RAM Ryzen 7 9800X3D / 32 GB
🎮 Title 1.0.2.1, Series X profile
🔁 Reproduces ✅ every cold start: 3 of 3 runs, same address
🟢 RX 7900 XTX (RDNA 3) not affected, as far as this repo's numbers show

🔍 What it is

  • ❌ Not memory. The second crash happened with 11 GB of RAM and 28 GB of commit free.
  • ❌ Not one shader. Skipping the first culprit (39f0e9aeb156a61c) just moved the crash to the next one. Across the runs, 32 different pipelines crashed the compiler.
  • ✅ A known class. Upstream's old base crashes at the same address on this machine. Newer upstream fixes it in its DXIL writer (Marvisak/VIctory@286a00e, dead branches and unread size queries left out). Belobug's AMD fork names the trigger: a size query of a structured buffer from the heap (1503444).

🩹 What gets it running today

Belobug 0d2f6a6, ported in the PR linked below. When the driver's compiler crashes making a pipeline:

  1. that pipeline is logged and left out (crashed.txt beside the pipeline library, skipped on later runs);
  2. only that worker thread is parked;
  3. the game goes on.
Run Before After
Cold start to the world ❌ crash in loading, 3 of 3 ✅ reaches the world, 16 + 18 compiler crashes survived
Warm start (crashed list known) ❌ ✅ no new crash, all pipelines made
Picture — ⚠️ ~300–500 draws/frame left out: some lighting and materials look wrong

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.ps1 mode commits about 36 GB here: 1–3 fps while it pages. -Safe commits about 29 GB and runs at 18–19 fps, so the numbers in the PR are all -Safe.

**@⁠AwkGrep256** on GitHub · 2026-11-26 00:28 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/52) ## 🧨 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: ```text VIctory: unhandled exception 0xc0000005 at amdxc64.dll+0x861b9f (read 0x8: nothing mapped there) #0 amdxc64.dll+0x861b9f ... #37 D3D12Core.dll+0xd896c #38 victory.exe+0x24305a <- pipeline creation on a pipeline worker ``` | | | |---|---| | 🖥️ GPU | AMD Radeon RX 9070 XT, driver 32.0.32029.2010 | | 🧠 CPU / RAM | Ryzen 7 9800X3D / 32 GB | | 🎮 Title | 1.0.2.1, Series X profile | | 🔁 Reproduces | ✅ every cold start: 3 of 3 runs, same address | | 🟢 RX 7900 XTX (RDNA 3) | not affected, as far as this repo's numbers show | ### 🔍 What it is - ❌ **Not memory.** The second crash happened with 11 GB of RAM and 28 GB of commit free. - ❌ **Not one shader.** Skipping the first culprit (`39f0e9aeb156a61c`) just moved the crash to the next one. Across the runs, **32 different pipelines** crashed the compiler. - ✅ **A known class.** Upstream's old base crashes at the same address on this machine. Newer upstream fixes it in its DXIL writer ([Marvisak/VIctory@286a00e](https://github.com/Marvisak/VIctory/commit/286a00e), dead branches and unread size queries left out). [Belobug's AMD fork](https://github.com/Belobug/VIctory-Belobug-AMD) names the trigger: a size query of a structured buffer from the heap ([1503444](https://github.com/Belobug/VIctory-Belobug-AMD/commit/1503444)). ### 🩹 What gets it running today [Belobug 0d2f6a6](https://github.com/Belobug/VIctory-Belobug-AMD/commit/0d2f6a6), ported in the PR linked below. When the driver's compiler crashes making a pipeline: 1. that pipeline is logged and left out (`crashed.txt` beside the pipeline library, skipped on later runs); 2. only that worker thread is parked; 3. the game goes on. | Run | Before | After | |---|---|---| | Cold start to the world | ❌ crash in loading, 3 of 3 | ✅ reaches the world, 16 + 18 compiler crashes survived | | Warm start (crashed list known) | ❌ | ✅ no new crash, all pipelines made | | Picture | — | ⚠️ ~300–500 draws/frame left out: some lighting and materials look wrong | 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.ps1` mode commits about **36 GB** here: 1–3 fps while it pages. **`-Safe` commits about 29 GB and runs at 18–19 fps**, so the numbers in the PR are all `-Safe`.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:31:34 +00:00
Author
Owner

@⁠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: 286a00e alone is not enough.

Reproducer, no game run: I took the 70 compute containers that faulted amdxc64.dll+0x861b9f in my runs of this fork (from the fork's recorded pipelines; kept locally, not attached). Each one goes through victory 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.

build faults (of 70)
this fork, 0a43566, defaults 66
this fork, 0a43566, VICTORY_SHADER_OPT=59 4
upstream 286a00e 55
upstream 850b66f 0
upstream 842b0cb (main) 0

What this shows:

  • There are two triggers on this fork.
    • 66 shaders fault because of the "one instruction for one value" clean-up pass: VICTORY_SHADER_OPT=59, as 0xmp3 found on #44, makes all 66 compile.
    • The 4 that still fault with =59 are 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.
  • On upstream, the commit that ends both is 850b66f ("Shaders: one handle per descriptor at a fixed address, and per join"). I bisected 940d32f..842b0cb with the reproducer: every build with 850b66f has 0 faults, and every build without it has 55. That includes its parent, 286a00e. So 286a00e is a prerequisite (its writer reachability is what 850b66f builds on), not the fix by itself.
  • In game: upstream 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 no amdxc64 fault. Details: Marvisak/VIctory#1785 (comment-7178902388).

For this fork: a plain cherry-pick of 850b66f conflicts here (4 hunks in lower.rs, 1 in bitcode.rs). Taking 286a00e and 850b66f together, fitted to this fork's translator, looks like the real fix. I haven't tried the pair here; you hit a size_tests failure with 286a00e alone.

Two things that tripped me up, in case they help:

  • VICTORY_SKIP_PIPELINES here 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 before CreateComputePipelineState made it work.
  • The host pipeline log 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.

**@⁠FrozenGuy7** on GitHub · 2026-11-26 00:41 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/52#issuecomment-7179016475) **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: `286a00e` alone is not enough.** **Reproducer, no game run:** I took the 70 compute containers that faulted `amdxc64.dll+0x861b9f` in my runs of this fork (from the fork's recorded pipelines; kept locally, not attached). Each one goes through `victory 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. | build | faults (of 70) | | --- | ---: | | this fork, `0a43566`, defaults | 66 | | this fork, `0a43566`, `VICTORY_SHADER_OPT=59` | 4 | | upstream `286a00e` | 55 | | upstream `850b66f` | 0 | | upstream `842b0cb` (`main`) | 0 | What this shows: - **There are two triggers on this fork.** - 66 shaders fault because of the "one instruction for one value" clean-up pass: `VICTORY_SHADER_OPT=59`, as 0xmp3 found on #44, makes all 66 compile. - The 4 that still fault with `=59` are 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. - **On upstream, the commit that ends both is `850b66f`** ("Shaders: one handle per descriptor at a fixed address, and per join"). I bisected `940d32f`..`842b0cb` with the reproducer: every build with `850b66f` has 0 faults, and every build without it has 55. That includes its parent, `286a00e`. So `286a00e` is a prerequisite (its writer reachability is what `850b66f` builds on), not the fix by itself. - **In game:** upstream `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 no `amdxc64` fault. Details: Marvisak/VIctory#1785 (comment-7178902388). **For this fork:** a plain cherry-pick of `850b66f` conflicts here (4 hunks in `lower.rs`, 1 in `bitcode.rs`). Taking `286a00e` and `850b66f` together, fitted to this fork's translator, looks like the real fix. I haven't tried the pair here; you hit a `size_tests` failure with `286a00e` alone. **Two things that tripped me up, in case they help:** - `VICTORY_SKIP_PIPELINES` here 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 before `CreateComputePipelineState` made it work. - The `host pipeline` log 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.
Author
Owner

@⁠Toons29 on GitHub · 2026-11-26 02:35 UTC · original

Same crash on a plain RX 9070 (non-XT) at e2a28ec, newer than the 0a43566 reports above, in the opening cutscene on a cold first run.

Commit e2a28ec70632f5112be085abfa7d0a557b25e8d8 (main; #53 and #55 not in it)
GPU AMD Radeon RX 9070 (RDNA 4, non-XT), Adrenalin 26.11.2, driver 32.0.32029.2010
CPU / RAM Ryzen 7 7800X3D / 32 GB, Windows 11 build 26300
Build cargo +stable build --locked --profile diag -p victory --features diagnostics (Rust 1.100.0; not the pinned 1.98.1)
Run scripts\play.ps1 settings, normal mode (no -Safe), Series X profile, title 1.0.2.1, fresh cache and data folders, no warm / shaders beforehand

What happened (one run):

  • Menus, logo and videos ran at 30 fps for about 5 minutes.
  • The opening cutscene ran at 3 fps, 236-4030 draws/frame, with correct audio.
  • About 50 s into the cutscene (6:11 in total) the process crashed:
VIctory: unhandled exception 0xc0000005 at amdxc64.dll+0x861b9f (read 0x8: nothing mapped there)
  #0  amdxc64.dll+0x861b9f
  ...
  #37 D3D12Core.dll+0xd896c
  #38 victory.exe+0x4024dc
  #39 victory.exe+0x41dfb8
  • The last VIctory line before it: victory_gpu::pipeline::host: host pipeline shaders=[compute ...].
  • Private memory was 29.4 GB and Windows had about 1.3 GB left to commit at that point. Given the reports here of the same crash with plenty of memory free, memory is probably not the cause.
  • No device removal, TDR or PC reset.

Not tested: -Safe, -RayTracing, victory warm first, 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.

**@⁠Toons29** on GitHub · 2026-11-26 02:35 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/52#issuecomment-7180950308) **Same crash on a plain RX 9070 (non-XT) at `e2a28ec`, newer than the `0a43566` reports above, in the opening cutscene on a cold first run.** | | | |---|---| | Commit | `e2a28ec70632f5112be085abfa7d0a557b25e8d8` (main; #53 and #55 not in it) | | GPU | AMD Radeon RX 9070 (RDNA 4, non-XT), Adrenalin 26.11.2, driver 32.0.32029.2010 | | CPU / RAM | Ryzen 7 7800X3D / 32 GB, Windows 11 build 26300 | | Build | `cargo +stable build --locked --profile diag -p victory --features diagnostics` (Rust 1.100.0; not the pinned 1.98.1) | | Run | `scripts\play.ps1` settings, normal mode (no `-Safe`), Series X profile, title 1.0.2.1, fresh cache and data folders, no `warm` / `shaders` beforehand | What happened (one run): - Menus, logo and videos ran at 30 fps for about 5 minutes. - The opening cutscene ran at 3 fps, 236-4030 draws/frame, with correct audio. - About 50 s into the cutscene (6:11 in total) the process crashed: ```text VIctory: unhandled exception 0xc0000005 at amdxc64.dll+0x861b9f (read 0x8: nothing mapped there) #0 amdxc64.dll+0x861b9f ... #37 D3D12Core.dll+0xd896c #38 victory.exe+0x4024dc #39 victory.exe+0x41dfb8 ``` - The last VIctory line before it: `victory_gpu::pipeline::host: host pipeline shaders=[compute ...]`. - Private memory was 29.4 GB and Windows had about 1.3 GB left to commit at that point. Given the reports here of the same crash with plenty of memory free, memory is probably not the cause. - No device removal, TDR or PC reset. Not tested: `-Safe`, `-RayTracing`, `victory warm` first, 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.
github-bot 2026-11-26 07:36:21 +00:00
  • closed this issue
  • added the
    duplicate
    label
Author
Owner

@⁠avatarmanz on GitHub · 2026-11-26 07:31 UTC · original

Duplicate of #8 (the same amdxc64.dll+0x861b9f compiler crash on RDNA 4).

**@⁠avatarmanz** on GitHub · 2026-11-26 07:31 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/52#issuecomment-7185558921) Duplicate of #8 (the same amdxc64.dll+0x861b9f compiler crash on RDNA 4).
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/avatarmanz--VIctory-7900XTX#52
No description provided.