Tests: identify native compute PSO crashes before HRESULT handling #418
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/Belobug--VIctory-Belobug-AMD!418
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-418"
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?
@VlREX on GitHub · 2026-11-27 00:34 UTC · original
VlREX:virex/compute-pso-crash-diagnostics→a-publier· +21 −1 · 1 files · 1 commits · openImprovement
Add test-only diagnostics around native D3D12 compute pipeline creation to identify driver crashes before HRESULT handling.
VIREX Test Studio findings
Baseline crash reproduced on Belobug PR #360:
Related to #339 and complementary to #277.
Validation
@VlREX on GitHub · 2026-11-27 00:41 UTC · original
Hardware validation update — VIREX Test Studio
Tested the PR #418 diagnostic changes on top of PR #360 (Agility SDK 1.620.2).
The diagnostic output successfully isolated the native crash:
The native pipeline call never returned. Previous Windows event logs identified amdxc64.dll at offset 0x861B9F.
The crash diagnostic functionality is confirmed on physical AMD hardware. This patch does not claim to fix the underlying driver crash.
@MamaLeVrai on GitHub · 2026-11-27 02:26 UTC · original
Tested on an RX 6950 XT (RDNA 2), driver 32.0.21045.29003, Windows 11 build 26300, Rust 1.98.1, release. At
4bba225:cargo test --release -p victory-shader --lib303 passed, 0 failed, 4 ignored.AI-assisted (Claude Code); no game data.
@lvndrpup on GitHub · 2026-11-27 03:31 UTC · original · reviewed
One thing to check before relying on these lines: libtest keeps each test's
eprintln!output in a buffer and prints it only when the test ends and fails. A driver fault ends the process first, so the lines are lost unless the run has--nocapture.I checked with a throwaway crate on Windows 11 (Rust 1.98.1). It had one test that prints a line and then writes through a null pointer (0xC0000005, as
amdxc64.dlldoes):cargo testcargo test -- --test-threads=1test crashes_in_the_driver ...before the test runscargo test -- --nocaptureSo
--test-threads=1already names the test that crashed. What these lines add is which call was under way, and only with--nocapture. It may help to say in the PR (or in a comment beside the firsteprintln!) that a crash hunt runs withcargo test -p victory-shader --lib -- --nocapture --test-threads=1.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.