victory-gpu: guard against AMD driver 0xc0000005 and default to Series S profile #185
No reviewers
Labels
No labels
accessibility
already-solved
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
merged
needs-decision
needs-game-run
needs-rebase
not-merged
nvidia
obsolete
question
security
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/avatarmanz--VIctory-7900XTX!185
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-185"
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?
@Willian-Massao on GitHub · 2026-11-26 10:44 UTC · original
Willian-Massao:fix/amd-driver-seh-guard-and-series-s→main· +108 −9 · 10 files · 1 commits · openProblem
When running on an AMD Radeon RX 9070 XT (RDNA4,
amdxc64.dll8.18.10.0514), background compute pipeline compilation triggers an unhandled null pointer dereference (0xc0000005,read 0x8: nothing mapped thereatamdxc64.dll+0x861b9f,rcx = 0x0) during early loading / intro cutscenes (FBK_STRY000_INTRO, frame 1395). Without an SEH guard, this terminates the game process.Additionally, the default Series X profile allocates heavy 4K memory buffers, putting extreme pressure on memory budgets.
Changes
crates/victory-gpu/src/pipeline/seh_guard.c+build.rs): WrapsHostPipeline::newin a minimal Windows SEH__try / __except (EXCEPTION_ACCESS_VIOLATION)block so driver compiler crashes do not terminate the process.crates/victory-gpu/src/pipeline/make.rs&library.rs):bad_shaders.txtin the pipeline cache directory (library::bad_shaders_path()).bad_shaders.txtandVICTORY_SKIP_PIPELINESbefore calling the driver on subsequent runs to skip known failing shaders cleanly.VICTORY_CONSOLEenvironment variable support.SeriesSas the default console profile (Console::SeriesS, Lockhart device type0x60), significantly reducing memory footprint and initial asset weight.VICTORY_PIPELINE_THREADSalongsideVICTORY_PIPELINE_WORKERS.Measured Gameplay Verification (AMD Radeon RX 9070 XT)
With these changes applied, the game successfully passes the intro cutscenes without crashing and reaches stable active gameplay:
69c39e7b56to36793b9a4cView 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.