Repository navigation
Conversation
A fault inside the host driver's shader compiler (amdxc64.dll+0x861b9f on RDNA4, fxceless#120, fxceless#145, fxceless#505) names only the driver's code, so finding the program behind it took one process per pipeline. The pipeline library already keeps the calls running, with their shaders, for the device-removed log line; what the crash log keeps now lists them too, with the reporting thread's call marked (in the report of an exception, the faulting thread): pipeline library: make of <name> [compute <hash>] running for 1234.5 ms on thread 4321 (the reporting thread) That is the report of an unhandled exception and every `log_crash` failure: a host GPU failure (the device-removed list went to the log only, so crashes.log said "device removed" with no pipeline), a commit-limit failure, an unimplemented import. victory-loader does not depend on victory-gpu, so it takes notes from other crates (`note_on_crash`); d3d12x adds the GPU's at device creation, next to `on_failure`. A note runs on the reporting thread and does not wait for a lock that thread may hold. Pipelines made with no host library are listed as well.
|
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 AI-assisted (Claude Code); no game data. |
Formats: inline repeated micro-tile copies when detiling textures
A 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; GPU: keep clippy green without the diagnostics feature #491 and Keep clippy green without the diagnostics feature #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.