Crash in the AMD shader compiler on RX 9070 XT (RDNA 4): the game makes pipelines that warm already marked bad #60

Open
opened 2026-11-26 03:31:39 +00:00 by github-bot · 1 comment
Owner

@⁠BackseatDrivers-Unbound on GitHub · 2026-11-26 00:48 UTC · original

Summary

Commit 0a43566 does not get into the game on a Radeon RX 9070 XT. The process dies with an access violation inside the AMD driver's compiler, amdxc64.dll+0x861b9f, while pipelines are being made. victory warm finds the offending pipelines (70 of 60,680) and lists them in warm-bad.txt, but the game itself does not read that list and crashes on them again.

System

  • GPU: AMD Radeon RX 9070 XT, 16 GB, driver 32.0.32029.2010
  • OS: Windows 11 Pro
  • RAM: 32 GB
  • Build: commit 0a43566, built from source with the pinned toolchain, unmodified
  • Settings: the repository's scripts\play.ps1 with -Safe; fresh cache and data folders

What happens

Run Result
1, cold cache 1–2 fps while pipelines are made; crash after about 2 minutes: access violation at amdxc64.dll+0x861b9f
2, with VICTORY_PIPELINE_BOOK=1 Same crash after about 30 s, still in the menus
victory warm 60,680 pipelines known; 60,610 made in 764 s; 70 marked bad, each child ending with exit code 0xc0000005
3, after the warm-up Same crash after about 9 s

The same address every time.

What we think the cause is (from reading the code, not proven)

  • warm-bad.txt is read only by the warm command. The game makes its early pipelines in its own process and has nothing that keeps it from compiling a pipeline warm found to crash the driver.
  • VICTORY_SKIP_PIPELINES takes shader hashes, while warm-bad.txt holds pipeline names, so the list cannot be passed through that switch.

A different fork (Belobug's) starts on this same card and driver: it isolates pipelines that crashed and leaves known ones out. So the shaders involved are probably ones this driver's compiler cannot take, not a hardware fault.

What would help

  • The game skipping (or building out of process) every pipeline listed in warm-bad.txt.
  • Or a way to turn the names in warm-bad.txt into something VICTORY_SKIP_PIPELINES accepts.

Happy to run a test build or collect more (a dump, a log with a switch you name).

warm-bad.txt from this card (70 pipelines, each with exit code 0xc0000005)
2bd51745c70131b2425f06406cc2fc4a
154e12a0df5ff99b78055c81d8b0aa54
234037c9c5d766e4a994f6845d01037c
094eae8fb593e189cdbe3ae725283baf
0df2b9175a2dc2a9a0ef897b8ece0d76
0f21b01d82e10c5a6c72d9d7424571d7
0a0ddd20fec6b420a1e96330bcf6d22d
3ad06601b79f9ad75ca04e15ffec3cff
4958e83bcf00b5a800970471900330f0
54abc7d8d2c377af9a550203fb8e7829
5f83c482defc0ae2a61c83e4c8e11561
66accde1d70c1174469c7fb5b1f5e324
42d3eb731b052ccbdd0f1f6968b9c4ec
6773877b0fa47acbc60750b0335e694a
7dc2a872872951b2557491fbb1f5d2fb
76c135ea536f430d0c7f1b66a354cb28
85a812179d34568d21c9346619209c83
785d1c47b9aec4a007d0b783cb9ee832
957a315e4a3af502655cb9a2a69bef91
a1a17ef42ce29b64dd2a2aecfac6dfe1
b369e145c2c4ca34b5f1d44d8eae52c9
a4b13f17c1f12171982b166c2f1ad684
e5f1f5ebfd42088609aa2421237bc8ce
dc3ba56d2274df1449cc24c8a826fccb
ce5ff6b32687a93cc8661de218c74817
d8642c74dadf0f49ae6af8e0e6ac108e
eca83c5133db818db9cd444f8e99d6ab
ee4fb127736cba87679c8d2fbbc3dc4d
0268322ecc7f977ed645555820ff9c83
0629334fc89d66f8cd24f4f5d4b88871
129ff1aee9e7b6488d2a87fe8ec3fe2a
15e59d837499fbbb4ea649ef36dcaf40
18c8868cad79fe63446d8268d6d085b3
1f7cf7abc3a7910a43443dbdb39b676e
2315cd8abe5baec25abf20211e18b4c4
231692d9d3b5d3926f9147a93d7d20af
258bc42cfd9fe641d88348fe323f2b87
33c4753b5d9a41bc81d1833c43576664
32203cd6c1e5465743361f65b87ee90f
36187d6df3355bb4fea1a4437f5e069b
374523bf6877356b10a49fdd073844c0
37bf9b0f40599d120cfb1e3028812c2d
3b18edbdf0282392c2b1c2bf011ff933
56f15f58c48663fb2f4bc4f374177e52
64ef4e2733714e537e7be687737918b5
703ca7c291d59ebf4ac720e97800d62d
767de6a363410238bd7b29bc5cdee6ea
7997635010b8aad221aec5b7dfa2b105
7e547533dab531d46881a03772f72135
83c245a7a781f27e76b4510304f03d53
86f0a63d10e34c39c321a05066c22571
96c9cebf860aa4b6eae57c753e8e483b
9a7fe9e40c8de8a46c511ebe0f9740d7
a233dff8418166c0ad98b207ae32afdd
ad2d597864f7c2ac9793163939c320ae
b05c7fd0210e5e3df70d68f9d9cde74f
b2a01bc8dc2d22e06e7432ffea02e97d
c0e455b741e924369304bc75ff9f587e
c49fa0240709a053946908b3da54a389
c8f3f3256e8d25a535d72da3357a7e63
def4b5eb144cd6ba07779d7fdc30b9b6
dd01aba8927ec31adb39b92f57a2f1c0
e0a3a95b9844aaaee085aeb7a15c60c7
e55232fff55d2cfde64781ee6cf96986
e7ad6f6d1974503967d8beb18ed1cad8
e8124e99aaa712636beb55222adb4ac0
ea66594a0cc8d44290ce32f83067dfc3
f0dbfa6a787c146ddf67d48f830b0bc3
f3dfb8091fc822f385bb38ae296b217e
f1b62673c6d3f68253b8fd5ef19b0208
**@⁠BackseatDrivers-Unbound** on GitHub · 2026-11-26 00:48 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/60) ## Summary Commit 0a43566 does not get into the game on a Radeon RX 9070 XT. The process dies with an access violation inside the AMD driver's compiler, `amdxc64.dll+0x861b9f`, while pipelines are being made. `victory warm` finds the offending pipelines (70 of 60,680) and lists them in `warm-bad.txt`, but the game itself does not read that list and crashes on them again. ## System - GPU: AMD Radeon RX 9070 XT, 16 GB, driver 32.0.32029.2010 - OS: Windows 11 Pro - RAM: 32 GB - Build: commit 0a43566, built from source with the pinned toolchain, unmodified - Settings: the repository's `scripts\play.ps1` with `-Safe`; fresh cache and data folders ## What happens | Run | Result | | --- | --- | | 1, cold cache | 1–2 fps while pipelines are made; crash after about 2 minutes: access violation at `amdxc64.dll+0x861b9f` | | 2, with `VICTORY_PIPELINE_BOOK=1` | Same crash after about 30 s, still in the menus | | `victory warm` | 60,680 pipelines known; 60,610 made in 764 s; 70 marked bad, each child ending with exit code 0xc0000005 | | 3, after the warm-up | Same crash after about 9 s | The same address every time. ## What we think the cause is (from reading the code, not proven) - `warm-bad.txt` is read only by the `warm` command. The game makes its early pipelines in its own process and has nothing that keeps it from compiling a pipeline `warm` found to crash the driver. - `VICTORY_SKIP_PIPELINES` takes shader hashes, while `warm-bad.txt` holds pipeline names, so the list cannot be passed through that switch. A different fork (Belobug's) starts on this same card and driver: it isolates pipelines that crashed and leaves known ones out. So the shaders involved are probably ones this driver's compiler cannot take, not a hardware fault. ## What would help - The game skipping (or building out of process) every pipeline listed in `warm-bad.txt`. - Or a way to turn the names in `warm-bad.txt` into something `VICTORY_SKIP_PIPELINES` accepts. Happy to run a test build or collect more (a dump, a log with a switch you name). <details> <summary>warm-bad.txt from this card (70 pipelines, each with exit code 0xc0000005)</summary> ``` 2bd51745c70131b2425f06406cc2fc4a 154e12a0df5ff99b78055c81d8b0aa54 234037c9c5d766e4a994f6845d01037c 094eae8fb593e189cdbe3ae725283baf 0df2b9175a2dc2a9a0ef897b8ece0d76 0f21b01d82e10c5a6c72d9d7424571d7 0a0ddd20fec6b420a1e96330bcf6d22d 3ad06601b79f9ad75ca04e15ffec3cff 4958e83bcf00b5a800970471900330f0 54abc7d8d2c377af9a550203fb8e7829 5f83c482defc0ae2a61c83e4c8e11561 66accde1d70c1174469c7fb5b1f5e324 42d3eb731b052ccbdd0f1f6968b9c4ec 6773877b0fa47acbc60750b0335e694a 7dc2a872872951b2557491fbb1f5d2fb 76c135ea536f430d0c7f1b66a354cb28 85a812179d34568d21c9346619209c83 785d1c47b9aec4a007d0b783cb9ee832 957a315e4a3af502655cb9a2a69bef91 a1a17ef42ce29b64dd2a2aecfac6dfe1 b369e145c2c4ca34b5f1d44d8eae52c9 a4b13f17c1f12171982b166c2f1ad684 e5f1f5ebfd42088609aa2421237bc8ce dc3ba56d2274df1449cc24c8a826fccb ce5ff6b32687a93cc8661de218c74817 d8642c74dadf0f49ae6af8e0e6ac108e eca83c5133db818db9cd444f8e99d6ab ee4fb127736cba87679c8d2fbbc3dc4d 0268322ecc7f977ed645555820ff9c83 0629334fc89d66f8cd24f4f5d4b88871 129ff1aee9e7b6488d2a87fe8ec3fe2a 15e59d837499fbbb4ea649ef36dcaf40 18c8868cad79fe63446d8268d6d085b3 1f7cf7abc3a7910a43443dbdb39b676e 2315cd8abe5baec25abf20211e18b4c4 231692d9d3b5d3926f9147a93d7d20af 258bc42cfd9fe641d88348fe323f2b87 33c4753b5d9a41bc81d1833c43576664 32203cd6c1e5465743361f65b87ee90f 36187d6df3355bb4fea1a4437f5e069b 374523bf6877356b10a49fdd073844c0 37bf9b0f40599d120cfb1e3028812c2d 3b18edbdf0282392c2b1c2bf011ff933 56f15f58c48663fb2f4bc4f374177e52 64ef4e2733714e537e7be687737918b5 703ca7c291d59ebf4ac720e97800d62d 767de6a363410238bd7b29bc5cdee6ea 7997635010b8aad221aec5b7dfa2b105 7e547533dab531d46881a03772f72135 83c245a7a781f27e76b4510304f03d53 86f0a63d10e34c39c321a05066c22571 96c9cebf860aa4b6eae57c753e8e483b 9a7fe9e40c8de8a46c511ebe0f9740d7 a233dff8418166c0ad98b207ae32afdd ad2d597864f7c2ac9793163939c320ae b05c7fd0210e5e3df70d68f9d9cde74f b2a01bc8dc2d22e06e7432ffea02e97d c0e455b741e924369304bc75ff9f587e c49fa0240709a053946908b3da54a389 c8f3f3256e8d25a535d72da3357a7e63 def4b5eb144cd6ba07779d7fdc30b9b6 dd01aba8927ec31adb39b92f57a2f1c0 e0a3a95b9844aaaee085aeb7a15c60c7 e55232fff55d2cfde64781ee6cf96986 e7ad6f6d1974503967d8beb18ed1cad8 e8124e99aaa712636beb55222adb4ac0 ea66594a0cc8d44290ce32f83067dfc3 f0dbfa6a787c146ddf67d48f830b0bc3 f3dfb8091fc822f385bb38ae296b217e f1b62673c6d3f68253b8fd5ef19b0208 ``` </details>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:31:39 +00:00
Author
Owner

@⁠BackseatDrivers-Unbound on GitHub · 2026-11-26 15:35 UTC · original

Follow-up with what we found since, in case it helps. Everything below was measured on an RX 9070 XT (driver 32.0.32029.2010), Ryzen 7 5800X3D, 32 GB. We are not continuing on this fork, so no PR from us; take whatever is useful.

1. The amdxc64.dll+0x861b9f crash: a translator pattern triggers it (proven by test on a snapshot of this fork)

The crashing pipelines (28 CS_RaytracingResolve_{b1139868,ae7b7f3c,f21e9178} of ped_standard_{muv*,head,skin,lod_*}, plus bvh_skinning:CSComputeSkinningTreeAnimVelocity_d2f99501) all contain this construct in one basic block:

createHandleFromHeap → annotateHandle (ByteAddressBuffer) → getDimensions(handle, undef) as the handle's first use → rawBufferLoad through the same handle.

  • Present in 28 of 28 crashing resolve shaders, in 0 of 296 resolve shaders that compile fine, and in 0 of the Belobug lineage's output for the same 28 shaders (that lineage runs them without crashing).
  • Where it comes from (in the cool_fox snapshot we tested): descriptor_data in emit/lower.rs emits a size query at every descriptor load; DEAD later removes unread ones, but REUSE in emit/bitcode/opt.rs first replaces the live, late query with the identical earliest one, right next to the handle's creation.
  • Test: victory translate <dir> --pipelines --list --jobs 1 (child process, guard off) on ped_standard_muv_secmoCS_RaytracingResolve_b1139868 (container hash d2c52fcd936985b4): crashes 2 of 2 at amdxc64.dll+0x861b9f. Same shader with VICTORY_SHADER_OPT=59 (REUSE off): pipeline made. Healthy control 7364921ed673344b: pipeline made.
  • Fix direction: emit the size query only where a size dword is actually read as data (the Belobug lineage guards this in lower.rs), so REUSE has nothing to hoist. The tree-skinning shader has the construct for a different reason (the title itself reads the size at the first load), so it needs a different emission order.
  • Not verified on your current main: its lower.rs differs from the snapshot we tested. The original 0a43566 crashed at the same address, so it is likely still there.
  • A safety net that worked for us meanwhile: a first-chance handler that recognises a fault inside the driver's module while a worker thread is inside pipeline creation, parks that worker, starts a replacement, and records the pipeline so later runs skip it (one 65-minute session survived 29 such crashes).

2. Placed views: the shape table fills up and memory then grows without bound

shape_of in descriptor.rs keys on the raw words, but the title leaves stack contents in some of them (resource words 1 and 13, view words 3 and 9; your own comment in resource::texture_at mentions words 1 and 13). Measured in a 26-minute run with an audit counting both ways: 133 M placed views, 1,676,979 shapes raw vs 85,661 with those words cleared. With raw words the table reaches its cap (2^22) after about 30 minutes of play; after that every placed view becomes a kept table entry: 16.65 M entries / about 6.6 GB at 67 minutes, the frame time roughly doubles and a 32 GB PC starts paging. Clearing those words before shaping cost nothing measurable in an on/off A/B (same draws, same pictures).

3. Smaller things

  • scripts/play.ps1 sets VICTORY_TITLE_PRIORITIES=0, which leaves the title's idle-priority streaming threads at idle; the comment in kernel.rs records loads 1.1-4.8 s late in that state. Likely related to late faces/props after scene changes.
  • The E_NOTIMPL warning for pipeline creation methods (device slots 0x1c8 and 0x218) is logged only for calls 1-4 and powers of two, so 29 log lines stood for at least 18,432 refused creations in one session.
  • Periodic statistics lines cost frame time: in our runs every frame that overlapped the 5-second statistics tick was about 30 ms longer, and every 15 s one frame was about 210 ms, so 1 % lows measured with them on look worse than they are.
**@⁠BackseatDrivers-Unbound** on GitHub · 2026-11-26 15:35 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/issues/60#issuecomment-7196488379) Follow-up with what we found since, in case it helps. Everything below was measured on an RX 9070 XT (driver 32.0.32029.2010), Ryzen 7 5800X3D, 32 GB. We are not continuing on this fork, so no PR from us; take whatever is useful. **1. The `amdxc64.dll+0x861b9f` crash: a translator pattern triggers it (proven by test on a snapshot of this fork)** The crashing pipelines (28 `CS_RaytracingResolve_{b1139868,ae7b7f3c,f21e9178}` of `ped_standard_{muv*,head,skin,lod_*}`, plus `bvh_skinning:CSComputeSkinningTreeAnimVelocity_d2f99501`) all contain this construct in one basic block: `createHandleFromHeap` → `annotateHandle` (ByteAddressBuffer) → `getDimensions(handle, undef)` as the handle's **first** use → `rawBufferLoad` through the same handle. - Present in 28 of 28 crashing resolve shaders, in 0 of 296 resolve shaders that compile fine, and in 0 of the Belobug lineage's output for the same 28 shaders (that lineage runs them without crashing). - Where it comes from (in the cool_fox snapshot we tested): `descriptor_data` in `emit/lower.rs` emits a size query at every descriptor load; DEAD later removes unread ones, but REUSE in `emit/bitcode/opt.rs` first replaces the live, late query with the identical earliest one, right next to the handle's creation. - Test: `victory translate <dir> --pipelines --list --jobs 1` (child process, guard off) on `ped_standard_muv_secmoCS_RaytracingResolve_b1139868` (container hash `d2c52fcd936985b4`): crashes 2 of 2 at `amdxc64.dll+0x861b9f`. Same shader with `VICTORY_SHADER_OPT=59` (REUSE off): pipeline made. Healthy control `7364921ed673344b`: pipeline made. - Fix direction: emit the size query only where a size dword is actually read as data (the Belobug lineage guards this in `lower.rs`), so REUSE has nothing to hoist. The tree-skinning shader has the construct for a different reason (the title itself reads the size at the first load), so it needs a different emission order. - Not verified on your current main: its `lower.rs` differs from the snapshot we tested. The original 0a43566 crashed at the same address, so it is likely still there. - A safety net that worked for us meanwhile: a first-chance handler that recognises a fault inside the driver's module while a worker thread is inside pipeline creation, parks that worker, starts a replacement, and records the pipeline so later runs skip it (one 65-minute session survived 29 such crashes). **2. Placed views: the shape table fills up and memory then grows without bound** `shape_of` in `descriptor.rs` keys on the raw words, but the title leaves stack contents in some of them (resource words 1 and 13, view words 3 and 9; your own comment in `resource::texture_at` mentions words 1 and 13). Measured in a 26-minute run with an audit counting both ways: 133 M placed views, **1,676,979 shapes raw vs 85,661 with those words cleared**. With raw words the table reaches its cap (2^22) after about 30 minutes of play; after that every placed view becomes a kept table entry: 16.65 M entries / about 6.6 GB at 67 minutes, the frame time roughly doubles and a 32 GB PC starts paging. Clearing those words before shaping cost nothing measurable in an on/off A/B (same draws, same pictures). **3. Smaller things** - `scripts/play.ps1` sets `VICTORY_TITLE_PRIORITIES=0`, which leaves the title's idle-priority streaming threads at idle; the comment in `kernel.rs` records loads 1.1-4.8 s late in that state. Likely related to late faces/props after scene changes. - The `E_NOTIMPL` warning for pipeline creation methods (device slots 0x1c8 and 0x218) is logged only for calls 1-4 and powers of two, so 29 log lines stood for at least 18,432 refused creations in one session. - Periodic statistics lines cost frame time: in our runs every frame that overlapped the 5-second statistics tick was about 30 ms longer, and every 15 s one frame was about 210 ms, so 1 % lows measured with them on look worse than they are.
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#60
No description provided.