[amd-dev] Device removed (0x887a0006) 1–1.5 min into rendering on RX 9070 XT – DRED page fault at GPU VA 0x0 in a compute dispatch, reproducible #2616
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 therealobscure on 2026-11-26T03:05:12Z.
Game and package version
New Retail Game
What happens
Summary
After pipelines are cached, the game boots and renders (about 1,700 frames presented), then the D3D12 device is removed. With
XCL_DRED=1, DRED reports a GPU page fault at address 0x0 during a compute dispatch. The fault is at the same command-list position and in the same shader across runs.Environment
amd-dev, commit<short commit hash><Adrenalin version><version/build>What happens
report.json: 1,717 presents, 2,920 translated pipelines, 0 failed pipelines, 0 translation errors, DXIL cache 6,073 hits / 1 miss.XCL_NETWORK=0was set for two runs and not for the others. It made no difference to the crash.DRED output (77 s run; the 91 s run is identical apart from addresses and timestamps)
Both DRED runs report 208 of 319 operations done, the same marker position on a Dispatch, and the same bound shader. The other listed command lists show
0 of N operations donewith a>46marker, so they look like queued work that had not started.Sequence before removal
The same order appears before removal in the other runs: a Wait64 bridged to the GPU queue with
prod=qNone, the indirect prelude batches, then removal about 2.7–3.2 s later. In two earlier runs, a smallformat dxilhelper shader (cs 57bbc751c63ffbf7) was loaded between the Wait64 bridge and the prelude batches.Skipped work (possibly related)
In every run, the log reports roughly the same amount of skipped work before the crash:
console code so far: 22992 draws with translated pipelines (48 skipped, ...), 10096 dispatches (512 skipped)Dispatch with a pipeline that has no translated console shader (...) skippedandExecuteIndirect dispatch with a pipeline that has no translated console shader (...) skippedwarningsExecuteIndirect with a pipeline that is still being built skipped(4 logged, the logging cap)The skipped dispatch count (about 512) did not fall with warm caches, so these look systematic rather than just pipelines still building. Possible link, and I can't confirm it: a skipped pass leaves a buffer (an address table?) unwritten, and a later dispatch reads zero as a pointer, giving the page fault at 0x0.
Other warnings in the log (unsure if related)
a UAV of a resource that cannot have one on the PC (a depth buffer) – a null viewa command list is submitted while its previous submit is still on the GPU ... (debug layer id 553)[STUB] ID3D12GraphicsCommandList10::#101 (not on PC), called fromgame_scarlett_master.exe+0x50a6657CopyMemoryToMemoryX: ... is not in unified memory – not doneXGameRuntime is missing required dependencies, run GamingRepair.exeQuestions
amd-dev?XCL_PSO_TRACE, something else)?I have the full logs and
report.jsonfor each run and can post them if useful.XCL version
b5c0275fGPU and driver version
AMD RX 9070 XT 26.11.1
Windows version
Windows 11 26H2
report.json and xcl.log
report.json
xcl.log
Console output
Imported from ivall/xcl. Originally posted by komglebissarov on 2026-11-26T17:24:39Z.
Reproduced on the current
amd-devheadc32c91a3, on another RX 9070 XT, in the first run after a--used-onlycompute precompile. The DRED output is the same as in the report, down to the operation count, so the fault looks deterministic. Today's sparse and readback commits (253108c2,c32c91a3) and theXCL_INLINE_GUARD_BATCHdefault change (2f918710) do not change it.Setup
amd-devc32c91a3with no local changes; DXC 1.9.2602.17 (Windows SDK 10.0.26100.0).xcl shaders <pack> --precompile --only cs --pipelines --used-onlywithXCL_PIPELINE_THREADS=12: 597 pipelines made, 0 refused, 297 held back byXCL_RT_GATE=hold, 278 s.XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_DRED=1 XCL_FRAME_DUMP=1 XCL_RUN_SECONDS=600, with the menus passed byXCL_PRESS_A_AT. Default memory layout: 4 windows from the descriptor heap, coherent window 4095 MB.Result (1 run): device removed (
0x887a0006) at 142.6 sEvery other list DRED names is at
0 of Noperations done.xcl shaders --export-hlsl --record-hash.cs 39f23deaf6a63310is bound at the dispatch DRED stopped at:cascadeshadows_classify:CS_ShadowUnifiedClearRaster(3,360 B container).cs 2a2ddc1bbf1c7260is bound right after it:cascadeshadows_processing:CS_MinMaxDilate5x5. DRED's count can lag behind the GPU, so the fault may be in this dispatch instead.39f23deaf6a63310bindsio,resand the memory windows as root UAVs (u0–u5) and takes its other views from the descriptor heap.prod=qNonewait in this run. All 8 bridgedWait64BitValueXwaits (88.9–89.0 s) hadprod=qSome(1), and there was one indirect prelude batch (595 scale jobs). Theprod=qNonewait is therefore not needed for this fault.report.json: 2,307 translated pipelines, 0 failed, DXIL cache 3,838 hits / 390 misses.Not tested
XCL_RT_GATE=autoor0, to see whether the skipped RT dispatches leave something unwritten that the shadow pass reads.Run and write-up with Claude Code (Claude Opus 5.5): it built the branch, ran the title, read the log and wrote this. I checked it before posting.
Second run, with the RT passes on (
XCL_RT_GATE=auto). Same build and settings as above, plusXCL_RT_GATE=autoandXCL_PSO_SKIP_FILEwith only95cc13288a27a96e, which the AMD driver does not finish. Before it, an RT precompile with the same switches, stopped after 325 pipelines.cs 39f23deaf6a63310bound, the same four pipelines after it.BVH builder dispatch ready). Theconsole code so farcount showed 0 skipped dispatches, against 512 in the first run.So the held-back RT dispatches are probably not the cause. This run does not rule out an RT program that was still building.
Imported from ivall/xcl. Originally posted by HKEY-Funk-Machine on 2026-11-26T19:21:57Z.
Same fault on a third RX 9070-series card, on
amd-devc32c91a3and on the current head71b8e6e0, plus what it is not: a logging-only trace of the faulting dispatch rules out bad root arguments, bad descriptors, unbound heaps and driver scratch memory.Setup
amd-devc32c91a3and71b8e6e0. Local changes: a startup workaround inxgameruntime/api.rs(XCL_NO_PC_RUNTIME=1), and logging-only diagnostics (env-gated, behaviour unchanged).xcl shaders <pack> --precompile --only cs --pipelines --used-only,XCL_PIPELINE_THREADS=12(595–596 made, 0 refused, 300 held byXCL_RT_GATE=hold), under the same exe name as the runs.XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_DRED=1 XCL_RUN_SECONDS=240, menus passed withXCL_PRESS_A_AT; on71b8e6e0alsoXCL_PREPARE=0, with the precompile above instead.Result: 8 of 8 runs removed the device, all with the same DRED signature
DRED page fault at GPU VA 0x0,201–219 of 312–320 operations done, around: 15 6 0 >6 0 15,pipeline bound there: cs 39f23deaf6a63310,bound after it: cs 2a2ddc1bbf1c7260, cs 07b0003f0b1a772a, …(208 of 319 in 6 of the 8 runs).XCL_RT_GATE=auto(no RT programs held, 0 dispatches skipped): same fault, same shader.71b8e6e0, flight log: all ten queues stop within a few ms of each other, about 2.5 s before the removal. The title queue is at 7,261 of 7,265, and its signal 7,262 is the submit sent just before (104.800 s), so that submit holds the faulting list. The other queues (a second title queue, vram pages, sparse, sparse readback, gpu-awake) only wait.Ruled out (logging at
bind_abi, at the bind in the faulting list)39f23deaf6a63310is bound once per run, the first time in the faulting list. The root signature is set fresh, and all six root UAVs (io,res, the four windows) are non-zero and matchuma_window_vas.+0x40, 24buffer_stores at offsets 0–0x60) is all zeros, so it goes to the out-of-window null view (MEM_HEAP_NULL), whose AMD descriptor is all zeros.globallycoherentraw UAV made asset_window_viewsmakes it, 25 stores + an atomic at offsets 0–0x60, index from a root constant) runs with no fault and no removal. Stores are dropped, loads and atomics return 0.2a2ddc1bbf1c7260: its one input image is read through a valid SRV, and all seven image stores (mips of two textures) have real UAV descriptors.SetDescriptorHeaps/ResetXCL issues shows the faulting list holding the shared view + sampler heaps at the bind (title reset → title set →restore_bindings, nothing after;heaps_ensuredtrue).39f23deaf6a63310: 96 SGPR / 69 VGPR, 32 KiB LDS.2a2ddc1bbf1c7260: 44 SGPR / 59 VGPR.buffer_/image_/s_loadop, all through descriptors: noglobal_/flat_.I also tried one behaviour change, a real 1 MiB buffer behind
MEM_HEAP_NULL. It is not a good test: the run stalled 4 s into startup and the machine hard-locked 1.5 min later. Don't use it.Not tested
2a2ddc1bbf1c7260(07b0003f0b1a772a,63178f868aedd858,ffab5f1771087e7b), in case DRED's count lags by more than one.XCL_RT_GATE=miss(1aebe666),xcl run's own shader preparation, other GPUs, the full test suite.AI use: Claude Code (Claude Opus 5.5) wrote the diagnostics and the offline test, ran everything on this machine and wrote this comment; the logging stays local.
Imported from ivall/xcl. Originally posted by therealobscure on 2026-11-27T04:08:36Z.
Title: [amd-dev] Device removed (0x887a0006) ~1–1.5 min into rendering on RX 9070 XT – DRED page fault at GPU VA 0x0 in a compute dispatch; still reproduces on
bf7c82eSummary
report.json
xcl.log
The game boots and renders, then the D3D12 device is removed (0x887a0006) after roughly 70–90 s of rendering. On two earlier builds with
XCL_DRED=1, DRED reported a GPU page fault at address 0x0 during a compute dispatch, at the same command-list position and in the same shader both times. Onbf7c82ethe removal still happens, but the DRED page-fault lines no longer appear even withXCL_DRED=1.Environment
amd-dev; latest tested commitbf7c82ee1b2685bb40417e09c4128177aa68d719("D3D12.X: report in-flight waits and GPU work at device loss")<Adrenalin version><version/build>RockstarGamesInc.28872443D20A7(game_scarlett_master.exe), launched withxcl run <game folder>Runs so far
bf7c82eXCL_DRED=1bf7c82eXCL_DRED=1Time from first present to removal: about 66, 87, 74, 266 and 71 s for runs 2–6. Run 5's longer time looks like variance, since run 6 on the same commit is back to ~71 s.
XCL_NETWORK=0was set for runs 2 and 3 only; it made no difference to the crash.DRED output (run 4; run 3 is identical apart from addresses and timestamps)
Both DRED runs report
208 of 319 operations done, the same marker position on a Dispatch, and the same bound shader. The other listed lists show0 of N operations donewith a>46marker and look like queued work that had not started.Latest build (
bf7c82e), runs 5 and 6XCL_DRED=1was set for both runs (confirmed withGet-ChildItem Env:XCL*before launch), but the logs contain no DRED page-fault or breadcrumb lines, only the plaindevice removedline. Earlier builds printed them at removal.0x80000003) atgame_scarlett_master.exe+0x2474606withrbx = rsi = 0x887a0005, so the game seems to assert on the failed HRESULT.Wait64BitValueX timed out after 2000 ms at 0x70417ff00 (op 7, want 0x5ba, ... memory holds Some(0); queue_type=0, after_write64=false, sync=Some((5ba, 5ba, false, Some(2)))), followed byrecent Write32/64 calls (10147 total). The recent writes are0x5bbto other slots (0x704180010–0x704180080), so the slot at0x70417ff00never received0x5ba.split command list (type 2) around mid-list Wait after Write64 (#2).XCL_NETWORK=0for crash runs.Sequence before removal (run 6)
Earlier runs show the same family of events a few seconds before removal (a Wait64 bridged to the GPU queue with
prod=qNone, the samecs 57bbc751c63ffbf7, the indirect prelude batches, or the "mid-list Wait after Write64" split), and removal follows about 2.6–5 s later.Skipped work (possibly related)
Before the crash the log reports:
22992 draws with translated pipelines (48 skipped, ...), 10096 dispatches (512 skipped)37376 draws with translated pipelines (2513 skipped, 43 with PC pipelines), 8971 dispatches (512 skipped)20816 draws with translated pipelines (1024 skipped, 0 with PC pipelines), 6848 dispatches (530 skipped)Dispatch with a pipeline that has no translated console shader (...) skippedandExecuteIndirect dispatch with a pipeline that has no translated console shader (...) skippedwarningsThe skipped dispatch count stays around 512 on warm caches, so these look systematic rather than just pipelines still building. Possible link, which I can't confirm: a skipped pass leaves a buffer (an address table?) unwritten, and a later dispatch reads zero as a pointer, giving the page fault at 0x0.
Other warnings in the log (unsure if related)
a UAV of a resource that cannot have one on the PC (a depth buffer) – a null viewa command list is submitted while its previous submit is still on the GPU ... (debug layer id 553)[STUB] ID3D12GraphicsCommandList10::#101 (not on PC), called fromgame_scarlett_master.exe+0x50a6657XGameRuntime is missing required dependencies, run GamingRepair.exeQuestions
cs 39f23deaf6a63310a known issue onamd-dev?bf7c82e, why do the DRED page-fault lines no longer appear withXCL_DRED=1? Did the reporting change in this commit?0x5bawait at0x70417ff00(memory holds 0, newer slots at0x5bb) a missing GPU signal on your side?I have the full
xcl.logandreport.jsonfor each run and can post them if useful.