RDNA4: the AMD shader compiler crashes (amdxc64+0x861b9f) when pipelines compile on several threads; one thread avoids it #2122

Open
opened 2026-11-25 05:35:18 +00:00 by rpmaster2 · 7 comments
rpmaster2 commented 2026-11-25 05:35:18 +00:00 (Migrated from github.com)
Contributor

Imported from Marvisak/VIctory. Originally posted by rpmaster2 on 2026-11-25T05:35:18Z.


The AMD shader compiler crashes while several pipelines compile at once, and compiling them on one thread avoids it.

Host: RX 9070 XT 16 GB (RDNA4), Adrenalin 26.11.2 (32.0.32029.2010), Windows 11 26300, Ryzen 5 5600, 32 GB, pagefile 32/48 GB on F:. Diag build, VICTORY_D3D12_DRED=1, --console series-x unless noted, 42 Enter presses over 1.83-7.31 s.

What happens: the title dies with an access violation inside the driver, not in our code:

VIctory: first-chance exception 0xc0000005 at amdxc64.dll+0x861b9f (read 0x8: nothing mapped there)

followed by the driver stack (amdxc64.dll+0x957eba, +0x959456, +0x957814, +0x864d5d, +0x955d16, +0x676605) and the title's Breakpad handler. No device removal, no DRED page fault - the process dies in the DXIL compiler while a pipeline is being created.

Repro rate: 3 of 3 runs on current main @940d32f, and the same offset on two other trees:

build outcome
main @940d32f crash at amdxc64+0x861b9f (twice; different last shader each time)
main + #1762 crash at the same offset
fxceless/victory-fork @310c6eb crash at the same offset, earlier (before the world)

The shader being compiled when it dies is not constant: the last translated compute program was e79dd4bd900b4200 in one run and 1e4947eada3d9ee3 in the next, so it is the act of compiling, not one program.

The variable that matters: pipeline workers. crates/victory-gpu/src/pipeline/make.rs spawns available_parallelism/2 clamped to 2..8 workers (6 here). With a local patch that makes that count an env var and VICTORY_PIPELINE_THREADS=1, the same build ran 420 s with no exception, 11 black-frame warnings, 2,608 draws/frame, 0.6 fps in the credits/prologue cutscene.

So on this card the driver's compiler is not safe to call from several threads at once, and everything else (rendering, removal behaviour) is unchanged by the workaround.

Proposal: make the worker count configurable (VICTORY_PIPELINE_THREADS, default as today) so AMD users have a workaround, and consider a lower default on AMD adapters. I can send the two-line patch as a branch if you want it; it is only the let n = ... in queue().

Not tested: other AMD cards, NVIDIA, RDNA3, --console series-s, and whether a cap of 2 or 4 is enough (I went straight to 1). No game data in this report: hashes, counts and error strings only.

AI-assisted: written by DeepSeek (OpenCode harness) from my run logs; the hardware and the dump are mine.


Correction (same day): one thread delays the crash, it does not remove it.

A longer run on the same single-thread build (VICTORY_PIPELINE_THREADS=1, 900 s cap) died the same way:

VIctory: first-chance exception 0xc0000005 at amdxc64.dll+0x861b9f (read 0x8: nothing mapped there)

It got further than the multi-threaded runs (1,710 draws/frame, 4 black-frame warnings) before dying, but the fault offset is identical. So the worker count is not the root cause - the first 420 s single-thread run that survived was luck, not evidence.

What is still true from the original report:

  • the crash is inside the driver's compiler (amdxc64.dll+0x861b9f), not a device removal and not a DRED page fault;
  • it happens on main @940d32f, on main + #1762, and on fxceless/victory-fork @310c6eb - three trees, same offset;
  • the shader being compiled differs between runs (e79dd4bd900b4200, 1e4947eada3d9ee3), so it is not one program;
  • a run can get as far as 1,710-9,159 draws/frame and the credits/prologue cutscene before it dies.

What I would try next, rather than threads: compile one shader at a time and log the exact program at the moment of the fault. If the fault moves with the program, it is the DXIL we emit for a class of programs (mesh/wave64 or large compute kernels are the two candidates on this host); if it stays at the same offset regardless of program, it is the driver itself and the workaround has to be on our side (skip that class).

Anyone who can run VICTORY_SKIP_PIPELINES with the two hashes above on RDNA4 would settle that quickly; I will do it here when the card is free.

Still not tested: RDNA2/3, NVIDIA, --console series-s, and other driver versions. No game data in this report: hashes, counts and error strings only.

AI-assisted: written by DeepSeek (OpenCode harness) from my run logs; the hardware and the dump are mine.

<!-- greyfinch-sync:Marvisak/VIctory:issue:6597970170 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/2124). Originally posted by [rpmaster2](https://github.com/rpmaster2) on 2026-11-25T05:35:18Z. --- The AMD shader compiler crashes while several pipelines compile at once, and compiling them on one thread avoids it. **Host:** RX 9070 XT 16 GB (RDNA4), Adrenalin 26.11.2 (32.0.32029.2010), Windows 11 26300, Ryzen 5 5600, 32 GB, pagefile 32/48 GB on F:. Diag build, `VICTORY_D3D12_DRED=1`, `--console series-x` unless noted, 42 `Enter` presses over 1.83-7.31 s. **What happens:** the title dies with an access violation **inside the driver**, not in our code: ``` VIctory: first-chance exception 0xc0000005 at amdxc64.dll+0x861b9f (read 0x8: nothing mapped there) ``` followed by the driver stack (`amdxc64.dll+0x957eba`, `+0x959456`, `+0x957814`, `+0x864d5d`, `+0x955d16`, `+0x676605`) and the title's Breakpad handler. No device removal, no DRED page fault - the process dies in the DXIL compiler while a pipeline is being created. **Repro rate:** 3 of 3 runs on current `main` @940d32f, and the same offset on two other trees: | build | outcome | | --- | --- | | `main` @940d32f | crash at amdxc64+0x861b9f (twice; different last shader each time) | | `main` + #1762 | crash at the same offset | | `fxceless/victory-fork` @310c6eb | crash at the same offset, earlier (before the world) | The shader being compiled when it dies is not constant: the last translated compute program was `e79dd4bd900b4200` in one run and `1e4947eada3d9ee3` in the next, so it is the act of compiling, not one program. **The variable that matters: pipeline workers.** `crates/victory-gpu/src/pipeline/make.rs` spawns `available_parallelism/2` clamped to 2..8 workers (6 here). With a local patch that makes that count an env var and `VICTORY_PIPELINE_THREADS=1`, the same build ran **420 s with no exception**, 11 black-frame warnings, 2,608 draws/frame, 0.6 fps in the credits/prologue cutscene. So on this card the driver's compiler is not safe to call from several threads at once, and everything else (rendering, removal behaviour) is unchanged by the workaround. **Proposal:** make the worker count configurable (`VICTORY_PIPELINE_THREADS`, default as today) so AMD users have a workaround, and consider a lower default on AMD adapters. I can send the two-line patch as a branch if you want it; it is only the `let n = ...` in `queue()`. Not tested: other AMD cards, NVIDIA, RDNA3, `--console series-s`, and whether a cap of 2 or 4 is enough (I went straight to 1). No game data in this report: hashes, counts and error strings only. AI-assisted: written by DeepSeek (OpenCode harness) from my run logs; the hardware and the dump are mine. --- **Correction (same day): one thread delays the crash, it does not remove it.** A longer run on the same single-thread build (`VICTORY_PIPELINE_THREADS=1`, 900 s cap) died the same way: ``` VIctory: first-chance exception 0xc0000005 at amdxc64.dll+0x861b9f (read 0x8: nothing mapped there) ``` It got further than the multi-threaded runs (1,710 draws/frame, 4 black-frame warnings) before dying, but the fault offset is identical. So the worker count is not the root cause - the first 420 s single-thread run that survived was luck, not evidence. What is still true from the original report: - the crash is inside the driver's compiler (`amdxc64.dll+0x861b9f`), not a device removal and not a DRED page fault; - it happens on `main` @940d32f, on `main` + #1762, and on `fxceless/victory-fork` @310c6eb - three trees, same offset; - the shader being compiled differs between runs (`e79dd4bd900b4200`, `1e4947eada3d9ee3`), so it is not one program; - a run can get as far as 1,710-9,159 draws/frame and the credits/prologue cutscene before it dies. What I would try next, rather than threads: compile one shader at a time and log the exact program at the moment of the fault. If the fault moves with the program, it is the DXIL we emit for a class of programs (mesh/wave64 or large compute kernels are the two candidates on this host); if it stays at the same offset regardless of program, it is the driver itself and the workaround has to be on our side (skip that class). Anyone who can run `VICTORY_SKIP_PIPELINES` with the two hashes above on RDNA4 would settle that quickly; I will do it here when the card is free. Still not tested: RDNA2/3, NVIDIA, `--console series-s`, and other driver versions. No game data in this report: hashes, counts and error strings only. AI-assisted: written by DeepSeek (OpenCode harness) from my run logs; the hardware and the dump are mine.
rpmaster2 commented 2026-11-25 06:02:52 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by rpmaster2 on 2026-11-25T05:53:59Z.


A reproducer without running the title, which should make this much cheaper to bisect.

victory translate --pipelines

on main @940d32f, diag build, no game process involved, dies part-way through shaders.rpf:

F:\...\shaders.rpf: 22917 of 26503 containers (86%), 741 s

and then the process is gone - no victory error line, no summary, exit status 1. That is the same silent exit as the in-game fault at amdxc64.dll+0x861b9f, and it happens in the driver's compiler, so the tool's own error handling never sees it.

Why this matters: it reproduces in ~12 minutes with no game, no save, no keys, and no device, so a git bisect between the last known-good tree and 940d32f can run on this alone. The last known-good tree on my host is ffe310e (yesterday's main), which ran the game for 3-5 minutes at a time across a dozen runs with no amdxc64 fault at all.

I have not confirmed the two crashes are the same event, only that both are abrupt and that the in-game one is amdxc64.dll+0x861b9f. If anyone wants to run the bisect, the recipe is: build --profile diag -p victory --features diagnostics, victory translate --pipelines, and treat "reaches 100% and prints the summary" as good versus "dies around 86%" as bad. I can start it here, it is just long (about 13 minutes per step).

No game data in this report: counts, hashes and error strings only.

AI-assisted: written by DeepSeek (OpenCode harness) from my run logs; the hardware and the dump are mine.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7154244943 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/2124#issuecomment-7154244943). Originally posted by [rpmaster2](https://github.com/rpmaster2) on 2026-11-25T05:53:59Z. --- A reproducer without running the title, which should make this much cheaper to bisect. ``` victory translate --pipelines ``` on `main` @940d32f, diag build, no game process involved, dies part-way through `shaders.rpf`: ``` F:\...\shaders.rpf: 22917 of 26503 containers (86%), 741 s ``` and then the process is gone - no `victory` error line, no summary, exit status 1. That is the same silent exit as the in-game fault at `amdxc64.dll+0x861b9f`, and it happens in the driver's compiler, so the tool's own error handling never sees it. Why this matters: it reproduces in ~12 minutes with no game, no save, no keys, and no device, so a `git bisect` between the last known-good tree and `940d32f` can run on this alone. The last known-good tree on my host is `ffe310e` (yesterday's `main`), which ran the game for 3-5 minutes at a time across a dozen runs with no `amdxc64` fault at all. I have not confirmed the two crashes are the same event, only that both are abrupt and that the in-game one is `amdxc64.dll+0x861b9f`. If anyone wants to run the bisect, the recipe is: build `--profile diag -p victory --features diagnostics`, `victory translate --pipelines`, and treat "reaches 100% and prints the summary" as good versus "dies around 86%" as bad. I can start it here, it is just long (about 13 minutes per step). No game data in this report: counts, hashes and error strings only. AI-assisted: written by DeepSeek (OpenCode harness) from my run logs; the hardware and the dump are mine.
rpmaster2 commented 2026-11-25 08:06:39 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by rpmaster2 on 2026-11-25T07:28:18Z.


Bisected, and confirmed in the game. The first bad commit is c75fdba ("GPU: views the shaders pick from the heap, and one change journal for title memory"); its parent 4f57f46 ("Shaders: cube samples with gradients take their level from the gradients") is clean.

Method. Signal = victory translate --pipelines (the offline reproducer from my previous comment): a good commit reaches 100% and prints the summary, a bad one dies part-way. git bisect start 940d32f ffe310e, build --profile diag -p victory --features diagnostics at each step, one translate per step. It converged in 8 steps.

In-game confirmation, same host, same save, 42 Enter presses, 300 s:

build outcome
c75fdba 0xc0000005 at amdxc64.dll+0x861b9f during startup, last line a host compute pipeline, max 14 draws/frame
4f57f46 (parent) no exception in 300 s, max 14 draws/frame, black front end, no crash

Both sit in the front end at 14 draws/frame, so the difference is not "how far it got": the parent simply never hits the fault that the child hits while compiling its startup pipelines.

What that commit touches, from git show --stat: new crates/victory-gpu/src/bindless.rs (+554), descriptor/host.rs (+90), descriptor.rs, draw.rs, capture.rs, copystat.rs, plus README. The message: "Buffer views and title-written textures get host views when the title writes them; lists that index the heap have every range current at submission. Changes are tracked per 64 KiB page with guards, kernel writes and aliased mappings reported."

How a view/heap commit ends in the shader compiler is the part I cannot answer from here - my guess is that the host views it now creates (formats, planes, the writable twins) are what the pipelines are compiled against, and one of those states hits the driver bug. The fault offset is the same one as every other crash in this issue, so the driver is still the thing falling over.

Suggestion: on AMD, treat c75fdba as the regression to look at first, or test the tree with it reverted - it is the only commit between a clean run and a startup crash in my bisect.

Caveats: one bisect, one in-game run per side, and the offline signal can be affected by the shader cache (a warm cache can skip compilation); I verified the end points in the game so the pair above is not cache-dependent.

No game data in this report: counts, hashes and error strings only.

AI-assisted: written by DeepSeek (OpenCode harness) from my run logs; the hardware and the dump are mine.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7155896399 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/2124#issuecomment-7155896399). Originally posted by [rpmaster2](https://github.com/rpmaster2) on 2026-11-25T07:28:18Z. --- Bisected, and confirmed in the game. The first bad commit is `c75fdba` ("GPU: views the shaders pick from the heap, and one change journal for title memory"); its parent `4f57f46` ("Shaders: cube samples with gradients take their level from the gradients") is clean. **Method.** Signal = `victory translate --pipelines` (the offline reproducer from my previous comment): a good commit reaches 100% and prints the summary, a bad one dies part-way. `git bisect start 940d32f ffe310e`, build `--profile diag -p victory --features diagnostics` at each step, one translate per step. It converged in 8 steps. **In-game confirmation, same host, same save, 42 `Enter` presses, 300 s:** | build | outcome | | --- | --- | | `c75fdba` | `0xc0000005 at amdxc64.dll+0x861b9f` during startup, last line a host compute pipeline, max 14 draws/frame | | `4f57f46` (parent) | no exception in 300 s, max 14 draws/frame, black front end, no crash | Both sit in the front end at 14 draws/frame, so the difference is not "how far it got": the parent simply never hits the fault that the child hits while compiling its startup pipelines. **What that commit touches**, from `git show --stat`: new `crates/victory-gpu/src/bindless.rs` (+554), `descriptor/host.rs` (+90), `descriptor.rs`, `draw.rs`, `capture.rs`, `copystat.rs`, plus README. The message: "Buffer views and title-written textures get host views when the title writes them; lists that index the heap have every range current at submission. Changes are tracked per 64 KiB page with guards, kernel writes and aliased mappings reported." How a view/heap commit ends in the shader compiler is the part I cannot answer from here - my guess is that the host views it now creates (formats, planes, the writable twins) are what the pipelines are compiled against, and one of those states hits the driver bug. The fault offset is the same one as every other crash in this issue, so the driver is still the thing falling over. Suggestion: on AMD, treat `c75fdba` as the regression to look at first, or test the tree with it reverted - it is the only commit between a clean run and a startup crash in my bisect. Caveats: one bisect, one in-game run per side, and the offline signal can be affected by the shader cache (a warm cache can skip compilation); I verified the end points in the game so the pair above is not cache-dependent. No game data in this report: counts, hashes and error strings only. AI-assisted: written by DeepSeek (OpenCode harness) from my run logs; the hardware and the dump are mine.
Marvisak commented 2026-11-25 13:03:04 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T12:53:37Z.


Automated triage for the maintainers.

Thanks, a complete report: RX 9070 XT, Adrenalin 26.11.2 (32.0.32029.2010), Windows 11 26300, 940d32f, and the fault text: 0xc0000005 at amdxc64.dll+0x861b9f, read 0x8, inside the driver's compiler during pipeline creation.

  • The correction in the body matters: one pipeline worker only delays the crash, so #2250 (VICTORY_PIPELINE_THREADS) is a diagnostic knob, not the fix.
  • The bisect with the offline reproducer (victory translate --pipelines) lands on c75fdba ("views the shaders pick from the heap…"); its parent 4f57f46 is clean in the game too.

The cause is tracked in #1785, which has the earlier reports of this address (#1783 is the first). Since the last triage, two RX 9070 XT testers there ran open PR #2122, which gives a buffer size query a heap handle of its own. With it, a full translate --cache --pipelines finished with no amdxc64.dll crash, and an in-game run built 1,271 pipelines without one. Your offline reproducer on main + #2122 would be a useful third data point. Note that main (da82e44) has since changed how heap handles are made (850b66f), so please name the commit you test.

The recovery policy in the last comment is a design proposal for the maintainers: catch a compiler fault on a pipeline worker, park that thread, and add the pipeline to a skip list. It would not remove the driver fault, and a thread abandoned inside the compiler may hold locks, as noted there.


Generated by Claude Code

<!-- greyfinch-sync:Marvisak/VIctory:comment:7163002660 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/2124#issuecomment-7163002660). Originally posted by [Marvisak](https://github.com/Marvisak) on 2026-11-25T12:53:37Z. --- <!-- victory-issue-triage v1 verdict=tracked seen=2026-11-25T14:51:48Z at=2026-11-25T15:51:00Z --> Automated triage for the maintainers. Thanks, a complete report: RX 9070 XT, Adrenalin 26.11.2 (32.0.32029.2010), Windows 11 26300, `940d32f`, and the fault text: `0xc0000005 at amdxc64.dll+0x861b9f`, read `0x8`, inside the driver's compiler during pipeline creation. - The correction in the body matters: one pipeline worker only delays the crash, so #2250 (`VICTORY_PIPELINE_THREADS`) is a diagnostic knob, not the fix. - The bisect with the offline reproducer (`victory translate --pipelines`) lands on `c75fdba` ("views the shaders pick from the heap…"); its parent `4f57f46` is clean in the game too. The cause is tracked in #1785, which has the earlier reports of this address (#1783 is the first). Since the last triage, two RX 9070 XT testers there ran open PR #2122, which gives a buffer size query a heap handle of its own. With it, a full `translate --cache --pipelines` finished with no `amdxc64.dll` crash, and an in-game run built 1,271 pipelines without one. Your offline reproducer on `main` + #2122 would be a useful third data point. Note that `main` (da82e44) has since changed how heap handles are made (850b66f), so please name the commit you test. The recovery policy in the last comment is a design proposal for the maintainers: catch a compiler fault on a pipeline worker, park that thread, and add the pipeline to a skip list. It would not remove the driver fault, and a thread abandoned inside the compiler may hold locks, as noted there. --- _Generated by [Claude Code](https://claude.ai/code)_
rpmaster2 commented 2026-11-25 15:04:29 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by rpmaster2 on 2026-11-25T14:51:48Z.


A suggestion rather than a patch, in case it is useful.

Today a pipeline that faults while being made costs the whole session: the fault happens inside a pipeline creation call on one of our threads, and the process is gone. On our card (RX 9070 XT, Adrenalin 26.11.2) a handful of pipelines do this reproducibly; the cause was never established on our side.

What has helped in a fork of this project is a recovery policy, not a fix in the driver:

  1. One vectored exception handler for the process, installed when the first pipeline is made.
  2. Pipelines are made on named workers, with the pipeline's name kept in a thread-local.
  3. The handler claims an exception only if it is an access violation, the faulting address is in the first 64 KiB (a compiler reading through a bad pointer), and a pipeline is being made on that thread. Anything else goes on to the default handler.
  4. On a claim it writes the pipeline's name to a skip file, logs it, and never returns into the compiler: that thread parks for good. The process continues, and the draws and dispatches that need the lost pipeline are dropped.
  5. The worker supervisor sees the worker gone, marks its pipeline unmade, and starts a replacement, so the rest of the work still gets done.
  6. Pipelines are named by a hash of the translated shader code, the root signature and the state, so a name is stable: the next run never makes a name from the skip file.
  7. A watchdog for compiles that never end notes them the same way and suspends their threads (a few programs also take GiBs while never finishing).

Two things to decide on: a thread abandoned in the compiler may hold locks, and the endless path checks where the thread is first (compiler code, not the heap) before suspending it. The skip list only grows with pipelines that reproducibly fault, so it stays short.

Where this has been tried, GPL-3.0-or-later as here:
https://github.com/Belobug/VIctory-Belobug-AMD at 71652a2 - crates/victory-gpu/src/pipeline/ (library.rs: the handler, the skip file, the watcher; make.rs: the workers and replacements).

With this policy the fork keeps the process alive for many minutes on this card and keeps making progress; without it, the same runs end in a couple of minutes. If an upstream implementation appears, we can test it here.

AI-assisted: written by DeepSeek (OpenCode harness) from the user's logs and the fork's source; no game or personal data.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7165932025 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/2124#issuecomment-7165932025). Originally posted by [rpmaster2](https://github.com/rpmaster2) on 2026-11-25T14:51:48Z. --- A suggestion rather than a patch, in case it is useful. Today a pipeline that faults while being made costs the whole session: the fault happens inside a pipeline creation call on one of our threads, and the process is gone. On our card (RX 9070 XT, Adrenalin 26.11.2) a handful of pipelines do this reproducibly; the cause was never established on our side. What has helped in a fork of this project is a recovery policy, not a fix in the driver: 1. One vectored exception handler for the process, installed when the first pipeline is made. 2. Pipelines are made on named workers, with the pipeline's name kept in a thread-local. 3. The handler claims an exception only if it is an access violation, the faulting address is in the first 64 KiB (a compiler reading through a bad pointer), and a pipeline is being made on that thread. Anything else goes on to the default handler. 4. On a claim it writes the pipeline's name to a skip file, logs it, and never returns into the compiler: that thread parks for good. The process continues, and the draws and dispatches that need the lost pipeline are dropped. 5. The worker supervisor sees the worker gone, marks its pipeline unmade, and starts a replacement, so the rest of the work still gets done. 6. Pipelines are named by a hash of the translated shader code, the root signature and the state, so a name is stable: the next run never makes a name from the skip file. 7. A watchdog for compiles that never end notes them the same way and suspends their threads (a few programs also take GiBs while never finishing). Two things to decide on: a thread abandoned in the compiler may hold locks, and the endless path checks where the thread is first (compiler code, not the heap) before suspending it. The skip list only grows with pipelines that reproducibly fault, so it stays short. Where this has been tried, GPL-3.0-or-later as here: https://github.com/Belobug/VIctory-Belobug-AMD at 71652a2 - crates/victory-gpu/src/pipeline/ (library.rs: the handler, the skip file, the watcher; make.rs: the workers and replacements). With this policy the fork keeps the process alive for many minutes on this card and keeps making progress; without it, the same runs end in a couple of minutes. If an upstream implementation appears, we can test it here. AI-assisted: written by DeepSeek (OpenCode harness) from the user's logs and the fork's source; no game or personal data.
mintymerry7-create commented 2026-11-26 20:12:25 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by mintymerry7-create on 2026-11-26T20:12:25Z.


A data point at the same offset (RX 9060 XT, same driver 32.0.32029.2010, Windows 11 26300). In our runs the crash was always the same pipeline, compute f16876929fa64f9f. It came right after that shader's translation and at the same place in the world: three runs, on two forks (avatarmanz-based and rorodev-based). Leaving out just that one pipeline let the others go on compiling on several threads, and we have not seen the crash since.

So here it looked tied to that one shader rather than to the thread count. Both may hold: the driver bug may need that shader and concurrent compiles together.

What we use (https://github.com/mintymerry7-create/VIctory-7900XTX/tree/rdna4-perf, built on avatarmanz/VIctory-7900XTX):

  • VICTORY_LEAVE_OUT: hashes left out of pipeline creation; default f16876929fa64f9f; none makes it.
  • A crash book: a pipeline being compiled when the process dies is noted, made alone at the next start, and never made again if it crashes once more.

Our full config and results on this card: https://github.com/avatarmanz/VIctory-7900XTX/issues/345

(AI-assisted)

<!-- greyfinch-sync:Marvisak/VIctory:comment:7202413579 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/2124#issuecomment-7202413579). Originally posted by [mintymerry7-create](https://github.com/mintymerry7-create) on 2026-11-26T20:12:25Z. --- A data point at the same offset (RX 9060 XT, same driver 32.0.32029.2010, Windows 11 26300). In our runs the crash was always **the same pipeline, compute `f16876929fa64f9f`**. It came right after that shader's translation and at the same place in the world: three runs, on two forks (avatarmanz-based and rorodev-based). Leaving out just that one pipeline let the others go on compiling on several threads, and we have not seen the crash since. So here it looked tied to that one shader rather than to the thread count. Both may hold: the driver bug may need that shader and concurrent compiles together. What we use (https://github.com/mintymerry7-create/VIctory-7900XTX/tree/rdna4-perf, built on avatarmanz/VIctory-7900XTX): - `VICTORY_LEAVE_OUT`: hashes left out of pipeline creation; default `f16876929fa64f9f`; `none` makes it. - A crash book: a pipeline being compiled when the process dies is noted, made alone at the next start, and never made again if it crashes once more. Our full config and results on this card: https://github.com/avatarmanz/VIctory-7900XTX/issues/345 (AI-assisted)
upipibi commented 2026-11-28 01:11:28 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by upipibi on 2026-11-28T01:11:28Z.


Correction, added later: there is a more specific trigger for this exact fault, so commit exhaustion is at most part of it.

  • On ScarlettPort#73 (RX 9070 XT, the same driver, a commit limit of about 96 GB, so nowhere near exhausted), the fault at amdxc64.dll+0x861b9f happened with Belobug's "size query not reused" fix already in.
  • It went away (8.5 min in the world, no crash) with avatarmanz/VIctory-7900XTX#357. That change gives a raw view's getDimensions a handle of its own on RDNA 4, marked NonUniformResourceIndex and kept out of the translator's REUSE (ported as ScarlettPort#93).
  • Here that is #2122, whose author reproduces the fault with the size query on the load's handle.

The commit-limit readings below still stand as observations, but the shared size-query handle is the first thing to rule out.


A mechanism that may tie the reports here together, from five-star-recomp's measurements on the same driver and from the log in #3601. These are read from their threads and the attached log; I have no AMD card and ran nothing.

five-star-recomp#19 (RX 7800 XT, Adrenalin 32.0.32029.2010, the same driver as this issue):

  • What the crash is. A minidump puts it inside the driver's compiler, as a read at address 0 during CreatePipelineState. Each time, the commit charge was at the limit just before: 68.3 of 68.9 GB, 70.1 of 70.9 GB, and 52.8 of 67.9 GB with five compiles in flight (comment). Their reading is an allocation failure the compiler doesn't check. They also note a race isn't ruled out, since a second build thread was in the same functions.
  • How big the compiles get. The AMD compiler's peak memory grows steeply with program size, apparently following the control flow (block count and nesting) more than the instruction count. One title compute program, cut to 8% / 15% / 25% of its body, needed 4.9 GB, 17.2 GB and over 30 GB to compile (issue body). Single mesh+pixel pipelines of 1.5-2 MB of DXIL peaked at up to 37.5 GB.

#3601's log (RX 9070 XT, Adrenalin 26.11.2, 32 GB), same fault, 0xc0000005 at amdxc64.dll+0x861b9f (read 0x8) on victory-pipelines-1:

  • At 20:04:37 the copystat line reads 16005 MB private … 6013 MB left to commit.
  • At the crash, 9 s later, the title's Breakpad parameters give system.memory.swap.free 1,329,140 KB of system.memory.swap.total 49,206,824 KB: about 1.3 GB of a 47 GB commit limit left.

So about 4.7 GB of commit went in 9 s while that worker was in the compiler. Luislariosss's Breakpad context on #1785 had 3.1 GB of a 47.2 GB limit free just before the same fault.

How this would explain what's been seen here: one pipeline worker delays the crash (fewer compiles at a time), leaving out one pipeline (f16876929fa64f9f, mintymerry7-create) avoids it, and victory translate --pipelines dies part-way through (rpmaster2). All three are what an exhausted commit charge would give.

Two checks would test it. First, the left to commit value on the last copystat line before the fault, in the other logs. Second, the DXIL size of the pipeline being compiled at the fault. If it holds, five-star's mitigation applies: they compile programs over 2 MB in a separate process with a memory and time limit (--host-pipelines, ThatRecompDev on five-star-recomp#19), so a driver fault becomes a failed compile and the pipeline stays a stand-in. That is close to rpmaster2's recovery suggestion above.

One caution from xcl, if anyone tries shrinking the programs: xcl's compact form (one copy of each distinct block, xcl#1315/#1316) brings CS_ScreenProbes_ActivateProbes down from 29.75 MB to 1.05 MB of DXIL. But on an RX 7800 XT, forcing it on 18 sampled programs raised DXIL from 5.29 to 17.03 MB and driver compile time from 186.5 s to over 1,152 s (as quoted in xcl#1316). So the form only helps for the few huge programs. Forced everywhere it made programs bigger and compiles slower, which is why xcl applies it only above a size threshold (compact_wanted, 20,000+ instructions).

A follow-on risk, unconfirmed here: xcl#2512 (RX 6700 XT, Windows) found that on AMD the driver's cached pipeline blob is a small stub pointing into the driver's own shader cache. Stubs written by a run that later crashed or was killed removed the device (0x887A0006) when a later run handed them back, instead of being refused. Without them, the same pipelines came from the driver's cache in milliseconds. VIctory's library is the same kind of thing on AMD ("about 140 bytes per pipeline", pipeline/library.rs:25), and it is saved every 20 s during a run (SAVE_EVERY, :306-313). So a run that ends in this fault could leave entries that a following run trips on. If anyone sees a device removal early in the run after one of these crashes, moving the library out of the cache folder would tell.

AI-assisted (Claude Code, Claude Opus 5.5 read the threads and the #3601 log).

<!-- greyfinch-sync:Marvisak/VIctory:comment:7231486450 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/2124#issuecomment-7231486450). Originally posted by [upipibi](https://github.com/upipibi) on 2026-11-28T01:11:28Z. --- **Correction, added later:** there is a more specific trigger for this exact fault, so commit exhaustion is at most part of it. - On ScarlettPort#73 (RX 9070 XT, the same driver, a commit limit of about 96 GB, so nowhere near exhausted), the fault at `amdxc64.dll+0x861b9f` happened with Belobug's "size query not reused" fix already in. - It went away (8.5 min in the world, no crash) with avatarmanz/VIctory-7900XTX#357. That change gives a raw view's `getDimensions` a handle of its own on RDNA 4, marked `NonUniformResourceIndex` and kept out of the translator's REUSE (ported as ScarlettPort#93). - Here that is #2122, whose author reproduces the fault with the size query on the load's handle. The commit-limit readings below still stand as observations, but the shared size-query handle is the first thing to rule out. --- A mechanism that may tie the reports here together, from five-star-recomp's measurements on the same driver and from the log in #3601. These are read from their threads and the attached log; I have no AMD card and ran nothing. **five-star-recomp#19** (RX 7800 XT, Adrenalin `32.0.32029.2010`, the same driver as this issue): - **What the crash is.** A minidump puts it inside the driver's compiler, as a read at address 0 during `CreatePipelineState`. Each time, the commit charge was at the limit just before: 68.3 of 68.9 GB, 70.1 of 70.9 GB, and 52.8 of 67.9 GB with five compiles in flight ([comment](https://github.com/ThatRecompDev/five-star-recomp/issues/19#issuecomment-7155813052)). Their reading is an allocation failure the compiler doesn't check. They also note a race isn't ruled out, since a second build thread was in the same functions. - **How big the compiles get.** The AMD compiler's peak memory grows steeply with program size, apparently following the control flow (block count and nesting) more than the instruction count. One title compute program, cut to 8% / 15% / 25% of its body, needed 4.9 GB, 17.2 GB and over 30 GB to compile ([issue body](https://github.com/ThatRecompDev/five-star-recomp/issues/19)). Single mesh+pixel pipelines of 1.5-2 MB of DXIL peaked at up to 37.5 GB. **#3601's log** (RX 9070 XT, Adrenalin 26.11.2, 32 GB), same fault, `0xc0000005 at amdxc64.dll+0x861b9f (read 0x8)` on `victory-pipelines-1`: - At 20:04:37 the copystat line reads `16005 MB private … 6013 MB left to commit`. - At the crash, 9 s later, the title's Breakpad parameters give `system.memory.swap.free` 1,329,140 KB of `system.memory.swap.total` 49,206,824 KB: about 1.3 GB of a 47 GB commit limit left. So about 4.7 GB of commit went in 9 s while that worker was in the compiler. Luislariosss's Breakpad context on #1785 had 3.1 GB of a 47.2 GB limit free just before the same fault. **How this would explain what's been seen here:** one pipeline worker delays the crash (fewer compiles at a time), leaving out one pipeline (`f16876929fa64f9f`, mintymerry7-create) avoids it, and `victory translate --pipelines` dies part-way through (rpmaster2). All three are what an exhausted commit charge would give. **Two checks would test it.** First, the `left to commit` value on the last copystat line before the fault, in the other logs. Second, the DXIL size of the pipeline being compiled at the fault. If it holds, five-star's mitigation applies: they compile programs over 2 MB in a separate process with a memory and time limit (`--host-pipelines`, ThatRecompDev on five-star-recomp#19), so a driver fault becomes a failed compile and the pipeline stays a stand-in. That is close to rpmaster2's recovery suggestion above. One caution from xcl, if anyone tries shrinking the programs: xcl's compact form (one copy of each distinct block, xcl#1315/#1316) brings `CS_ScreenProbes_ActivateProbes` down from 29.75 MB to 1.05 MB of DXIL. But on an RX 7800 XT, forcing it on 18 sampled programs raised DXIL from 5.29 to 17.03 MB and driver compile time from 186.5 s to over 1,152 s (as quoted in xcl#1316). So the form only helps for the few huge programs. Forced everywhere it made programs bigger and compiles slower, which is why xcl applies it only above a size threshold (`compact_wanted`, 20,000+ instructions). A follow-on risk, unconfirmed here: xcl#2512 (RX 6700 XT, Windows) found that on AMD the driver's cached pipeline blob is a small stub pointing into the driver's own shader cache. Stubs written by a run that later crashed or was killed removed the device (`0x887A0006`) when a later run handed them back, instead of being refused. Without them, the same pipelines came from the driver's cache in milliseconds. VIctory's library is the same kind of thing on AMD ("about 140 bytes per pipeline", `pipeline/library.rs:25`), and it is saved every 20 s during a run (`SAVE_EVERY`, `:306-313`). So a run that ends in this fault could leave entries that a following run trips on. If anyone sees a device removal early in the run after one of these crashes, moving the library out of the cache folder would tell. AI-assisted (Claude Code, Claude Opus 5.5 read the threads and the #3601 log).
Bonky00 commented 2026-11-29 23:27:50 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by Bonky00 on 2026-11-29T23:27:50Z.


Confirming #2124 on a second host, and three things that may narrow it.

Host: RX 9070 XT 16 GB (Navi 48, RDNA4), Adrenalin 32.0.32029.2010, Windows 11 26300, i5-9600KF (6 cores / 6 threads, no SMT), 64 GB DDR4-2666.
Tree: myokex/victory-amd @ vi-xtx 5d058ff (a fork of avatarmanz/VIctory-7900XTX 0a435665, now 404). Diag build, --console series-x, -Safe.

1. VICTORY_SHADER_OPT changes the outcome, and I can't find it reported anywhere

With the default (63, all clean-up passes) the init-time crash reproduces 4 of 4 times at amdxc64.dll+0x861b9f / +0x957eba, through D3D12Core -> d3d12!CreatePipelineState.

With VICTORY_SHADER_OPT=0 ("no passes: the module as the lowering made it") the init crash is gone, and victory warm shows the compiler is both far less crash-prone and 13x faster per pipeline on the same 1,976 pipelines:

opt=63 opt=0
pipelines whose compile killed the process 28 5
median compile 32.3 ms 2.5 ms
p90 3,195.9 ms 2,278.2 ms
worst 101.4 s 9.2 s
total compile work 1,667 s 1,296 s

A GitHub search for SHADER_OPT in this repo returns nothing, so this may not be reported yet. Two readings, both actionable: either one of the six passes emits DXIL amdxc64 cannot cope with (which is what that switch's comment says it exists to tell apart), or the passes simply produce work AMD's compiler is slow on. Either way opt=0 is a free workaround here, because the passes are a net loss on this driver anyway.

2. VICTORY_PIPELINE_WORKERS=1 alone does not give one worker

This is for the "one thread avoids it" finding. In this tree make.rs:421 spawns workers + screens, where screens = SCREEN_WORKERS (2) whenever screens_first() is true, i.e. when screen_budget() (VICTORY_SCREEN_WAIT_MS, default 10000) is not zero:

let screens = if screens_first() { SCREEN_WORKERS } else { 0 };
for i in 0..workers + screens {

So VICTORY_PIPELINE_WORKERS=1 still runs 3 concurrent compilers. One thread needs VICTORY_PIPELINE_WORKERS=1 and VICTORY_SCREEN_WAIT_MS=0. Reporting it because an earlier "one worker didn't help" result here was a false negative for exactly this reason.

With that pair the crash does go away: the run reaches the point where the player takes control (no exception, no device removal)

  • well past the ~3.5 minutes at which every other configuration dies.

3. With opt=0 a second, different fault site appears

After the init crash is fixed, runs die ~3.5 minutes into the world, reproducibly:

VIctory: unhandled exception 0xc0000005 at amdxc64.dll+0x7380f8 (read 0x0: nothing mapped there)
  #0 amdxc64.dll+0x7380f8   #1 amdxc64.dll+0x745dc3
  #2 amdxc64.dll+0x6779a3   #3 amdxc64.dll+0x68e6a9

Different offset, and a null dereference rather than the wild read at +0x861b9f, so it looks like a second bug rather than the first moving. It is one of the 5 pipelines warm records in warm-bad.txt; warm survives them because it compiles in child processes and the runtime cannot.

VICTORY_SKIP_PIPELINES does not help, and cannot: pipeline::is_skipped is consulted only in draw.rs (1336, 2611, 3713), i.e. at draw time, never before CreatePipelineState.

The trade-off, which is why I think #3292 is the real fix

workers opt renders? crashes?
4 + 2 63 yes crash at init (+0x861b9f)
4 + 2 0 yes crash ~3.5 min (+0x7380f8)
1 + 0 63 yes crash at init
1 + 0 0 no - black screen no crash
1 + 0, VICTORY_PIPELINE_WAIT_MS=5000 0 no - 5,213 ms/frame no crash

With one thread, dropped N/frame without a host pipeline: being made sits at 5,613/frame and only ~33 draws reach the card. Raising the per-frame wait budget drains the queue (503-1,744 dropped) but the frame becomes 5.2 s, so nothing in between works either.

What argues for #3292: victory warm --used --jobs 6 compiles the same kind of work in child processes and built 284 pipelines in 8 s with 0 ending their process, median 2.5 ms each. Parallel compilation is safe when each compile is isolated - so the answer looks like isolation at runtime rather than fewer threads.

Separately: the in-world floor here is memory bandwidth, not the compiler

Probably its own issue. At 3,246-4,382 draws/frame: 18,006-22,442 MB of refreshes per frame, GPU 1-13% busy, 1,450-1,994 ms of user CPU per frame across all threads. On DDR4-2666 dual channel (~30 GB/s) that arithmetic is the 495-788 ms frame.

VICTORY_SEND_CHANGED=1 cut refreshes only 22,442 -> 18,006 MB (-20%), not the ~150x I hoped for from the "10,767 MB unchanged" watch figure - that number is bytes compared, not bytes sent. Noting it so nobody repeats the same wrong inference.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7264479276 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/2124#issuecomment-7264479276). Originally posted by [Bonky00](https://github.com/Bonky00) on 2026-11-29T23:27:50Z. --- Confirming #2124 on a second host, and three things that may narrow it. **Host:** RX 9070 XT 16 GB (Navi 48, RDNA4), Adrenalin 32.0.32029.2010, Windows 11 26300, i5-9600KF (6 cores / 6 threads, no SMT), 64 GB DDR4-2666. Tree: `myokex/victory-amd` @ `vi-xtx` `5d058ff` (a fork of `avatarmanz/VIctory-7900XTX` 0a435665, now 404). Diag build, `--console series-x`, `-Safe`. ### 1. `VICTORY_SHADER_OPT` changes the outcome, and I can't find it reported anywhere With the default (63, all clean-up passes) the init-time crash reproduces 4 of 4 times at `amdxc64.dll+0x861b9f` / `+0x957eba`, through `D3D12Core` -> `d3d12!CreatePipelineState`. With `VICTORY_SHADER_OPT=0` ("no passes: the module as the lowering made it") the init crash is gone, and `victory warm` shows the compiler is both far less crash-prone and **13x faster per pipeline** on the same 1,976 pipelines: | | opt=63 | opt=0 | |---|---|---| | pipelines whose compile killed the process | **28** | **5** | | median compile | **32.3 ms** | **2.5 ms** | | p90 | 3,195.9 ms | 2,278.2 ms | | worst | **101.4 s** | 9.2 s | | total compile work | 1,667 s | 1,296 s | A GitHub search for `SHADER_OPT` in this repo returns nothing, so this may not be reported yet. Two readings, both actionable: either one of the six passes emits DXIL `amdxc64` cannot cope with (which is what that switch's comment says it exists to tell apart), or the passes simply produce work AMD's compiler is slow on. Either way `opt=0` is a free workaround here, because the passes are a net loss on this driver anyway. ### 2. `VICTORY_PIPELINE_WORKERS=1` alone does not give one worker This is for the "one thread avoids it" finding. In this tree `make.rs:421` spawns `workers + screens`, where `screens = SCREEN_WORKERS (2)` whenever `screens_first()` is true, i.e. when `screen_budget()` (`VICTORY_SCREEN_WAIT_MS`, default 10000) is not zero: ```rust let screens = if screens_first() { SCREEN_WORKERS } else { 0 }; for i in 0..workers + screens { ``` So `VICTORY_PIPELINE_WORKERS=1` still runs **3** concurrent compilers. One thread needs `VICTORY_PIPELINE_WORKERS=1` **and** `VICTORY_SCREEN_WAIT_MS=0`. Reporting it because an earlier "one worker didn't help" result here was a false negative for exactly this reason. With that pair the crash does go away: the run reaches the point where the player takes control (no exception, no device removal) - well past the ~3.5 minutes at which every other configuration dies. ### 3. With `opt=0` a second, different fault site appears After the init crash is fixed, runs die ~3.5 minutes into the world, reproducibly: ``` VIctory: unhandled exception 0xc0000005 at amdxc64.dll+0x7380f8 (read 0x0: nothing mapped there) #0 amdxc64.dll+0x7380f8 #1 amdxc64.dll+0x745dc3 #2 amdxc64.dll+0x6779a3 #3 amdxc64.dll+0x68e6a9 ``` Different offset, and a null dereference rather than the wild read at `+0x861b9f`, so it looks like a second bug rather than the first moving. It is one of the 5 pipelines `warm` records in `warm-bad.txt`; `warm` survives them because it compiles in child processes and the runtime cannot. `VICTORY_SKIP_PIPELINES` does **not** help, and cannot: `pipeline::is_skipped` is consulted only in `draw.rs` (1336, 2611, 3713), i.e. at draw time, never before `CreatePipelineState`. ### The trade-off, which is why I think #3292 is the real fix | workers | `opt` | renders? | crashes? | |---|---|---|---| | 4 + 2 | 63 | yes | crash at init (`+0x861b9f`) | | 4 + 2 | 0 | yes | crash ~3.5 min (`+0x7380f8`) | | 1 + 0 | 63 | yes | crash at init | | **1 + 0** | **0** | **no - black screen** | **no crash** | | 1 + 0, `VICTORY_PIPELINE_WAIT_MS=5000` | 0 | no - 5,213 ms/frame | no crash | With one thread, `dropped N/frame without a host pipeline: being made` sits at **5,613/frame** and only ~33 draws reach the card. Raising the per-frame wait budget drains the queue (503-1,744 dropped) but the frame becomes 5.2 s, so nothing in between works either. What argues for #3292: `victory warm --used --jobs 6` compiles the same kind of work in child processes and built **284 pipelines in 8 s with 0 ending their process**, median 2.5 ms each. Parallel compilation is safe when each compile is isolated - so the answer looks like isolation at runtime rather than fewer threads. ### Separately: the in-world floor here is memory bandwidth, not the compiler Probably its own issue. At 3,246-4,382 draws/frame: **18,006-22,442 MB of refreshes per frame**, GPU **1-13% busy**, 1,450-1,994 ms of user CPU per frame across all threads. On DDR4-2666 dual channel (~30 GB/s) that arithmetic is the 495-788 ms frame. `VICTORY_SEND_CHANGED=1` cut refreshes only 22,442 -> 18,006 MB (-20%), not the ~150x I hoped for from the "10,767 MB unchanged" watch figure - that number is bytes *compared*, not bytes *sent*. Noting it so nobody repeats the same wrong inference.
Sign in to join this conversation.
No labels
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.

Reference
Marvisak/VIctory#2122
No description provided.