amd-dev: GPU page fault at an unallocated VA (cs d79af1d04922a49b) during world loading on RX 6800, after the #2582 fix #2609
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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+0x501eb50crash point, but the GPU now faults a few minutes into world loading: device removed0x887a0006, about 6–9 min after launch, once the title records 3 500–7 400 draws per 2 s. 6 of 6 runs on6a0bb5bandb5c0275.With
XCL_DRED=1(run 28,b5c0275), DRED reports a page fault:0x15f209000and nothing was freed there, and it is outside the UMA windows (the log adds no= window N).0x38f5a1e0, and the pipeline is the compute shaderd79af1d04922a49b(a 5 284 Bxbox-nativeCS).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)04e0b95,aa5dbf7,ecf25c0) crash at+0x501eb50before 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 orXCL_DRED=1.XCL version
amd-devat6a0bb5b(runs 20–24) andb5c0275(run 28, DRED), release buildGPU 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.
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-devb5c0275f: 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:b5c0275fplus local log lines only (a counter and the diagnostic below, no behaviour change).XCL_SPLIT_INDIRECT_ROUNDS=2XCL_DRED=10x1f01c0000,allocations there: []; recently freed: [], list0 of 13 operations done, around: >46 0 6, boundcs d79af1d04922a49bXCL_DRED=1 XCL_AMBIENT=00x11a8cd000,>46 0 6,cs d79af1d04922a49bXCL_DRED=1 XCL_VRAM_IO=00x1d304d000,>46 0 6,cs d79af1d04922a49bBEGIN_COMMAND_LIST, a marker, and the firstDispatchwith this CS bound.ambient: applied TemporalResolve/ReflectionHistory stand-in. WithXCL_AMBIENT=0(run 4: no stand-in applied at all), the fault is the same.ioslots (XCL_VRAM_IO=0, run 5).XCL_SPLIT_INDIRECT_ROUNDS=2only made it come sooner, with more draws skipped (7,621 against 2,018).Where the shader can fault. From its translated HLSL (
xcl shaders shaders.rpf --export-hlsl … --record-hash d79af1d04922a49b):ioaccesses are 57io.Load(<constant>); it never touchesres.XCL_MW, the heap windows, each a raw UAV with a size. An address outside them takes the null view atMEM_HEAP_NULL, whichset_window_viewswrites.io/resin one upload block (0x689000xxx) and windows at0x320140000,0x420180000,0x5201c0000,0x300100000. All five fault addresses (#2619's0x15f209000and the four above) lie below the windows and in no allocation.image_load_mipreads:ResourceDescriptorHeap[NonUniformResourceIndex(s12)], withs12taken from the T# the title gives, behindt_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.
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-devc32c91a3. Five of five runs (unmodified build) passed the first world frame with no0x887a0006and no device removal. Onb5c0275it 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 withXCL_FRAME_DUMP=1 XCL_FRAME_DUMP_FROM=2250), afterxcl 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 isWriteBufferImmediate), so the first list not done onb5c0275was three dispatches withcs d79af1d04922a49bbound, then a barrier, one immediate write and a barrier. That shader isDistantObjects:CS_DistanceWindowEmissivesCulling; its translation reads only its parameter block,resand the memory windows, no textures. Onb5c0275the fault address was in no buffer XCL or the title ever made (the lowest buffer address was0x319580000, the faults were at0x13b…–0x1fc…).What ends the runs on
c32c91a3now: 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:game_scarlett_master.exe+0x4e9138e, read at 0x0 (two threads)+0x5188d35, read at 0x60 (two threads)+0x590cda, read at 0xffffffffffffffff;+0x5188d39, read at 0xe4+0x22c463, read at 0x138;+0x4eeaa22, read at 0x0+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:+0x4e40a35, read at 0x38, 284 s), so the access violations did not come in with the last eight commits;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
b5c0275removals, every run crashed about 13 s after launch inamdxc64.dll+0x176cd5, until I movedpso-library\956559c929c41833\gen-00000386.plibout of%LOCALAPPDATA%\xcl\dxil. An emptyXCL_DXIL_CACHEalso 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).
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
c32c91a3it 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.b5c0275fc32c91a3c32c91a3c32c91a3One more data point from
b5c0275f, in case it helps whoever takes this. A local switch that leaves out the draws of the two-passExecuteIndirect(DispatchMesh)path only (directDispatchMeshstill 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:Has anyone with a 12 GB card got past the first world frame on
</html>c32c91a3? The 5/5 above is a 16 GB RX 6800. Logs are available.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
c32c91a3release build apart from local logging.The
amdxc64.dll+0x176cd5startup crash is not explained by "saved just before a device removal". It came back twice today with no removal in between:XCL_HEAP_WINDOWS=1 XCL_UMA_WINDOWS=8started normally with the librarygen-000000fc.1 coherent window) crashed 13 s after launch inamdxc64.dll+0x176cd5, right afteropened memory-mapped pipeline library gen-000000fc.XCL_PSO_LIBRARY=0started normally.XCL_HEAP_WINDOWS=1 XCL_UMA_WINDOWS=8with the library on (nowgen-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):0x887a0006,DRED page fault at GPU VA 0x0, 16.7 GB local video memory0x887a0006,DRED page fault at GPU VA 0x0, 15.5 GB local; 35 of 78 operations done atcs c36e926ce10fe675Neither 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).
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 onc32c91a3plus 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 setXCL_PSO_LIBRARY=0.Written with Claude Code (Claude Fable 5.2) from runs on my machine.
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-devf84a949with287a931breverted, warm shader cache,XCL_PREPARE=0, no input.With
XCL_DRED=1, at 221.8 s: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.
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-dev7c795f5e, 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 inDRED page fault at GPU VA 0x0; allocations there: []at 215-224 s (0x887a0007, 0x887a0020 once).XCL_ASYNC_HEAVY_COMPUTE=0XCL_BVH_BUILDER=1So 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.
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).
XCL_RT_GATE=hold, the log showsRT-gated compute PSO … held back without compilingpast 1024 by 13 s. These are exactly the pipelines whose dispatches later appear asDispatch/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.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=0with--precompile --pipelines), or with more RAM, could checkmisspast 230 s.AI-assisted (Claude Code with Claude Opus 5.5); run by me on the hardware above.
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-dev7c795f5e+ local changes, Series S (lockhart),XCL_DRED=1,XCL_PREPARE=0, A pressed automatically.xcl shaders <pack> --precompile --only cs --pipelineswithXCL_RT_GATE=missbuilt 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.e65ae75db85e9485, atamdxc64.dll+0x792466(access violation, 4 out of 4 tries). I found it by compiling one pipeline at a time withXCL_PSO_TRACE=1. It is not the #2874 offset. I kept it out withXCL_PSO_SKIP_FILE, which I made the offline pass honor as well (local change).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_PREPAREon,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.
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), plusXCL_PREPAREon andXCL_BVH_BUILDER=1.D3D12 device removed: 0x887a0007, and DRED reported no page fault. The title then hit a breakpoint (0x80000003at+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.
Imported from ivall/xcl. Originally posted by bobosneefdev on 2026-11-28T01:24:47Z.
RX 6800: the
0x887a0007/DRED page fault at GPU VA 0x0loss 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-devbf7c82ee, plus local diagnostic env switches that only skip work. Runs 331/332 used494f08b2. Release build, Series X package 1.0.2.1, A pressed throughXCL_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.
&1==0/&3==0&7==0/&7==4&3==0again (repeat of 345)What this does and does not show:
Write64signals 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.Report written by Claude Code (Claude Opus 5.5) from runs on the hardware above.
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.
dxdiagon this machine (RX 6750 XT, driver 32.0.21045.29003, Windows 11 26200) reportsHardware 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:0x887a0007with 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.
Imported from ivall/xcl. Originally posted by bobosneefdev on 2026-11-28T21:40:50Z.
RX 6800 on
amd-dev7c795f5e: the0x887a0007/ 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
7c795f5eplus local switches that only log or skip work. Series X package 1.0.2.1, warm cache, A pressed throughXCL_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 earlierbf7c82eeruns.put_inonly)ExecuteCommandListsand compared atalloc_pool::executed. 0 mismatches in 448 (bf7c82ee) and in 450–456. That is the window2be80e57/3671a8caclose onmain. It is open onamd-dev, but it did not occur before these losses.before_executeand thewait_pending_mappingspaths insparse.rs/vram.rswritewaited[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.bind.rsput_indrops 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 onmain. Clamping it (454) did not stop the loss.bf7c82ee, the indirect two-pass path: when the indirectDispatchMeshtwo-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.amd-dev's default since926433d8), late-run frame rate on this title was about 1–2 fps (449, 451), against about 4 fps withXCL_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.