Skip to content

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

Open
J-DB0 wants to merge 1 commit into
Marvisak:mainfrom
J-DB0:prebuild-compiler-crashes
Open

J-DB0 wants to merge 1 commit into
Marvisak:mainfrom
J-DB0:prebuild-compiler-crashes

Conversation

@J-DB0

@J-DB0 J-DB0 commented Nov 25, 2026

Copy link
Copy Markdown

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.

…rashes on

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 Marvisak#1237's or Marvisak#1065's change all
83 validate, and all 61 still crash the compiler, one process each.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AiLxkjHZSYZ29brLZdBks6

@catminou4 catminou4 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Static review only: apps/diagnostics + gpu — Windows-only paths; source review of the diff.

Diagnostics: find/reproduce/skip pipelines the host's…: pipeline diagnostic tooling (README+apps+gpu) — useful for the NVIDIA issue hunt.

@DesertGamer

Copy link
Copy Markdown

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.

@BaggyALPHA

Copy link
Copy Markdown
Contributor

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.

Copy link
Copy Markdown
Owner

Automated triage for the maintainers.

Needs work. This is a small change with one overlap to sort out.

The PR adds three diagnostics:

  • VICTORY_PREBUILD_TRACE (in apps/victory/src/prebuild.rs run, using the existing shaders_of)
  • VICTORY_TRANSLATE_ONLY (only / container_hash in apps/victory/src/translate.rs, with the same container-size rule as the hashing at translate.rs:362)
  • a creation-time VICTORY_SKIP_PIPELINES check (skip_making in crates/victory-gpu/src/pipeline.rs, called at the top of HostPipeline::new)

The first two are useful for isolating host-compiler crashes like the one described, and they read correctly. CI (check) passes.

The overlap is the third part. The open #1320 also moves VICTORY_SKIP_PIPELINES to creation time, and earlier: in Pending::new, so a skipped pipeline is never queued or translated. #1320 already has a merge-candidate label. With both merged, there would be two skip points for the same switch. Please drop skip_making, the skip_hashes split and the README wording about it, and build on #1320 (or say here why the check in HostPipeline::new is still needed with it). The trace and translate-only switches, with their README rows, can then go in on their own.


Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants