Crash log: name the pipelines the host driver was compiling #603
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/fxceless--victory-fork!603
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-603"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@hxghr6 on GitHub · 2026-11-25 02:59 UTC · original
hxghr6:diag/crash-names-pipeline→main· +152 −17 · 5 files · 1 commits · openA fault inside the host driver's shader compiler names only the driver's code (
amdxc64.dll+0x861b9fin #120 and #145,+0x85fd0fin #422), and #505 could only say it happened "while several pipelines compile at once". The pipeline library already keeps the calls running, with their shaders, for the device-removed log line. This puts the same list into whatcrashes.logkeeps, with the reporting thread's call marked (in the report of an exception, that is the faulting thread):Change
victory-loader:note_on_crash(fn() -> String)registers a line for the crash log, once per function. Notes go into the report of an unhandled exception and into everylog_crashfailure (host GPU failure, commit limit, unimplemented import). They run on the reporting thread and wait for no lock that thread may hold (try_lock).victory-gpu:pipeline::crash_note()lists the library's running calls, with the same formatter as the device-removed note. Pipelines made with no host library are recorded as calls too.victory-hle:D3D12XboxCreateDeviceregisters the GPU's note next toon_failure.victory-loader does not depend on victory-gpu, hence the registry.
Tested on an RX 9070 XT
Windows 11, Adrenalin 32.0.31044.16, diag build of this branch on
mainc96b4f2, the title run into the world with scripted keys.A fault inside the driver's compiler. This driver does not hit the
0x861b9fcrash by itself, so while the world's pipelines compiled, a thread that was insideamdxc64.dllwas made to call address 0x10 from where it was (its return address pushed, so the stack walk goes on into the driver).crashes.log:The driver compiles on the thread that creates the pipeline (victory, then D3D12Core, then amdxc64), so the marked call is the pipeline the driver was compiling: here 39f0e9aeb156a61c, the compute shader of #505, 75 s into its compile.
A host GPU failure. On this card the device is sometimes removed (0x887A0006) during a world load with a cold driver shader cache. The same failure in
crashes.log, from an earlier build of this branch whoselog_crashwas stillmain's, and from this one:No call is marked there: the thread that reported the failure was not making a pipeline.
Checks
pipeline::library::tests::a_crash_names_the_pipeline_the_reporting_thread_makes(the call is marked on the making thread only; a held list gives a line instead of a wait) andcrash::tests::crash_notes_are_added_once_and_said_in_order(once per function, in order, kept bylog_crash, no wait on a held list).cargo test --workspace --locked: 507 passed, 0 failed (GPU tests on the RX 9070 XT, DXIL validation on).cargo clippy --workspace --all-targets --all-features --locked -- -D warnings: clean.cargo clippy --workspace --all-targets --locked -- -D warnings: its one error isresource::placed_filler_twinsnever used, already onmainc96b4f2(main's CI run fails the same way; #491 and #530 fix it).cargo xtask policy: ok.Related
#458 and #520 name, in the log, a pipeline a worker has held for a minute while the run goes on (a compile that never ends). This names the pipelines in the crash log when the run ends (a compile that crashes, or any failure the crash log keeps). Not covered:
victory translate --pipelinesinstalls no crash reporter.@MamaLeVrai on GitHub · 2026-11-25 10:59 UTC · original
Test report on real hardware: AMD RX 6950 XT (RDNA2), Windows 11, Rust 1.98.1, with a GPU present. I merged this PR's head
af58134intomainf85101bin a throwaway tree (no conflict).cargo clippy --workspace --all-targets --locked -- -D warningsfails with exactly the errorsmainitself has on this machine (placed_filler_twins,depth_written, a sort; PR #841 fixes them); with--all-featuresit fails with the same number of errors asmain(4). This PR adds none and removes none.cargo test --workspace --locked: run 1: 557 passed, 0 failed, 11 ignored (mainalone: 555 passed). In run 2 thevictory-gputest binary died with an access violation, which I also see onmainalone about 8 times in 100 runs (issue #850), so I do not attribute it to this PR. The title was not run, so this says nothing about in-game effect. No game data.AI-assisted (Claude Code); no game data.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.