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-25 13:55:44 +00:00 by remembering7896 · 2 comments
remembering7896 commented 2026-11-25 13:55:44 +00:00 (Migrated from github.com)
Contributor

Imported from Belobug/VIctory-Belobug-AMD. Originally posted by remembering7896 on 2026-11-25T13:55:44Z.


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.

<!-- greyfinch-sync:Belobug/VIctory-Belobug-AMD:issue:6606112875 --> Imported from [Belobug/VIctory-Belobug-AMD](https://github.com/Belobug/VIctory-Belobug-AMD/issues/95). Originally posted by [remembering7896](https://github.com/remembering7896) on 2026-11-25T13:55:44Z. --- [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.
ThatZaliaSGuy commented 2026-11-25 14:21:00 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Belobug/VIctory-Belobug-AMD. Originally posted by ThatZaliaSGuy on 2026-11-25T14:21:00Z.


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.

<!-- greyfinch-sync:Belobug/VIctory-Belobug-AMD:comment:7165139966 --> Imported from [Belobug/VIctory-Belobug-AMD](https://github.com/Belobug/VIctory-Belobug-AMD/issues/95#issuecomment-7165139966). Originally posted by [ThatZaliaSGuy](https://github.com/ThatZaliaSGuy) on 2026-11-25T14:21:00Z. --- 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.
remembering7896 commented 2026-11-25 14:28:57 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Belobug/VIctory-Belobug-AMD. Originally posted by remembering7896 on 2026-11-25T14:28:57Z.


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

<!-- greyfinch-sync:Belobug/VIctory-Belobug-AMD:comment:7165346115 --> Imported from [Belobug/VIctory-Belobug-AMD](https://github.com/Belobug/VIctory-Belobug-AMD/issues/95#issuecomment-7165346115). Originally posted by [remembering7896](https://github.com/remembering7896) on 2026-11-25T14:28:57Z. --- [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
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Belobug/VIctory-Belobug-AMD#95
No description provided.