Native GPU run hangs AMD driver: GPU page fault on freed staging resource + view/sampler heap past end (DRED, RX 7900 XTX) #95
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#95
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@remembering7896 on GitHub · 2026-11-25 13:55 UTC · original
issue-belobug-amd-gpu-hang.md
Fork main @
71652a2, diag build (--features diagnostics). RX 7900 XTX, Ryzen 7 9800X3D, Win 10.0.26300, GTA VI Series 1.0.2.1, --console series-x. Boot/menus/saves work; entering the world on the native GPU resets the driver (DXGI_ERROR_DEVICE_HUNG 0x887A0006) every attempt.With VICTORY_D3D12_DEBUG=1 + VICTORY_D3D12_DRED=1, DRED reports:
page fault at 0xd7c423000 inside freed ["staging of 0x1d2096641f0 512x512x1 f99 (type 34)"]; view heap 0x104f30000+0x4600000 past its end (slot 1673165184); sampler heap 0x109538000+0x800 past its end (slot 3341740800). Breadcrumbs show all lists completing (done==count), so it is a mid-list out-of-bounds / use-after-free.
Looks related to the known 'per-draw descriptor slots too few for the heaviest places' limitation. WARP (VICTORY_D3D12_WARP=1) renders the world without a reset. Full crashes.log attached.
@ThatZaliaSGuy on GitHub · 2026-11-25 14:21 UTC · original
Same hang on an RX 7900 XTX with the fxceless fork (fxceless/victory-fork): intermittent there, 3 runs of about 8, always a minute or several into world load.
Radeon GPU Detective caught it twice:
s_load_b128of a descriptor itself: view-heap base + index × 32 past the end of the host view heap. No resource is at the faulting address.tbuffer_load_format_x), also with no resource at the address.What fixed the heap part for us is the fork's commit fxceless/victory-fork@31714de, taken from triippywhale's
fix/amd-view-heap-clamp. Every host view heap ends at a null slot, view indices past the heap are clamped to it, and the shader cache key includes the limit. With it: one 6-minute run in the world with no hang. That's one run only, so not proof yet. Upstream has several open PRs for the same clamp (Marvisak/VIctory#1133, Marvisak/VIctory#1777, Marvisak/VIctory#1779, Marvisak/VIctory#2121, Marvisak/VIctory#2177, Marvisak/VIctory#2185, Marvisak/VIctory#2315).On the freed staging resource: in our runs, the last things logged before the hang were sweeps letting go of texture staging buffers and window copies.
VICTORY_SWEEP=0would show whether the sweep frees one still in use; we haven't run that test yet.@remembering7896 on GitHub · 2026-11-25 14:28 UTC · original
victory-belobug-crashes.log
issue-belobug-amd-gpu-hang-followup.md
duces the hang):
set VICTORY_HAIR=1
target\diag\victory.exe run game_scarlett_master.exe --execute --console series-x
Capture the offending command / DRED (this is the data below):
set VICTORY_HAIR=1