Native GPU run hangs AMD driver: GPU page fault on freed staging resource + view/sampler heap past end (DRED, RX 7900 XTX) #95

Open
opened 2026-11-26 03:35:37 +00:00 by github-bot · 2 comments
Owner

@⁠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.

**@⁠remembering7896** on GitHub · 2026-11-25 13:55 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/issues/95) [issue-belobug-amd-gpu-hang.md](https://github.com/user-attachments/files/35415104/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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:35:37 +00:00
Author
Owner

@⁠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:

  • A page fault on the s_load_b128 of a descriptor itself: view-heap base + index × 32 past the end of the host view heap. No resource is at the faulting address.
  • Once through a descriptor slot holding a dead buffer view (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=0 would show whether the sweep frees one still in use; we haven't run that test yet.

**@⁠ThatZaliaSGuy** on GitHub · 2026-11-25 14:21 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/issues/95#issuecomment-7165139966) 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: - A page fault on the `s_load_b128` of a descriptor itself: view-heap base + index × 32 past the end of the host view heap. No resource is at the faulting address. - Once through a descriptor slot holding a dead buffer view (`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=0` would show whether the sweep frees one still in use; we haven't run that test yet.
Author
Owner

@⁠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

**@⁠remembering7896** on GitHub · 2026-11-25 14:28 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/issues/95#issuecomment-7165346115) [victory-belobug-crashes.log](https://github.com/user-attachments/files/35416722/victory-belobug-crashes.log) [issue-belobug-amd-gpu-hang-followup.md](https://github.com/user-attachments/files/35416721/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
This discussion has been locked. Commenting is limited to contributors.
No description provided.