RX 6650 XT (RDNA 2): Isolated second page-fault crash to compute shader 3e28ebd6128bd351 — fixed by NonUniformResourceIndex=true #13

Open
opened 2026-12-05 21:42:26 +00:00 by github-bot · 1 comment
Owner

@⁠TrinityForever15 on GitHub · 2026-12-05 21:39 UTC · original

Summary

On an AMD Radeon RX 6650 XT (RDNA 2), even with heap_first_lane=true (rdna2-test3 / amd-4 / amd-4.2) and quad_live=false (amd-4), the game deterministically hit a GPU page fault (0x887A0006) ~20 seconds into the opening cutscene — matching the "some RX 6000 cards still crash later (15 s up to 20 min, often in a cutscene)" known issue.

Using LARP_SKIP_PIPELINES binary search + DXIL disassembly, we isolated the fault to a single compute shader (3e28ebd6128bd351) and verified a real fix: emitting NonUniformResourceIndex = true (instead of WaveReadLaneFirst + nonuniform = false) on its dynamic createHandleFromHeap calls completely eliminates the crash with zero skipped shaders.


Hardware & Setup

  • GPU: AMD Radeon RX 6650 XT (8 GB, RDNA 2 / GFX10.3), driver 32.0.21045.29003
  • CPU / RAM / OS: Ryzen 5 9600X, 32 GB RAM, Windows 11 Pro x64
  • Console / Options: Xbox Series S, 1920x1080, stream_budget = 2500, LARP_FSR_VERSION=3 (FSR 3.1.6), heap_first_lane = default (true), bvh_fences = true, rdna2 = true
  • Tested builds: v2026.12.05-amd-rdna2-test3 (f6954fc), v2026.12.05-amd-4 (d444d19), and v2026.12.05-amd-4.2 (257438a)

Diagnostic Findings

  1. Confirmed View Heap fault:

    • Normal runs (view heap at 0x1006b5000+0x1e84800): page fault at 0x1eb033000 (offset 0xEA97E000, slot 122,994,432).
    • With LARP_D3D12_DEBUG=1 (view heap shifted by +0x280000 to 0x100935000): page fault at 0x1eb2b3000 — shifted by the exact same +0x280000 (identical offset 0xEA97E000, slot 122,994,432).
    • Also tested LARP_RT_WHOLE=1, mesh_counts = exact, and quad_live = false: none fixed it.
  2. DRED breadcrumbs were misleading (async fault from an earlier in-flight submission):

    • DRED always stopped right after the indirect mesh draw list (338/338, ending in mesh 9aff566ca0fa7c98 / mesh c0f0db84d228f441) at 0/66 (BEGIN_COMMAND_LIST) of the next submission.
    • However, skipping all 22 shaders of that indirect mesh draw list (338/338 dropped to 4/4) still crashed identically.
    • Skipping all remaining title shaders in that submission also still crashed identically.
    • Binary searching the older in-flight submission in landing at the removal (a 39-shader compute list) narrowed it down 80 -> 39 -> 20 -> 10 -> 5 -> 2 -> 1 to compute 3e28ebd6128bd351.
    • Skipping only 3e28ebd6128bd351 passed the opening cutscene cleanly into first gameplay.
  3. DXIL Inspection & Working Fix:

    • Disassembling the translated DXIL of 3e28ebd6128bd351 (NumThreads=(64,1,1)) showed that all dynamic createHandleFromHeap calls (ByteAddressBuffer, RWByteAddressBuffer, CBuffer, and 12 Texture2D loads/samples inside divergent branches) were emitted as:
      %w = call i32 @dx.op.waveReadLaneFirst.i32(i32 118, i32 %idx)
      %c = call i32 @dx.op.binary.i32(i32 40, i32 %w, i32 999999) ; UMin
      %h = call %dx.types.Handle @dx.op.createHandleFromHeap(i32 218, i32 %c, i1 false, i1 false)
      
    • Re-translating 3e28ebd6128bd351 with nonuniform = true (createHandleFromHeap(UMin(%idx, 999999), i1 false, i1 true), without waveReadLaneFirst on the heap handle) in crates/larp-shader/src/emit/shader.rs (Shader::heap_handle), signing with dxil.dll, and loading it via bin\shader-replace\3e28ebd6128bd351.compute.dxil (confirmed applied in play.log, zero skipped pipelines):
      • Result: Passed the opening cutscene into gameplay on a fresh save with zero crashes.

Possible Next Step for larp-amd

Since heap_first_lane (WaveReadLaneFirst + nonuniform = false) fixes pixel shaders on RDNA 2, while compute shaders like 3e28ebd6128bd351 with per-lane dynamic heap indices still fault with WaveReadLaneFirst and work cleanly with NonUniformResourceIndex = true, it may be worth testing nonuniform = true for dynamic heap_handle() calls in compute shaders on RDNA 2 (or via a switch/test build) to see if it also resolves the remaining "15 s to 20 min / shooting" RX 6000 crashes.

Happy to test any follow-up builds or provide full logs if helpful!

**@⁠TrinityForever15** on GitHub · 2026-12-05 21:39 UTC · [original](https://github.com/iceboerg00/larp-amd/issues/13) ### Summary On an **AMD Radeon RX 6650 XT (RDNA 2)**, even with `heap_first_lane=true` (`rdna2-test3` / `amd-4` / `amd-4.2`) and `quad_live=false` (`amd-4`), the game deterministically hit a GPU page fault (`0x887A0006`) ~20 seconds into the opening cutscene — matching the *"some RX 6000 cards still crash later (15 s up to 20 min, often in a cutscene)"* known issue. Using `LARP_SKIP_PIPELINES` binary search + DXIL disassembly, we isolated the fault to a **single compute shader (`3e28ebd6128bd351`)** and verified a real fix: **emitting `NonUniformResourceIndex = true` (instead of `WaveReadLaneFirst` + `nonuniform = false`) on its dynamic `createHandleFromHeap` calls completely eliminates the crash** with zero skipped shaders. --- ### Hardware & Setup - **GPU:** AMD Radeon RX 6650 XT (8 GB, RDNA 2 / GFX10.3), driver `32.0.21045.29003` - **CPU / RAM / OS:** Ryzen 5 9600X, 32 GB RAM, Windows 11 Pro x64 - **Console / Options:** Xbox Series S, `1920x1080`, `stream_budget = 2500`, `LARP_FSR_VERSION=3` (FSR `3.1.6`), `heap_first_lane = default` (`true`), `bvh_fences = true`, `rdna2 = true` - **Tested builds:** `v2026.12.05-amd-rdna2-test3` (`f6954fc`), `v2026.12.05-amd-4` (`d444d19`), and `v2026.12.05-amd-4.2` (`257438a`) --- ### Diagnostic Findings 1. **Confirmed View Heap fault:** - Normal runs (`view heap` at `0x1006b5000+0x1e84800`): `page fault at 0x1eb033000` (offset `0xEA97E000`, slot `122,994,432`). - With `LARP_D3D12_DEBUG=1` (`view heap` shifted by `+0x280000` to `0x100935000`): `page fault at 0x1eb2b3000` — shifted by the **exact same `+0x280000`** (identical offset `0xEA97E000`, slot `122,994,432`). - Also tested `LARP_RT_WHOLE=1`, `mesh_counts = exact`, and `quad_live = false`: none fixed it. 2. **DRED breadcrumbs were misleading (async fault from an earlier in-flight submission):** - DRED always stopped right after the indirect mesh draw list (`338/338`, ending in `mesh 9aff566ca0fa7c98` / `mesh c0f0db84d228f441`) at `0/66` (`BEGIN_COMMAND_LIST`) of the next submission. - However, skipping **all 22 shaders** of that indirect mesh draw list (`338/338` dropped to `4/4`) still crashed identically. - Skipping all remaining title shaders in that submission also still crashed identically. - Binary searching the older in-flight submission in `landing at the removal` (a 39-shader compute list) narrowed it down `80 -> 39 -> 20 -> 10 -> 5 -> 2 -> 1` to **`compute 3e28ebd6128bd351`**. - Skipping **only `3e28ebd6128bd351`** passed the opening cutscene cleanly into first gameplay. 3. **DXIL Inspection & Working Fix:** - Disassembling the translated DXIL of `3e28ebd6128bd351` (`NumThreads=(64,1,1)`) showed that all dynamic `createHandleFromHeap` calls (`ByteAddressBuffer`, `RWByteAddressBuffer`, `CBuffer`, and 12 `Texture2D` loads/samples inside divergent branches) were emitted as: ```llvm %w = call i32 @dx.op.waveReadLaneFirst.i32(i32 118, i32 %idx) %c = call i32 @dx.op.binary.i32(i32 40, i32 %w, i32 999999) ; UMin %h = call %dx.types.Handle @dx.op.createHandleFromHeap(i32 218, i32 %c, i1 false, i1 false) ``` - Re-translating `3e28ebd6128bd351` with `nonuniform = true` (`createHandleFromHeap(UMin(%idx, 999999), i1 false, i1 true)`, without `waveReadLaneFirst` on the heap handle) in `crates/larp-shader/src/emit/shader.rs` (`Shader::heap_handle`), signing with `dxil.dll`, and loading it via `bin\shader-replace\3e28ebd6128bd351.compute.dxil` (confirmed applied in `play.log`, zero skipped pipelines): - **Result:** Passed the opening cutscene into gameplay on a fresh save with **zero crashes**. --- ### Possible Next Step for `larp-amd` Since `heap_first_lane` (`WaveReadLaneFirst` + `nonuniform = false`) fixes pixel shaders on RDNA 2, while compute shaders like `3e28ebd6128bd351` with per-lane dynamic heap indices still fault with `WaveReadLaneFirst` and work cleanly with `NonUniformResourceIndex = true`, it may be worth testing `nonuniform = true` for dynamic `heap_handle()` calls in **compute shaders** on RDNA 2 (or via a switch/test build) to see if it also resolves the remaining *"15 s to 20 min / shooting"* RX 6000 crashes. Happy to test any follow-up builds or provide full logs if helpful!
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-05 21:42:26 +00:00
Author
Owner

@⁠justr4mzi on GitHub · 2026-12-05 22:30 UTC · original

RX 6700 XT / same AMD driver: two late DXGI_ERROR_DEVICE_HUNG crashes on Fix 4.2, with 3e28ebd6128bd351 in flight.

  • Fix 4.2 (v2026.12.05-amd-4.2, engine f6954fc), RX 6700 XT 12 GiB, driver 32.0.21045.29003, Windows 11 build 26200. rdna2=true, heap_first_lane=true, bvh_fences=true, host wave64, 1,000,000 view descriptors.
  • Series S: FSR 4.1.2 Quality at the crash (1280x720 to 1920x1080); frame generation had been turned off 2m54s earlier. Present returned 0x887A0005 about 6m11s after the first sample above 3,000 draws/frame. Removal reason 0x887A0006; 3 submissions ahead of 96 lists.
  • Series X: FSR 4.1.2 Quality (1280x720 to 1920x1080), frame generation off throughout. Present returned 0x887A0005 about 51s after the first sample above 3,000 draws/frame. Removal reason 0x887A0006; 1 submission ahead of 32 lists. The last sample was 18.2 fps, 54.8 ms/frame, 7879 draws/frame, with 0 without a host pipeline (0 being made).
  • Both logs list [compute 3e28ebd6128bd351] among pipelines in the landing at the removal and in the line at the removal entries. No DRED breadcrumbs were available in either run, and the shader being in flight alone does not establish that it caused either hang. Both runs were on the unmodified Fix 4.2 shader. This is a follow-up to the earlier Fix 4 report.
**@⁠justr4mzi** on GitHub · 2026-12-05 22:30 UTC · [original](https://github.com/iceboerg00/larp-amd/issues/13#issuecomment-7446790014) **RX 6700 XT / same AMD driver: two late `DXGI_ERROR_DEVICE_HUNG` crashes on Fix 4.2, with `3e28ebd6128bd351` in flight.** - Fix 4.2 (`v2026.12.05-amd-4.2`, engine `f6954fc`), RX 6700 XT 12 GiB, driver `32.0.21045.29003`, Windows 11 build 26200. `rdna2=true`, `heap_first_lane=true`, `bvh_fences=true`, host wave64, 1,000,000 view descriptors. - **Series S:** FSR 4.1.2 Quality at the crash (1280x720 to 1920x1080); frame generation had been turned off 2m54s earlier. `Present` returned `0x887A0005` about 6m11s after the first sample above 3,000 draws/frame. Removal reason `0x887A0006`; 3 submissions ahead of 96 lists. - **Series X:** FSR 4.1.2 Quality (1280x720 to 1920x1080), frame generation off throughout. `Present` returned `0x887A0005` about 51s after the first sample above 3,000 draws/frame. Removal reason `0x887A0006`; 1 submission ahead of 32 lists. The last sample was `18.2 fps, 54.8 ms/frame`, `7879 draws/frame`, with `0 without a host pipeline (0 being made)`. - Both logs list `[compute 3e28ebd6128bd351]` among pipelines in the `landing at the removal` and `in the line at the removal` entries. No DRED breadcrumbs were available in either run, and the shader being in flight alone does not establish that it caused either hang. Both runs were on the unmodified Fix 4.2 shader. This is a follow-up to the earlier [Fix 4 report](https://github.com/iceboerg00/larp-amd/commit/d444d19103b0828bf9e03ecf0ec9715696abdae1#commitcomment-213593841).
This discussion has been locked. Commenting is limited to contributors.
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.

Dependencies

No dependencies set

Reference
github/iceboerg00--larp-amd#13
No description provided.