Diagnostics: find, reproduce and skip pipelines the host's compiler c… #1972

Open
github-bot wants to merge 1 commit from github-bot/gh-1972 into main AGit
Owner

@⁠J-DB0 on GitHub · 2026-11-25 02:01 UTC · original
J-DB0:prebuild-compiler-crashes → main · +73 −6 · 5 files · 1 commits · open

The problem

On an AMD RX 9070 XT (RDNA 4), 61 of the shader pack's compute pipelines crash AMD's shader compiler when they are made: the process ends with 0xC0000005 in amdxc64.dll at +0x85fd0f (driver 32.0.32015.7029). Updating to Adrenalin 26.11.2 (32.0.32029.2010) does not change it: all 61 still crash.

So translate --cache --pipelines dies at the first of them and the warm-up never finishes, and a run would die the same way making one.

They are the CS_RaytracingResolve programs of the ped_standard materials: every *_muv* material in all three variants (b1139868, ae7b7f3c, f21e9178), plus garment_2lyr (b1139868, ae7b7f3c), skin (b1139868) and skin_tattoo_bake (b1139868). Their neighbours in the pack make fine. In the pack they are compute records 805, 806, 834-842, 846-893, 897 and 900.

The 61 shader hashes
70b1e13de6df8585
7007ec7e2ae00712
1c02f8131c508c75
61d7c3333b73892d
a4df980a1c65fdbe
d0130073bb6f7a7d
a2d880ad5dea1f45
b7a7fb5ba5934a89
a62731e90739f195
a0ce4bef0ae97c3f
d2c52fcd936985b4
231d2daa66789312
3fa1fda35402c93f
842de0c32bc8dcc5
501f0865fdf45dfd
1e4947eada3d9ee3
38e7dedf37c90130
27ce027e7188bed3
077869cd9b1456ee
c5fc2bc7f3d416f4
7b956e1f6d56609f
072f5fe96efd27e1
3a6594961b9247e7
e2b858e568731a51
695febfd5efced05
1a1089a18f7ff5f8
0f1395e5942ca3b2
85df3e0b2a2e72af
5c10a56026ce13dd
4b4661fd9113cd4a
dbba7e080e26ec20
82d469a7fec64cb4
1b20028fc5fae124
efdb8133aabc37fe
810e4e3cf4237f07
1a72961fb4e91af0
ecd67a438c64e75d
dc6ef2687950428a
50949ebfee9eb51d
7fb216a0c6dee3a9
f33e805895d6dd30
8a13d3da7f64b8d1
2e28ea6fb9dad3c2
37d324dbc6c86d16
72ee7db2a361ed65
26fbf87d883e1381
dd66eddf464f4bb1
fc0dcb1f5312423f
e920d92582cb15f1
c2fed64ee9b4bf23
d5784d991f3164ab
f753717509f8ea20
38047b50e3443232
5ddd2ca380fd74d8
43c72d85c4d86ffe
96744a8cd6c0588f
e932a28baa58153e
0ac6717164281c2d
b740639a48e688c6
fcd45c3d0020311b
36bcbae3c6ee20b3

What this changes (diagnostics builds)

  • VICTORY_PREBUILD_TRACE=1: the pre-build prints each pipeline's shader hashes before making it, so the pipeline being made when the compiler crashes is printed last (alone with --jobs 1).
  • VICTORY_SKIP_PIPELINES now holds for the pre-build too: a pipeline containing a listed shader is not made, where before only its draws and dispatches were left out.
  • VICTORY_TRANSLATE_ONLY=<hash>,...: translate takes only the listed containers and labels them with their hash. With --pipelines a crash reproduces in seconds; with --list and VICTORY_EMIT_DUMP their DXIL is saved before the pipeline is made.

The README's diagnostics table documents all three.

Results

  • With the 61 hashes in VICTORY_SKIP_PIPELINES, the pre-build completes (28,164 in the pack: 21,880 made, 5,117 already in the library) and the world of the first mission runs (about 0.77 s per frame, with the defects the README describes).
  • With VICTORY_TRANSLATE_ONLY and --pipelines, each of the 61 crashes the compiler on its own, in a process of its own; neighbours make fine.

Not the validation errors

On current main, translate --validate (dxil.dll 10.0.26100) rejects all 61, and 11 of 22 neighbours that make fine, with "Function uses features incompatible with the shader stage (cs)" (implicit-derivative samples in compute at validator 1.6). I tried both open fixes for that on this GPU:

Build validate (of 83) still crash (of 61)
main 11 61
main + #1237 (gradients from the quad) 83 61
main + #1065 (validator 1.8) 83 61

The two fix rows were run with driver 32.0.32015.7029; main crashes the same with both drivers.

Both fix the validation; neither stops the crash, so the compiler fault is something else in these programs.

Checks

cargo clippy --workspace --all-targets --all-features --locked -- -D warnings is clean. Tested on Windows 11, Core i5-14600KF, RX 9070 XT.

**@⁠J-DB0** on GitHub · 2026-11-25 02:01 UTC · [original](https://github.com/Marvisak/VIctory/pull/1972) `J-DB0:prebuild-compiler-crashes` → `main` · +73 −6 · 5 files · 1 commits · open ## The problem On an AMD **RX 9070 XT** (RDNA 4), 61 of the shader pack's compute pipelines crash AMD's shader compiler when they are made: the process ends with `0xC0000005` in `amdxc64.dll` at `+0x85fd0f` (driver 32.0.32015.7029). Updating to Adrenalin 26.11.2 (32.0.32029.2010) does not change it: all 61 still crash. So `translate --cache --pipelines` dies at the first of them and the warm-up never finishes, and a run would die the same way making one. They are the `CS_RaytracingResolve` programs of the `ped_standard` materials: every `*_muv*` material in all three variants (b1139868, ae7b7f3c, f21e9178), plus `garment_2lyr` (b1139868, ae7b7f3c), `skin` (b1139868) and `skin_tattoo_bake` (b1139868). Their neighbours in the pack make fine. In the pack they are compute records 805, 806, 834-842, 846-893, 897 and 900. <details><summary>The 61 shader hashes</summary> ``` 70b1e13de6df8585 7007ec7e2ae00712 1c02f8131c508c75 61d7c3333b73892d a4df980a1c65fdbe d0130073bb6f7a7d a2d880ad5dea1f45 b7a7fb5ba5934a89 a62731e90739f195 a0ce4bef0ae97c3f d2c52fcd936985b4 231d2daa66789312 3fa1fda35402c93f 842de0c32bc8dcc5 501f0865fdf45dfd 1e4947eada3d9ee3 38e7dedf37c90130 27ce027e7188bed3 077869cd9b1456ee c5fc2bc7f3d416f4 7b956e1f6d56609f 072f5fe96efd27e1 3a6594961b9247e7 e2b858e568731a51 695febfd5efced05 1a1089a18f7ff5f8 0f1395e5942ca3b2 85df3e0b2a2e72af 5c10a56026ce13dd 4b4661fd9113cd4a dbba7e080e26ec20 82d469a7fec64cb4 1b20028fc5fae124 efdb8133aabc37fe 810e4e3cf4237f07 1a72961fb4e91af0 ecd67a438c64e75d dc6ef2687950428a 50949ebfee9eb51d 7fb216a0c6dee3a9 f33e805895d6dd30 8a13d3da7f64b8d1 2e28ea6fb9dad3c2 37d324dbc6c86d16 72ee7db2a361ed65 26fbf87d883e1381 dd66eddf464f4bb1 fc0dcb1f5312423f e920d92582cb15f1 c2fed64ee9b4bf23 d5784d991f3164ab f753717509f8ea20 38047b50e3443232 5ddd2ca380fd74d8 43c72d85c4d86ffe 96744a8cd6c0588f e932a28baa58153e 0ac6717164281c2d b740639a48e688c6 fcd45c3d0020311b 36bcbae3c6ee20b3 ``` </details> ## What this changes (diagnostics builds) - **`VICTORY_PREBUILD_TRACE=1`**: the pre-build prints each pipeline's shader hashes before making it, so the pipeline being made when the compiler crashes is printed last (alone with `--jobs 1`). - **`VICTORY_SKIP_PIPELINES`** now holds for the pre-build too: a pipeline containing a listed shader is not made, where before only its draws and dispatches were left out. - **`VICTORY_TRANSLATE_ONLY=<hash>,...`**: `translate` takes only the listed containers and labels them with their hash. With `--pipelines` a crash reproduces in seconds; with `--list` and `VICTORY_EMIT_DUMP` their DXIL is saved before the pipeline is made. The README's diagnostics table documents all three. ## Results - With the 61 hashes in `VICTORY_SKIP_PIPELINES`, the pre-build completes (28,164 in the pack: 21,880 made, 5,117 already in the library) and the world of the first mission runs (about 0.77 s per frame, with the defects the README describes). - With `VICTORY_TRANSLATE_ONLY` and `--pipelines`, each of the 61 crashes the compiler on its own, in a process of its own; neighbours make fine. ## Not the validation errors On current `main`, `translate --validate` (dxil.dll 10.0.26100) rejects all 61, and 11 of 22 neighbours that make fine, with "Function uses features incompatible with the shader stage (cs)" (implicit-derivative samples in compute at validator 1.6). I tried both open fixes for that on this GPU: | Build | validate (of 83) | still crash (of 61) | |---|---|---| | `main` | 11 | 61 | | `main` + #1237 (gradients from the quad) | 83 | 61 | | `main` + #1065 (validator 1.8) | 83 | 61 | The two fix rows were run with driver 32.0.32015.7029; `main` crashes the same with both drivers. Both fix the validation; neither stops the crash, so the compiler fault is something else in these programs. ## Checks `cargo clippy --workspace --all-targets --all-features --locked -- -D warnings` is clean. Tested on Windows 11, Core i5-14600KF, RX 9070 XT.
On an RX 9070 XT (RDNA 4), making 61 of the shader pack's compute
pipelines ends the process inside AMD's shader compiler: 0xC0000005 in
amdxc64.dll at +0x85fd0f with driver 32.0.32015.7029, and the same 61
with 32.0.32029.2010 (Adrenalin 26.11.2). `translate --cache --pipelines`
dies at the first of them and never finishes, and a run would die the
same way making one. They are the CS_RaytracingResolve programs of the
ped_standard materials: every *_muv* one in all three variants, and the
b1139868 variant of garment_2lyr (with ae7b7f3c), skin and
skin_tattoo_bake. Their neighbours in the pack make fine.

To find them and get past them:

- VICTORY_PREBUILD_TRACE=1: the pre-build prints each pipeline's shader
  hashes before making it, so the pipeline being made when the compiler
  crashes is printed last (alone with --jobs 1).
- VICTORY_SKIP_PIPELINES now holds for the pre-build too: a pipeline
  containing a listed shader is not made, where before only its draws
  and dispatches were left out.
- VICTORY_TRANSLATE_ONLY=<hash>,...: `translate` takes only the listed
  containers and labels them with their hash. With --pipelines a crash
  reproduces in seconds; with --list and VICTORY_EMIT_DUMP their DXIL is
  saved before the pipeline is made.

With the 61 hashes in VICTORY_SKIP_PIPELINES the pre-build completes
(28,164 in the pack: 21,880 made, 5,117 already in the library) and the
world of the first mission runs.

The 61 fail DXIL validation (dxil.dll 10.0.26100: "Function uses
features incompatible with the shader stage (cs)", implicit-derivative
samples in compute at validator 1.6), as do 11 of 22 neighbours that
make fine. That is not what crashes: with #1237's or #1065's change all
83 validate, and all 61 still crash the compiler, one process each.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01AiLxkjHZSYZ29brLZdBks6
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:50:26 +00:00
Author
Owner

@⁠DesertGamer on GitHub · 2026-11-25 02:19 UTC · original

VIctory V2: community PRs, merged and tested

Open PRs sitting in the queue? V2 pulls them into one build, screens each one (binaries, build scripts, hooks, new deps) and runs tests after every batch.

Where it stands today: launches, runs the menu at 30 fps, plays the intro video, reaches the start screen and loads the world (~50 s). Entering the world is the current blocker: rendering fails with a GPU "device removed" error (tracked in issue #1).

⚠️ Entering the world on a real GPU can hang it and make Windows reset the driver. Try it at your own risk.

Not playable yet, but every batch of merged fixes moves it closer. If you have a PR that's stuck, or a GPU to test on, I'd love your help:
https://DesertGamer/VIctory-V2

Unofficial community fork of Marvisak/VIctory, GPL-3.0.

**@⁠DesertGamer** on GitHub · 2026-11-25 02:19 UTC · [original](https://github.com/Marvisak/VIctory/pull/1972#issuecomment-7150579854) ### VIctory V2: community PRs, merged and tested Open PRs sitting in the queue? V2 pulls them into one build, screens each one (binaries, build scripts, hooks, new deps) and runs tests after every batch. **Where it stands today:** launches, runs the menu at 30 fps, plays the intro video, reaches the start screen and loads the world (~50 s). Entering the world is the current blocker: rendering fails with a GPU "device removed" error (tracked in issue #1). :warning: Entering the world on a real GPU can hang it and make Windows reset the driver. Try it at your own risk. Not playable yet, but every batch of merged fixes moves it closer. If you have a PR that's stuck, or a GPU to test on, I'd love your help: https://DesertGamer/VIctory-V2 *Unofficial community fork of Marvisak/VIctory, GPL-3.0.*
Author
Owner

@⁠BaggyALPHA on GitHub · 2026-11-25 06:10 UTC · original

Pointer in case it helps, since your blocker is that creation itself kills the process: VICTORY_SKIP_PIPELINES on current main does not prevent a pipeline from being made — I measured this today on an RTX 3080, where a skipped program is still translated and still created and only its draws and dispatches are dropped. So on main the switch cannot get translate --cache --pipelines past a pipeline whose creation crashes the compiler.

#1320 is the open pull request that moves the skip to creation time, and I verified on the same card that with it the program is never translated and never made (results). It needs a rebase onto 940d32f plus one fix for three call sites main has since added; the resolution is in that comment. With it your 61 hashes should be skippable in one go rather than one crash at a time.

AI-assisted (Claude Code); the measurement is from the runs described in the linked comment.

**@⁠BaggyALPHA** on GitHub · 2026-11-25 06:10 UTC · [original](https://github.com/Marvisak/VIctory/pull/1972#issuecomment-7154510324) Pointer in case it helps, since your blocker is that creation itself kills the process: `VICTORY_SKIP_PIPELINES` on current `main` does **not** prevent a pipeline from being made — I measured this today on an RTX 3080, where a skipped program is still translated and still created and only its draws and dispatches are dropped. So on `main` the switch cannot get `translate --cache --pipelines` past a pipeline whose creation crashes the compiler. [#1320](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1320) is the open pull request that moves the skip to creation time, and I verified on the same card that with it the program is never translated and never made ([results](https://git.gtahub.st/github/Marvisak--VIctory/pulls/1320)). It needs a rebase onto `940d32f` plus one fix for three call sites `main` has since added; the resolution is in that comment. With it your 61 hashes should be skippable in one go rather than one crash at a time. AI-assisted (Claude Code); the measurement is from the runs described in the linked comment.
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 08:26 UTC · original · edited 2026-11-25 22:19 UTC

Automated triage for the maintainers.

Needs rebase. This PR no longer merges cleanly into main (conflicts in README.md and crates/victory-gpu/src/pipeline.rs). It will be reviewed again once it is rebased.

From the earlier needs-work note, still open: drop the creation-time VICTORY_SKIP_PIPELINES check (skip_making) that overlaps #1320, keeping the trace and translate-only switches.


Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-25 08:26 UTC · [original](https://github.com/Marvisak/VIctory/pull/1972#issuecomment-7157028494) · edited 2026-11-25 22:19 UTC <!-- victory-triage v1 head=216f5fa24547a61056dbf9a2c1dd719de44c8375 verdict=needs-rebase at=2026-11-25T22:23:40Z --> Automated triage for the maintainers. **Needs rebase.** This PR no longer merges cleanly into `main` (conflicts in `README.md` and `crates/victory-gpu/src/pipeline.rs`). It will be reviewed again once it is rebased. From the earlier needs-work note, still open: drop the creation-time `VICTORY_SKIP_PIPELINES` check (`skip_making`) that overlaps #1320, keeping the trace and translate-only switches. --- _Generated by [Claude Code](https://claude.ai/code)_
This pull request has changes conflicting with the target branch.
  • README.md
  • crates/victory-gpu/src/pipeline.rs
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/1972/head:github-bot/gh-1972'
git switch 'github-bot/gh-1972'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1972'
git switch 'github-bot/gh-1972'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1972'
git switch 'github-bot/gh-1972'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1972'
git switch 'main'
git merge --squash 'github-bot/gh-1972'
git switch 'main'
git merge --ff-only 'github-bot/gh-1972'
git switch 'main'
git merge 'github-bot/gh-1972'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No reviewers
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/Marvisak--VIctory!1972
No description provided.