amd-dev: GPU page fault at an unallocated VA (cs d79af1d04922a49b) during world loading on RX 6800, after the #2582 fix #2609

Open
opened 2026-11-26 02:27:31 +00:00 by bobosneefdev · 13 comments
bobosneefdev commented 2026-11-26 02:27:31 +00:00 (Migrated from github.com)
Contributor

Imported from ivall/xcl. Originally posted by bobosneefdev on 2026-11-26T02:27:31Z.


Game and package version
GTA VI (Xbox Series X|S package), 1.0.2.1

What happens
On amd-dev, with the #2582 fix in (e4b66e5), the title gets past the old +0x501eb50 crash point, but the GPU now faults a few minutes into world loading: device removed 0x887a0006, about 6–9 min after launch, once the title records 3 500–7 400 draws per 2 s. 6 of 6 runs on 6a0bb5b and b5c0275.

With XCL_DRED=1 (run 28, b5c0275), DRED reports a page fault:

D3D12 device removed: 0x887a0006 The GPU will not respond to more commands, ...
DRED page fault at GPU VA 0x15f209000; allocations there: []; recently freed: []
DRED: list 0x13fae64dc0 on queue 0x38f5a1e0: 0 of 5 operations done, around: >46 0 6; bound after it: cs d79af1d04922a49b
DRED: list 0x0 on queue 0x38f5a1e0: 0 of 10 operations done, around: >46 0 15; bound after it: cs d79af1d04922a49b, pipeline 0x134bd51dc0 (a stand-in, or not translated)
  • No allocation was ever at 0x15f209000 and nothing was freed there, and it is outside the UMA windows (the log adds no = window N).
  • The only queue with a pipeline at the fault is 0x38f5a1e0, and the pipeline is the compute shader d79af1d04922a49b (a 5 284 B xbox-native CS).
  • The removal does not depend on these switches; each run had one of them changed and every run removed the device at the same point:
    • XCL_PSO_FRAME_BUDGET_MS=off (no pipeline skips logged)
    • XCL_SPLIT_MIDLIST_WAIT=0 (no splits logged)
    • XCL_INDIRECT_PRELUDE=0 (no prelude batches logged)
  • Builds without the #2582 fix (04e0b95, aa5dbf7, ecf25c0) crash at +0x501eb50 before they get this far (at most ~800 draws per 2 s), so a bisect could not tell whether they have it too.

Env for every run: XCL_COHERENT_MB=512 XCL_NETWORK=0 XCL_ACTIVITY=1, plus the one switch above or XCL_DRED=1.

XCL version
amd-dev at 6a0bb5b (runs 20–24) and b5c0275 (run 28, DRED), release build

GPU and driver version
AMD Radeon RX 6800, 32.0.21045.29003; Ryzen 5 5600X3D, 64 GB

Windows version
Windows 11 Pro 26200

report.json and xcl.log
I have the full logs of all runs (run 28 with the DRED output) and can attach them.

Tested and written up with Claude Code (Claude Opus 5.5). I checked it before posting.

<!-- greyfinch-sync:ivall/xcl:issue:6618181793 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/2619). Originally posted by [bobosneefdev](https://github.com/bobosneefdev) on 2026-11-26T02:27:31Z. --- **Game and package version** GTA VI (Xbox Series X|S package), 1.0.2.1 **What happens** On `amd-dev`, with the #2582 fix in (`e4b66e5`), the title gets past the old `+0x501eb50` crash point, but the GPU now faults a few minutes into world loading: device removed `0x887a0006`, about 6–9 min after launch, once the title records 3 500–7 400 draws per 2 s. 6 of 6 runs on `6a0bb5b` and `b5c0275`. With `XCL_DRED=1` (run 28, `b5c0275`), DRED reports a page fault: ``` D3D12 device removed: 0x887a0006 The GPU will not respond to more commands, ... DRED page fault at GPU VA 0x15f209000; allocations there: []; recently freed: [] DRED: list 0x13fae64dc0 on queue 0x38f5a1e0: 0 of 5 operations done, around: >46 0 6; bound after it: cs d79af1d04922a49b DRED: list 0x0 on queue 0x38f5a1e0: 0 of 10 operations done, around: >46 0 15; bound after it: cs d79af1d04922a49b, pipeline 0x134bd51dc0 (a stand-in, or not translated) ``` - No allocation was ever at `0x15f209000` and nothing was freed there, and it is outside the UMA windows (the log adds no `= window N`). - The only queue with a pipeline at the fault is `0x38f5a1e0`, and the pipeline is the compute shader `d79af1d04922a49b` (a 5 284 B `xbox-native` CS). - The removal does not depend on these switches; each run had one of them changed and every run removed the device at the same point: - `XCL_PSO_FRAME_BUDGET_MS=off` (no pipeline skips logged) - `XCL_SPLIT_MIDLIST_WAIT=0` (no splits logged) - `XCL_INDIRECT_PRELUDE=0` (no prelude batches logged) - Builds without the #2582 fix (`04e0b95`, `aa5dbf7`, `ecf25c0`) crash at `+0x501eb50` before they get this far (at most ~800 draws per 2 s), so a bisect could not tell whether they have it too. Env for every run: `XCL_COHERENT_MB=512 XCL_NETWORK=0 XCL_ACTIVITY=1`, plus the one switch above or `XCL_DRED=1`. **XCL version** `amd-dev` at `6a0bb5b` (runs 20–24) and `b5c0275` (run 28, DRED), release build **GPU and driver version** AMD Radeon RX 6800, 32.0.21045.29003; Ryzen 5 5600X3D, 64 GB **Windows version** Windows 11 Pro 26200 **report.json and xcl.log** I have the full logs of all runs (run 28 with the DRED output) and can attach them. Tested and written up with Claude Code (Claude Opus 5.5). I checked it before posting.
qnfn commented 2026-11-26 16:06:19 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by qnfn on 2026-11-26T15:43:15Z.


Same fault on a 12 GB RDNA2 card with 16 GB of RAM, amd-dev b5c0275f: 5 of 5 warm runs that reached the world removed the device the same way. Three more switches don't change it, and the shader's raw memory paths look clean, which leaves its texture reads.

Setup: RX 6750 XT 12 GB (RDNA2), driver 32.0.21045.29003, Ryzen 7 5700X, 16 GB RAM, Windows 11 Pro 26300, release. Retail title 1.0.2.1, Series X profile. Env for every run: XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_PSO_PRELOAD=0 XCL_DXC_THREADS=4 XCL_SPLIT_MIDLIST_WAIT=0 XCL_TEXTURE_LEVEL_PAGES=1 XCL_PAGE_ALIAS=1 XCL_COHERENT_HEAPS=0 XCL_COHERENT_MB=512, scripted A presses. Shader and driver caches warm. Tree: b5c0275f plus local log lines only (a counter and the diagnostic below, no behaviour change).

run extra switch device removed DRED
1 – ~470 s (DRED off)
2 XCL_SPLIT_INDIRECT_ROUNDS=2 ~315 s (DRED off)
3 XCL_DRED=1 ~327 s page fault at 0x1f01c0000, allocations there: []; recently freed: [], list 0 of 13 operations done, around: >46 0 6, bound cs d79af1d04922a49b
4 XCL_DRED=1 XCL_AMBIENT=0 ~504 s same: 0x11a8cd000, >46 0 6, cs d79af1d04922a49b
5 XCL_DRED=1 XCL_VRAM_IO=0 ~300 s same: 0x1d304d000, >46 0 6, cs d79af1d04922a49b
  • The faulting list is always a fresh one: BEGIN_COMMAND_LIST, a marker, and the first Dispatch with this CS bound.
  • Not the ambient stand-in. In runs 1–3 the device goes a few log lines after the second ambient: applied TemporalResolve/ReflectionHistory stand-in. With XCL_AMBIENT=0 (run 4: no stand-in applied at all), the fault is the same.
  • Not the VRAM io slots (XCL_VRAM_IO=0, run 5).
  • XCL_SPLIT_INDIRECT_ROUNDS=2 only made it come sooner, with more draws skipped (7,621 against 2,018).
  • Memory at the removal, for context: process commit 19.5–19.7 GB, local video memory 10.3 GB on the 12 GB card, non-local 1.3 GB.

Where the shader can fault. From its translated HLSL (xcl shaders shaders.rpf --export-hlsl … --record-hash d79af1d04922a49b):

  • Its only io accesses are 57 io.Load(<constant>); it never touches res.
  • Every buffer access goes through XCL_MW, the heap windows, each a raw UAV with a size. An address outside them takes the null view at MEM_HEAP_NULL, which set_window_views writes.
  • A local log of the root UAVs bound for its dispatches (in a run that stalled before the fault) gives io/res in one upload block (0x689000xxx) and windows at 0x320140000, 0x420180000, 0x5201c0000, 0x300100000. All five fault addresses (#2619's 0x15f209000 and the four above) lie below the windows and in no allocation.
  • That leaves its 8 image_load_mip reads: ResourceDescriptorHeap[NonUniformResourceIndex(s12)], with s12 taken from the T# the title gives, behind t_ok = ((s15 >> 28) >= 8u) && ((s13 & 0xFF) == 0u) && (s12 < 999999u). A slot below 999,999 that holds a descriptor of a resource freed long ago (outside DRED's recently-freed list), or that was never written, would fault exactly like this. I have not proven which slot it is: that needs the slot index read on the GPU, which I haven't done.

AI use: Claude Code (Claude Opus 5.5) ran the runs on this machine, read the logs and code, and wrote this; I checked it before posting.

<!-- greyfinch-sync:ivall/xcl:comment:7196658183 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/2619#issuecomment-7196658183). Originally posted by [qnfn](https://github.com/qnfn) on 2026-11-26T15:43:15Z. --- Same fault on a 12 GB RDNA2 card with 16 GB of RAM, `amd-dev` `b5c0275f`: 5 of 5 warm runs that reached the world removed the device the same way. Three more switches don't change it, and the shader's raw memory paths look clean, which leaves its texture reads. **Setup:** RX 6750 XT 12 GB (RDNA2), driver 32.0.21045.29003, Ryzen 7 5700X, 16 GB RAM, Windows 11 Pro 26300, release. Retail title 1.0.2.1, Series X profile. Env for every run: `XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_PSO_PRELOAD=0 XCL_DXC_THREADS=4 XCL_SPLIT_MIDLIST_WAIT=0 XCL_TEXTURE_LEVEL_PAGES=1 XCL_PAGE_ALIAS=1 XCL_COHERENT_HEAPS=0 XCL_COHERENT_MB=512`, scripted A presses. Shader and driver caches warm. Tree: `b5c0275f` plus local log lines only (a counter and the diagnostic below, no behaviour change). | run | extra switch | device removed | DRED | |---|---|---|---| | 1 | – | ~470 s | (DRED off) | | 2 | `XCL_SPLIT_INDIRECT_ROUNDS=2` | ~315 s | (DRED off) | | 3 | `XCL_DRED=1` | ~327 s | page fault at `0x1f01c0000`, `allocations there: []; recently freed: []`, list `0 of 13 operations done, around: >46 0 6`, bound `cs d79af1d04922a49b` | | 4 | `XCL_DRED=1 XCL_AMBIENT=0` | ~504 s | same: `0x11a8cd000`, `>46 0 6`, `cs d79af1d04922a49b` | | 5 | `XCL_DRED=1 XCL_VRAM_IO=0` | ~300 s | same: `0x1d304d000`, `>46 0 6`, `cs d79af1d04922a49b` | - The faulting list is always a fresh one: `BEGIN_COMMAND_LIST`, a marker, and the first `Dispatch` with this CS bound. - **Not the ambient stand-in.** In runs 1–3 the device goes a few log lines after the second `ambient: applied TemporalResolve/ReflectionHistory stand-in`. With `XCL_AMBIENT=0` (run 4: no stand-in applied at all), the fault is the same. - **Not the VRAM `io` slots** (`XCL_VRAM_IO=0`, run 5). - `XCL_SPLIT_INDIRECT_ROUNDS=2` only made it come sooner, with more draws skipped (7,621 against 2,018). - Memory at the removal, for context: process commit 19.5–19.7 GB, local video memory 10.3 GB on the 12 GB card, non-local 1.3 GB. **Where the shader can fault.** From its translated HLSL (`xcl shaders shaders.rpf --export-hlsl … --record-hash d79af1d04922a49b`): - Its only `io` accesses are 57 `io.Load(<constant>)`; it never touches `res`. - Every buffer access goes through `XCL_MW`, the heap windows, each a raw UAV with a size. An address outside them takes the null view at `MEM_HEAP_NULL`, which `set_window_views` writes. - A local log of the root UAVs bound for its dispatches (in a run that stalled before the fault) gives `io`/`res` in one upload block (`0x689000xxx`) and windows at `0x320140000`, `0x420180000`, `0x5201c0000`, `0x300100000`. All five fault addresses (#2619's `0x15f209000` and the four above) lie below the windows and in no allocation. - That leaves its 8 `image_load_mip` reads: `ResourceDescriptorHeap[NonUniformResourceIndex(s12)]`, with `s12` taken from the T# the title gives, behind `t_ok = ((s15 >> 28) >= 8u) && ((s13 & 0xFF) == 0u) && (s12 < 999999u)`. A slot below 999,999 that holds a descriptor of a resource freed long ago (outside DRED's recently-freed list), or that was never written, would fault exactly like this. I have not proven which slot it is: that needs the slot index read on the GPU, which I haven't done. AI use: Claude Code (Claude Opus 5.5) ran the runs on this machine, read the logs and code, and wrote this; I checked it before posting.
bobosneefdev commented 2026-11-26 16:06:20 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by bobosneefdev on 2026-11-26T15:51:01Z.


Update from the same machine (RX 6800, driver 32.0.21045.29003, Ryzen 5 5600X3D, 64 GB, Windows 11 Pro 26200, release builds).

This fault no longer shows up on amd-dev c32c91a3. Five of five runs (unmodified build) passed the first world frame with no 0x887a0006 and no device removal. On b5c0275 it ended more than half of the runs at that frame.

Env for every run: XCL_DRED=1 XCL_HEAP_WINDOWS=1 XCL_UMA_WINDOWS=8 XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_FRAME_DUMP=4 (the fifth with XCL_FRAME_DUMP=1 XCL_FRAME_DUMP_FROM=2250), after xcl shaders … --precompile --only cs --pipelines --used-only (699 compiled, 0 errors, 699 pipelines made).

Correction to the breadcrumbs in the report. Op 6 is Dispatch (26 is WriteBufferImmediate), so the first list not done on b5c0275 was three dispatches with cs d79af1d04922a49b bound, then a barrier, one immediate write and a barrier. That shader is DistantObjects:CS_DistanceWindowEmissivesCulling; its translation reads only its parameter block, res and the memory windows, no textures. On b5c0275 the fault address was in no buffer XCL or the title ever made (the lowest buffer address was 0x319580000, the faults were at 0x13b…–0x1fc…).

What ends the runs on c32c91a3 now: access violations in the title's own code, 11–25 activity lines into the world (up to ~18 000 draws and ~11 000 dispatches per 2 s), at a different place each run:

Run Time Exception
175 547 s game_scarlett_master.exe+0x4e9138e, read at 0x0 (two threads)
176 503 s +0x5188d35, read at 0x60 (two threads)
177 236 s +0x590cda, read at 0xffffffffffffffff; +0x5188d39, read at 0xe4
178 226 s +0x22c463, read at 0x138; +0x4eeaa22, read at 0x0
179 158 s execute at address 0x0 (return address +0x4ea3b88)

Local video memory at the end was 13.3–14.3 GB, process commit 31–33 GB.

Two runs on 5399542 (eight commits earlier, before the sparse readback queue changes), same settings:

  • one ended the same way (+0x4e40a35, read at 0x38, 284 s), so the access violations did not come in with the last eight commits;
  • one ended in a device removal with a different signature from this issue, 409 s in and 20 frames after the world started: DRED page fault at GPU VA 0xa2d730000; allocations there: []; recently freed: [type 40 ×5, type 34 ×2], with several lists of 33 operations not done on three queues (cs b0c0fed0cdf7fd9c, a135386c84abceb0, 2e0055c25f49848a, 6e148dbd563de205).

Both of those drew the night sky, clouds and the city lights on the horizon after the title card; the foreground stayed black.

Separate finding: a pipeline library saved just before a device removal can break every later start. After one of the b5c0275 removals, every run crashed about 13 s after launch in amdxc64.dll+0x176cd5, until I moved pso-library\956559c929c41833\gen-00000386.plib out of %LOCALAPPDATA%\xcl\dxil. An empty XCL_DXIL_CACHE also started normally. I kept the file (3.2 MB) and can attach it.

Not tested: other GPUs, main, runs longer than the crashes allow. I have the full logs of every run named here.

Runs and write-up by Claude Code (Claude Fable 5.2).

<!-- greyfinch-sync:ivall/xcl:comment:7196835838 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/2619#issuecomment-7196835838). Originally posted by [bobosneefdev](https://github.com/bobosneefdev) on 2026-11-26T15:51:01Z. --- Update from the same machine (RX 6800, driver 32.0.21045.29003, Ryzen 5 5600X3D, 64 GB, Windows 11 Pro 26200, release builds). **This fault no longer shows up on `amd-dev` `c32c91a3`.** Five of five runs (unmodified build) passed the first world frame with no `0x887a0006` and no device removal. On `b5c0275` it ended more than half of the runs at that frame. Env for every run: `XCL_DRED=1 XCL_HEAP_WINDOWS=1 XCL_UMA_WINDOWS=8 XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_FRAME_DUMP=4` (the fifth with `XCL_FRAME_DUMP=1 XCL_FRAME_DUMP_FROM=2250`), after `xcl shaders … --precompile --only cs --pipelines --used-only` (699 compiled, 0 errors, 699 pipelines made). **Correction to the breadcrumbs in the report.** Op 6 is `Dispatch` (26 is `WriteBufferImmediate`), so the first list not done on `b5c0275` was three dispatches with `cs d79af1d04922a49b` bound, then a barrier, one immediate write and a barrier. That shader is `DistantObjects:CS_DistanceWindowEmissivesCulling`; its translation reads only its parameter block, `res` and the memory windows, no textures. On `b5c0275` the fault address was in no buffer XCL or the title ever made (the lowest buffer address was `0x319580000`, the faults were at `0x13b…`–`0x1fc…`). **What ends the runs on `c32c91a3` now:** access violations in the title's own code, 11–25 activity lines into the world (up to ~18 000 draws and ~11 000 dispatches per 2 s), at a different place each run: | Run | Time | Exception | |---|---|---| | 175 | 547 s | `game_scarlett_master.exe+0x4e9138e`, read at 0x0 (two threads) | | 176 | 503 s | `+0x5188d35`, read at 0x60 (two threads) | | 177 | 236 s | `+0x590cda`, read at 0xffffffffffffffff; `+0x5188d39`, read at 0xe4 | | 178 | 226 s | `+0x22c463`, read at 0x138; `+0x4eeaa22`, read at 0x0 | | 179 | 158 s | execute at address 0x0 (return address `+0x4ea3b88`) | Local video memory at the end was 13.3–14.3 GB, process commit 31–33 GB. **Two runs on `5399542`** (eight commits earlier, before the sparse readback queue changes), same settings: - one ended the same way (`+0x4e40a35`, read at 0x38, 284 s), so the access violations did not come in with the last eight commits; - one ended in a device removal with a different signature from this issue, 409 s in and 20 frames after the world started: `DRED page fault at GPU VA 0xa2d730000; allocations there: []; recently freed: [type 40 ×5, type 34 ×2]`, with several lists of 33 operations not done on three queues (`cs b0c0fed0cdf7fd9c, a135386c84abceb0, 2e0055c25f49848a, 6e148dbd563de205`). Both of those drew the night sky, clouds and the city lights on the horizon after the title card; the foreground stayed black. **Separate finding: a pipeline library saved just before a device removal can break every later start.** After one of the `b5c0275` removals, every run crashed about 13 s after launch in `amdxc64.dll+0x176cd5`, until I moved `pso-library\956559c929c41833\gen-00000386.plib` out of `%LOCALAPPDATA%\xcl\dxil`. An empty `XCL_DXIL_CACHE` also started normally. I kept the file (3.2 MB) and can attach it. Not tested: other GPUs, `main`, runs longer than the crashes allow. I have the full logs of every run named here. Runs and write-up by Claude Code (Claude Fable 5.2).
ArtuArtaza commented 2026-11-26 16:40:05 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by ArtuArtaza on 2026-11-26T16:40:05Z.


<html>

Same fault on a 12 GB RDNA2 card, and on c32c91a3 it does not go away here, even with the recipe from the comment above. Video memory is full at the loss.

Setup: RX 6700 XT 12 GB (RDNA2), driver 32.0.21030.2001, Ryzen 5 5600X, 48 GB RAM, Windows 11. Retail 1.0.2.1, Series X profile, XCL_NETWORK=0 XCL_ACTIVITY=1, warm caches. Every run below lost the device (0x887a0006) seconds after world entry.

tree env VRAM at the loss
b5c0275f defaults + XCL_COHERENT_MB=512 (+ XCL_DRED=1 in one run) DRED: page fault at GPU VA 0x1c311c000; allocations there: []; recently freed: [], list bound cs d79af1d04922a49b, as in the report
c32c91a3 defaults + XCL_COHERENT_MB=512 lost at world entry
c32c91a3 XCL_HEAP_WINDOWS=1 XCL_UMA_WINDOWS=8 after xcl shaders … --precompile --only cs --pipelines --used-only (720 made, 0 errors) 12.2 GB local + 5.8 GB non-local
c32c91a3 same + XCL_COHERENT_MB=512 XCL_TEXTURE_LEVEL_PAGES=1 11.9 GB local + 1.2 GB non-local

One more data point from b5c0275f, in case it helps whoever takes this. A local switch that leaves out the draws of the two-pass ExecuteIndirect(DispatchMesh) path only (direct DispatchMesh still drawn) runs 8–10 min in the world with no loss. The world is black then. With that path on, 25 of 26 launches lost the device.

At the loss, MARKER_OUT step marks around every two-pass indirect call showed all lists had finished their last call, so the fault comes after it. The shader caught midway once was meshlet_culling:CS_BatchCullMeshlets_ParaboloidShadows. These did not help:

  • skipping that shader;
  • zeroing commands over 65 535 groups;
  • capping commands at 512 groups;
  • per-list record buffers;
  • a 256 MiB guard after record buffers;
  • never reusing scratch/record/io memory.

Has anyone with a 12 GB card got past the first world frame on c32c91a3? The 5/5 above is a 16 GB RX 6800. Logs are available.

</html>
<!-- greyfinch-sync:ivall/xcl:comment:7197943063 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/2619#issuecomment-7197943063). Originally posted by [ArtuArtaza](https://github.com/ArtuArtaza) on 2026-11-26T16:40:05Z. --- <html> <body> <!--StartFragment--><!-- obsidian --><p>Same fault on a 12 GB RDNA2 card, and on <code>c32c91a3</code> it does <strong>not</strong> go away here, even with the recipe from the comment above. Video memory is full at the loss.</p> <p><strong>Setup:</strong> RX 6700 XT 12 GB (RDNA2), driver 32.0.21030.2001, Ryzen 5 5600X, 48 GB RAM, Windows 11. Retail 1.0.2.1, Series X profile, <code>XCL_NETWORK=0 XCL_ACTIVITY=1</code>, warm caches. Every run below lost the device (<code>0x887a0006</code>) seconds after world entry.</p> tree | env | VRAM at the loss -- | -- | -- b5c0275f | defaults + XCL_COHERENT_MB=512 (+ XCL_DRED=1 in one run) | DRED: page fault at GPU VA 0x1c311c000; allocations there: []; recently freed: [], list bound cs d79af1d04922a49b, as in the report c32c91a3 | defaults + XCL_COHERENT_MB=512 | lost at world entry c32c91a3 | XCL_HEAP_WINDOWS=1 XCL_UMA_WINDOWS=8 after xcl shaders … --precompile --only cs --pipelines --used-only (720 made, 0 errors) | 12.2 GB local + 5.8 GB non-local c32c91a3 | same + XCL_COHERENT_MB=512 XCL_TEXTURE_LEVEL_PAGES=1 | 11.9 GB local + 1.2 GB non-local <p>One more data point from <code>b5c0275f</code>, in case it helps whoever takes this. A local switch that leaves out the draws of the two-pass <code>ExecuteIndirect(DispatchMesh)</code> path only (direct <code>DispatchMesh</code> still drawn) runs 8–10 min in the world with no loss. The world is black then. With that path on, 25 of 26 launches lost the device.</p> <p>At the loss, MARKER_OUT step marks around every two-pass indirect call showed all lists had <em>finished</em> their last call, so the fault comes after it. The shader caught midway once was <code>meshlet_culling:CS_BatchCullMeshlets_ParaboloidShadows</code>. These did not help:</p> <ul> <li>skipping that shader;</li> <li>zeroing commands over 65 535 groups;</li> <li>capping commands at 512 groups;</li> <li>per-list record buffers;</li> <li>a 256 MiB guard after record buffers;</li> <li>never reusing scratch/record/io memory.</li> </ul> <p>Has anyone with a 12 GB card got past the first world frame on <code>c32c91a3</code>? The 5/5 above is a 16 GB RX 6800. Logs are available.</p><!--EndFragment--> </body> </html>
bobosneefdev commented 2026-11-26 17:04:17 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by bobosneefdev on 2026-11-26T17:04:17Z.


Correction to the pipeline library note in my last comment, and one more data point. Same machine (RX 6800, driver 32.0.21045.29003), unmodified c32c91a3 release build apart from local logging.

The amdxc64.dll+0x176cd5 startup crash is not explained by "saved just before a device removal". It came back twice today with no removal in between:

  • Runs with XCL_HEAP_WINDOWS=1 XCL_UMA_WINDOWS=8 started normally with the library gen-000000fc.
  • The next two runs without those two variables (default layout, 1 coherent window) crashed 13 s after launch in amdxc64.dll+0x176cd5, right after opened memory-mapped pipeline library gen-000000fc.
  • Two runs in the default layout with XCL_PSO_LIBRARY=0 started normally.
  • Going back to XCL_HEAP_WINDOWS=1 XCL_UMA_WINDOWS=8 with the library on (now gen-000000ff) crashed the same way at 14 s.

So what I can say is: a library written under one memory-window layout crashed the driver when a run with the other layout opened it, in both directions. I did not test whether that is the cause or a coincidence of which pipelines were stored. I have both files.

Default layout, XCL_PSO_LIBRARY=0, otherwise as before (XCL_DRED=1, precompiled compute):

Run Time World activity lines End
194 1101 s 114 0x887a0006, DRED page fault at GPU VA 0x0, 16.7 GB local video memory
195 264 s 33 0x887a0006, DRED page fault at GPU VA 0x0, 15.5 GB local; 35 of 78 operations done at cs c36e926ce10fe675

Neither ended in a title access violation; the eight-window runs mostly did (9 of 12). Run 194 is the longest I have had and the first with a daytime frame: sky, clouds and a dark flat ground plane to the horizon, no objects on it. Both ended with local video memory at the 16 GB card's limit, which matches @ArtuArtaza's 12 GB result above.

Not tested: why the layouts differ in the access violations (two runs is too few to say they do), other GPUs.

Runs and write-up by Claude Code (Claude Fable 5.2).

<!-- greyfinch-sync:ivall/xcl:comment:7198451363 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/2619#issuecomment-7198451363). Originally posted by [bobosneefdev](https://github.com/bobosneefdev) on 2026-11-26T17:04:17Z. --- Correction to the pipeline library note in my last comment, and one more data point. Same machine (RX 6800, driver 32.0.21045.29003), unmodified `c32c91a3` release build apart from local logging. **The `amdxc64.dll+0x176cd5` startup crash is not explained by "saved just before a device removal".** It came back twice today with no removal in between: - Runs with `XCL_HEAP_WINDOWS=1 XCL_UMA_WINDOWS=8` started normally with the library `gen-000000fc`. - The next two runs without those two variables (default layout, `1 coherent window`) crashed 13 s after launch in `amdxc64.dll+0x176cd5`, right after `opened memory-mapped pipeline library gen-000000fc`. - Two runs in the default layout with `XCL_PSO_LIBRARY=0` started normally. - Going back to `XCL_HEAP_WINDOWS=1 XCL_UMA_WINDOWS=8` with the library on (now `gen-000000ff`) crashed the same way at 14 s. So what I can say is: a library written under one memory-window layout crashed the driver when a run with the other layout opened it, in both directions. I did not test whether that is the cause or a coincidence of which pipelines were stored. I have both files. **Default layout, `XCL_PSO_LIBRARY=0`, otherwise as before (`XCL_DRED=1`, precompiled compute):** | Run | Time | World activity lines | End | |---|---|---|---| | 194 | 1101 s | 114 | `0x887a0006`, `DRED page fault at GPU VA 0x0`, 16.7 GB local video memory | | 195 | 264 s | 33 | `0x887a0006`, `DRED page fault at GPU VA 0x0`, 15.5 GB local; 35 of 78 operations done at `cs c36e926ce10fe675` | Neither ended in a title access violation; the eight-window runs mostly did (9 of 12). Run 194 is the longest I have had and the first with a daytime frame: sky, clouds and a dark flat ground plane to the horizon, no objects on it. Both ended with local video memory at the 16 GB card's limit, which matches @ArtuArtaza's 12 GB result above. Not tested: why the layouts differ in the access violations (two runs is too few to say they do), other GPUs. Runs and write-up by Claude Code (Claude Fable 5.2).
bobosneefdev commented 2026-11-26 19:47:38 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by bobosneefdev on 2026-11-26T19:47:38Z.


Correction to my two comments above about the startup crash in amdxc64.dll+0x176cd5: it is not caused by a device removal before the save, and not by the memory-window layout either. Both readings were wrong.

The driver reads a dword at blob + length in CreatePipelineLibrary (cmp dword ptr [r14], eax, r14 = the mapped view's address + the file's length). XCL gives it a file mapping, which ends with the file's last page, so a library file that ends less than 4 bytes before a page boundary has that dword in the unmapped page after it. Both libraries that crashed here are 4094 mod 4096 bytes long (1933310 and 3252222), and in 3 of 3 crashing starts the faulting address was the first byte after the view. The layout correlation was a coincidence: the run before the switch happened to save a file of such a length.

Fix with a test in #2859 (draft, base amd-dev). With it, the 1933310-byte file that crashed 3 starts opens and serves pipelines (checked on c32c91a3 plus local logging, RX 6800, driver 32.0.21045.29003).

Until then, anyone who gets this crash at every start on AMD can delete %LOCALAPPDATA%\xcl\dxil\pso-library\ or set XCL_PSO_LIBRARY=0.

Written with Claude Code (Claude Fable 5.2) from runs on my machine.

<!-- greyfinch-sync:ivall/xcl:comment:7201967111 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/2619#issuecomment-7201967111). Originally posted by [bobosneefdev](https://github.com/bobosneefdev) on 2026-11-26T19:47:38Z. --- Correction to my two comments above about the startup crash in `amdxc64.dll+0x176cd5`: it is not caused by a device removal before the save, and not by the memory-window layout either. Both readings were wrong. The driver reads a dword at blob + length in `CreatePipelineLibrary` (`cmp dword ptr [r14], eax`, `r14` = the mapped view's address + the file's length). XCL gives it a file mapping, which ends with the file's last page, so a library file that ends less than 4 bytes before a page boundary has that dword in the unmapped page after it. Both libraries that crashed here are 4094 mod 4096 bytes long (1933310 and 3252222), and in 3 of 3 crashing starts the faulting address was the first byte after the view. The layout correlation was a coincidence: the run before the switch happened to save a file of such a length. Fix with a test in #2859 (draft, base `amd-dev`). With it, the 1933310-byte file that crashed 3 starts opens and serves pipelines (checked on `c32c91a3` plus local logging, RX 6800, driver 32.0.21045.29003). Until then, anyone who gets this crash at every start on AMD can delete `%LOCALAPPDATA%\xcl\dxil\pso-library\` or set `XCL_PSO_LIBRARY=0`. Written with Claude Code (Claude Fable 5.2) from runs on my machine.
RodrigoTorreao commented 2026-11-27 14:08:10 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by RodrigoTorreao on 2026-11-27T14:08:10Z.


Same fault on an RX 6750 XT (RDNA2 12 GB, driver 32.0.21045.29003, 16 GB RAM, Windows 11 26200). amd-dev f84a949 with 287a931b reverted, warm shader cache, XCL_PREPARE=0, no input.

With XCL_DRED=1, at 221.8 s:

D3D12 device removed: 0x887a0006
DRED page fault at GPU VA 0x0; allocations there: []; recently freed: []
DRED: list … on queue …: 2 of 3 operations done, around: 46 0 >6; pipeline bound there: cs c36e926ce10fe675

The cs is the same as in your run 195. Without DRED, 3 of 4 runs ended the same way at 183-269 s: the first thing to notice it was title texture: upload failed: texture copy: D3D12 device removed (0x887a0006). All were in the world load with ~300k draws and 0.02-0.3 % skipped. Free RAM was 0.1-0.2 GB and VRAM 11.1/12 GB, so memory is tight here, but the fault is a null VA, not an out-of-memory error.

AI-assisted (Claude Code with Claude Opus 5.5); run by me on the hardware above.

<!-- greyfinch-sync:ivall/xcl:comment:7220387608 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/2619#issuecomment-7220387608). Originally posted by [RodrigoTorreao](https://github.com/RodrigoTorreao) on 2026-11-27T14:08:10Z. --- **Same fault on an RX 6750 XT (RDNA2 12 GB, driver 32.0.21045.29003, 16 GB RAM, Windows 11 26200).** `amd-dev` f84a949 with `287a931b` reverted, warm shader cache, `XCL_PREPARE=0`, no input. With `XCL_DRED=1`, at 221.8 s: ``` D3D12 device removed: 0x887a0006 DRED page fault at GPU VA 0x0; allocations there: []; recently freed: [] DRED: list … on queue …: 2 of 3 operations done, around: 46 0 >6; pipeline bound there: cs c36e926ce10fe675 ``` The cs is the same as in your run 195. Without DRED, 3 of 4 runs ended the same way at 183-269 s: the first thing to notice it was `title texture: upload failed: texture copy: D3D12 device removed (0x887a0006)`. All were in the world load with ~300k draws and 0.02-0.3 % skipped. Free RAM was 0.1-0.2 GB and VRAM 11.1/12 GB, so memory is tight here, but the fault is a null VA, not an out-of-memory error. AI-assisted (Claude Code with Claude Opus 5.5); run by me on the hardware above.
RodrigoTorreao commented 2026-11-27 18:28:44 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by RodrigoTorreao on 2026-11-27T18:28:44Z.


Narrowing on RX 6750 XT: three skip paths ruled out. Series S (device_type = "lockhart") reaches the fault fast and almost at the same second every time.

Setup: amd-dev 7c795f5e, warm shader cache, XCL_PREPARE=0, XCL_DRED=1, A pressed every 10 s from 40 s. RX 6750 XT, driver 32.0.21045.29003, 16 GB RAM. As Series S, memory stays within the budgets: VRAM ~10.9 of ~10.7-11.5 GB, non-local ~4.4 of 7.4 GB. Every run ends in DRED page fault at GPU VA 0x0; allocations there: [] at 215-224 s (0x887a0007, 0x887a0020 once).

run what was not skipped fault
XCL_ASYNC_HEAVY_COMPUTE=0 0 "ExecuteIndirect with a pipeline that is still being built skipped", 0 image-only programs left out, 0 dispatches put off 215 s
XCL_BVH_BUILDER=1 0 BVH builder passes left out 216 s
full 4 GB coherent window 0 two-pass ExecuteIndirect skipped for arguments outside unified memory 224 s

So on this card it is none of those skips. Two other kinds of skip still happen at ~136 s, each a handful of times:

  • ExecuteIndirect dispatch with a pipeline that has no translated console shader (…) skipped;
  • Dispatch with a pipeline that has no translated console shader (…) skipped.

I have not mapped those PSOs to record hashes yet.

AI-assisted (Claude Code with Claude Opus 5.5); run by me on the hardware above.

<!-- greyfinch-sync:ivall/xcl:comment:7225529365 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/2619#issuecomment-7225529365). Originally posted by [RodrigoTorreao](https://github.com/RodrigoTorreao) on 2026-11-27T18:28:44Z. --- **Narrowing on RX 6750 XT: three skip paths ruled out.** Series S (`device_type = "lockhart"`) reaches the fault fast and almost at the same second every time. Setup: `amd-dev` 7c795f5e, warm shader cache, `XCL_PREPARE=0`, `XCL_DRED=1`, A pressed every 10 s from 40 s. RX 6750 XT, driver 32.0.21045.29003, 16 GB RAM. As Series S, memory stays within the budgets: VRAM ~10.9 of ~10.7-11.5 GB, non-local ~4.4 of 7.4 GB. Every run ends in `DRED page fault at GPU VA 0x0; allocations there: []` at 215-224 s (0x887a0007, 0x887a0020 once). | run | what was not skipped | fault | |---|---|---| | `XCL_ASYNC_HEAVY_COMPUTE=0` | 0 "ExecuteIndirect with a pipeline that is still being built skipped", 0 image-only programs left out, 0 dispatches put off | 215 s | | `XCL_BVH_BUILDER=1` | 0 BVH builder passes left out | 216 s | | full 4 GB coherent window | 0 two-pass ExecuteIndirect skipped for arguments outside unified memory | 224 s | So on this card it is none of those skips. Two other kinds of skip still happen at ~136 s, each a handful of times: - `ExecuteIndirect dispatch with a pipeline that has no translated console shader (…) skipped`; - `Dispatch with a pipeline that has no translated console shader (…) skipped`. I have not mapped those PSOs to record hashes yet. AI-assisted (Claude Code with Claude Opus 5.5); run by me on the hardware above.
RodrigoTorreao commented 2026-11-27 18:43:21 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by RodrigoTorreao on 2026-11-27T18:43:21Z.


A lead for the 0x0 fault: the RT gate. Same setup as my comment above (RX 6750 XT, Series S, DRED).

  • With the default XCL_RT_GATE=hold, the log shows RT-gated compute PSO … held back without compiling past 1024 by 13 s. These are exactly the pipelines whose dispatches later appear as Dispatch / ExecuteIndirect dispatch with a pipeline that has no translated console shader … skipped (~136 s). Every one of those runs ends at the VA 0x0 fault at 215-224 s.
  • With XCL_RT_GATE=miss (one run): 0 RT PSOs held back, 0 "no translated console shader" skips, no DRED page fault. Not conclusive, though: the title then waited on driver compiles of the ~1 MB RT programs, presented nothing after 138 s, and available RAM reached 0. It never got to the point where the others fault.

So a skipped RT pass leaving a table or address unwritten for a later pass fits the evidence. A machine with the RT programs prebuilt (XCL_RT_GATE=0 with --precompile --pipelines), or with more RAM, could check miss past 230 s.

AI-assisted (Claude Code with Claude Opus 5.5); run by me on the hardware above.

<!-- greyfinch-sync:ivall/xcl:comment:7225796583 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/2619#issuecomment-7225796583). Originally posted by [RodrigoTorreao](https://github.com/RodrigoTorreao) on 2026-11-27T18:43:21Z. --- **A lead for the 0x0 fault: the RT gate.** Same setup as my comment above (RX 6750 XT, Series S, DRED). - With the default `XCL_RT_GATE=hold`, the log shows `RT-gated compute PSO … held back without compiling` past 1024 by 13 s. These are exactly the pipelines whose dispatches later appear as `Dispatch` / `ExecuteIndirect dispatch with a pipeline that has no translated console shader … skipped` (~136 s). Every one of those runs ends at the VA 0x0 fault at 215-224 s. - With `XCL_RT_GATE=miss` (one run): 0 RT PSOs held back, 0 "no translated console shader" skips, **no DRED page fault**. Not conclusive, though: the title then waited on driver compiles of the ~1 MB RT programs, presented nothing after 138 s, and available RAM reached 0. It never got to the point where the others fault. So a skipped RT pass leaving a table or address unwritten for a later pass fits the evidence. A machine with the RT programs prebuilt (`XCL_RT_GATE=0` with `--precompile --pipelines`), or with more RAM, could check `miss` past 230 s. AI-assisted (Claude Code with Claude Opus 5.5); run by me on the hardware above.
RodrigoTorreao commented 2026-11-27 21:34:49 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by RodrigoTorreao on 2026-11-27T21:34:49Z.


RT programs precompiled with XCL_RT_GATE=miss: the 138 s stall is gone, but the VA 0x0 fault is still there at 258 s. The held RT passes do not cause it.

RX 6750 XT 12 GB, 16 GB RAM, driver 32.0.21045.29003, amd-dev 7c795f5e + local changes, Series S (lockhart), XCL_DRED=1, XCL_PREPARE=0, A pressed automatically.

  • Offline pass: xcl shaders <pack> --precompile --only cs --pipelines with XCL_RT_GATE=miss built 9,835 pipelines in 26 min. No program went over the 8 MB DXIL cap, because the 819 big programs were split into 7,966 pieces.
  • One record crashes the AMD driver every time it is compiled: e65ae75db85e9485, at amdxc64.dll+0x792466 (access violation, 4 out of 4 tries). I found it by compiling one pipeline at a time with XCL_PSO_TRACE=1. It is not the #2874 offset. I kept it out with XCL_PSO_SKIP_FILE, which I made the offline pass honor as well (local change).
  • In game: the run got past the 138 s RT compile stall (556k draws, only 2 dispatches skipped, nothing held by the RT gate). It still ended with DRED page fault at GPU VA 0x0; allocations there: [] at 258 s, inside the 215-312 s window I see in every Series S run.

What was still left out in that run: about 4 % of draws (mostly graphics pipelines still being built, since XCL_PREPARE=0), 16 BVH builder passes, 8 two-pass ExecuteIndirect calls with arguments outside the coherent window, 4 ExecuteIndirect calls with a pipeline still being built, and 19 image-only compute programs still being built. Next, I will run with as few skips as I can (XCL_PREPARE on, XCL_BVH_BUILDER=1, RT miss) and report back.

AI-assisted (Claude Code with Claude Opus 5.5); run by me on the hardware above.

<!-- greyfinch-sync:ivall/xcl:comment:7228571454 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/2619#issuecomment-7228571454). Originally posted by [RodrigoTorreao](https://github.com/RodrigoTorreao) on 2026-11-27T21:34:49Z. --- **RT programs precompiled with `XCL_RT_GATE=miss`: the 138 s stall is gone, but the VA 0x0 fault is still there at 258 s. The held RT passes do not cause it.** RX 6750 XT 12 GB, 16 GB RAM, driver 32.0.21045.29003, `amd-dev` 7c795f5e + local changes, Series S (`lockhart`), `XCL_DRED=1`, `XCL_PREPARE=0`, A pressed automatically. - **Offline pass:** `xcl shaders <pack> --precompile --only cs --pipelines` with `XCL_RT_GATE=miss` built 9,835 pipelines in 26 min. No program went over the 8 MB DXIL cap, because the 819 big programs were split into 7,966 pieces. - **One record crashes the AMD driver every time it is compiled:** `e65ae75db85e9485`, at `amdxc64.dll+0x792466` (access violation, 4 out of 4 tries). I found it by compiling one pipeline at a time with `XCL_PSO_TRACE=1`. It is not the #2874 offset. I kept it out with `XCL_PSO_SKIP_FILE`, which I made the offline pass honor as well (local change). - **In game:** the run got past the 138 s RT compile stall (556k draws, only 2 dispatches skipped, nothing held by the RT gate). It still ended with `DRED page fault at GPU VA 0x0; allocations there: []` at 258 s, inside the 215-312 s window I see in every Series S run. What was still left out in that run: about 4 % of draws (mostly graphics pipelines still being built, since `XCL_PREPARE=0`), 16 BVH builder passes, 8 two-pass ExecuteIndirect calls with arguments outside the coherent window, 4 ExecuteIndirect calls with a pipeline still being built, and 19 image-only compute programs still being built. Next, I will run with as few skips as I can (`XCL_PREPARE` on, `XCL_BVH_BUILDER=1`, RT miss) and report back. AI-assisted (Claude Code with Claude Opus 5.5); run by me on the hardware above.
RodrigoTorreao commented 2026-11-27 21:51:26 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by RodrigoTorreao on 2026-11-27T21:51:26Z.


Follow-up: the run with as few skips as I can get also ends at 318 s. This time it is a device reset (0x887a0007) with no DRED page fault.

Same setup as above (Series S, RT programs precompiled, XCL_RT_GATE=miss, the driver-crashing record skipped), plus XCL_PREPARE on and XCL_BVH_BUILDER=1.

  • Preparation was warm: 623 graphics pipelines in 2 s.
  • 524k draws, 540k dispatches (2 skipped), 2.2 GB of free RAM on average, 5.2 GB of shared memory at the peak.
  • About 3.7 % of draws were still skipped: graphics pipelines first seen mid-run, which are not in the recorded set yet. Also left out: 20 image-only compute programs that were still being built, 8 two-pass ExecuteIndirect calls with arguments outside the coherent window, and 4 ExecuteIndirect calls with a pipeline still being built.
  • At 317.8 s: D3D12 device removed: 0x887a0007, and DRED reported no page fault. The title then hit a breakpoint (0x80000003 at +0x2474606).

Across all my Series S runs, turning off the RT gate, the BVH skip, the async ExecuteIndirect skip or the coherent cap moves the end around within 215-318 s, but none of them removes it. The leftover skips are small. So I now think the cause is something the world does in that stretch, not a skipped pass. Turning on the BVH builder may also have traded the VA 0x0 fault for a hang.

AI-assisted (Claude Code with Claude Opus 5.5); run by me on the hardware above.

<!-- greyfinch-sync:ivall/xcl:comment:7228816570 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/2619#issuecomment-7228816570). Originally posted by [RodrigoTorreao](https://github.com/RodrigoTorreao) on 2026-11-27T21:51:26Z. --- **Follow-up: the run with as few skips as I can get also ends at 318 s. This time it is a device reset (`0x887a0007`) with no DRED page fault.** Same setup as above (Series S, RT programs precompiled, `XCL_RT_GATE=miss`, the driver-crashing record skipped), plus `XCL_PREPARE` on and `XCL_BVH_BUILDER=1`. - Preparation was warm: 623 graphics pipelines in 2 s. - 524k draws, 540k dispatches (2 skipped), 2.2 GB of free RAM on average, 5.2 GB of shared memory at the peak. - About 3.7 % of draws were still skipped: graphics pipelines first seen mid-run, which are not in the recorded set yet. Also left out: 20 image-only compute programs that were still being built, 8 two-pass ExecuteIndirect calls with arguments outside the coherent window, and 4 ExecuteIndirect calls with a pipeline still being built. - At 317.8 s: `D3D12 device removed: 0x887a0007`, and DRED reported no page fault. The title then hit a breakpoint (`0x80000003` at `+0x2474606`). Across all my Series S runs, turning off the RT gate, the BVH skip, the async ExecuteIndirect skip or the coherent cap moves the end around within 215-318 s, but none of them removes it. The leftover skips are small. So I now think the cause is something the world does in that stretch, not a skipped pass. Turning on the BVH builder may also have traded the VA 0x0 fault for a hang. AI-assisted (Claude Code with Claude Opus 5.5); run by me on the hardware above.
bobosneefdev commented 2026-11-28 01:24:47 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by bobosneefdev on 2026-11-28T01:24:47Z.


RX 6800: the 0x887a0007 / DRED page fault at GPU VA 0x0 loss needs the title's own compute work. With HAGS off it varies run to run, and I retract my CPU-wait idea.

Setup: RX 6800 16 GB, driver 32.0.21045.29003, Ryzen 5 5600X3D, 64 GB, Windows 11 26200, Resizable BAR off (256 MB BAR). Tree: amd-dev bf7c82ee, plus local diagnostic env switches that only skip work. Runs 331/332 used 494f08b2. Release build, Series X package 1.0.2.1, A pressed through XCL_PRESS_A_AT.

Base env in every run: XCL_PREPARE=0 XCL_RT_GATE=miss XCL_PSO_MAX_KB=1100 XCL_DRED=1 XCL_INDIRECT_PRELUDE=0 XCL_O0_ABOVE_KB=256, plus a skip file of two records that never finish in amdxc64.

"Stripped" means the base env plus the title's draws, mesh draws, ExecuteIndirect and dispatches skipped, and XCL's copies, uploads, sparse mappings and copies, VRAM page mappings, fills, readbacks, depth twins, format aliases, barriers and GPU-awake turned off. Only the title's submits, fences and waits remain.

runs HAGS what runs result
321–324 on stripped (almost the same set) loss in 4 of 4, 215–247 s, 3,381–3,716 presents
333–341 (8 runs, some with wait/timing switches) off stripped no loss in any (up to 1,200 s, 14,268 presents)
331, 332, 337 on, off, off everything (base env only) loss at 3,057 / 3,056 / 3,006 presents
342 off title draws + dispatches + EI on, XCL memory work still off loss, 264 s, 3,406 presents
343 off title dispatches only loss, 309 s, 3,654 presents
344 / 345 off dispatches with cs hash &1==0 / &3==0 loss at 3,872 / 4,856 presents
346 / 347 off &7==0 / &7==4 no loss in 900 s
349 off &3==0 again (repeat of 345) no loss in 1,500 s, 18,222 presents

What this does and does not show:

  • With HAGS on, the loss needed none of the title's GPU work. With HAGS off, it needs some of it, and compute dispatches alone are enough (343). That fits RodrigoTorreao's RX 6750 XT result that no skipped pass causes it.
  • The bisection by shader hash proves nothing: the set that lost the device in 345 survived 25 minutes in 349. One run per setting cannot separate a bad shader from chance. It does argue against one shader that always faults.
  • Retraction: I earlier reported that moving the title's waits on unsubmitted Write64 signals to the CPU, or slowing presents 2,950–3,200, avoided the loss. The no-sleep stripped control (341) survived as well, so those runs were HAGS off, not the waits. Neither is a fix.
  • Not controlled: Resizable BAR (off here; the #2996 RX 9070 XT report saw a large change with it on). DRED shows VA 0x0, no allocations, and 0 lists in flight in every loss.

Report written by Claude Code (Claude Opus 5.5) from runs on the hardware above.

<!-- greyfinch-sync:ivall/xcl:comment:7231648090 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/2619#issuecomment-7231648090). Originally posted by [bobosneefdev](https://github.com/bobosneefdev) on 2026-11-28T01:24:47Z. --- **RX 6800: the `0x887a0007` / `DRED page fault at GPU VA 0x0` loss needs the title's own compute work. With HAGS off it varies run to run, and I retract my CPU-wait idea.** Setup: RX 6800 16 GB, driver 32.0.21045.29003, Ryzen 5 5600X3D, 64 GB, Windows 11 26200, Resizable BAR **off** (256 MB BAR). Tree: `amd-dev` `bf7c82ee`, plus local diagnostic env switches that only skip work. Runs 331/332 used `494f08b2`. Release build, Series X package 1.0.2.1, A pressed through `XCL_PRESS_A_AT`. Base env in every run: `XCL_PREPARE=0 XCL_RT_GATE=miss XCL_PSO_MAX_KB=1100 XCL_DRED=1 XCL_INDIRECT_PRELUDE=0 XCL_O0_ABOVE_KB=256`, plus a skip file of two records that never finish in amdxc64. "Stripped" means the base env plus the title's draws, mesh draws, ExecuteIndirect and dispatches skipped, and XCL's copies, uploads, sparse mappings and copies, VRAM page mappings, fills, readbacks, depth twins, format aliases, barriers and GPU-awake turned off. Only the title's submits, fences and waits remain. | runs | HAGS | what runs | result | |---|---|---|---| | 321–324 | on | stripped (almost the same set) | loss in 4 of 4, 215–247 s, 3,381–3,716 presents | | 333–341 (8 runs, some with wait/timing switches) | off | stripped | no loss in any (up to 1,200 s, 14,268 presents) | | 331, 332, 337 | on, off, off | everything (base env only) | loss at 3,057 / 3,056 / 3,006 presents | | 342 | off | title draws + dispatches + EI on, XCL memory work still off | loss, 264 s, 3,406 presents | | 343 | off | **title dispatches only** | loss, 309 s, 3,654 presents | | 344 / 345 | off | dispatches with cs hash `&1==0` / `&3==0` | loss at 3,872 / 4,856 presents | | 346 / 347 | off | `&7==0` / `&7==4` | no loss in 900 s | | 349 | off | `&3==0` again (repeat of 345) | **no loss in 1,500 s**, 18,222 presents | What this does and does not show: - With HAGS on, the loss needed none of the title's GPU work. With HAGS off, it needs some of it, and compute dispatches alone are enough (343). That fits RodrigoTorreao's RX 6750 XT result that no skipped pass causes it. - The bisection by shader hash proves nothing: the set that lost the device in 345 survived 25 minutes in 349. One run per setting cannot separate a bad shader from chance. It does argue against one shader that always faults. - **Retraction:** I earlier reported that moving the title's waits on unsubmitted `Write64` signals to the CPU, or slowing presents 2,950–3,200, avoided the loss. The no-sleep stripped control (341) survived as well, so those runs were HAGS off, not the waits. Neither is a fix. - Not controlled: Resizable BAR (off here; the #2996 RX 9070 XT report saw a large change with it on). DRED shows VA 0x0, no allocations, and 0 lists in flight in every loss. Report written by Claude Code (Claude Opus 5.5) from runs on the hardware above.
RodrigoTorreao commented 2026-11-28 14:57:12 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by RodrigoTorreao on 2026-11-28T14:57:12Z.


HAGS data point: on the RX 6750 XT, HAGS is always off, and the loss still happens.

dxdiag on this machine (RX 6750 XT, driver 32.0.21045.29003, Windows 11 26200) reports Hardware Scheduling: DriverSupportState:AlwaysOff Enabled:False. AMD's driver does not offer HAGS on RDNA2. So every loss I reported above, from 215 to 318 s in Series S, happened with HAGS off: 0x887a0007 with a DRED fault at VA 0x0 in most runs, and with no fault in the minimum-skip run.

This fits @bobosneefdev's caveat that the title's compute dispatches alone can still lose the device with HAGS off. On RDNA2, HAGS off changes how often it happens at most. It does not prevent it.

AI-assisted (Claude Code with Claude Opus 5.5); run by me on the hardware above.

<!-- greyfinch-sync:ivall/xcl:comment:7241065666 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/2619#issuecomment-7241065666). Originally posted by [RodrigoTorreao](https://github.com/RodrigoTorreao) on 2026-11-28T14:57:12Z. --- **HAGS data point: on the RX 6750 XT, HAGS is always off, and the loss still happens.** `dxdiag` on this machine (RX 6750 XT, driver 32.0.21045.29003, Windows 11 26200) reports `Hardware Scheduling: DriverSupportState:AlwaysOff Enabled:False`. AMD's driver does not offer HAGS on RDNA2. So every loss I reported above, from 215 to 318 s in Series S, happened with HAGS off: `0x887a0007` with a DRED fault at VA 0x0 in most runs, and with no fault in the minimum-skip run. This fits @bobosneefdev's caveat that the title's compute dispatches alone can still lose the device with HAGS off. On RDNA2, HAGS off changes how often it happens at most. It does not prevent it. AI-assisted (Claude Code with Claude Opus 5.5); run by me on the hardware above.
bobosneefdev commented 2026-11-28 21:40:50 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by bobosneefdev on 2026-11-28T21:40:50Z.


RX 6800 on amd-dev 7c795f5e: the 0x887a0007 / VA 0x0 loss is still there. Two submission races and the dropped root constants are ruled out as its cause.

Setup: RX 6800 16 GB, driver 32.0.21045.29003, Ryzen 5 5600X3D, 64 GB, Windows 11 26200, HAGS off, Resizable BAR off. Release build of 7c795f5e plus local switches that only log or skip work. Series X package 1.0.2.1, warm cache, A pressed through XCL_PRESS_A_AT. Runs capped at 800 s.
Base env: XCL_PREPARE=0 XCL_RT_GATE=miss XCL_PSO_MAX_KB=1100 XCL_DRED=1 XCL_INDIRECT_PRELUDE=0 XCL_VRAM_IO=0 XCL_DIRECT_DXIL=0. The last switch keeps the HLSL backend, so the workload matches my earlier bf7c82ee runs.

run extra end
452 – survived 800 s, 5,765 presents
453 log dropped root writes loss at 450 s (3× 0x887a0007, DRED VA 0x0)
454 root writes clamped as in #1319 (put_in only) loss at 528 s (same signature)
455 race logs below game access violation at 225 s, before any loss
456 race logs below loss at 472 s (same signature)
  • Allocator identity at submit: each list's (recording, backing) is snapshotted before native ExecuteCommandLists and compared at alloc_pool::executed. 0 mismatches in 448 (bf7c82ee) and in 450–456. That is the window 2be80e57/3671a8ca close on main. It is open on amd-dev, but it did not occur before these losses.
  • Mapping waits published before they are established: both the before_execute and the wait_pending_mappings paths in sparse.rs/vram.rs write waited[queue] and then wait without the lock. I logged any native Execute on that queue from another thread while such a wait was still unestablished. 0 crossings in 456.
  • Root constants: bind.rs put_in drops a whole write that runs past the packed arguments. In 453 that happened 8,000+ times, all compute. One shape is 16 B at byte 24 of a 36-byte block; the other is 24 B at byte 48 of 68. That is the bug #1319 fixes on main. Clamping it (454) did not stop the loss.
  • On bf7c82ee, the indirect two-pass path: when the indirect DispatchMesh two-pass path took its argument/io table space from the recording's UMA arena but ran no pass, the device was lost in 4 of 4 runs (434, 438, 439, 441). With the same path but no arena takes, there were 0 losses in 2 runs (443, 444), though both ended in game crashes at 245 s and 512 s. Holding freed UMA blocks for 1 s before reuse (447) did not prevent the loss. Not explained yet.
  • Side note: with direct DXIL (amd-dev's default since 926433d8), late-run frame rate on this title was about 1–2 fps (449, 451), against about 4 fps with XCL_DIRECT_DXIL=0 (452–454).

Loss times are stochastic (450–630 s here), so each row is one sample.

Report written by Claude Code (Claude Opus 5.5) from these runs.

<!-- greyfinch-sync:ivall/xcl:comment:7246193390 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/2619#issuecomment-7246193390). Originally posted by [bobosneefdev](https://github.com/bobosneefdev) on 2026-11-28T21:40:50Z. --- **RX 6800 on `amd-dev` `7c795f5e`: the `0x887a0007` / VA 0x0 loss is still there. Two submission races and the dropped root constants are ruled out as its cause.** Setup: RX 6800 16 GB, driver 32.0.21045.29003, Ryzen 5 5600X3D, 64 GB, Windows 11 26200, HAGS off, Resizable BAR off. Release build of `7c795f5e` plus local switches that only log or skip work. Series X package 1.0.2.1, warm cache, A pressed through `XCL_PRESS_A_AT`. Runs capped at 800 s. Base env: `XCL_PREPARE=0 XCL_RT_GATE=miss XCL_PSO_MAX_KB=1100 XCL_DRED=1 XCL_INDIRECT_PRELUDE=0 XCL_VRAM_IO=0 XCL_DIRECT_DXIL=0`. The last switch keeps the HLSL backend, so the workload matches my earlier `bf7c82ee` runs. | run | extra | end | |---|---|---| | 452 | – | survived 800 s, 5,765 presents | | 453 | log dropped root writes | loss at 450 s (3× 0x887a0007, DRED VA 0x0) | | 454 | root writes clamped as in #1319 (`put_in` only) | loss at 528 s (same signature) | | 455 | race logs below | game access violation at 225 s, before any loss | | 456 | race logs below | loss at 472 s (same signature) | - **Allocator identity at submit:** each list's (recording, backing) is snapshotted before native `ExecuteCommandLists` and compared at `alloc_pool::executed`. 0 mismatches in 448 (`bf7c82ee`) and in 450–456. That is the window `2be80e57`/`3671a8ca` close on `main`. It is open on `amd-dev`, but it did not occur before these losses. - **Mapping waits published before they are established:** both the `before_execute` and the `wait_pending_mappings` paths in `sparse.rs`/`vram.rs` write `waited[queue]` and then wait without the lock. I logged any native Execute on that queue from another thread while such a wait was still unestablished. 0 crossings in 456. - **Root constants:** `bind.rs` `put_in` drops a whole write that runs past the packed arguments. In 453 that happened 8,000+ times, all compute. One shape is 16 B at byte 24 of a 36-byte block; the other is 24 B at byte 48 of 68. That is the bug #1319 fixes on `main`. Clamping it (454) did not stop the loss. - **On `bf7c82ee`, the indirect two-pass path:** when the indirect `DispatchMesh` two-pass path took its argument/io table space from the recording's UMA arena but ran no pass, the device was lost in 4 of 4 runs (434, 438, 439, 441). With the same path but no arena takes, there were 0 losses in 2 runs (443, 444), though both ended in game crashes at 245 s and 512 s. Holding freed UMA blocks for 1 s before reuse (447) did not prevent the loss. Not explained yet. - **Side note:** with direct DXIL (`amd-dev`'s default since `926433d8`), late-run frame rate on this title was about 1–2 fps (449, 451), against about 4 fps with `XCL_DIRECT_DXIL=0` (452–454). Loss times are stochastic (450–630 s here), so each row is one sample. Report written by Claude Code (Claude Opus 5.5) from these runs.
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
xcl-dev/xcl#2609
No description provided.