amd-dev: RX 6800 reaches the world, then 0xc0000005 at game+0x501eb50 in sparse memory #2582

Open
opened 2026-11-26 05:34:21 +00:00 by github-bot · 5 comments
Owner

@⁠bobosneefdev on GitHub · 2026-11-26 00:04 UTC · original

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

What happens
On the amd-dev branch the title now reaches the world on an RX 6800: the offline precompile (xcl shaders <shaders.rpf> --precompile --only cs --pipelines --used-only, XCL_PIPELINE_THREADS=11) finished in 488 s (565 pipelines made, 0 refused, 290 held back by XCL_RT_GATE=hold), and xcl run gets to the title's Game State: Game Running in about 2 minutes at 18-27 fps with no late pipelines.

About 2 minutes later (frame ~2300) it crashes, the same way in three runs:

unhandled exception 0xc0000005 in game_scarlett_master.exe+0x501eb50 (write at address 0x46eb25920)
rcx=0x2e000 rdi=0x46eb25920 rbx=0xffffffff
  • +0x501eb50 is the first store of a loop that clears 128 entries of 0x5c0 bytes (0x2e000 in all, the rcx above). It reads the table's address from a global, so the title was given that memory and its pages are not mapped when it first writes them.
  • The address is in the sparse windows, just above where the outside-UMA backing from 2af0155 goes (highest logged: sparse UMA 0x46e8c3400).
  • Runs 13 and 14 at 04e0b95 wrote to 0x46eb25920. Run 15 at aa5dbf7 (without 04e0b95) wrote to 0x46eb45920, so 04e0b95 is not the cause.
  • With XCL_OUTSIDE_BUFFERS=0 (run 16) it did not get there: GPU queue waits timed out (fence stuck at 0), then the device was removed (0x887a0006) around frame 1200. That did not isolate it.

Env for every run: XCL_COHERENT_MB=512 XCL_NETWORK=0 XCL_ACTIVITY=1, no other XCL_* variables.

XCL version
amd-dev at 04e0b95 (runs 13, 14, 16) and aa5dbf7 (run 15), 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 four runs and can attach them.

Console output
See above.

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

**@⁠bobosneefdev** on GitHub · 2026-11-26 00:04 UTC · [original](https://github.com/xcl-dev/xcl/issues/2582) **Game and package version** GTA VI (Xbox Series X|S package), 1.0.2.1 **What happens** On the `amd-dev` branch the title now reaches the world on an RX 6800: the offline precompile (`xcl shaders <shaders.rpf> --precompile --only cs --pipelines --used-only`, `XCL_PIPELINE_THREADS=11`) finished in 488 s (565 pipelines made, 0 refused, 290 held back by `XCL_RT_GATE=hold`), and `xcl run` gets to the title's `Game State: Game Running` in about 2 minutes at 18-27 fps with no late pipelines. About 2 minutes later (frame ~2300) it crashes, the same way in three runs: ``` unhandled exception 0xc0000005 in game_scarlett_master.exe+0x501eb50 (write at address 0x46eb25920) rcx=0x2e000 rdi=0x46eb25920 rbx=0xffffffff ``` - `+0x501eb50` is the first store of a loop that clears 128 entries of 0x5c0 bytes (0x2e000 in all, the `rcx` above). It reads the table's address from a global, so the title was given that memory and its pages are not mapped when it first writes them. - The address is in the sparse windows, just above where the outside-UMA backing from `2af0155` goes (highest logged: `sparse UMA 0x46e8c3400`). - Runs 13 and 14 at `04e0b95` wrote to `0x46eb25920`. Run 15 at `aa5dbf7` (without `04e0b95`) wrote to `0x46eb45920`, so `04e0b95` is not the cause. - With `XCL_OUTSIDE_BUFFERS=0` (run 16) it did not get there: GPU queue waits timed out (fence stuck at 0), then the device was removed (`0x887a0006`) around frame 1200. That did not isolate it. Env for every run: `XCL_COHERENT_MB=512 XCL_NETWORK=0 XCL_ACTIVITY=1`, no other `XCL_*` variables. **XCL version** `amd-dev` at `04e0b95` (runs 13, 14, 16) and `aa5dbf7` (run 15), 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 four runs and can attach them. **Console output** See above. Tested and written up with Claude Code (Claude Opus 5.5). I checked it before posting.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:34:21 +00:00
Author
Owner

@⁠bobosneefdev on GitHub · 2026-11-26 00:27 UTC · original

Follow-up: xcl's sparse allocator never handed out the range the title writes to.

  • With a local diagnostic (not part of the branch) that logs every take, release, commit and decommit in the gpu::uma sparse allocator and in d3d12x::sparse over 0x46ea00000-0x46ec00000, run 18 crashed at 0x46eb15920 with nothing logged for that range. The outside-UMA backing tops out below it (0x46e879000, #128).
  • XCL_TRACE_MEM (run 17) shows no title allocation of 64 KiB or more covering it either; the title's sparse graphics allocations end around 0x469a….
  • Across five runs the crash address varies (0x46ead9920, 0x46eb15920, 0x46eb25920 twice, 0x46eb45920) and the frame count varies too (about 1 200 to 5 100), always at the same entry offset (…920). So the title computes a base pointer into sparse VA that nothing allocated. The loop loads that base from a global: +0x501eb33 add rdi, [rip+0x5afbb8e].

Same hardware and env as above, amd-dev at 04e0b95. Tested and written up with Claude Code (Claude Opus 5.5); checked by @⁠bobosneefdev before posting.

**@⁠bobosneefdev** on GitHub · 2026-11-26 00:27 UTC · [original](https://github.com/xcl-dev/xcl/issues/2582#issuecomment-7178771079) Follow-up: xcl's sparse allocator never handed out the range the title writes to. - With a local diagnostic (not part of the branch) that logs every take, release, commit and decommit in the `gpu::uma` sparse allocator and in `d3d12x::sparse` over `0x46ea00000`-`0x46ec00000`, run 18 crashed at `0x46eb15920` with **nothing logged** for that range. The outside-UMA backing tops out below it (`0x46e879000`, #128). - `XCL_TRACE_MEM` (run 17) shows no title allocation of 64 KiB or more covering it either; the title's sparse graphics allocations end around `0x469a…`. - Across five runs the crash address varies (`0x46ead9920`, `0x46eb15920`, `0x46eb25920` twice, `0x46eb45920`) and the frame count varies too (about 1 200 to 5 100), always at the same entry offset (`…920`). So the title computes a base pointer into sparse VA that nothing allocated. The loop loads that base from a global: `+0x501eb33 add rdi, [rip+0x5afbb8e]`. Same hardware and env as above, `amd-dev` at `04e0b95`. Tested and written up with Claude Code (Claude Opus 5.5); checked by @⁠bobosneefdev before posting.
Author
Owner

@⁠relativespace2K on GitHub · 2026-11-26 01:14 UTC · original · edited 2026-11-26 01:22 UTC

Tested - 32 GB machine, amd-dev heads 04e0b95, bf02341f, 6a0bb5b4, retail GTA6 1.0.2.1

  • AMD Radeon RX 6800 XT (16338 MiB), driver 32.0.21045.29003; Ryzen 5 5600, 31.9 GB;
    Windows 11 IoT Enterprise LTSC 26100; release build; DXC 1.9.2602.17.
  • Every run: XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_RUN_SECONDS=...; no other XCL_* variables
    unless named below.
  • On bf02341f: xcl shaders shaders.rpf --precompile --only cs --pipelines --used-only
    with XCL_PIPELINE_THREADS=11: 516 pipelines made, 0 refused, 150 held by XCL_RT_GATE=hold.
tree run result
04e0b95 240 s 1,749 presents, stops at frame 1700 (~179 s); 0 presents/draws after; exit 0
bf02341f 600 s 1,809 presents; 48 graphics PSO builds, 424 s total; one compute waited 392 s at the gate; no crash
bf02341f, warm .plib 600 s 1,964 presents; still stops after the key-art loading screen
bf02341f, XCL_HUGE_PSO_CONCURRENCY=4 600 s device removed 0x887a0006 at 184 s
6a0bb5b4 (with e4b66e57) 600 s 1,775 presents, last frame 1700; exit 0; no crash

On 6a0bb5b4 the 0xc0000005 at game+0x501eb50 did not reproduce, but the title never
reached Game State: Game Running, so the fix is not exercised up to that point. The title
stops presenting at ~179 s and stays idle (0 presents/submits/draws/dispatches). On
bf02341f, a thread dump at 130/140/160 s showed only xcl-pso-0 active in amdxc64.dll;
no queue.Wait timeout and no device removal.

From 453 s on 6a0bb5b4 the log repeats unified memory is full; at 564 s it reports
coherent 4095/4095 MB, 47757 draws with translated pipelines (65536 skipped) and
628 blocks held for 344 allocators. The full coherent window is visible after the stall,
so it may be a consequence as much as a cause.

Not tested: 64 GB RAM, other GPUs, debug build.

AI use: OpenCode with DeepSeek V4.1 Flash 1017 ran the tests, read the logs and wrote this comment; the results and crash lines were checked against the run logs.

**@⁠relativespace2K** on GitHub · 2026-11-26 01:14 UTC · [original](https://github.com/xcl-dev/xcl/issues/2582#issuecomment-7179580254) · edited 2026-11-26 01:22 UTC **Tested** - 32 GB machine, amd-dev heads `04e0b95`, `bf02341f`, `6a0bb5b4`, retail GTA6 1.0.2.1 - AMD Radeon RX 6800 XT (16338 MiB), driver 32.0.21045.29003; Ryzen 5 5600, 31.9 GB; Windows 11 IoT Enterprise LTSC 26100; release build; DXC 1.9.2602.17. - Every run: `XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_RUN_SECONDS=...`; no other XCL_* variables unless named below. - On `bf02341f`: `xcl shaders shaders.rpf --precompile --only cs --pipelines --used-only` with `XCL_PIPELINE_THREADS=11`: 516 pipelines made, 0 refused, 150 held by `XCL_RT_GATE=hold`. | tree | run | result | |---|---:|---| | `04e0b95` | 240 s | 1,749 presents, stops at frame 1700 (~179 s); 0 presents/draws after; exit 0 | | `bf02341f` | 600 s | 1,809 presents; 48 graphics PSO builds, 424 s total; one compute waited 392 s at the gate; no crash | | `bf02341f`, warm `.plib` | 600 s | 1,964 presents; still stops after the key-art loading screen | | `bf02341f`, `XCL_HUGE_PSO_CONCURRENCY=4` | 600 s | device removed `0x887a0006` at 184 s | | `6a0bb5b4` (with `e4b66e57`) | 600 s | 1,775 presents, last frame 1700; exit 0; no crash | On `6a0bb5b4` the `0xc0000005` at `game+0x501eb50` did not reproduce, but the title never reached `Game State: Game Running`, so the fix is not exercised up to that point. The title stops presenting at ~179 s and stays idle (0 presents/submits/draws/dispatches). On `bf02341f`, a thread dump at 130/140/160 s showed only `xcl-pso-0` active in `amdxc64.dll`; no `queue.Wait` timeout and no device removal. From 453 s on `6a0bb5b4` the log repeats `unified memory is full`; at 564 s it reports `coherent 4095/4095 MB`, `47757 draws with translated pipelines (65536 skipped)` and `628 blocks held for 344 allocators`. The full coherent window is visible after the stall, so it may be a consequence as much as a cause. **Not tested**: 64 GB RAM, other GPUs, debug build. **AI use**: OpenCode with DeepSeek V4.1 Flash 1017 ran the tests, read the logs and wrote this comment; the results and crash lines were checked against the run logs.
Author
Owner

@⁠madaraXor on GitHub · 2026-11-26 11:43 UTC · original

Another RDNA2 data point for amd-dev: a GPU page fault at an address with no allocation, at world load, in every run.

Setup

  • RX 6700 XT 12 GB, driver 32.0.21045.29003 (as above); Ryzen 5 5600X, 16 GB RAM + 96 GB page file; Windows 10 22H2; release.
  • Tree: amd-dev b5c0275 + #1435 (XG argument fix) + a local XCL_SPLIT_CS (one program in the split wave64 form, as AMD's compiler crashes on its native wave64 DXIL). So not plain amd-dev.
  • XCL_NETWORK=0 XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1, A pressed through the menus.

Six runs, all removed with 0x887a0006 at world load (416–510 s), after the loading-art frames:

run difference removed at
b XCL_GPU_VIEW_BUFFERS=1 509 s
c + XCL_GPU_CULPRIT=1 509.9 s
d + XCL_AMBIENT=0 416.8 s
e + XCL_INDIRECT_PRELUDE=0 (instead of the ambient switch) 473 s
f + XCL_DRED=1 460 s
g DRED, XCL_GPU_VIEW_BUFFERS=0 432 s
  • XCL_GPU_CULPRIT=1: 0 lists with a dispatch started and not done, both at the removal and in the 6-s reports before it. I made stop_if_device_removed call culprit::on_watchdog_release() locally for this.
  • DRED (f, g):
    • page fault at GPU VA 0x178391000; allocations there: []; recently freed: [], then 0x13d8d8000, likewise with nothing. Neither address is in a UMA window.
    • Every list DRED reports is at 0 of N operations done (op 46, BEGIN_COMMAND_LIST): queued behind the fault, not the one that made it.
    • The pipelines bound in those lists differ between the two runs; only cs d79af1d04922a49b is in both.
  • Ruled out:
    • the ambient stand-in passes (d hangs without them);
    • the indirect prelude (e hangs with it inline);
    • the GPU-view buffers (g hangs with them off).
  • The removal comes about 0.1 s after an indirect prelude batch line in b–d, as the title resumes submitting after waiting on compute builds.
  • No TDR event: only the process's device is lost.
  • For comparison, a tree based on main 65fc114 with #1803/#2229/#2384/#1795 never got this removal on this card; it stood still on driver compiles instead.

I can run more switches or a build with a diagnostic if someone wants a specific one. Logs are kept here.

Claude Code (Claude Opus 5.5): ran the runs and read the logs; counts, times, addresses and hashes only.

**@⁠madaraXor** on GitHub · 2026-11-26 11:43 UTC · [original](https://github.com/xcl-dev/xcl/issues/2582#issuecomment-7191082994) Another RDNA2 data point for `amd-dev`: a GPU page fault at an address with no allocation, at world load, in every run. **Setup** - RX 6700 XT 12 GB, driver 32.0.21045.29003 (as above); Ryzen 5 5600X, 16 GB RAM + 96 GB page file; Windows 10 22H2; release. - Tree: `amd-dev` `b5c0275` + #1435 (XG argument fix) + a local `XCL_SPLIT_CS` (one program in the split wave64 form, as AMD's compiler crashes on its native wave64 DXIL). So not plain `amd-dev`. - `XCL_NETWORK=0 XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1`, A pressed through the menus. **Six runs, all removed with `0x887a0006` at world load** (416–510 s), after the loading-art frames: | run | difference | removed at | |---|---|---:| | b | `XCL_GPU_VIEW_BUFFERS=1` | 509 s | | c | + `XCL_GPU_CULPRIT=1` | 509.9 s | | d | + `XCL_AMBIENT=0` | 416.8 s | | e | + `XCL_INDIRECT_PRELUDE=0` (instead of the ambient switch) | 473 s | | f | + `XCL_DRED=1` | 460 s | | g | DRED, `XCL_GPU_VIEW_BUFFERS=0` | 432 s | - **`XCL_GPU_CULPRIT=1`**: 0 lists with a dispatch started and not done, both at the removal and in the 6-s reports before it. I made `stop_if_device_removed` call `culprit::on_watchdog_release()` locally for this. - **DRED** (f, g): - `page fault at GPU VA 0x178391000; allocations there: []; recently freed: []`, then `0x13d8d8000`, likewise with nothing. Neither address is in a UMA window. - Every list DRED reports is at `0 of N operations done` (op 46, `BEGIN_COMMAND_LIST`): queued behind the fault, not the one that made it. - The pipelines bound in those lists differ between the two runs; only `cs d79af1d04922a49b` is in both. - **Ruled out:** - the ambient stand-in passes (d hangs without them); - the indirect prelude (e hangs with it inline); - the GPU-view buffers (g hangs with them off). - The removal comes about 0.1 s after an `indirect prelude batch` line in b–d, as the title resumes submitting after waiting on compute builds. - No TDR event: only the process's device is lost. - For comparison, a tree based on `main` `65fc114` with #1803/#2229/#2384/#1795 never got this removal on this card; it stood still on driver compiles instead. I can run more switches or a build with a diagnostic if someone wants a specific one. Logs are kept here. *Claude Code (Claude Opus 5.5): ran the runs and read the logs; counts, times, addresses and hashes only.*
Author
Owner

@⁠SlopTart on GitHub · 2026-11-26 12:04 UTC · original

Test suite layer, Linux/Wine on RDNA3: on current amd-dev the suite itself cannot finish. Same branch, no game needed.

We run xcl's own test suite under Wine on an RX 7900 XT, no title involved. On amd-dev b5c0275f the non-gpu suite aborts in two consecutive full runs (test host exit status 5), both around list_x::tests::a_dispatch_with_a_pipeline_still_building_waits_at_the_submit. Solo, that test fails deterministically, 5/5, with:

dispatch 17 waited for the build (9.9706821s)

at list_x.rs:8253. The same test, same machine, same env, same day, solo with --exact:

tree result
main b49be183 pass 2/2, finished in 0.47 s
nvidia-dev af2cecc4 pass 2/2, finished in 0.48 s
amd-dev b5c0275f fail 5/5, waited ~10.1 s then panicked; host aborts in full runs

So the pipeline the test holds open mid-build never lands on this branch and eats the whole wait budget, while main and nvidia-dev land it under half a second.

This is a different subsystem from the sparse VA writes above (here it is PSO build completion at submit, and the non-gpu suite does no real GPU submissions), so we are not claiming it is the same bug. We are flagging that amd-dev is broken at the test level too, on Linux/Wine, right now: the whole non-gpu suite runs in about 15 s, so it is a cheap smoke gate before committing to 10-minute world-load runs. Related: our #2688 comment covers amd-dev aborting the suite and three branch-new nvidia-dev reds in this same lane.

Tested: Linux, Arch, kernel 7.2.15, RX 7900 XT 20 GB (Navi 31), Mesa 26.2.5 RADV, wine-11.0 (Proton), standard lane env (d3d12,d3d12core,dxgi,d3d11,d3d10core=n,b overrides, official DXC kit, VKD3D_CONFIG=ignore_shared_fence). Solo runs above: 2 per branch fresh, amd-dev 5 total including earlier reproductions.

Not tested: Windows native, and whether this test also fails for Windows amd-dev lanes. If someone with a Windows amd-dev lane runs:
cargo test -p xcl --lib -- hle::d3d12x::list_x::tests::a_dispatch_with_a_pipeline_still_building_waits_at_the_submit --exact
that one line settles whether this is Wine-only or branch-wide.

AI use: Hermes agent (local Qwen-class) ran the rig and drafted this; I checked it before posting.

**@⁠SlopTart** on GitHub · 2026-11-26 12:04 UTC · [original](https://github.com/xcl-dev/xcl/issues/2582#issuecomment-7191534384) **Test suite layer, Linux/Wine on RDNA3: on current `amd-dev` the suite itself cannot finish. Same branch, no game needed.** We run xcl's own test suite under Wine on an RX 7900 XT, no title involved. On `amd-dev` `b5c0275f` the non-gpu suite aborts in two consecutive full runs (test host exit status 5), both around `list_x::tests::a_dispatch_with_a_pipeline_still_building_waits_at_the_submit`. Solo, that test fails deterministically, 5/5, with: ``` dispatch 17 waited for the build (9.9706821s) ``` at `list_x.rs:8253`. The same test, same machine, same env, same day, solo with `--exact`: | tree | result | |---|---| | `main` `b49be183` | pass 2/2, finished in 0.47 s | | `nvidia-dev` `af2cecc4` | pass 2/2, finished in 0.48 s | | `amd-dev` `b5c0275f` | fail 5/5, waited ~10.1 s then panicked; host aborts in full runs | So the pipeline the test holds open mid-build never lands on this branch and eats the whole wait budget, while main and nvidia-dev land it under half a second. This is a different subsystem from the sparse VA writes above (here it is PSO build completion at submit, and the non-gpu suite does no real GPU submissions), so we are not claiming it is the same bug. We are flagging that `amd-dev` is broken at the test level too, on Linux/Wine, right now: the whole non-gpu suite runs in about 15 s, so it is a cheap smoke gate before committing to 10-minute world-load runs. Related: our #2688 comment covers `amd-dev` aborting the suite and three branch-new `nvidia-dev` reds in this same lane. **Tested**: Linux, Arch, kernel 7.2.15, RX 7900 XT 20 GB (Navi 31), Mesa 26.2.5 RADV, wine-11.0 (Proton), standard lane env (`d3d12,d3d12core,dxgi,d3d11,d3d10core=n,b` overrides, official DXC kit, `VKD3D_CONFIG=ignore_shared_fence`). Solo runs above: 2 per branch fresh, amd-dev 5 total including earlier reproductions. **Not tested**: Windows native, and whether this test also fails for Windows `amd-dev` lanes. If someone with a Windows amd-dev lane runs: `cargo test -p xcl --lib -- hle::d3d12x::list_x::tests::a_dispatch_with_a_pipeline_still_building_waits_at_the_submit --exact` that one line settles whether this is Wine-only or branch-wide. **AI use**: Hermes agent (local Qwen-class) ran the rig and drafted this; I checked it before posting.
Author
Owner

@⁠spicbully-star on GitHub · 2026-11-26 13:07 UTC · original

A related crash on RDNA4. It's in the same class: the title writes into VA that XCL never committed. The address follows the end of the coherent window(s) wherever they are.

Setup: RX 9070 XT, i7-9700K, 32 GB, Windows 10 22H2 with the Agility SDK v620 through XCL_D3D12_DIR, amd-dev b5c0275 (release). Base env: XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_PSO_WAIT_MS=360000 XCL_PSO_IMAGE_SKIP=1 XCL_HUGE_PSO_CONCURRENCY=3. No offline precompile on this build. uma_coherent.txt holds 4,804,771,840 (4,582 MB).

The crash: the intro and menu are fine. In the world loading screen, at 112–134 s:
unhandled exception 0xc0000005 in VCRUNTIME140.dll+0x1dcf3 (write at …), rbx=0x800, rdi=0x1800
on the stack: xcl.exe+0x6bbd00, game+0x979f5b, game+0x4fb0c2f, game+0x50bb3f0, game+0x979db0, game+0x56e1962
That's a memcpy the title starts. It's not +0x501eb50, but the pattern looks the same.

run layout from the log write address result
default (×3) 3 sparse + 1 coherent (4095 MB) at 0x400000000 (ends 0x800000000) 0x806b57ee0, 0x80a0c5d40, 0x849752180 crash 114–134 s
XCL_VRAM_SMALL=0 same 0x806799fe0 crash 118 s
XCL_VRAM_IO=0 same 0x803dc6680 crash 114 s
XCL_VRAM_ARENAS=1 same – device removed 0x887a0007 at 115 s instead
XCL_UMA_WINDOWS=8 3 sparse + 2 coherent (5094 MB) at 0x800000000 0xcc4757620 crash 129 s
XCL_UMA_WINDOWS=8 XCL_COHERENT_MB=8192 3 sparse + 3 coherent (8192 MB) at 0x800000000 (ends 0xd00000000) 0xd8a55bec0 crash 112 s

So making the coherent space larger doesn't help. The write moves with the layout and always lands a few MB to ~2.2 GB past the end of the last coherent window. It looks like the base pointer you described above: the title computes an address relative to its memory, and nothing allocated it.

One more note: with the default layout, the title's recorded coherent need (4,582 MB) is larger than the single 4,095 MB coherent window that the 4-window layout allows. I don't know if that's related, but it's the only size mismatch I can see.

Tested and written up with Claude (Claude Opus 5.5). I can rerun with XCL_TRACE_MEM or any other switch that would help.

**@⁠spicbully-star** on GitHub · 2026-11-26 13:07 UTC · [original](https://github.com/xcl-dev/xcl/issues/2582#issuecomment-7192902897) A related crash on RDNA4. It's in the same class: the title writes into VA that XCL never committed. The address follows the end of the coherent window(s) wherever they are. **Setup:** RX 9070 XT, i7-9700K, 32 GB, Windows 10 22H2 with the Agility SDK v620 through `XCL_D3D12_DIR`, amd-dev `b5c0275` (release). Base env: `XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_PSO_WAIT_MS=360000 XCL_PSO_IMAGE_SKIP=1 XCL_HUGE_PSO_CONCURRENCY=3`. No offline precompile on this build. `uma_coherent.txt` holds 4,804,771,840 (4,582 MB). **The crash:** the intro and menu are fine. In the world loading screen, at 112–134 s: `unhandled exception 0xc0000005 in VCRUNTIME140.dll+0x1dcf3 (write at …)`, rbx=0x800, rdi=0x1800 on the stack: `xcl.exe+0x6bbd00, game+0x979f5b, game+0x4fb0c2f, game+0x50bb3f0, game+0x979db0, game+0x56e1962` That's a memcpy the title starts. It's not `+0x501eb50`, but the pattern looks the same. | run | layout from the log | write address | result | |---|---|---|---| | default (×3) | 3 sparse + 1 coherent (4095 MB) at 0x400000000 (ends 0x800000000) | 0x806b57ee0, 0x80a0c5d40, 0x849752180 | crash 114–134 s | | `XCL_VRAM_SMALL=0` | same | 0x806799fe0 | crash 118 s | | `XCL_VRAM_IO=0` | same | 0x803dc6680 | crash 114 s | | `XCL_VRAM_ARENAS=1` | same | – | device removed 0x887a0007 at 115 s instead | | `XCL_UMA_WINDOWS=8` | 3 sparse + 2 coherent (5094 MB) at 0x800000000 | 0xcc4757620 | crash 129 s | | `XCL_UMA_WINDOWS=8 XCL_COHERENT_MB=8192` | 3 sparse + 3 coherent (8192 MB) at 0x800000000 (ends 0xd00000000) | 0xd8a55bec0 | crash 112 s | So making the coherent space larger doesn't help. The write moves with the layout and always lands a few MB to ~2.2 GB past the end of the last coherent window. It looks like the base pointer you described above: the title computes an address relative to its memory, and nothing allocated it. One more note: with the default layout, the title's recorded coherent need (4,582 MB) is larger than the single 4,095 MB coherent window that the 4-window layout allows. I don't know if that's related, but it's the only size mismatch I can see. Tested and written up with Claude (Claude Opus 5.5). I can rerun with `XCL_TRACE_MEM` or any other switch that would help.
This discussion has been locked. Commenting is limited to contributors.
No description provided.