Retail title 1.0.2.1: GPU hang / crash at +0x23cf683 when the story loads (RTX 3070 Ti) #675
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl#675
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?
@qcdaark on GitHub · 2026-11-24 03:17 UTC · original
Game and package version
vi – 1.0.2.1
What happens
Menus run at a steady 30 fps. After pressing A, the story starts loading; I hear in-game audio for ~3 s, then the picture slows down (~13 fps) and the run ends. 4 runs, always at the same point:
9ce2070, cold cache: title crash at 487 s – 0xc0000005 in game_scarlett_master.exe+0x23cf683 (write at 0x0), stack +0x4e4ba89, +0x2215c35, +0x71b9a20, +0x2215eca9ce2070, warm cache: same crash at 196 sdd2ae9a: same crash at 115 s (176 compute PSOs recompiled)dd2ae9a, warm cache (only 9 compute PSOs compiled): GPU hang instead – D3D12 device removed 0x887a0006 (DXGI_ERROR_DEVICE_HUNG) at 97 sSo shader compile time is not the cause: with a warm cache it fails as fast. It looks like a GPU hang on NVIDIA (32-lane waves) during story loading; the +0x23cf683 crashes may be the title reacting to the same stall. The attached logs are from the last run (device removed).
XCL version
dd2ae9a(also seen on9ce2070)GPU and driver version
NVIDIA GeForce RTX 3070 Ti 8 GB, 32.0.16.2114
Windows version
Windows 11 Pro (26300), no Agility SDK
report.json and xcl.log
report.json
xcl.log
Console output
@am-cob on GitHub · 2026-11-24 03:32 UTC · original
We also see the guest null write at
+0x23cf683during the first story load on an RTX 4070 Ti SUPER (16 GB, NVIDIA 595.112.7). This is a local build based oncb868b2, with Proton Experimental, vkd3d-proton4522cc1a, dxil-spirv34f0ff84, DXC 1.8.2505.32, and local compatibility changes including BC1 decoding.In two runs with the same executable, player profile and graphics DLLs, adding 217 validated DXIL cache entries reduced DXC compilations from 213 to 115. Both runs reached opening-scene
Prestream, then went about 30 seconds without a present and ended at the same guest instruction. Neither reported device removal. In the last warm-run thread sample, four render threads were inside native compute-pipeline creation through vkd3d/Vulkan. That sample shows what these threads were waiting on. It leaves the cause of the missed presents open.The attached Windows report gives a different measurement for the device-removal run. It records 35 DXIL cache hits and zero DXIL compilations. The nine logged compute-pipeline creations took 0–2 ms each. At 97.388 s, resource creation already returned
DXGI_ERROR_DEVICE_REMOVED. At 97.389 s, texture upload reported the reasonDXGI_ERROR_DEVICE_HUNG. The upload is where XCL observed the hang. The log leaves the responsible GPU command unidentified.Could you capture
XCL_DRED=1on the Windows device-hung path and share the last GPU breadcrumbs or page-fault summary, if available? For a run that ends in the guest null write,XCL_ACTIVITY=1andXCL_THREAD_DUMP_AT=80,85,90,95on the faster warm run would give us the last present, queue activity and thread waits to compare. The DRED switch is present in the reported revision. XCL at dd2ae9aOpenAI Codex (GPT-6) ran the local comparisons and analyzed the logs.
@ItsMrClockwork on GitHub · 2026-11-24 03:35 UTC · original
Keep getting the same issue, everything else gets smoother but around 4s after starting to load into the game properly past the Intro and stuff, It spits out issues regarding missing shit from d3d12_xs.dll
@qcdaark on GitHub · 2026-11-24 04:18 UTC · original
Update on
f4ce27c(with #690, pipeline preload), same RTX 3070 Ti / driver 32.0.16.2114, 3 runs (logs of runs 2 and 3 attached, user name removed):So #690 moves the stall later but doesn't remove it on this GPU.
AI use: Claude Code (Claude Opus 5.5) read the logs and drafted this reply. I ran the tests.
run2-report.json
run2-xcl.log
run3-report.json
run3-xcl.log
@am-cob on GitHub · 2026-11-24 04:26 UTC · original
I compared the 13 addresses in your run 2 log with our traced control on an RTX 4070 Ti SUPER under Proton Experimental. All 13 occur at exactly the same addresses as 64-bit bottom-of-pipe writes on our host. The first 12 belong to one producer command list in our control. The last address belongs to a different producer and was one of the three words that timed out here. Your run waits for 2,283 after 2,279 presents. Our three waits also requested the final present count plus four. I can only identify the command lists on our machine.
We then tested #708 at
89184d1on our local fork with the same starting profile, graphics backend and caches as our traced control. For the three corresponding words, CPU-side timeouts fell from three to zero. From the first consumer's wait-processing point, both producers reached the native queue within 16 ms (control: 6.024 s), and the CPU observed all three expected values by 180 ms (control: 6.185 s). All 38 traced queue gates retired. The title still stopped presenting for 28 s and hit+0x23cf683in Prestream, consistent with your run 3 having no wait timeouts before that fault.Your run 2's first fault, the read at
+0x4e4c918, didn't occur in this comparison. Testing #708 alongside #690 on your setup would distinguish whether the 13 timeouts clear there and whether that read still occurs. Original control timings on #662OpenAI Codex (GPT-6) integrated the PR locally, ran the matched test and compared the logs.
@qcdaark on GitHub · 2026-11-24 04:39 UTC · original
@am-cob Thanks! I tested #708 merged onto main (
64b3f35, includes #690), same RTX 3070 Ti / driver 32.0.16.2114. Logs of both runs attached (user name removed).f4ce27cf4ce27cf4ce27c(
f4ce27crun 2, without #708: 13 timeouts, then the read at +0x4e4c918.)"Wait64BitValueX gate on queue ... still waiting on preceding queue work after 2 s; leaving the queue blocked" (twice, 73.5 s), then "Wait64BitValueX gate ...: D3D12 device removed (0x887a0006)" at 74.8 s.
AI use: Claude Code (Claude Opus 5.5) merged the PR locally, analyzed the logs and drafted this. I ran the tests.
pr708-run1-report.json
pr708-run1-xcl.log
pr708-run2-report.json
pr708-run2-xcl.log
@am-cob on GitHub · 2026-11-24 04:56 UTC · original
Thanks for running both. I checked the four attachments. Both warnings in each run name the same queue. In 708-2 they appear at 73.516 s, and the gate monitor detects device removal 1.328 s later. In 708-1 the warnings appear at 110.066–110.067 s, another compute PSO finishes at 111.410 s, and the title hits the null write at 113.861 s.
In #708, “preceding queue work” means the GPU has yet to reach the marker placed ahead of that gate. The monitor checks the memory word only once it reaches that marker. An earlier wait on the same queue can also hold up later markers. The PR has since changed how it splits earlier work at a wait. Gate polling in #708
Could you confirm the #708 commit and try
XCL_ACTIVITY=1with DRED unset on the same warm cache? Contiguous activity lines from the last window with presents through the first fault would narrow down when submissions stopped. Those counts are process-wide. Identifying the blocked GPU batch would take per-queue markers.On our RTX 4070 Ti SUPER under Proton, one null-write run retired all three matched gates and completed all 40 tracked batches. Fourteen seconds later, one recording thread was building a native compute pipeline and another was waiting on DXC for a graphics pipeline. In a separate matched pair, prebuilding one 903,000-byte compute shader and its native pipeline brought its in-game bind from at least 29.120 s to 220 ms. The title still hit the null write with three other native builds in progress. We haven't reproduced your device removal in these runs.
Comparing another run with this trace
gamepad buttons 0x4 pressed for the first time. Our test controller logstest pad: applied 1 A. XCL log timestamps are seconds since host startup. Count the interval only up to the first unhandled exception or device removal, whichever comes first.preceding queue workandthe memory conditionseparately. Compare queue identities within a single run. The gate IDs, command-list recordings and batch IDs in our data come from private instrumentation.report.jsonmeasure a different step. A build still in progress at the first fault has no completion line.Machine-readable comparison data (JSON)
@qcdaark on GitHub · 2026-11-24 05:08 UTC · original
@am-cob The #708 head I used is
db4599d(merged onto main64b3f35); it hasn't changed since. These two runs were made last night with XCL_ACTIVITY=1, DRED unset, on main64b3f35+ #708db4599d+ #573 de5b510 (#573 changes 54 compute programs to wave32, so run 1 recompiled a few). Logs attached, user name removed.Activity (2 s windows) from the last window with presents through the first fault:
Run 1 (A at 46.735 s) – null write +0x23cf683 at 134.152 s (87.4 s after A)
106.087 p=3 s=55 d=190 disp=7207 few=5
108.088 – 112.089: all 0
114.090 disp=1, 116.091 – 120.093: 0, 122.094 disp=1, 124.094 – 130.096: 0, 132.097 disp=1, 134.098: 0
Preceding-queue-work warnings (same queue): 106.910, 106.910
Run 2, warm cache (A at 29.471 s) – device removed 0x887a0006 at the gate at 96.888 s (67.4 s after A)
86.040 p=14 s=136 d=345 disp=7640 few=29
88.041 s=6 disp=2
90.042 all 0
92.043 disp=10
94.043 s=7 disp=17
96.044 disp=1
Preceding-queue-work warnings (same queue): 95.343, 95.343
In both runs the last window with presents has a burst of 7 000+ dispatches, then submissions stop. In run 1 nothing at all is submitted for 28 s before the null write.
run1-report.json
run1-xcl.log
run2-report.json
run2-xcl.log
AI use: Claude Code (Claude Opus 5.5) ran these tests and extracted the activity lines. I checked the reply.
@am-cob on GitHub · 2026-11-24 05:19 UTC · original
@qcdaark Thanks for confirming the #708 revision and the #573 setting. Both of your logs show over 7,000 dispatches in the last two-second window containing a present. I counted the complete windows between that window and each run's first fault. Your logs and build details
ExecuteCommandListscallsIn run 2, six calls landed in the window ending at 88.041 s and seven in the one ending at 94.043 s. The two warnings about preceding work on the same queue came at 95.343 s. The activity counters don't tell us whether that queue received any of the 13 calls or which batch the GPU finished.
Locally I ran one control and two prebuilt trials of the Windows XCL binary under Proton Experimental on an RTX 4070 Ti SUPER (Linux driver 595.112.07). The private build used base
00fa55c, #708 at89184d1, and local tracing and cache changes. It did not include #573. Each trial ranxcl.exe run <game-folder>offline withXCL_ACTIVITY=1and the same profile.The control hit the Prestream null write at 127.019 s. The first prebuilt trial faulted before using the three target pipelines. On the repeat, the driver accepted both compute pipelines and the depth-only graphics pipeline. Native creation took 159, 16 and 10 ms. The last returned success at 121.068 s. The same null write (
+0x23cf683) followed at 127.979 s with 581 guest streaming requests outstanding. The last XCL storage sample showed 87,829 completed requests, including 907 failures. Across 14 complete windows after the final present window, XCL counted 7,170 dispatches and zero wrapped submission calls.For the next comparison I'd give each native batch a per-queue serial and log which command-list recording it came from. At the first prefix warning, I'd capture its target serial, the last fence-confirmed serial for each queue, and any outstanding queue waits and signals. That would show whether any of run 2's later calls reached the warned queue and how far that queue got.
Machine-readable comparison (host uptime in seconds)
AI use — OpenAI Codex (GPT-6) ran the local trials, compared their traces with your two Windows logs, and drafted this reply.
@qcdaark on GitHub · 2026-11-24 05:31 UTC · original
@am-cob Thanks. One more run on main
d5442d2+ #708db4599d(no #573), warm cache, XCL_ACTIVITY=1, logs attached. The 881,664-byte compute shader from the previous run was loaded from its driver blob at 6.5 s (13 ms); after A only two small compute PSOs (321 + 72 ms). Still: device removed at the gate at 99.758 s (57.9 s after A), right after the burst:96.047 p=15 s=142 d=340 disp=7375 few=31
98.048 p=0 s=6 d=0 disp=80 few=0
Preceding-queue-work warnings: 98.612 (×2).
About storage, summed over the activity windows of my three #708-only runs: 83,724 / 84,167 / 84,798 DirectStorage requests, of which 3,102 / 2,436 / 2,586 failed, and "BCPack refusals so far: 2048 requests" (mostly BC1, plus BC5 / BC7 / one BC6H) in each run. I can't tell whether the title waits on any of those.
I can't add per-queue serials myself, but I'm happy to run a branch with that tracing on this RTX 3070 Ti.
AI use: Claude Code (Claude Opus 5.5) counted these from the logs and drafted this. I ran the test.
run3-xcl.log
run3-report.json
@qcdaark on GitHub · 2026-11-24 06:04 UTC · original
@am-cob I identified the shader the GPU hangs in, from an Nsight Aftermath dump (RTX 3070 Ti, driver 621.24, main
e50836b+ #708db4599d; no dump attached, it holds translated shader code).Dump: Device state Hung, engine reset. All 88 active warps (23 distinct PCs) are in one compute shader, Aftermath shader hash 0x1B8AF86914A34496, native size 57,088 B.
Matching it: I ran GFSDK_Aftermath_GetShaderHash (Aftermath SDK 2026.3) over the 703 .dxil files in %LOCALAPPDATA%\xcl\dxil. Exactly one matches: eca1b978ee1c7799.dxil (38,960 B, DXIL shader hash 9b9f64b23a6dd4c3fe5731ccfeb08b3b; cache key from DXC 1.9.2602.17).
What it is (dxc -dumpbin):
So it looks like the two 32-lane halves stop meeting at a barrier inside that loop. I can't name the console program (the cache key hashes the HLSL), but anyone on DXC 1.9.2602.17 should have the same eca1b978ee1c7799.dxil. Happy to test a fix or dump more from it.
AI use: Claude Code (Claude Opus 5.5) wrote the hash-matching script, disassembled the DXIL and drafted this. I ran the tests.
@qcdaark on GitHub · 2026-11-24 06:26 UTC · original
Summary of tonight's runs on main
beaa245(no #708), RTX 3070 Ti, driver 621.24. Logs attached (user name removed).GPU hang fixed on this GPU: in 4 runs, no device removal, no preceding-queue-work / Wait64BitValueX warning, no 7,000+ dispatch burst, no Aftermath dump.
Still ends with the null write at +0x23cf683, always ~28–30 s after presents stop, with 0 submits and no warnings in between. In-game audio starts as if loading finished, then the title stops:
Run 4 crashed at 12.3 s during the pipeline preload (520 shader sets), inside the NVIDIA driver: 0xc0000005 in nvwgf2umx.dll+0x85b227 (read at 0x3c), called from xcl.exe+0x188fa6. This came after several engine resets earlier tonight; the next run started fine.
In run 5, 50 compute PSOs were created after A (171 s in total), which is more than in earlier warm runs; still nothing in the 30 s silence before the fault.
AI use: Claude Code (Claude Opus 5.5) summarized the logs. I ran the tests.
run1-report.json
run1-xcl.log
run2-report.json
run2-xcl.log
run4-driver-crash-report.json
run4-driver-crash-xcl.log
run5-report.json
run5-xcl.log
@milas6669 on GitHub · 2026-11-24 08:34 UTC · original · edited 2026-11-24 08:43 UTC
A test that separates shader building from the freeze. Same machine and setup as above; main
09940bbplus thexcl pipelinesstack (#758 / #759), see the report on #759.I built 51,000 of the title's 58,970 queued pipelines outside the game (
xcl pipelines, game closed), then ran the title.Correction (please read this instead of my first conclusion): the freeze started at about the same time even though the title built almost nothing itself in that run. But
xcl pipelineshad not made the last 7,953 pipelines, which are the slowest (very large compute programs), so this test does not show that shader building is not the cause. The thread dumps in #505 (the title's threads blocked inpso_async::resolve_waitwhile the driver compiles tens-of-seconds pipelines) point the other way. What this run does show is that making 51,000 pipelines ahead cut the title's own compute build time from 37 s to 2.2 s and did not move the stop on its own.Not tested: the last 7,953 pipelines were not built (the tool stalled, see #759); one run each; AMD.
AI use: Claude Code, Claude Sonnet 5.5, ran the commands and wrote this comment.
@ateezie on GitHub · 2026-11-24 08:43 UTC · original
RTX 5090 data point (32 GB, Windows 11 26200, xcl
mainbeaa245, release, CapFrameX closed):0xc0000005 in VCRUNTIME140.dll+0x1c136←tiling::Chain::detile_level←title_textures::subresourceson asubresources_onworker, read at an address in the CPU view behind a GPU view – the decommit race #751 fixes. With the same change applied locally it did not come back.game+0x23cf683,rcx=0x70024c348 rdx=0x1 r8=0x7074d8c40 r9=0x7074d8e20 r10=0x7074d8ad8 r11=0x7074d8c40 r13=0x146845c28– byte-identical to the registers above. Preceded by a 408 KB compute PSO built in 11.5 s (finished at 131 s) and a firstID3D12GraphicsCommandList10::#101stub call at 90 s (as in #505).XCL_DRED=1stalls at startup here too (3 of 3).AI use: Claude Code (Claude Opus 5.5) read the logs and symbolised the stack; the runs were on my machine.
@ateezie on GitHub · 2026-11-24 08:58 UTC · original
Follow-up from the RTX 5090 (32 GB, Windows 11 26200), release builds, warm caches, CapFrameX closed:
Baseline:
mainbeaa245+ a local equivalent of #751. Through the start-up prompts at 30 fps. At the end of loading the window title showscompiling shaders: 1 running, 63 done, 57518 pipelines queuedon a black screen. The watchdog+0x23cf683fires at 179 s (137 s on the previous, colder run).Experiment:
main077ce40+ #751 (4e101fc) + #533 (001e37d),XCL_COMPUTE_PSO_WAIT_MS=1. #708 conflicts with currentmaininlist_x.rs,title_list.rs,cpu_writes.rsandreal.rs(18 hunks), so it isn't included. #267 isn't included either, since #533's per-frame budget now covers graphics pipelines too..\scripts\test.ps1: 722 passed, 0 failed, 41 ignored (2 GPU tests skipped, no wave64).compute pipeline … still building after 8 ms – proceeding with stand-in, and by the end19473 draws (2162 skipped, 256 with PC pipelines), 4871 dispatches (18487 skipped). The screen is green (stand-ins).sparse: the queue has not reached fence value 39143 after 5 s (at 39141), five times, 111.4–131 s (the wanted value goes up to 39149, the reached value stays at 39141).+0x23cf683fires at 136.2 s, with the same registers as before (rcx=0x70024c348 rdx=0x1 r8=0x7074d8c40 r9=0x7074d8e20 r10=0x7074d8ad8 r11=0x7074d8c40 r13=0x146845c28).Wait64BitValueX timed outlines in this run.So on this card #533 moves the end from the pipeline waits to a queue that never passes its fence, the same thing as the "preceding queue work never completes" reports above, here seen on the sparse (tile-mapping) queue. Not tested: #708 on this card, since it doesn't merge onto
mainany more. Happy to run a rebased #708 or per-queue tracing.AI use: Claude Code (Claude Opus 5.5) merged the PRs locally, ran the tests, read the logs and wrote this. The runs were on my machine.
@CowboyBingus on GitHub · 2026-11-24 05:41 UTC · original · edited 2026-11-24 08:59 UTC
I'm working on identifying the batch that never completes ahead of the gate, with per-queue tracing on an RTX 5070 Ti (driver 621.24), main
d5442d2+ #708db4599d. Same end here: one queue reports "preceding queue work", then 0x887a0006.So far: the title makes no queue
Waitcalls in the last seconds before the stall, and every earlier gate on that queue opened. The queue stops on ordinary work submitted just before its gate. The three never-written counters are written by lists queued behind it on the same queue. Next: DRED breadcrumbs and per-list markers to name the command. I'll post the result here.AI use: Claude Code (Claude Opus 5.5) added the tracing and read the logs.
@CowboyBingus on GitHub · 2026-11-24 06:36 UTC · original · edited 2026-11-24 09:00 UTC
Original comment
Follow-up to my claim above. On an RTX 5070 Ti I find the same thing as @qcdaark's Aftermath dump, by a different method: before #798, the GPU stops inside one split-wave64 compute dispatch.
Setup: RTX 5070 Ti, driver 621.24, Windows 11, main
d5442d2+ #714 #744 #708 #680 #533 #267, warm caches,XCL_COMPUTE_PSO_WAIT_MS=0.How:
XCL_DRED=1stalls the title within 5 s here too, so I used local breadcrumbs instead: after each draw, dispatch and ExecuteIndirect, aWriteBufferImmediate(MARKER_OUT) of the op count into a READBACK slot per recording. When a gate reports "preceding queue work", every submitted recording that hasn't finished is listed.Result (4 runs, the same each time):
Waitcalls, and every earlier gate on the stuck queue opened.Dispatch(32, 32, 2)of one compute program: console wave64 with[numthreads(4, 4, 4)], translated in the split-wave64 form. With one console wave per group (XCL_X_SPIN 0before #798), its two halves meet atGroupMemoryBarrierWithGroupSync.+0x23cf683watchdog when the device isn't removed first).0x00070000at +0xD4), so #573 does not change it. The #701 fixes (#721, #728, #729, #765) don't change its HLSL either.Bounded exchanges for that program alone (
XCL_X_SPIN 1, every other program unchanged, 0 dispatches skipped): its dispatch completes. The title then faults reading0xffffffffffffffffat+0x248c3f4at 89.9 s. So the two halves do fall out of step in this program, and the timed-out exchanges hand back wrong values.With #798: no hang and no stuck gates. One run reached the 7,448-dispatch burst and the title then faulted reading
0xffffffffffffffffat+0x4eee124(85.6 s). That run had skipped 360 dispatches while pipelines built, though, so on its own it doesn't separate the two causes. My other #798 runs stopped earlier on uncached compiles of the new spin form.So #798 removes the hang. My reading is that the pair still desynchronises in that program, and the result is wrong data instead of a hang. I'm now working on why its halves diverge. Its scalar loads read only descriptors and constants, and its per-half masks (
xcl_x_ballot_local) are only read lane by lane, so it isn't either of those.AI use: Claude Code (Claude Opus 5.5) wrote the breadcrumb diagnostics and read the logs; I ran the tests.
@CowboyBingus on GitHub · 2026-11-24 07:05 UTC · original · edited 2026-11-24 09:00 UTC
Correction to my comment above: the split-wave64 pair does not fall out of step in that program with bounded exchanges. I inferred it from the
0xfffffffffffffffffault without measuring. Measured now:resbuffer. A per-group "started" counter rules out reading before the dispatch ran.xcl_budget) stays at 0, even with the budget cut to 256.So with #798 that program finishes with its exchanges intact. Before #798 it still hangs in the barrier form. But the faults after it (
0xffffffffffffffffand other bad addresses in the title) don't come from a desynchronised pair in that program, and so far they don't explain the remaining stop either. In these runs the title stops submitting about 30 s before the watchdog, after the dispatches have finished. I'm now logging what the title's threads wait on (fence waits, gate state over time, thread dumps) to find what isn't signalled.AI use: Claude Code (Claude Opus 5.5) wrote the instrumentation and read the logs; I ran the tests.
@CowboyBingus on GitHub · 2026-11-24 08:21 UTC · original · edited 2026-11-24 09:00 UTC
Update on current
main(09940bb, with #792 #795 #797 #798 #866 #873 #897 #907) + #533 at001e37d+ #906, RTX 5070 Ti, driver 621.24. One run so far.+0x23cf683watchdog did not come. Before, on an older base, the title thread sat in back-to-back bounded graphics-pipeline waits (execute_indirect→resolve_for_indirect). With #533's per-frame budget it kept rendering in bursts through world load, with presents and thousands of dispatches per 2 s, until 197 s.0x887a0006at 197.2 s. Aftermath (global mode) wrote a dump. Device state "Hung", no page fault, and every active warp on every GPC in one compute shader (Aftermath shader hash0x06ec994002ada2f8, 139.5 KiB of microcode, warps at 4 PCs). RunningGFSDK_Aftermath_GetShaderHashover the DXIL cache matches it to one translated program (99,924 B DXIL). Our per-queue breadcrumbs (aWriteBufferImmediateof the op count after each draw/dispatch) agree: a 1001-op list submitted at 186.25 s is stuck at op #90, aDispatch(1891, 1, 1)of that program. (Edited: I first named a 140 × 1405 instanced draw here. That was only the first unfinished op on another queue, waiting behind this dispatch.)0xFFcorruption crash this time (#911). Not enough runs yet to call it fixed by #792.Update (09:00Z), 3 more runs on the same stack. That program is a data-dependent tree walk (an atomic counter per node, then a parent index loaded from memory, looping until it is below 1), so it only spins without end on bad input. With #533's defaults a lot of compute is skipped while its pipeline is still building (in the run above, 37,549 dispatches skipped and 32,768 run). I added breadcrumbs for skipped dispatches:
ExecuteIndirect. 2 of the 5 ops before it in the same list were dispatches skipped as still building. No device removal; watchdog at 168 s.main; graphics kept #533's budget), 2 runs: no GPU stall. The title stopped presenting at 106 / 116 s and the watchdog came at 130 / 140 s. In both runs one 1.8–2 MB DXIL compute build, started at ~5 s by #690's ahead-of-use builds, held the one big-compile slot for ~90–104 s, and other big pipelines queued behind it.My reading (not proven: the runs without skipping did not get far enough to rule the shader out): the hang above comes from skipped compute work feeding later dispatches, not from that shader's translation. @Rednaxeh measured the same skip-then-hang pattern on AMD with #891's budget (#891).
The
0xFFcorruption (#911) did not come back in 5 runs on currentmain.AI use: Claude Code (Claude Opus 5.5) wrote the breadcrumbs and read the logs; I ran the tests.
@CowboyBingus on GitHub · 2026-11-24 09:16 UTC · original
@ateezie thanks for the offer. I don't need a rebased #708 run for now. For reference, #708 at
db4599dconflicts with currentmain(077ce40) incrates/xcl/src/hle/d3d12x/: the conflicts inlist_x.rsandreal.rsstart with #795,title_list.rswith #797, andcpu_writes.rswith #873. I'll ask here if per-queue tracing would help.AI use: Claude Code (Claude Opus 5.5) drafted this; I checked it.
@badoomtch on GitHub · 2026-11-24 09:22 UTC · original
I matched the
Dispatch(1891, 1, 1)shader from the RTX 5070 Ti trace toRefitBVH4inXboxBvhBuilder.dllon an RTX 5080 setup.GFSDK_Aftermath_GetShaderHashreturned0x06ec994002ada2f8for the 99,924-byte DXIL. Its DXIL shader hash isaca9bc1ac1f54b4d01bd2fdc9c24ee1c.b6043104de672057. The DLL contains a 34,020-byte DXBC with that source hash. ItsILDNdebug name ends inRefitBVH4.pdb.This gives the 5070 Ti trace a specific BVH refit pass whose input buffers can be followed. No title files or shader bytecode attached.
AI use: Codex matched the shader locally and prepared this comment.
@CowboyBingus on GitHub · 2026-11-24 09:27 UTC · original
@badoomtch thanks for tracing that dispatch's program to RefitBVH4 in XboxBvhBuilder.dll and posting the hashes.
@milas6669 on GitHub · 2026-11-24 07:08 UTC · original · edited 2026-11-24 09:54 UTC
A second NVIDIA data point that matches @qcdaark's summary above, on a different CPU and an 8 GB 3070.
Setup: RTX 3070 8 GB (32-lane waves), i9-10900KF, 31.9 GB RAM, Windows 11 Pro 10.0.26200, release build of unmodified
mainbeaa245(no extra PRs),XCL_NETWORK=0,XCL_ACTIVITY=1, 4095 MB coherent window (free commit was above the 17408 MB check, see #284), warm caches, no scripted input. Run throughscripts/smoke.ps1 -Seconds 600.What happened (one run, log timestamps in seconds):
xapu: 17201 Opus packets decoded (0 errors)at 138 s) and the XUser token requests for the auth server are refused (offline).compute PSO with the translated console CS (526180 B DXIL, 10261 ms), then at 141.4 sunhandled exception 0xc0000005 in game_scarlett_master.exe+0x23cf683 (write at address 0x0).Wait64BitValueXline, no warning in the silent part of the log. There was no GPU hang in this run.One more match: an earlier run of the same binary crashed after 14.6 s with
0xc0000005 in nvwgf2umx.dll+0x85b227 (read at address 0x3c), the same module offset and read address as run 4 in the summary. It happened once in 4 runs of that binary; the next runs started fine.Not tested: whether the stall changes with a smaller memory footprint, or with
#541/#630(the AS-slot mesh pipelines, 40 of which are refused in this run), or on AMD. I have not looked at the picture.AI use: Claude Code, Claude Sonnet 5.5, ran the commands and wrote this comment.
@milas6669 on GitHub · 2026-11-24 07:14 UTC · original · edited 2026-11-24 09:54 UTC
Same machine and setup as my comment above, now on
maina1672ef(includes #866, the late-release change), one run,scripts/smoke.ps1 -Seconds 600, warm caches, 4095 MB coherent window, no scripted input:mainbeaa245maina1672ef+0x23cf683So #866 does not change this: the freeze starts around 105–112 s, nothing is submitted for the last ~29 s while the audio keeps going, and the title ends itself with the same instruction. The two short stalls before it recover and line up with DirectStorage bursts (loading), so they look like ordinary loading; only the last one does not.
Not tested: more than one run per build; AMD.
AI use: Claude Code, Claude Sonnet 5.5, ran the commands and wrote this comment.
@milas6669 on GitHub · 2026-11-24 07:23 UTC · original · edited 2026-11-24 09:54 UTC
One more run on the same machine and setup, now on
main1ec4c98(includes #866 and the #873 queue-wait diagnostics),scripts/smoke.ps1 -Seconds 600, warm caches, no scripted input:beaa245a1672ef1ec4c98+0x23cf683compute PSO with the translated console CSlines1ec4c98changes anything or this is run-to-run spread.had not got there(the cpu_writes warning) and 0 withhas not reached fence value(the sparse-queue warning). So in this run neither of those two waits timed out during the freeze; other waits are not covered by them.Not tested: more than one run per build; AMD.
AI use: Claude Code, Claude Sonnet 5.5, ran the commands and wrote this comment.
@milas6669 on GitHub · 2026-11-24 08:06 UTC · original · edited 2026-11-24 09:54 UTC
Nine runs, three builds, interleaved (new, old, other, three rounds), same machine and setup as my comments above: RTX 3070 8 GB, i9-10900KF, 4095 MB coherent window in every run, warm caches, no scripted input,
scripts/smoke.ps1 -Seconds 400.main1ec4c98, old =mainbeaa245, other =1ec4c98+ #789 + #799 + #628 + #774 (merged locally, clean, all four are open PRs).0x887a0006+0x23cf683null write at 131.4 s, then the process hung in its crash path (noprocess endsline) and I killed it0xffffffff). The freeze, with 0 submits, had started before that, but the title's own self-kill (about 29 s after the last present) may not have been reached in those runs. So the "how the run ended" column is censored by my watchdog, and I do not claim those runs "did not crash".1ec4c98or the four extra PRs change it.newruns ended in a GPU hang (0x887a0006), which is the hang from the first report in this issue. It did not happen in the sixold/otherruns.unhandled exception ... +0x23cf683but not theprocess ends with statusline that the other crashes print about 1.3 s later; the window stayed "not responding" until I killed it.Not tested: more runs per build; a higher memory limit (so the self-kill can happen in every run); AMD.
AI use: Claude Code, Claude Sonnet 5.5, ran the commands and wrote this comment.
@milas6669 on GitHub · 2026-11-24 09:47 UTC · original · edited 2026-11-24 09:54 UTC
A measurement that may explain the stall on a 32 GB machine, and two experiments that did not cure it. Same RTX 3070 8 GB / i9-10900KF / 31.9 GB RAM / Windows 11 setup as above,
main077ce40+ #891 (XCL_PSO_WAIT_MS=50), release, warm caches, no scripted input.What the system was doing during the stall. I logged
\Memory\Available Bytes,Commit LimitandCommitted Bytesonce a second through a 300 s run (#101at 148.95 s, zero presents 164–186 s in the log, then the title's own+0x23cf683exit at 242.5 s). The log start was about 10:06:06 by the wall clock (I matched the two by the start time, so they can be off by a few seconds):nvidia-smiutilisation in the stall, see my comment on #891). It is a correlation from one run, not a proven cause.xcl-pso-pre-*workers wait for the one big-compile slot and forwait_for_commit(needs 3 GB of free commit), with free commit at 0.3–1.8 GB.Two things I tried that did not help (one run each):
wait_for_commitfrom 3 GB to 256 MB, and the DXC reserve from 6 GB to 1 GB) through a local patch: worse. The game's commit rose faster (25.9 GB at 98 s against about 18 GB at the same time in other runs), presents fell to 1–6 per 2 s from about 96 s, the title never reached world loading, and my 31 GB watchdog ended the run. So the gates look protective; the stall is not XCL throttling itself.XCL_PAGE_BUDGET_MB=3500andXCL_COHERENT_MB=2048): the game's commit was still 29.2 GB at 143 s, and the run ended at 141.5 s with a different crash:D3D12 XDXR Error: DestAccelerationStructureData can not have more than 40b of address set, then the C++ exception0xe06d7363out ofxboxbvhbuilder.dll(that is #585). None of my six other logs with the default 4095 MB window has that line, so the 2 GB window seems to have moved some address past 2^40 here. So that run says nothing about whether less memory removes the stall.Not tested: more RAM or a larger page file (I changed no system setting); other budgets; AMD.
AI use: Claude Code, Claude Sonnet 5.5, ran the commands and wrote this comment.
@CowboyBingus on GitHub · 2026-11-24 09:57 UTC · original
@imnicho thanks for the comparison. I'm decoding the Aftermath dump of a new device hang on our side (current main + #891 + #680 and others, RTX 5070 Ti) and will post what it shows here.
@CowboyBingus on GitHub · 2026-11-24 10:07 UTC · original
@milas6669 thanks for the memory numbers on the 164–186 s stall; noted for our runs.
@CowboyBingus on GitHub · 2026-11-24 10:12 UTC · original
@imnicho here is what our dumps show, RTX 5070 Ti, driver 621.24, retail build, one run each:
main9aec53d+ #891 (XCL_PSO_WAIT_MS=50) + #906 #751 #549 #905 #820 (XCL_BIG_COMPILES=2) #759 #924 #680 (heap windows off) + #631 (applied by hand): 0 presents in the 2 s windows logged 82–104 s; 0–3 presents and 0–90 submits per window from 106 to 128 s; no null write at+0x23cf683;0x887a0006at 173.8 s. Aftermath: "Hung", no page fault, every PC in compute shader hash0x33f581a98cc2a874. Hashing our 9,407 cached DXIL programs withGFSDK_Aftermath_GetShaderHashgives one match, 120,488 B; its driver-cache file iscb48c2b29fcdfa5a-1d6a8-0.pso.main09940bb+ #533 + #906 + local breadcrumbs): a list submitted at 113.4 s still had 5 of 9 ops done at 122.7, 133.2, 138.3 and 143.3 s. Op #5 is anExecuteIndirectof that samecb48c2b29fcdfa5a-1d6a8-0.pso. That run ended in the null write at+0x23cf683at 168.8 s, not in a device removal.XCL_HEAP_WINDOWS=1: 0 presents in windows logged 80–102 s, then 1 each at 104, 106 and 110 s;0x887a0006at 115.1 s. Aftermath "Hung", PCs in nine hashes, most in0x30bf4b6d2c26faaa, none in0x33f581a98cc2a874.That name comes from runs with heap windows off. Your stack had them on, which changes the translated shaders, so the name may not carry over.
AI use: Claude Code (Claude Opus 5.5) ran the tools and wrote this; the runs were on my machine.
@CowboyBingus on GitHub · 2026-11-24 10:15 UTC · original
main02bfd1d(with #891, #631, #551, #693),XCL_PSO_WAIT_MS=50, RTX 5070 Ti, driver 621.24, one run:sparse: the queue has not reached fence value 44951 after 5 s (at 44950)at 124.4 s and 129.4 s.0x887a0006at 129.6 s. Aftermath: "Hung", no page fault, every PC in compute shader hash0x33f581a98cc2a874.That is the same shader hash as the device hang in the run I posted above (
9aec53d+ #891 and other PRs, heap windows off), whose DXIL our cache namescb48c2b29fcdfa5a-1d6a8-0.pso.I'm working on what that program does and why it does not finish on this machine.
AI use: Claude Code (Claude Opus 5.5) ran the tools and wrote this; the run was on my machine.
@milas6669 on GitHub · 2026-11-24 10:16 UTC · original
A data point on the new
main(6efdabc, which now contains #891, #551, #693 and #631), two runs, to see where an 8 GB card with 32 GB of RAM stands now.Setup: RTX 3070 8 GB (32-lane waves), i9-10900KF, 31.9 GB RAM, Windows 11 Pro 10.0.26200, release build of
main6efdabc,XCL_PSO_WAIT_MS=50,XCL_NETWORK=0,XCL_PRESS_A_AT=25(the logged A press was at 25.03 s and 25.04 s, so the runs are comparable), 4095 MB coherent window, warm caches.\Memory\Available Byteslogged once a second.#101)more than 40b/ null writemore than 40b of address setline (#585) did not appear in either run, which fits #631 being merged.+0x23cf683exit would follow: in earlier runs without the cap on the game's memory it did, about 29–50 s after the last present.Not tested: more RAM or a larger page file; other budgets; AMD.
AI use: Claude Code, Claude Sonnet 5.5, ran the commands and wrote this comment.
@fuckdcma on GitHub · 2026-11-24 10:20 UTC · original
Additional data point on Windows 11 build 26100, AMD Radeon RX 6700 XT (12 GB), driver 32.0.21045.5002. Local XCL release build with XCL_NETWORK=0, XCL_PSO_WAIT_MS=0 and XCL_PSO_PRELOAD=1.
DRED was not captured in this run. The first failing GPU command is unknown. AI use: Codex (GPT-6.2 Sol) reviewed the logs and drafted this comment.
@CowboyBingus on GitHub · 2026-11-24 10:36 UTC · original
@milas6669 @fuckdcma thanks for the runs and numbers; noted for our next ones.
@imnicho on GitHub · 2026-11-24 09:41 UTC · original · edited 2026-11-24 10:41 UTC
Why
XCL_DRED=1stalls at startup, and the breadcrumbs of the device removal on an RTX 5080@qcdaark @ateezie – the stall with
XCL_DRED=1is two threads waiting for each other, and there are two ways into it:sparse::before_execute→State::upload_dirty→State::begin_slot→ID3D12CommandAllocator::Reset, waiting for a lock inside D3D12Core with XCL's sparse-state mutex held;Resetof a command list, inside D3D12Core, which makes a resource's lastReleasethere → XCL's release hook → the sparse-state mutex, (1) insparse::forget_buffer– #789 closes that one – and, with #789 merged, (2) inlate_release::hold→drain_known→sparse::queue()– #968 closes that one.With
XCL_DRED=1, 45 s runs, 3 rounds:main,main+ #789 andmain+ #968 each show 1 frame and stand still from 8 – 11 s in every run;main+ #789 + #968 shows 918 / 910 / 920 frames (table in #968). So breadcrumbs need both.With both, one run to the device removal here
main09940bb+ #789 + #968 + #891 withXCL_PSO_WAIT_MS=50(+ #266, #684, #680 with heap windows on, #744). RTX 5080 16 GB, driver 610.47 (32-lane waves), i7-7700K, 16 GB RAM, Windows 10 19045, Agility SDK 620, DXC 1.9.2602.17, release.XCL_NETWORK=0, scripted pad.#101stub call at 129.3 s, 7 021 dispatches in the 2 s after it, then two more presents (157 s, 163 s),0x887a0006at 167.7 s.completed=0x0– the first long stretch starts right with the set-up's burst), 29 more between 161.9 and 167.2 s.BEGIN_COMMAND_LIST). One is in flight: 11 of its 20 operations done, the 12th anEXECUTEINDIRECT– around itRESOURCEBARRIER, DISPATCH, RESOURCEBARRIER, >EXECUTEINDIRECT, RESOURCEBARRIER, DISPATCH.So on this machine the GPU stopped inside an
ExecuteIndirectof a 20-operation list, where @CowboyBingus's Aftermath dump has a plainDispatch(1891, 1, 1)at op 90 of a 1001-op list. I have not named the program: it may be the same tree walk reached through an indirect dispatch, or another one. Caveat for my run: by then more than 513 pipelines had gone late and 636 dispatches had been skipped (#891's budget), so input left unwritten by a skipped pass is possible here – an indirect call also takes its counts from a buffer.Not tested: one run with breadcrumbs so far; no Aftermath; the program at that
ExecuteIndirectis not identified; a run with nothing skipped.AI use: Claude Code with Claude Fable 5.2 read the dumps and logs and wrote this; the runs are from the machine named. Counts, times and XCL's own function names only.
Update 10:45 UTC – GPU utilisation during those seconds, and four things that did not change the outcome (same PC and stack,
XCL_PSO_WAIT_MS=50unless said, one run each unless said)nvidia-smisampled every 0.5 s beside the run. Run A (the stack + #851): 100 % from the set-up's burst for 13.1 s, then the reset. Run B (the stack + #851 + the local change below): 100 % for 12.3 s, 9 s idle, 100 % for 13.8 s, and after 1.5 s 100 % for 8.2 s, then the reset. So two stretches of 12 – 14 s ended without a reset on this card: seconds of GPU time for a burst are normal here, and the GPU is busy (not waiting on a fence) when it is reset.#101call. Breadcrumbs: 4 unfinished entries, none begun (0 of 7 333, 0 of 125, 0 of 6, 0 of 4).#101call (2 runs).#101call.main, the title's stall exit stepped over locally): no removal in 15 min – but the title submits nothing after the set-up: it builds a pipeline about every 7 s in its own threads (410 compute pipelines by 900 s). An offline set of all compute pipelines is being built here now (#744) to repeat this with nothing left to build.Not tested:
TdrDelay– a pass that takes longer than Windows' 2 s and a pass that never ends look the same in these runs.@requiemsnkrp on GitHub · 2026-11-24 10:49 UTC · original
Data point on unmodified current
main67a3735(with the BCPack unpacker and #891): RTX 3060 12 GB, driver 621.24, Ryzen 5 5600X, 16 GB RAM, Windows 11 26200, release,XCL_NETWORK=0,XCL_PSO_WAIT_MS=2000, warm caches: earlier runs on this machine, plus a partialxcl shaders --precompile --only cs --pipelines(part of it made before the recompiler changes in6bac4b4); in this run 32 compute pipelines came from the driver blobs kept on disk.+0x23cf683watchdog this time. On the same machine,f4ce27cand6bac4b4ended there at 116.6 s and 164.3 s.D3D12 device removed: 0x887a0007at 130.3 s. The title then asserts at+0x2474606because its nextCreatePlacedResourceXgets0x887a0005. Nonvlddmkm/ TDR event in the System log.ListX #101was not called in this run.0x887a0007happened once before on63cdc25(at 90.4 s, right after the world's compute pipelines came out of the driver cache in 1–27 ms), and did not happen in the two runs after it.background_pipelines: [831, 0, 57930].No
XCL_ACTIVITYin this run, so I have no memory or queue lines. The next run will have them.AI use: Claude Code (Claude Opus 5.5) read the run's log on my machine and wrote this comment.
@chadatouille on GitHub · 2026-11-24 10:51 UTC · original
Two runs on an RTX 3080 Ti with
main6efdabc+ #751,XCL_PSO_WAIT_MS=50. Both get past the point where every earlier build stopped here (opening-scene dialogue is heard, a frame about every 3–4 s), then end in two different ways: a GPU reset, and the+0x23cf683abort.Setup
TdrDelay8 (set on this machine before).main6efdabc+ the diff of #751 (4e101fc). Suite on that tree: 728 passed, 0 failed, 41 ignored (debug;SKIPPED: the twono wave64tests).XCL_NETWORK=0 XCL_ACTIVITY=1, menus by hand. Run 1 is the first run of this build (cold translations), run 2 the same build right after.0x887a0007, title assert+0x2474606at 219.4 s0xc0000005at+0x23cf683, 245.3 s; the process then hung with the GPU at 100 % and had to be killedGPU queue.Wait … did not complete within 5000 mswould close a GPU cyclelinesUCodeReset TDR) at about 196 s of the run, thenResetting/Reset/Restarting TDRabout 18 s later. XCL reports the removal at 219 s. No DRED in this run.BIG_COMPILESfor programs of 256 KB or more; 193 KB is under that.xcl-pso,xcl-pso-pre) inBIG_COMPILES.acquire()(real.rs:3433), and no title thread inresolve_wait. Taken after the removal. Run 2 logged no thread dump.I don't know which command hung the GPU in run 1, or whether the two ends share a cause.
Not tested:
mainwithout #751,XCL_PSO_WAIT_MSunset on this build, DRED / Aftermath, AMD, a smoke run.AI use: Claude Code (Claude Opus 5.5) built the binary, read the logs and the thread dump and wrote this report; I did the runs. Counts and offsets only; no game data.
@CowboyBingus on GitHub · 2026-11-24 10:53 UTC · original
@chadatouille @requiemsnkrp thanks for the runs; noted.
@requiemsnkrp on GitHub · 2026-11-24 11:29 UTC · original
Follow-up with
XCL_ACTIVITY=1, as promised: same machine (RTX 3060 12 GB, driver 621.24, 16 GB RAM), unmodifiedmain384f7f7,XCL_NETWORK=0,XCL_PSO_WAIT_MS=2000. AgainD3D12 device removed: 0x887a0007at 110.1 s, with no watchdog.ListX #101was first called at 107.2 s andbackground_pipelineswas[886, 0, 57875].The last 30 s from the
activity (2 s)/memory:lines:67a3735run ended the same way at 130.3 s. Both runs are NVIDIA, 12 GB, oversubscribed. I can't tell from this whether the oversubscription causes the reset or only comes with it. A run with a target-page cap would tell, if there is a switch for one.AI use: Claude Code (Claude Opus 5.5) read the run's log on my machine and wrote this comment.
@jessenic on GitHub · 2026-11-24 11:36 UTC · original
Data point on unmodified
main47efa2e(release), RTX 5070 Ti 16 GB, driver 610.88 (32.0.16.1088), Ryzen 7 9700X, 32 GB RAM, Windows 11 26300.XCL_NETWORK=0,XCL_ACTIVITY=1, noXCL_PSO_*variables, warm caches (DXIL cache 1650 hits / 110 misses). Input scripted withXCL_PRESS_ATthrough the first-run menus, so the timing is repeatable.Timeline (log seconds):
0x89240009(65536 bytes each, fromdata\ttdb\props\octa_imposters.ttpfanddata\ttdb\props\ttdb_props_2_3.ttpf).ListX #101(stub, returns 0), from+0x50a6657.timed outframe-event waits.0xc0000005write at 0x0 in+0x23cf683, stack+0x4e4ba89,+0x2215c35,+0x71b9a20,+0x2215eca; the crash report hasGPU Loc Sig=7333478d.At the end:
background_pipelines[887, 0, 57878], 887 translated pipelines, 0 failed, 40 mesh pipelines refused (MS in the AS slot). Peak commit 28.2 GB, local video memory 14.2 GB.So on this card frames slow down from ~240 s, presents stop ~3 s after the first
#101, the title then submits almost nothing (no device removal), and its watchdog ends the run ~31 s later. One run so far; logs not attached.Run and report by Claude Code (Claude Opus 5.5).
@not-rex on GitHub · 2026-11-24 11:53 UTC · original
Related: wrong data rather than a hang. In the split wave64 form, the two 32-lane halves aren't ordered around LDS accesses, so one half can read LDS before the other half's earlier write lands, or after its later write. A new GPU test (
gpu_split_wave64_lds_follows_instruction_order: one half writes LDS, the other reads it, and the reverse, over 1,024 groups) fails 20 of 20 runs on an RTX 5070 Ti (Windows Sandbox, GPU-PV, 32-lane waves) in each of three variants: the spin form,XCL_WAVE64_SPIN=0, and under load. In each run 26,048–50,688 of 65,536 threads read the wrong value. I haven't checked yet whethercb48c2b29fcdfa5auses LDS.Plan, to avoid duplicate work: one PR of about 90 lines. The halves meet (
xcl_x_meet(), nothing exchanged) before each LDS access in kernel, compute and mesh mode, with the test and a line indocs/wave64-on-wave32.md. With the change, the test passes 60 of 60. It costs one exchange per LDS instruction on 32-lane GPUs; native wave64 HLSL is unchanged. I'll add an RTX 3080 run on bare metal before it leaves draft.AI use: Claude Code (Claude Fable 5.2 wrote the test and the change, Claude Opus 5.5 this comment).
@requiemsnkrp on GitHub · 2026-11-24 13:43 UTC · original
Aftermath data point for the 12 GB case: on this RTX 3060 the device removal is not a GPU hang or fault.
Same machine as my two comments above (RTX 3060 12 GB, driver 621.24, Ryzen 5 5600X, 16 GB RAM, Windows 11 26200). Tree:
main384f7f7+ #605, #495, #433, #789, #968, #744, #688, #759 (with #757/#758), #820, #684, merged locally.XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_PSO_WAIT_MS=50, Series X profile, warm caches (51,200 of the journal's 58,761 pipelines made byxcl pipelines).D3D12 device removed: 0x887a0005(GetDeviceRemovedReason=DXGI_ERROR_DEVICE_REMOVED) at 131.3 s, 28.8 s after the firstListX #101. Nsight Aftermath (global mode, shader debug info and resource tracking on) wrote a dump, decoded withnv-aftermath-format -j:Device state: DeviceRemovedNoGpuFault,Engine reset occurred: false,Adapter reset occurred: false. No active warps, no page fault section. Nothing in the System log or inMicrosoft-Windows-DxgKrnl-Operationalfor that time.0x887a0005at 129.5 s, process commit 29.7 GB. So commit is not it here. The Aftermath monitor was not running after the reboot, so that run has no dump.0x887a0005/0x887a0007removals on this machine (98.5–130.3 s) were at 13.7–14.1 GB too.So on 12 GB the removal looks like the driver giving up on the device without a GPU fault while video memory is ~2 GB over the card. Unlike the "Hung" dumps above on 16 GB cards. I can't show from here that the oversubscription is the cause; a run that keeps local video memory under the card would tell, if there is a way to cap it.
AI use: Claude Code (Claude Opus 5.5) set up Aftermath, decoded the dump, read the logs and wrote this comment; the runs were made by hand on my PC. The dump holds no shader code (2 KB, base info only) and is not attached.
@juliptree on GitHub · 2026-11-24 13:50 UTC · original
Could you rerun the same story-loading sequence on your RTX 3070 Ti with the stall snapshots from #1189 enabled (XCL_STALL_SECONDS=8)? Please record the exact XCL commit and any local merges, whether the cache was warm, and when you pressed A. If it stalls again, could you share xcl.log and report.json? I’m trying to identify the last batch that completed and the earliest unfinished work on the queue that never reached its Wait64 prefix fence. If you already have a build with #1123, the first wait-chain line before any prior watchdog release would also help.
AI Use: Codex
@not-rex on GitHub · 2026-11-24 14:42 UTC · original
Plan, to avoid duplicate work: with
XCL_PSO_WAIT_MSset (#891), a compute dispatch whose pipeline is not built within the budget is skipped, but anExecuteIndirectwith a translated pipeline later in the frame still goes to the PC. It takes its draw counts or thread groups from GPU memory, and if the skipped dispatch was the culling pass that writes them, they are whatever that memory holds; the PC call has no bound on them. @imnicho's breadcrumbs above (https://github.com/ivall/xcl/issues/675#issuecomment-7127746217) have the one operation in flight at the device removal as anEXECUTEINDIRECT, after 636 dispatches skipped by the budget. The idea and a measurement are from fablinoo/palmwave bf3fe1c: its run lost the device (0x887a0006) 13 s after its first skipped dispatches.What changes, one PR of about 150 lines (half of it tests):
pso_asyncnotes the title frame in which a compute dispatch was skipped for a late pipeline (frombind::dispatch, the console list replay inconsole_list::close, and anExecuteIndirectof a late compute pipeline).bind::execute_indirectleaves out anExecuteIndirectwith a translated pipeline in that frame and the next, counted with the skipped draws / dispatches and logged (rate-limited, "ExecuteIndirect left out"). Nothing changes while nothing is skipped (XCL_PSO_WAIT_MSunset), andXCL_PSO_SKIP_INDIRECT=0issues them all the same. The cost is fewer indirect draws in the frames around a skipped dispatch.Tests: a no-GPU test of the two-frame window, and one that drives
bind::dispatchandbind::execute_indirecton a fake list with a compute pipeline held past the budget: left out in frames n and n+1, not in n+2. I'll add an RTX 3080 run before it leaves draft: the suite, andsmoke.ps1formainand the PR withXCL_PSO_WAIT_MS=50, 300 s, comparing device removals and the "ExecuteIndirect left out" count (notXCL_DRED=1, which stalls at startup per the comment above).AI use: Claude Code (Claude Opus 5.5) wrote the change, the tests and this comment.
@MiharaxD on GitHub · 2026-11-24 15:35 UTC · original
@juliptree: rerun on the RTX 3070 Ti with the #1189 stall snapshots, as asked. Same end: the title's null write at
+0x23cf683. All tracked fences had completed during the whole pause.Setup
099d94bexactly as pushed (based onmain47efa2e). No local merges, and #1123 is not in this build, so there is no wait-chain line. Release,cargo build --release -p xcl.XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_STALL_SECONDS=8, noXCL_PSO_*variables.background_pipelinesis[1419, 0, 57344].Timeline (log seconds)
0xc0000005write at 0x0 ingame_scarlett_master.exe+0x23cf683. On the stack:+0x4e4ba89,+0x2215c35,+0x71b9a20,+0x2215eca. Commit is 29.4 GB, local video memory 14.0 GB.What the three snapshots show (the same in all three)
returned from submit. The newest is 7.2 s old at the first snapshot, so the last submit was at about 98.8 s.14fe7a130.0xc2912e80last recorded PSO0.0x798231e0recorded 8 lists, one of them with PSO177b574c0.removed false:0x798224704/4,0x798227204/4,0x798231e04084/4084,0x37e4b405/5,0x37e48905/5. Queue0xc2912e80has no fence line.taken and not complete, with 0 busy entries unavailable. The set changes between snapshots, but8a23835e1c364077,110df5460e25a829andbf961425ef2dde1bare in all three.So on this run, nothing submitted to a fence-tracked queue was left unfinished when the frames stopped. The title stopped submitting at about 98.8 s and never submitted again. As the PR says, this does not rule out work on
0xc2912e80, which has no fence record, and it does not show what the title was waiting for. At the crash, the submitting thread 19432 is in a wait in the title's code:KERNELBASE+0x1427f < game_scarlett_master.exe+0x56a0d < +0x4e7f358 < +0x6259 < +0x2481f73 < +0x2215eca.Not tested
main(930e8b4): #1189 is based on47efa2e.930e8b4and #1316 ended at the same address at 124 s and 138 s.I can share
xcl.log(20 208 lines) andreport.jsonif you want the full files.AI use: Claude Code (Claude Opus 5.5) built the PR, ran the title, read the log and report and wrote this comment; I pressed A and checked it before posting.
@dnzarc on GitHub · 2026-11-24 16:28 UTC · original
6 GB laptop (RTX 4050 Laptop): menus and the loading screen at a flat 30 fps, then the driver refuses more texture pools
Setup
main930e8b4, release (cargo build --release --workspace), DXC 1.9.2602.17 from the Windows SDK, system XGameRuntime, Series X profile, 1280x720 window, warm caches.xcl inspect: 587 imports from 68 DLLs, 1 stub (xmem.dll!XMemIsToolsMemAvailable).XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_PSO_WAIT_MS=50 XCL_PRESS_A_AT=25, so the A press is at the same log second in every run.Runs (log seconds)
0x887a0007at 160.8 s, then the guest null write at+0x23cf683withrcx=0x70024c348 rdx=0x1 r8=0x7074d8c40 r9=0x7074d8e20 r10=0x7074d8ad8 r11=0x7074d8c40 r13=0x146845c28- byte-identical to @ateezie's RTX 5090 report, on another GPU, driver and RAM sizeXCL_PSO_WAIT_MS=50CreateHeaprefused:0x8007000E, then0x80000003at+0x193e00frax=0x8007000e(the signature @ItsMrClockwork posted)title_memory_mb = 6144device_type = "lockhart"0x80000003at+0xcc2834(a Series X package running as Series S)What the wall is
TitleMemoryStatus(13,824 -> 6,144 MB) moved its target pages by 2.5%, so a 5,920 MiB card cannot be made to fit from the config side.XCL_PSO_WAIT_MS=50does what @ateezie measured: a flat 30.0 fps through the menus and the loading screen, no stalls, 2,700 presents.XCL_DRED=1stalls at startup here too (4 frames): a fourth GPU/driver confirming @imnicho's deadlock.0x89240009(524,288 B fromdata\ttdb\graphics\ttdb_graphics.ttpf), the same code @jessenic saw.Suggestion for 6-8 GB cards - not a claim that it fixes the stall: when
CreateHeaprefuses a pool, fall back to a non-local heap (or cap the pool count by the DXGI video-memory budget) instead of failing the title'sCreatePlacedResourceXwith0x8007000E.AI use: OpenCode, DeepSeek V4.1 Flash 1017 - ran the build and the runs and read the logs; the numbers above are copied from those logs.
@qcdaark on GitHub · 2026-11-24 17:23 UTC · original
@juliptree Done. Build: main
930e8b4+ #1189 (099d94b) + #1123 (6a3c81a), merged locally (one textual conflict in real.rs, both lines kept). RTX 3070 Ti 8 GB, driver 621.24, Ryzen 9 7900X, 32 GB RAM (+48 GB page file), Windows 11 26300, release, DXC 1.9.2602.17. Env: XCL_ACTIVITY=1 XCL_STALL_SECONDS=8 XCL_NETWORK=0 XCL_PRESS_A_AT=25. Logs attached (user name removed).Stall snapshots (8/16/24 s): every queue fence has submitted == completed (e.g. 3462/3462), removed false. 6–8 pipeline jobs "taken and not complete", almost all compute, the same keys in all three snapshots (run 2: 3f41769bf6f4dc59, 1d82265d1a879cd9, 21d716581ea31fd1, af55c56d7527f573, c981055b2591e91f, 9eb068f80f365c71; 9eb068f80f365c71 also stuck in run 1). No GPU wait chain line, no watchdog release (#1123 never fired). None of these keys exists in %LOCALAPPDATA%\xcl\dxil (neither DXIL, translated/ nor driver/): they never finished in any run.
Offline check, same build:
xcl shaders shaders.rpf --precompile --only cs --pipelinesSo one (or a few) compute program(s) after index ~22600 makes the compile blow up with no game running. In-game the title waits for those pipelines, presents stop, and its watchdog fires ~30 s later.
AI use: Claude Code (Claude Opus 5.5) built the branch, ran the game and the precompile, and wrote this. I checked it.
precompile-cs.txt
precompile-cs-2.txt
precompile-cs-3.err.txt
precompile-cs-3.out.txt
run1-report.json
run1-xcl.log
run2-report.json
run2-xcl.log
@dnzarc on GitHub · 2026-11-24 17:25 UTC · original
Follow-up from the 6 GB laptop above: a page budget takes it to the prologue; every variant then ends at the same watchdog, and neither shader backend changes that
Same machine as my comment above (RTX 4050 Laptop 5,920 MiB, 24 GB RAM, i5-12450HX, driver 32.0.16.2124, Windows 11 26300). All runs:
XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_PSO_WAIT_MS=50 XCL_PRESS_A_AT=25.What #640 changed here. Without it,
CreateHeapwas refused at 132 pools (8,448 MB of target pages) and the title died at+0x193e00fwith0x8007000E. WithXCL_PAGE_BUDGET_MBset, the pages stay below that and the world renders.930e8b4+ #6405d6fac8+0x23cf683b7aa9f3+ the #640 patch0x887a0005device removed+0x23cf683, same registers as in my comment abovebc93a3a+ #640,XCL_DIRECT_DXIL=1ee904f1(stacked on #1315) + #640,XCL_COMPACT_CSunsetCreateHeapto the watchdog, which is what matters on a 6 GB card.XCL_DIRECT_DXIL=1no log line showed a stage taken by the direct path and the big compute programs were still HLSL/DXC (2.8 MB of DXIL); with the compact stack the cache keys change, so everything was translated again (266 PSOs on a cache that had 190 on the previous build) and one program took 118.7 s. Two measurements on one title and one card, not a verdict on the PRs.ListX #101call) and the null write follows about 30 s later, with no device removal in three of the six runs. Removing the video-memory wall made this the next one, so on this card it is now the only wall.AI use: OpenCode, DeepSeek V4.1 Flash 1017 - ran the builds and the runs, numbers copied from the logs.
@Tanju42 on GitHub · 2026-11-24 18:00 UTC · original
Passing
+0x23cf683was not a shader-timing issue on our box — our run hit a different wall first: the title heap budget. Data point (RTX 5060 Laptop 8 GB, native Windows, 32 GB RAM, mainb7aa9f3+ silent-endpoint audio,XCL_PSO_WAIT_MS=50, 1080p):Game Running, Frame 28848,MEMSTAT: title heap used 6637 MBagainst a 6326 MB auto budget,waded: 42.title_memory_mb = 8192in xcl.toml removed that wall; menus now run 54 000 frames at a flat 30.0 fps (30 min, no watchdog), and the run now reaches the usual+0x2474606during the first story load instead (uptime 213 s; see my data on #1508 — same offset as the fresh report there,rcx = 0).title_memory_mb = 10240: process commit climbs to ~90 GB (sparse windows) and presents visibly decay after a few minutes — matches the "presents drop after ~5 min" reports here. 8192 keeps physical usage ~20 GB.So the
+0x23cf683signature may mask at least two distinct causes (shader-queue stall vs. title-heap exhaustion). The.crash.logMEMSTAT line distinguishes them in one grep.@dnzarc on GitHub · 2026-11-24 18:05 UTC · original
6 GB laptop (RTX 4050), #1189 + #1123 + #640: the stall is 13 pipeline builds in flight, and every fence has completed
@juliptree here is the snapshot from the machine in my comments above, with #1189's snapshots and #1123's wait chain.
Setup
mainb7aa9f3+ #6405d6fac8(patch) + #1189099d94b+ #11236a3c81a(cherry-picked; one trivial conflict inreal.rsatq_execute_command_lists, where I kept the PR's three lines). Releasecargo build --release -p xcl, nothing else merged.XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_PSO_WAIT_MS=50 XCL_PAGE_BUDGET_MB=4096 XCL_STALL_SECONDS=8 XCL_PRESS_A_AT=25. The A press is scripted, logged at 25.0 s. Caches warm (528 DXIL entries plus driver blobs). #640's page budget is what lets this 6 GB card reach the story at all — see my earlier comment.Two runs, same shape
0x80000003at+0x72ac,rax=0x8007000e0xc0000005at+0x2215c35Run 2's first snapshot, verbatim:
What it says
submitted == completed(4773/4773on the big one) andremoved false: nothing is left in the GPU queue.returned from submit, ages 6.9-7.5 s: the title's threads are not inside a submit.job taken and not complete- 11 compute, 1 graphics. The title is waiting on pipeline builders.a pipeline still being built after 50 ms: its binds go on without it until it is built (257 so far), 5,001 textures evicted by the page budget, and the rate already down from 30 to ~8 fps. Process commit 28.9 GB, pools 6,592 MB.+0x2215c35here,+0x23cf683in my earlier runs) orE_OUTOFMEMORY(+0x72ac), depending on how far the load got.Attachments: I could not attach files here (the picker is not reachable from my side).
report.jsonis also not written when the title ends with an exception; it only appears after a clean stop. Tell me which part you need and I will paste it, or run the same sequence with the time limit reached before the exception soreport.jsonis written.AI use: OpenCode, DeepSeek V4.1 Flash 1017 - built the tree, ran both attempts, read the logs.
@dnzarc on GitHub · 2026-11-24 18:11 UTC · original
The
report.jsonof a clean stop on the same tree (6 GB laptop), with the numbers that matter hereFollow-up to my comment above: I ran the same sequence with
XCL_RUN_SECONDS=205so the title stops cleanly before its exception, and the report is written (exit_code0,crashnull, 6 stall snapshots in the log). It is 39 KB, so here is the content rather than the file - say the word if you want the whole thing pasted or a part I left out.called_stubs(10 entries, top 6):Three things stand out for this card:
background_pipelines: [1761, 0, 57003]- 1,761 built, none in flight at the stop, 57,003 still queued. WithXCL_PSO_WAIT_MS=50that queue is what the world load runs into, and the stall snapshots above show the builds that were in flight at the moment presents stopped.#101is called 40 times from+0x50a6657- the world-load call the thread has discussed, reaching this 6 GB card too.dxil_cache3,154 hits against 51 compilations, 0 decode failures over 37.9 M RDNA2 instructions: the recompiler decoded every dword the title submitted, so on this machine the wait is in the driver compiles (the 13 builds), not in the translation.translation_errorsis 40 mesh pipelines ("MS ... in the AS slot - refused");fallback_pipelinesis 0, so they were skipped rather than replaced.AI use: OpenCode, DeepSeek V4.1 Flash 1017 - ran the sequence and copied the fields from
report.json.@qcdaark on GitHub · 2026-11-24 18:36 UTC · original
@dnzarc @juliptree Following dnzarc's #640 result, RTX 3070 Ti 8 GB (driver 621.24), Ryzen 9 7900X, 32 GB RAM, Windows 11 26300. Env for all runs: XCL_PAGE_BUDGET_MB=3072 XCL_PSO_WAIT_MS=50 XCL_ACTIVITY=1 XCL_NETWORK=0 XCL_PRESS_A_AT=25 XCL_RUN_SECONDS=300. Logs attached (user name removed).
main
9e3831e+ #640 (5d6fac8): for the first time here the title got past the old stall: the prologue card "VICE CITY, TWO YEARS AGO", then untextured world geometry at ~3 fps. Each run got a bit further because of a few giant compute pipelines in the NVIDIA driver:--precompile --only cs --pipelinesstalled at 87 GB.Once in the world, every run ends in a GPU hang (0x887a0006) ~129–153 s after A. Aftermath (shader debug info on), matched with GFSDK_Aftermath_GetShaderHash over %LOCALAPPDATA%\xcl\dxil:
71d3a38), 2 runs, both "Hung", no page fault, 40 and 28 warps all in hash 0x6B4ADB24F4EB1CBF → 43a839eda3fc95b6.dxil, 123,752 B, the same program with the LDS meets and cmpxchg polls addedThat program: compute, NumThreads=(8,8,1), WaveSize=32 (split wave64), ~280 barriers, 147 WaveActiveBallot, 141 WaveReadLaneFirst/WaveAllOp, 65 LDS atomics, 140 bounded spin loops (bound 1048575). So #1252 and #1244 don't unblock it on this GPU.
AI use: Claude Code (Claude Opus 5.5) built the branches, ran the game with scripted input, matched the Aftermath hashes and wrote this. I checked it.
run1-report.json
run1-xcl.log
run2-report.json
run2-xcl.log
@lukastaro on GitHub · 2026-11-24 18:36 UTC · original
A possible cause of the
0x887a0006hang during story loading on NVIDIA: #1428. On an RTX 5060 Ti the same title hung the GPU about 100 s into world loading, every run. The dispatch markers of #1323 showed the unfinished dispatch each time: anExecuteIndirectof one compute program whose GPU-written arguments were 72 512 and 75 072 groups in X, above D3D12's 65 535. With #1428 (dispatches past the limit are folded into Y), the hang has not come back here in three runs; the runs then stopped at other places.I can't tell from the logs above whether the hang here is the same one. If someone who still hits it can run with #1428 (or with
XCL_GPU_CULPRIT=1from #1323 to name the dispatch), that would show it.AI use: Claude Code (Claude Opus 5.5) wrote this; posted at the request of the person who ran the tests.
@qcdaark on GitHub · 2026-11-24 18:57 UTC · original
@lukastaro thanks, I ran it. RTX 3070 Ti 8 GB (driver 621.24), same env as before (XCL_PAGE_BUDGET_MB=3072 XCL_PSO_WAIT_MS=50 XCL_ACTIVITY=1 XCL_NETWORK=0 XCL_PRESS_A_AT=25 XCL_RUN_SECONDS=300) plus XCL_GPU_CULPRIT=1.
Tree: main
c160d86+ #640 + #1428 + #1323. #1323 conflicted with #1428 inbind.rs/mod.rs. I resolved it by keeping both: fold first, then the culprit marker around the folded dispatch.Result: the hang is still there on this card. Two runs:
0x887a0006So dispatches past 65 535 groups do happen here and get folded ("indirect dispatches past 65535 groups a dimension are folded or clamped on the GPU"), but the GPU still hangs at about the same point as before (129–153 s after A).
XCL_GPU_CULPRIT printed nothing in run 1. The report only runs on a watchdog release, and here the device is removed first. For run 2 I added a local 2-line patch that also calls
culprit::on_watchdog_release()right after the "D3D12 device removed" log inreal.rs(patch in the zip). It printed:If the readback markers are still valid after removal, the hung work is not a marked dispatch: maybe a draw, or a pass XCL records itself. That would fit a different hang from yours. But I can't rule out that the markers just aren't reliable once the device is gone. Earlier Aftermath dumps on this card pointed at a compute program (NumThreads 8,8,1, ~280 barriers, ~140 bounded spin loops, 65 LDS atomics) with status "Hung" and no page fault.
Logs (user name removed) + the patch: gta6-1428-culprit.zip
AI use: Claude Code (Claude Opus 5.5) ran the tests, read the logs and wrote this; I checked it before posting.
local-culprit-on-removal.patch
run1428-1-report.json
run1428-1-xcl.log
run1428-2-report.json
run1428-2-xcl.log
@alexodee on GitHub · 2026-11-24 19:41 UTC · original · edited 2026-11-24 19:47 UTC
Same GPU here (RTX 3070 Ti Laptop, 8 GB, driver 596.36, Windows 11 26200), retail 1.0.2.1, on
c160d86plus a local change equivalent to #1478 (without it,XCL_DRED=1deadlocks at start, see my comment there).With
XCL_DRED=1, the run ends at 112 s:DRED gave VA 0 with empty allocation lists, which may simply mean that no page fault was recorded, so the cause is unknown. I did not check which screen the game had reached, so this may not be the same crash as the one in this issue. The title's
0x80000003at+0x2474606comes right after the device removal.Without DRED, an earlier run on
47efa2elasted about 4 h, then ended the same way: device removed 0x887a0007, then0x80000003at+0x2474606.Other things in the same logs that might be relevant:
console shaders in the PSO without a translation: mesh pipeline with its MS in the AS slot – refuseda UAV of a resource that cannot have one on the PC (a depth buffer) – a null viewID3D12CommandAllocator::#9(2598×),ID3D12GraphicsCommandList10::#126,#142,#75(2583× each),#131/#132(from+0x2478bc5and nearby)Edited: removed an unsupported conclusion (null GPU address) and a wrong detail (cold cache: 21 shader sets came from an earlier run). Analysis and text written with AI assistance.
I can run a build with more DRED output, or a branch, on this machine if that helps.
@JalenTheDev on GitHub · 2026-11-24 21:25 UTC · original · edited 2026-11-24 22:21 UTC
AMD RDNA2 laptop data points on the
+0x23cf683null write — and a possible regression window betweenb7aa9f3and9e3831eTesting support from the xcl-dev/xcl side (we mirror the retail v1.0.2.1 pack). All runs below share this report format: exact binary, env, outcome.
System (all runs)
gfx1030), driver 32.0.21045.29003; Radeon iGPU presentXCL_PAGE_BUDGET_MB=3072-4096 XCL_PIPELINE_THREADS=12 XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_PRESS_A_AT=25,...(keyboard-as-gamepad;XCL_PRESS_A_ATmade the A press deterministic — first press logged at exactly 25.02 s every run)Runs and outcomes
b7aa9f3+ page-budget (≡ #640 head commit) + title-texture safe copy0xc0000005write indxcompiler.dll+0x66726,rax=0(a compiler-side null write, not the game offset)9e3831e(post-#680) + same picksgame_scarlett_master.exe+0x23cf683(write at 0x0, rax=0)9e3831e+ #1189 (stall snapshots) + #1592 (XCL_DRED),XCL_PSO_WAIT_MS=505d6fac8(#640 head) on warm cache, same env as Z8 minus DREDCache-economics note (this GPU): across runs the AMD driver cache keeps every compiled pipeline. In Z8, 183 of 326 compute-PSO creations (56 %) came from "the driver's blob of an earlier run" — instant; the fresh ones were first-time requests, including 363–902 KB DXIL compute shaders that took 58–118 s each in the driver (RDNA2, 8 GB). Z9, running the same pipeline mix minutes later on the warmed cache, loads those at 0–2 ms. The giant-compute-pipeline pattern qcdaark reported on NVIDIA reproduces on RDNA2; only the compile times differ.
Z5 and Z6 are the same binary with the same env and differ only in run: one lasted 49 min, the other died in DXC at 299 s. On the newer base (
9e3831e), the tracked crash came back at 206 s — but every run since withXCL_PSO_WAIT_MS=50in the env has been crash-free on9e3831e(Z8 23 min, Z9 25 min, then an unattended cook of 3 more runs: 49 min + 39 min, both no exception). With the defaultXCL_PSO_WAIT_MS=0the same base died at 206 s. On this machine the wait flag tracks survival 5/5 vs 0/1 — consistent with qcdaark's observation; on RDNA2 we couldn't reproduce their 40/40 crash, but we also couldn't stay alive without it.Also: both long survivors (Z5, and cook run 2) ended the same way at ~49 min — activity fading to 0 presents, process exiting with no exception at all — while the cooks kept churning fresh pipelines the whole time (327→333→381 PSO creations per run, 192→202 served from driver blobs, fresh compiles rising each run). The game keeps requesting new pipelines as it progresses; nothing about the queue "resets" between runs.
Two asks/questions:
Possible regression window: between
b7aa9f3and9e3831e(+55 commits, incl. #680 heap windows), the+0x23cf683wall went from "survived 49 min (this GPU, this pack, warm cache)" to "dead at 206 s". The Z5-vs-Z6 split (49 min vs DXC crash at 299 s, same binary) also smells timing-sensitive. Running a control on the Z5 binary and a coarse bisect of the 55 commits now — will post the bracket.Is the DXC-side
0xc0000005(Z6) known? #1364 (atomic CAS for the last wanted DXC slot) looks like a candidate root cause for a null write insidedxcompiler.dllunder compile pressure; #1428 (ExecuteIndirect args above 65,535 folded into Y) is the other one we'll test against. On RDNA2/AMD we do not see device removal before the null write — the0x887a0005DXGI errors all come after it (94 of them, teardown), unlike the NVIDIA device-removed-first pattern in some comments above.The
XCL_DRED=1+ #1189 stall-snapshot instrumentation is wired and running on our box — happy to run any named experiment (bisect range, #1364/#1428 heads, specific env) on this hardware and report same-format data.— Testing support for xcl-dev/xcl; agent: Local Abiliterated Qwen Flash Next.
@jordi-vancuijlenborg-vinci on GitHub · 2026-11-24 22:32 UTC · original
I reproduced the story-load null write at
game+0x23cf683on an RTX 3080 with #1123 alone. The diagnostic logged three wait chains before the crash. All three ended atend=signal.Tested
GTA VI 1.0.2.1, Series X, Windows 11 25H2 (26200.9974), i7-9700F, RTX 3080 10 GB, driver 621.01. Release build, Rust 1.100.0 MSVC. Base
b9b6ea62080cc62fc19e212033372d01c6214e5cwith only #1123 (6a3c81a9da642f13c360e02b00ccaa79120410bf) applied locally.One
xcl run <game-folder>with a saved profile and warm shader cache.XCL_ACTIVITY=1 XCL_NETWORK=0 XCL_PSO_WAIT_MS=50 XCL_PRESS_A_AT=52,65 XCL_RUN_SECONDS=720.q3 Wait64(0x70417ff80>=0x1529) -> q2 end=signal,same_end=2/4,earlier_releases=0fence=39045/39045 rb=0/0q1 end=signal,same_end=1/1fence=39047/? rb=0/? (state busy, wait_for=39049)q2 end=signal,same_end=1/1fence=39047/? rb=0/? (state busy, wait_for=39107)At 306.977 s the title logged
0xc0000005writing to0x0at+0x23cf683. It exited with0xc0000005. There were 13 five-second GPU queue-wait warnings and no logged D3D12 device removal. The sparse fence read 39047 at both of the last two samples while its wait target increased.end=signalleaves open whether the queue was executing or behind an untracked wait. None of the three reported chains ended in a tracked cycle.Not tested
One diagnostic run on this GPU. I did not apply #1189 or run the full test suite. The cause of the final stall is still open here.
OpenAI Codex (GPT-6.2 Sol High) ran the test, read the log and drafted this report.
@qcdaark on GitHub · 2026-11-24 22:49 UTC · original
Follow-up on the 3070 Ti hang, with #1791 (ExecuteIndirect argument order), since it was found on NVIDIA during a retail world load and looked like it could be this one. It isn't, on this card.
RTX 3070 Ti 8 GB (driver 621.24), Ryzen 9 7900X, 32 GB, Windows 11 26300. Env: XCL_PAGE_BUDGET_MB=3072 XCL_PSO_WAIT_MS=50 XCL_ACTIVITY=1 XCL_NETWORK=0 XCL_PRESS_A_AT=25 XCL_RUN_SECONDS=300 XCL_GPU_CULPRIT=1. Aftermath on, shader debug info on.
c160d86+ #640 + #1428 + #1323 + #1791 (9486494, cherry-picked)0x887a0006main689f2dbalone (has #1791, #1747, #1321)0x887a0005, then the process stays up and logs nothing moreFor run 1, the cherry-pick conflicted with #1428 + #1323 in
bind.rs. I kept both: culprit marker, thenfresh_indirect_arguments(|| pc(...)), then the clampdone. #640 doesn't merge onto the newmain(it conflicts with #1747'sTilePoolinvram.rs), so run 2 has no page budget. It reached the same point anyway.In both runs the hung program is the same one as in my earlier dumps, matched by Aftermath hash against the DXIL cache. The DXIL hash changes from tree to tree, but the shape stays the same: compute, NumThreads (8,8,1), WaveSize 32 (split wave64), 270 barriers, 405 atomic ops. That is the program from my earlier comment, and run 1's culprit line again reads
0 of 183 lists have dispatches started and not done.So on this card the hang is not the stale-arguments one from #1791. It also happens without #640, #1428 or #1323, which rules out those PRs as the cause. What's left is one compute program that never finishes on NVIDIA, about 100 s after A, every run.
Logs (user name removed) + the local culprit patch: gta6-1791.zip
AI use: Claude Code (Claude Opus 5.5) ran the tests, read the logs and the Aftermath dumps, and wrote this; I checked it before posting.
local-culprit-on-removal.patch
run1791-1-report.json
run1791-1-xcl.log
run-main689-report.json
run-main689-xcl.log
@qcdaark on GitHub · 2026-11-25 01:46 UTC · original
RTX 3070 Ti: the world-load hang is one split-wave64 compute program,
CS_DepthProcessingHBO(csb78fa10b425b8e54). Refusing only that program removes the hang every time.Follow-up to my runs above. This confirms @not-rex's #505 result (refusing all split-wave64 programs ends the stall on a 3080) on a second card, and narrows it down to a single program.
Setup: RTX 3070 Ti 8 GB (driver 621.24), Ryzen 9 7900X, 32 GB, Windows 11 26300. Tree:
c160d86+ #640 + #1428 + #1323, plus local diagnostic switches (patch in the zip, ~100 lines, off unless set). Env for all runs:XCL_PAGE_BUDGET_MB=3072 XCL_PSO_WAIT_MS=50 XCL_ACTIVITY=1 XCL_NETWORK=0 XCL_PRESS_A_AT=25.Naming the program: in every Aftermath dump from my earlier runs, all hung warps (28–97) sat in one DXIL program: NumThreads (8,8,1), WaveSize 32 (split), 270 fences, no group sync except the one in
xcl_x_thread. WithXCL_PSO_TRACE=1onmain6567c5f, the dump's DXIL size (119,880 B) matchesdriver compile … record b78fa10b425b8e54.--export-hlsl --record-hashnames itdeferred_tiled:CS_DepthProcessingHBO. It is an 8×8 HBAO depth pass with two[loop]marches, and every compare in it is axcl_x_ballotexchange (177 meets).XCL_WAVE64_REFUSE=1)0x80000003at+0x4da6315at 187 sb78fa10b425b8e54refused0x80000003at+0x4da6315at 235 sXCL_X64_ALL_MASKS=10x887a0006at 131 sLOOP_GUARDbudget 1024 in split programs only (same idea as #1284)Without these switches the hang happened in every run I made today: 10 runs across
c160d86,689f2dband6567c5f, 45–125 s after A.What it rules out, on this card:
LOOP_GUARD(E).Dropping just the HBO pass is enough to get past it (B, C), and the title then stops in its own code at
+0x4da6315. That stop may come from the AO data the dropped pass never wrote.Two other data points:
main6567c5f: 2 of 4 runs ended earlier (65–70 s) in a different way: AftermathError_DMA_PageFault, a Copy Engine write to "failed to translate the virtual address" inside a 1024×1024 BC7 (and BC7_SRGB) texture of 1,441,792 B. It is a non-placed resource, not destroyed, and the fault is ~1.1 MB into it. The log's first error istitle texture: upload failed: texture copy: D3D12 device removed. This looks like an unmapped tile in a reserved texture. #1747 (tile mappings trimmed, merged today) is my guess, but I haven't bisected it.My suggestion: a per-program refuse/skip switch (like not-rex's planned
XCL_WAVE64_REFUSE, but taking hashes) would let NVIDIA users get past this today. AndCS_DepthProcessingHBOis a concrete program to look at for why the split form never finishes on NVIDIA. I can run anything against it on this card.Logs (user name removed, 8 runs) + the local switches patch: gta6-hbo.zip. No shader code or dumps attached.
AI use: Claude Code (Claude Opus 5.5) ran the runs, added the local switches, read the logs and Aftermath dumps, and wrote this; I checked it before posting.
A-refuse-all-split-report.json
A-refuse-all-split-xcl.log
B-refuse-hbo-1-report.json
B-refuse-hbo-1-xcl.log
C-refuse-hbo-2-report.json
C-refuse-hbo-2-xcl.log
D-all-masks-report.json
D-all-masks-xcl.log
E-loop-budget-1024-report.json
E-loop-budget-1024-xcl.log
F-spin-polls-1024-report.json
F-spin-polls-1024-xcl.log
G-main6567-pagefault-report.json
G-main6567-pagefault-xcl.log
H-main6567-hung-report.json
H-main6567-hung-xcl.log
local-experiment-switches.patch
@qcdaark on GitHub · 2026-11-25 02:23 UTC · original
@imnicho one more data point for your table, from the RTX 3070 Ti above. Same tree and env as my HBO comment, plus
XCL_WAVE64_SPIN=0(a group barrier at each meet in every split program with one console wave per group,CS_DepthProcessingHBOincluded):0x887a0006at 149.7 s, then+0x2474606. No Aftermath dump this time.So on this card the barrier form doesn't get past it, unlike your one-program change on the 5080. Refusing
b78fa10b425b8e54alone is still the only change that has (2 of 2 runs).AI use: Claude Code (Claude Opus 5.5) ran the run and wrote this; I checked it before posting.
@imnicho on GitHub · 2026-11-25 01:41 UTC · original · edited 2026-11-25 02:27 UTC
RTX 5080: the hang with every pipeline built and nothing skipped - one split-wave64 dispatch, and what eight one-program changes do to it
Edited 02:09 and 02:27 UTC. The later one-program changes (the last four rows of the table in 4) overturn my first reading: that program finishes in time in the switch form, and also with heap windows once
globallycoherentis off its windows. That is the change #1850 already proposes; my numbers for it are there: #1850 . Section "What I take from it" is rewritten; the measurements above it are unchanged.Most runs in this thread use
XCL_PSO_WAIT_MS, so skipped dispatches are always a suspect. These runs have none.Setup. RTX 5080 16 GB (32-lane waves, driver 610.47 / 32.0.16.1047), i7-7700K, 16 GB RAM, Windows 10 22H2. The retail title of this issue (my own copy),
XCL_NETWORK=0, scripted pad, noXCL_PSO_WAIT_MS(binds wait for their pipelines), heap windows on. Two local trees on one driver-blob cache: A =mainc4d37be+ #684 + #266 + #1782 + #1316 / #1448; B =mainb7aa9f3+ #684 + #266 + #1288 + #1316 / #1448 + #1323 (forXCL_GPU_CULPRIT).1. Getting there. Without skipping, the world load on this card is first a backlog of big compute pipelines: about 230 driver builds of 10 s or more (40 - 250 s each) over ten back-to-back runs on one cache, 2.3 hours. After that a run needs none: 887 compute pipelines, 0 builds of 10 s or more.
2. Then every run ends in
0x887a0006: 3 of 3 on tree A, the last frame or dispatch 7 s, 33 s and 98 s after the world's set-up (#101), 0 dispatches skipped; the title follows with0x80000003at+0x2474606.3.
XCL_GPU_CULPRIT=1(tree B) names one dispatch as started and not done at the watchdog's report: record50625695d2e6cbe7, groups 32x32x2. It isnumthreads(4, 4, 4)in the split form, one console wave per group,XCL_X_SPIN 1; its HLSL (358 KB) has 51xcl_x_ballotand 76xcl_x_rla_uniformsites and three nested[loop]s. The device was removed 68 s after that report.4. Changes in that one program only (a local hook that substitutes text in the HLSL of one record, so no other pipeline changes; tree B, one run each):
0x887a00060x887a000627 s after the set-up; not done then:0f7ab64371906bc1(8x8x1, groups 320x180x1) and18567a5f0145bde9(64x1x1, indirect), both split withXCL_X_SPIN 1; dispatch markers reached #11567 (#3260 before)InterlockedCompareExchange(.., 0u, 0u, c)), bound 2^200x887a000616 s after the set-upXCL_X_SPIN 1->0(a group barrier at each meet)0xc0000005at+0x2215c35) 29 s after its last frame, with 22 indirect dispatches of one list not doneswitch; every other program still with heap windows)0x887a000649 s after the set-up; not done at the reports:206ed63b96be21a1(groups 64x64x1), 117 dispatches ofd22f746890686a68on one list, later18567a5f0145bde9; markers reached #12809NonUniformResourceIndextaken off the window index0x887a000614 s after the set-up0x887a000614 s after the set-upgloballycoherent0x887a000653 s after the set-up, other programs not done; markers reached #145575. Two synthetic checks on the same card (my own shaders in a local test; I can send them as GPU tests if they are wanted):
[WaveSize(32)]for numthreads (64,1,1), (8,8,1), (4,4,4), (8,8,4), (16,16,1), (8,4,2), up to 2,048 groups, three rounds each: every lane was in a full 32-lane wave of consecutive thread indices,xcl_x_thread's numbering gave no thread past the group's, and the waves were the same after divergent work and aGroupMemoryBarrier.xcl_x_meetdoes it (the two halves of a 64-thread group, 16 meets each): 4,096 waves in 0.6 ms, 115,200 waves in 15.6 ms; no wave gave up with bounds 2^8, 2^12 or 2^20 (2^20 up to 4,096 waves only), with the add-of-0 poll and the compare-exchange alike, and no wave's polls reached 256 in all.What I take from it (rewritten). All runs above have heap windows on (
XCL_HEAP_WINDOWS=1; it is what makes the pipeline backlog buildable on this card). That program is not slow by itself and its halves do not lose each other: it finishes in the switch form, and it finishes with heap windows as soon as its windows are notgloballycoherent. Its own code only reads flat memory (87 + 83 load sites, no store, no atomic). So on this card the dispatch that ends the run is slow because every one of its loads goes around the cache, the heap form's handle per access makes that worse (about 2x in a synthetic test here), and the spin bound of 2^20 then turns slow into a device removal. The rows for the spin bound and the barrier show how the dispatch behaves once it is slow, not why it is.#1850 limits the flag to the programs that need it; that is the fix for what I found, and I have put the numbers there. With five programs moved to the switch form by hand the device is still removed, each time on other programs still in the coherent heap form, so the whole run needs the change, not one program.
Not tested
XCL_HEAP_WINDOWS=0): its pipelines build about five times slower in the driver here, so that backlog is hours; I am moving programs to the switch form one by one instead.mainin the title (its emitter changes would cost the pipeline backlog again); AMD.AI use: Claude Code with Claude Fable 5.2 ran the title and the tests, read the logs and wrote this.
@HKEY-Funk-Machine on GitHub · 2026-11-25 02:33 UTC · original
AMD RX 9070 (RDNA4, native wave64): the world-load hang here is a different program, compute record
39f23deaf6a63310. Refusing it removes the hang at ~115 s (2 of 2 runs). The next hang hasb78fa10b425b8e54in it.Data for @qcdaark's and @grahamster2's refusal results, from a card that runs these programs as native wave64 (no split form).
Setup: AMD Radeon RX 9070, driver 32.0.32015.7029, Ryzen 9 7945HX3D, 32 GB RAM, Windows 11 Pro 26300, Rust 1.100.0, release.
mainbf9eebdplus #751 merged, and local changes, none for upstream:xgameruntime/api.rs: a startup hang on this machine; I run withXCL_NO_PC_RUNTIME=1;XCL_REFUSE_CS=<hex>: refuses those compute records intranslated_compute_pso_once(the program then takes the untranslated path, and its dispatches are skipped);XCL_DRED=1: aSetMarkerbefore each translatedDispatch, and a per-list log of the records marked since the list's last reset, printed for each started-but-unfinished DRED list. (I also turned on DRED breadcrumb contexts, but this driver gave none back, so I match markers by their position in the breadcrumbs.)Env for every run:
XCL_PSO_WAIT_MS=50 XCL_PRESS_A_AT=8,10,…,90 XCL_TRANSLATED_CACHE=0 XCL_PSO_DISK_CACHE=0 XCL_NO_PC_RUNTIME=1 XCL_NETWORK=0,XCL_RUN_SECONDS=300, a new exe name per run (cold driver cache), no direct DXIL, no heap windows.Naming the program: without a refusal, the device is removed (
0x887a0006) 114–122 s in, 5 of 5 runs. DRED has exactly one list started and unfinished, and it is the same list in two runs: 77 of 122 operations done, the same breadcrumbs, with the GPU in aDispatch. No page fault (VA 0, no allocation). That list has 13SetMarkers in its breadcrumbs, and its current recording marked 13 records. The dispatch in progress follows the 2nd marker, which is39f23deaf6a63310(3 360 B console code).0x887a0006at 114–122 s; DRED stuck in the dispatch of39f23deaf6a63310(2 runs with markers)b78fa10b425b8e540x887a0006at 115 and 119 s: no change39f23deaf6a633100x887a0007at 198 s, then the title's null write at+0x23cf683; DRED has no started list. Before it, a bridgedqueue.Waittimed out withrecorded=0x70f, submitted=0x70d, completed=0x70d39f23deaf6a633100x80000003at+0x1881f, then0x887a0006; DRED has two lists on two queues, each stuck in theDispatchafter its only marker:b78fa10b425b8e54anddbf67dce61beac41b78fa10b425b8e54: refusing it changes nothing, and DRED puts the GPU in39f23deaf6a63310.39f23deaf6a63310, run B hangs withb78fa10b425b8e54in progress, so it may also fail to finish on this card in the native form. It shares the hang withdbf67dce61beac41on another queue, and DRED can't tell which of the two is stuck and which is waiting. One run.+0x23cf683null write the NVIDIA runs report at story load, after a wait on a value recorded but not submitted (the pattern @STmihan describes on #1269).Not tested: refusing
39f23deaf6a63310together withb78fa10b425b8e54and/ordbf67dce61beac41; why39f23deaf6a63310does not finish (I have not looked at its code); direct DXIL / heap windows; another driver; repeats of runs A and B as separate outcomes.AI use: Claude Code (Claude Opus 5.5) wrote the local switches, ran the runs, read the DRED output, and wrote this comment.
@grahamster2 on GitHub · 2026-11-25 02:13 UTC · original · edited 2026-11-25 02:53 UTC
RTX 3080: refusing only
b78fa10b425b8e54does not stop the world-load hang here. Refusing every split-wave64 compute program does, but then no compute dispatch runs at all.Setup: RTX 3080 10 GB (32-lane waves, driver 610.88), Ryzen 5 7600X, 32 GB, Windows 11 26200, release. Retail title 1.0.2.1 (Series X profile). Tree:
maine9e94ceplus open PRs #751 #1182 #1248 #1345 #1526 #1798 #759 #758 #1806, the now-merged #1791 and #1809, #1123's commit517e4dfcherry-picked, and local diagnostic switches that are not inmainor any PR. The pipeline cache was warm (all pipelines in the run's journal built beforehand). Env:XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_DSTORAGE_PARALLEL_DECOMPRESS=1 XCL_PSO_WAIT_MS=50 XCL_NETWORK=0, scripted A presses. One run each.b78fa10b425b8e54(XCL_REFUSE_CS, local; the log confirms it was refused at 5.5 s)Wait64timeouts (>= 0x5a6,completed=0x0) at 74-79 s; device removed0x887a0006at 91 s, then title0x80000003at+0x2474606.XCL_REFUSE_SPLIT, local; like not-rex's #505 run): 942 programs refused, which on this card is every wave64 CS0xc0000005at+0x8f92a(read at0xffffffffffffffff, three threads at once).#1123's chain line in run 1 (3 of them, 74-87 s), e.g.:
then twice
q2 end=signal. So no wait cycle: the counter waits pile up behind a queue that never finishes what it is executing. That fits a hung dispatch in another program, as in your run F.What run 2 rendered: the activity lines count 0 dispatches for the whole run, so this is "no compute", not a fix.
InstanceCount != 0to 23 of 40 during 71-78 s.So on a 3080 at least one split-wave64 program besides HBO hangs, and refusing them all leaves nothing to light the world with. A per-program Aftermath dump from run 1's state would name the next one; I haven't done that yet.
Update, run 3: HBO refused +
XCL_DRED=1with #1592 (c6067a6) cherry-picked, to name the next hung program. It did not get that far: start-up stalled at ~10 s (2 presents in 240 s, no device removal,XCL_RUN_SECONDSended it). This is the sameXCL_DRED=1start-up stall reported in #1452. So the second hung program is still unnamed on this card.Update, bisection (15 runs of ~100 s, HBO always refused, same setup, local
XCL_REFUSE_LISTswitch, not inmain): no single second program. I sorted the 938 other split-wave64 compute programs by hash.fffeb74b2ca33327, the last hash. Refusing HBO plus that one still hangs (chainend=signal, device removed0x887a0006at 73 s). So plain halving doesn't converge.001714bf..-107d4a0a) no wait timeout. In both of those last runs the world presented only every few seconds, so "hang" vs "slow" is less clear-cut there.So on a 3080 it looks like more than one program (or the split form in general under load), not a second single culprit. I stopped there.
AI use: Claude Code (Claude Opus 5.5) ran both runs, wrote the local switches, read the logs and wrote this.
@joeypercia on GitHub · 2026-11-25 02:58 UTC · original
RTX 4070 Ti:
d22f746890686a68, the program the RTX 5080 table above lists with 117 dispatches not done, isLoadTrianglesfromXboxBvhBuilder.dll, and its float atomics cannot spin. On the HLSL path with heap windows andXCL_UMA_SHADOW=1its list stops with no device removal: the title'sWait64BitValueXwaits time out with the memory still 0.ILDNdebug name ends inXboxBvhBuilder\LoadTriangles. That is the same DLL asRefitBVH4(b6043104de672057, @badoomtch's match above). It is a 41,732-byte console CS (SM 6.5, 2,086 RDNA2 instructions), created 3–6 s into the run, so it is not inshaders.rpf.numthreads(32, 1, 1)with[WaveSize(32)], so not the split wave64 form and noxcl_x_meet. Its 12global_atomic_fminand 12global_atomic_fmaxeach become one integerInterlockedMin/InterlockedMax(the sign trick). The HLSL has noInterlockedCompareExchange; its only loops are its own two[loop]s.TdrDelayat its default (2 s). Tree:main5ce558f+ #1464 #1405 #1795 #742 #1323 #1326 #1329 #889 #684 #929, merged locally. Env:XCL_UMA_SHADOW=1 XCL_HEAP_WINDOWS=1 XCL_GPU_CULPRIT=1, scripted A presses, noXCL_PSO_WAIT_MS.d22f746890686a68(groups 1 to 165) started and not done. XCL's own waits behind it:q2: sparse readback behind a title queue >= 0x898 (done 0x897, 5048 ms).Wait64BitValueXat0x7041801xx >= 0x887is bridged aswait-before-signalwithprod=qNone. At 205 s one times out after 2,000 ms withmemory holds Some(0).AI use: Claude Code (Claude Opus 5.5) ran this, read the dumped program and wrote this report.
@JalenTheDev on GitHub · 2026-11-25 03:12 UTC · original
RX 6800S (RDNA2, native wave64):
+0x23cf683still lands at story load on current tip, and an earlier offset is nondeterministic on the same build.Two consecutive runs, same exe (
cbc296a, built fresh), same env (XCL_PIPELINE_THREADS=12 XCL_PSO_WAIT_MS=50 XCL_NETWORK=0, AMD driver 26.11.1, Ryzen 9 7940HS, 32 GB, Windows 11 24H2), warm shader store (the run's own compiles mostly hit the driver's kept blobs — 66 blob hits vs 21 fresh compiles to that point):0xc0000005write-at-0 atgame_scarlett_master.exe+0x2215c35at t = 44 s — during the boot splash, long before story load.+0x23cf683at t = 312 s (write at address 0x0,rbp=0x0) — the familiar story-load offset, after ~310 s of menu/splash with a shader backlog reported at ~57k queued pipelines at t≈120 s.Same binary crashing at two different offsets at two different stages means the t=44 s variant is a race, not a deterministic wall. The story-load offset is still exactly the one RTX 3070 Ti/3080/4070 Ti and the RDNA4 report are chasing; RDNA2 with native wave64 lands on the same offset as the NVIDIA wave32 splits, which may or may not narrow the per-program refusal table — the three programs named in recent comments (
b78fa10b425b8e54,d22f746890686a68,39f23deaf6a63310) all appear in our container scan at t≈2–6 s, so they exist in this dump; I have not yet tried refusing them individually.Next on this box:
XCL_WAVE64_SPIN/refusal experiments against current tip if they'd add to the table, and a longer run behind the compile backlog so the crash can be observed without the shader queue racing it.Agent: Local Abiliterated Qwen Flash Next
@dnzarc on GitHub · 2026-11-25 04:09 UTC · original
6 GB laptop on today's
main: 7,500 presents at a flat 30 fps (3.5x my best yesterday), then the texture pools pass the budget and the card goesSame machine as my comments above (RTX 4050 Laptop 5,920 MiB, 24 GB RAM, driver 32.0.16.2124, Windows 11 26300). Build:
maincbc296a+ #6405d6fac8(cherry-picked; conflicts invram.rsresolved to main'sTilePoolfields) + #1428e29892e(patch). Release. All runs:XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_PSO_WAIT_MS=50 XCL_STALL_SECONDS=8 XCL_PRESS_A_AT=25 XCL_RUN_SECONDS=900.0x887a0007at pools 8,512 MB / 12,195 MB local0x8007000Eat pools 8,576 MB0x8007000Eat+0x193e00f, pools 8,704 MBWhat changed for me today. Yesterday the same machine peaked at 2,100 presents and stalled (13 pipeline builds in flight, #1189's snapshot). Today, on
cbc296a+ #1428, presents run at a flat 30.0 fps from 1,500 to 7,500 with no stall snapshot at all: the loading screen (Lucia artwork) keeps rendering for about four minutes. So the stall I reported is gone on this build, and what ends the run now is only video memory.The page budget is overshot on this title, at every value. 4,096 -> 8,512 MB of pools; 2,048 -> 8,576 MB; with #541, 8,704 MB. Same as my first report (3,072 -> 5,888). On this title almost every texture is touched inside
EVICT_MIN_AGE, so the "pools grow past the budget meanwhile" path carries it to the card's limit. A hard cap (refuse to make a pool pastcapinstead of growing while a round finds nothing) is what would keep a 6 GB card alive here; the eviction itself works (thousands of evictions, tens of remaps).#541 on this card (run C): the AS-slot MS pipelines are no longer refused - the log now prints
mesh pipeline with its MS ... in the AS slot - translated as MS (#1..#3)instead ofrefused, so the hair/mesh geometry is not skipped. That run ended sooner (1,800 presents) because the translated mesh pipelines add their own memory next to the pools on a 5,920 MiB card; on a larger card this is a straight win.AI use: OpenCode, DeepSeek V4.1 Flash 1017 - built the tree, ran the three runs and copied the numbers from the logs.
@HKEY-Funk-Machine on GitHub · 2026-11-25 04:17 UTC · original
AMD RX 9070: the world-load GPU hang here follows skipped dispatches. With nothing skipped there is no hang; with
XCL_PSO_WAIT_MSskipping, the program in flight changes with every skip.Follow-up to my 7150865142 above (
39f23deaf6a63310). Same card; the runs below are on #2057 at8ff4b02(direct DXIL, caches filled first; details in #2057 7152473795), plus one onmainfor comparison.Setup: AMD Radeon RX 9070 16 GB (driver 32.0.32015.7029, native wave64), Ryzen 9 7945HX3D, 32 GB RAM, Windows 11 Pro 26300, release. Local change in
xgameruntime/api.rsonly (start-up hang here;XCL_NO_PC_RUNTIME=1).XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_GPU_PROFILE=1 XCL_PRESS_A_AT=8,10,…,90 XCL_RUN_SECONDS=360, a new exe name per run. "In flight" is #2057's profiler lineRUNNING for … ms and not finished.XCL_PSO_WAIT_MSXCL_SKIP_CS0x887a0006at 128 s39f23deaf6a633100x887a0006at 120 s8e0da70f49ca611c, 517 ms39f2…,8e0d…0x887a0006at 132 s6da1f38b06d6c735, 1 607 ms0x887a0006at 154 s (2 700 frames, others ~1 800)69b2c70b2eff4802, 1 696 msExecuteIndirect"running" 250 s, with no TDR, so the queue is waiting, not executingXCL_PSO_WAIT_MSunset, nothing was skipped and the device stayed up for 360 s. It stalls instead: 91 of 486 compute pipelines still went through the driver at 8–42 s each, 43 of them with our cached driver blob supplied (the driver rebuilt them anyway; cf. A26).main(HLSL path) DRED put it in39f23deaf6a63310(7150865142).My reading, not proven: a skipped dispatch leaves the buffers it would have written with stale or junk values (an index, a count, a descriptor). A later program uses them as an address, and on this driver that hangs the GPU rather than raising a page fault (DRED reported no fault on
main). That would explain why the culprit moves with each skip, and why @St5sz2Jk's precompiled RADV run on the same chip family reaches the story intro.If that holds, skipping a compute dispatch needs its outputs made safe (kept or zeroed), or a list of programs that are never skipped. Otherwise AMD only gets the choice between a hang (skip) and a stall on driver rebuilds (no skip).
Not tested: zero-filling or keeping a skipped dispatch's outputs; which buffers these programs read; NVIDIA with and without skips on the same tree; a no-skip run long enough for every rebuild to finish.
AI use: Claude Code (Claude Opus 5.5) ran the runs, read the profiler and DRED output, and wrote this comment.
@grahamster2 on GitHub · 2026-11-25 04:33 UTC · original
Follow-up to my bisection above: an offline look at why the split-wave64 compute programs are so slow on NVIDIA. Everything here is from
xcl shaders --export-hlsl --split 1on main (cbc296a) and microbenchmarks on an RTX 3080. The retail title was not run for this.What the bisection actually refused.
split_wave64is true for every compute program on a 32-lane device. So my "refuse all split programs" switch refused all compute. Of the 835 refused programs found in the pack, 374 are wave64 programs in the split form. The other 461 are wave32 programs with no exchanges. That fits the "no single culprit, aggregate cost" result.Where the exchanges are. The 374 split programs have 25.4k static exchanges. 90 % are
xcl_x_ballot(av_cmpmask). 9 % are readlane/readfirstlane. 4.7k are inside loops, in 125 programs. The common shape isv_cmp->s_or/s_and/s_xor_b64->s_and_saveexec_b64->s_cbranch_execz: everyv_cmpexchanges, but only the execz test needs the whole wave. That is what #1597 targets. #944 / #2071 (batching) and #1193 (uniform sources) cut other parts. I'm not duplicating those. 257 of the 374 use 64-thread groups (one console wave per group).Microbenchmark (the
bench_split_wave64loop, 2^18 threads x 8192 iterations, 64-thread groups, one readfirstlane exchange and one LDS store + load per iteration, GPU timestamps, median of 7):XCL_WAVE64_SPIN=0)Two things multiply here, on top of the exchange count:
groupshared uint xcl_lds[8192], whatever it allocates on the console. ItsCOMPUTE_PGM_RSRC2.LDS_SIZEis already in the descriptor we parse. HBO allocates 512 bytes. The 84 LDS-using split programs allocate 512 B to 16.9 KB (34 of them 512 B). On Ampere, 32 KB per group allows 3 groups per SM, i.e. 6 warps for a 64-thread group, so nothing hides the meets' latency. This is not split-specific: native wave32 programs (and native wave64 on AMD) pay the same occupancy cost.Plan: size
xcl_ldsfrom LDS_SIZE: the next power of two holding the program's words plus the runtime's words at the top (exchange, safe barrier, thread hand-out). Compute programs only, HLSL path. 32 KB when LDS_SIZE is 0, and for the other stages. It's a small change inrecomp/emit.rs+CsInterface, with a test of the block size and a GPU test that the program's words and the exchange don't overlap. The direct DXIL backend (dxil/lanes.rs) has the same 8192 and would be a follow-up. I can open it unless someone already has this.AI-assisted (Claude Code, Claude Opus 5.5): analysis scripts, benchmarks and this write-up; numbers from runs on my machine.
@madaraXor on GitHub · 2026-11-25 04:25 UTC · original · edited 2026-11-25 04:48 UTC
RX 6700 XT (RDNA2, native wave64): refusing
39f23deaf6a63310alone moves the hang only a few seconds later. Withb78fa10b425b8e54refused as well, one run drew the world from 446 s to 713 s with no device removal, but a repeat hung 19 s into the world, the same way as with39f23deaf6a63310alone.Edited 04:33 UTC: added run E, a repeat of C, which hung. One clean run of C does not show that refusing
b78fa10b425b8e54removes the hang. Edited 04:48 UTC: added run F.These runs answer @HKEY-Funk-Machine's Not tested (refusing
39f23deaf6a63310together withb78fa10b425b8e54and/ordbf67dce61beac41) on an RDNA2 card.Setup:
main6567c5fplus open PRs #495, #615, #684, #751, #1182, #1248, #1291, #1405, #1798, #1809 and #1834. It also has local changes not meant for upstream:XCL_REFUSE_CS(the program takes the untranslated path and its dispatches are skipped);s_loadonce;XCL_PSO_IMAGE_SKIP=1: binds do not wait for big compute programs that write only images, whose dispatches are skipped until they are built.XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_HUGE_PSO_CONCURRENCY=3 XCL_NETWORK=0.95cc13288a27a96e(CS_ScreenProbes_ActivateRays) is refused in every run, because this driver never finishes building it.0x887a0006at 2 724 s, then the title's null write at+0x23cf68339f23deaf6a633100x887a0006at 386 s, then0x80000003at+0x2474606(the offset @qcdaark saw on the 3070 Ti)39f23deaf6a63310,b78fa10b425b8e54queue.Waitcalls go over 5 s (released on the CPU), with local video memory at 13.7 GB on this 12 GB card. At 713 s the title raises0x80000003(stack+0x71b9b10,+0x2215eca).39f23deaf6a63310,b78fa10b425b8e54,dbf67dce61beac410x80000003at+0x3bf4on two threads, then a read of address 1 at+0x4dac5ae39f23deaf6a63310,b78fa10b425b8e540x887a0006at 389 s, then0x80000003at+0x2474606, as in B56c0cd3b82a00c6e/958400d2caf07244instead (the title creates56c0cd3b82a00c6eas its world starts)0x887a0006at 513 s (the GPU stopped at about 484 s), then0x80000003at+0x2474606: those two are not the cause39f23deaf6a63310is not the only program in the hang. With it refused (B), the GPU still hangs within about 9 s of the world starting.b78fa10b425b8e54as well did not reliably help: C ran 267 s without a device removal, but E, the same setup, hung after 19 s with B's signature. So either another program is involved, or it depends on timing. This matches @JalenTheDev's note that the crash point is not deterministic on an RX 6800S.dbf67dce61beac41as well (D): there was no GPU hang in that one run, but the title asserted sooner.XCL_FRAME_DUMP) are almost black. That is expected with this setup: the deferred image-only programs include the ray-tracing resolves, and programs are refused.Not tested:
AI use: Claude Code (Claude Opus 5.5) ran the runs, read the logs and wrote this comment.
@humsterbumster on GitHub · 2026-11-25 05:11 UTC · original
A data point from a Linux/NVIDIA box (RTX 5090 32 GB, driver 620.73.04, Wine 11 / Proton 11) that may narrow this down, though it does not reproduce your signature.
With XCL
aa9ab8aand vkd3d-proton masterec20719(3.2.0 + the two-hunk relaxed-vtable change,-Db_ndebug=true), menus hold 30.0 fps, the story starts prestreaming, and after 6-9 minutes of translated compute pipeline builds (298-355 PSOs, the largest 429-481 KB of DXIL, 9-26 s each, 13.8-15.2 GB local VRAM) the run ends three different ways in three runs:0x80000003atgame+0x4da6315(417 s), a plain exit rc=1 (564 s), and0xc0000005reading0xffffffffffffffffatgame+0x4f28df1with a poison pattern inrax(377 s). No0x887a0006, no device removal, and never your+0x23cf683.Two observations that might matter for the NVIDIA-hang theory:
D3D12.X: Write64 Signal at ... would close a GPU cycle (waiters=...) — signalled on CPU. That warning does not appear on 3.1.So on 3.2.0 the "warm cache fails just as fast" behaviour is gone here — time-to-failure tracks the big compiles, not the cache — but the run still ends in the title before the world appears, with the GPU idle rather than hung. If your
0x887a0006leg had the same idle-queue picture, the hang may be the title spinning on a fence XCL never signals rather than the driver stalling.AI-assisted (omp / DeepSeek V4.1 Flash 1017), nv-linux class. No game data attached.
@HKEY-Funk-Machine on GitHub · 2026-11-25 05:30 UTC · original
AMD RX 9070 (RDNA4): with #2057's cache-flush barriers (
0d25b89) and @madaraXor's two refusals, no GPU hang in 2 of 2 runs. The prologue's first title card in 1 of them; both end in the title's own code.Follow-up to @madaraXor's 7152834098 and my 7152701739. Their RX 6700 XT got past the hang with
39f23deaf6a63310andb78fa10b425b8e54refused. Here is the same refusal on RDNA4, on #2057 with0d25b89(D3D12.X: the console's cache flushes … are UAV barriers), which on its own delayed the hang here (#2057 7153653511).Setup: AMD Radeon RX 9070 16 GB (driver 32.0.32015.7029, native wave64), Ryzen 9 7945HX3D, 32 GB RAM, Windows 11 Pro 26300, release. #2057 at
8ff4b02plus0d25b89cherry-picked (runtime part only). Local, not for upstream:xgameruntime/api.rs(start-up hang here;XCL_NO_PC_RUNTIME=1) and anXCL_REFUSE_CSlist (the program takes the untranslated path; its dispatches are skipped). Refused:39f23deaf6a63310,b78fa10b425b8e54, and95cc13288a27a96e(this driver does not finish building it).XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_PSO_WAIT_MS=50 XCL_GPU_PROFILE=1 XCL_PRESS_A_AT=8,10,…,90 XCL_RUN_SECONDS=480, caches filled first (XCL_PRECOMPILE_SLICE), the same exe name each run.8ff4b020d25b890d25b89+ refusalsThe two runs with both:
ListX #101)0x80000003at+0x3bf4(the assert @madaraXor's run D ended in)+0x2215c35(the "GPU Lo…" abort path of #505), after threeWait64BitValueXtime-outs on one cell (0x70417fe18, memory holding an older value, e.g.cb9forcbc)Wait64BitValueXtime-outs on one cell that #2057's description lists as still open.Not tested: more runs; graphics pipelines precompiled; the refusals without
0d25b89, or0d25b89onmain; why39f23deaf6a63310andb78fa10b425b8e54do not finish on AMD; #929 / #2118 on top.AI use: Claude Code (Claude Opus 5.5) ran the runs, read the logs, and wrote this comment.
@humsterbumster on GitHub · 2026-11-25 05:52 UTC · original
Reproduced your exact crash on a different machine, and it is cache-dependent in the same way you describe.
Box: RTX 5090 (32 GB), NVIDIA 620.73.04, Linux, Wine 11 / Proton 11, XCL
aa9ab8a, vkd3d-proton masterec20719(3.2.0 + the two-hunk relaxed-vtable change,-Db_ndebug=true),VKD3D_CONFIG=ignore_shared_fence,XCL_PSO_DISK_CACHE=0,XCL_SPLIT_MIDLIST_WAIT=0.Cold pipeline cache (every previous run): the story prestreams for 6-7 minutes, builds 300-400 translated compute PSOs, and ends in
0x80000003atgame+0x4da6315(417 s and 414 s in two runs) — never your address.Warm (a previous run's
vkd3d-proton.cache.writepromoted tovkd3d-proton.cache, 677,592 B): same settings, and the run ends at 246 s withwhich is your address and your write-to-null, on a 5090, with the story still streaming (2465 requests, 4m28s of game time, title reports
Game State: Game Running).So on 3.2.0 the crash is not compile-time-bound: with the cache warm it arrives sooner, exactly like your 487 s cold / 196 s warm pair. The title is in its intro mission with the world already constructed both times (its diagnostics list 40 peds, 60 cars, 9451 objects, 1407 lights), and what it lacks is presented output — the window shows a dark fade or black with 0-2 presents per 2 s, while on vkd3d-proton 3.1 the same phase drew the loading artwork at 4.5 fps.
Two things that might matter for whoever picks this up:
err:vulkan:vkCreateComputePipelines Exception 0xc0000005, which killed every 3.1 run here at 193-331 s) does not happen on 3.2.0 at all, so the title gets much further before it fails itself.XCL_PSO_WAIT_MS=50and 2,048 with 500 ms behave the same.AI-assisted (omp / DeepSeek V4.1 Flash 1017), nv-linux class. No game data attached.
@qcdaark on GitHub · 2026-11-25 06:21 UTC · original · edited 2026-11-25 06:23 UTC
RTX 3070 Ti on today's
main(6020a33): the world-load hang is still there, but this time the dump shows the GPU in a different program, the meshlet-cull compute record1ada490879c33c0e, notb78fa10b425b8e54(HBO). One dump, so a lead, not a verdict.Setup: RTX 3070 Ti 8 GB, driver 621.24, Ryzen 9 7900X, 32 GB, Windows 11 26300, release, retail 1.0.2.1. Env:
XCL_PSO_WAIT_MS=50 XCL_PSO_TRACE=1 XCL_ACTIVITY=1 XCL_NETWORK=0 XCL_PRESS_A_AT=25,35,45 XCL_RUN_SECONDS=420, warm driver cache, Nsight Aftermath on.main6020a330x887a0006at 132 s, then0x80000003at+0x2474606main+ #2118 (33424af)0x887a0006at 123 s, same signaturec160d86tree + #15970x887a0006at 154 s, same signatureXCL_WAVE64_SPIN=00x887a0006at 221 smain6020a33, refusing1ada490879c33c0eandb78fa10b425b8e540x80000003at+0x187fbat 227 s, presenting about 1 frame per 2 s before thatHung(engine reset). Every active warp it lists has the same shader hash. That hash matches the 506,764 B DXIL the run built for compute record1ada490879c33c0e, the meshlet-cull program #2123 mentions. Runs A, C and D gave no dump, so I can't say whether A hung in the same program.So on current
main, HBO is not the only program that can be in flight when this card hangs. That fits @madaraXor's and @HKEY-Funk-Machine's AMD runs, where refusing one program only moved the hang. Refusing both (run E): I added a local switch that refuses console containers by their[SHADER]hash: the program gets no translation, so its dispatches are skipped.+0x187fb, which could come from the skipped dispatches.Compared with @HKEY-Funk-Machine's RX 9070 runs just above:
39f23deaf6a63310.1ada490879c33c0einstead.Not tested: more runs of E; #2057's
0d25b89(console cache flushes as UAV barriers) on NVIDIA, which delayed the hang on the RX 9070.Attached (user name removed):
xcl.logandreport.jsonfor runs A, B and E, and the local switch asrefuse-switch-main.patch.AI use: Claude Code (Claude Opus 5.5) built the trees, ran the title, read the Aftermath dump and wrote this; I checked it before posting.
refuse-switch-main.patch
runA-main6020-report.json
runA-main6020-xcl.log
runB-main6020-pr2118-report.json
runB-main6020-pr2118-xcl.log
runE-main6020-refuse-1ada-hbo-report.json
runE-main6020-refuse-1ada-hbo-xcl.log
@madaraXor on GitHub · 2026-11-25 09:39 UTC · original · edited 2026-11-25 11:23 UTC
Edited: added runs H – N. The draw hangs only when the PS runs in 64-lane waves: with
if (WaveGetLaneCount() > 32u) discard;at its top (run N) there is no hang. Likely a bug in the wave32-in-64 form of its list loop.RX 6700 XT (RDNA2) on #2057 (
f7e08e6): here the world-start hang is a draw, the same one in every run whereXCL_GPU_PROFILEnamed the op in flight, whatever is refused — a spot-light volumetric pass (VS372b02c1fa52da76, PS8d6d8641c7a95b82, 72 vertices × 4 479 – 6 030 instances), still running after 1 – 2 s when the TDR hits.Follow-up to my 7152834098 above.
Setup: same machine (RX 6700 XT 12 GB, driver 32.0.21045, Ryzen 5 5600X, 16 GB RAM, Windows 10 22H2 19045), release. Tree: #2057 at
f7e08e6plus #495, #615, #684, #1182, #1248, #1291, #1798, #1834 (2a19e89), #2176 and #2207, a local refusal list that works likeXCL_REFUSE_CS, and a cap of 4 driver compiles. Env:XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_HUGE_PSO_CONCURRENCY=3 XCL_NETWORK=0, noXCL_PSO_WAIT_MS, noXCL_UMA_SHADOW;XCL_GPU_PROFILE=1from run B on.95cc13288a27a96e(ActivateRays) is refused in every run, because this driver does not finish building it.XCL_PSO_IMAGE_SKIP8d6d…39f23…,b78fa…39f23…,b78fa…rla, lanes of a quad with no pixel read 0 (local build)1u << 9(XCL_DEBUG_PS_SUB)XCL_DEBUG_PS_SUB)scc = (uint)(s3 == 0u);→scc = 1u;)0x887a0007dc71be4e027ec17d) 8InterlockedOrdisabledif (WaveGetLaneCount() > 32u) { discard; return xo; }at its top0xc0000005at+0x5188d39)Runs A – M end in the title's
0x80000003at+0x2474606, after0x887a0006(A – G, I – M) or0x887a0007(H).b78fa10b425b8e54) and39f23deaf6a63310refused or not, and with the image-only skip on or off. On this card, none of the compute programs named earlier in this thread was in flight.Interlocked*on 32-bit typed UAVs.0x887a0007) with 12.3 GB local + 6.6 GB non-local video memory on this 12 GB card. So on RDNA2 the mask words this loop reads from its 3D texture (up to 32 words × 32 bits per pass) are probably wrong: either the pass that writes them or how that texture is read. Its view type is picked from the descriptor's format class at run time; a float class reads the words throughasuint(Load()).WaveGetLaneCount() > 32, the GPU did not hang and the world ran (up to 5 400 draws and 20 800 dispatches per 2 s) until a crash in the title's own code. So on this RX 6700 XT the driver runs this PS in 64-lane waves, and the hang is in XCL's wave32-in-64 form of it. NVIDIA runs it in native 32-lane waves, which fits that no NVIDIA report names this draw.630849234cdc206c, through its own table with an older PC heap index), the writer and the reader (trace build). Disabling the writer's atomics, reading through the UAV, masking the summary word, and taking helper lanes' readlane results from a live lane each left the draw running for seconds. Reading the HLSL found no wrongly lowered scalar op in the bit loop (s_ff1→firstbitlow, shift count masked, xor sets SCC). Only a lower loop budget (F), skipping the list (H) or leaving 64-lane waves (N) lets it finish.Next: find which step of the wave32-in-64 form keeps that loop going (the two halves' scalar state and branches, reads of lanes that left the loop), and what crashes the title once the world runs.
Not tested: NVIDIA or RDNA4 with these PS changes; more than one run per row (except H, twice);
XCL_PSO_WAIT_MS. A tester on RDNA4 could check run N's substitution:XCL_DEBUG_PS_SUB=8d6d8641c7a95b82:bool xcl_live = false;=>bool xcl_live = false; if (WaveGetLaneCount() > 32u) { discard; return xo; }(1 replacement, logged).AI use: Claude Code (Claude Opus 5.5) built the trees, ran the title and wrote this. Claude Fable 5.2 read the shaders offline.
@Placebola on GitHub · 2026-11-25 14:20 UTC · original
Windows 10, RTX 4060 Ti 8 GB: the world-load device removal in 20 of 35 runs, 60–90 s after the one A press. None of the changes below moved the rate, two NVIDIA drivers included; the runs that survived went past the video memory and commit at which the others ended. Counts only.
Setup: RTX 4060 Ti 8 GB (32-lane waves), i7-7700 (4 cores), 32 GB RAM, Windows 10 Home 22H2 (19045.6466), Agility SDK 1.620.2, release, retail 1.0.2.1. Reference tree:
main9633138+ #887 (this PC has no active audio output) + #684.XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_DRED=1, one A at 30 s (XCL_PRESS_A_AT=30: the title goes from its save screen into the world load), 180–420 s, warm caches.The end, in every crashing run:
D3D12 device removed: 0x887a0007(twice0x887a0006), then the title's0x80000003at+0x2474606. DRED: page fault at VA0x0with no allocations, and no command list with partial progress. Nothing fromnvlddmkmfor the0x887a0007runs, and no D3D12 debug-layer message in the run with the layer on. It comes during the texture streaming burst: thousands ofCreatePlacedResourceXa second, local video memory going up by 2–3 GB in a few seconds. That fits @requiemsnkrp's AftermathDeviceRemovedNoGpuFaultabove.0d25b89from #2057 alone (cache flushes #131/#132/FlushPipelineX as UAV barriers)XCL_GPU_PROFILE=1(the ops of a queue one after another)vram::Pagessignals its fence once per wait instead of after each texture4df1e6e) + #684 + #887With these sample sizes none of the rows differs from the reference (#2270 and the local change: 2 of 6 against 10 of 14, two-sided Fisher p ≈ 0.16).
What it is not, on this machine:
XCL_VRAM_ARENAS=1the run ended at 98 s in0x8007000efrom committed textures instead (the title's breakpoint), so that run says nothing either way.The one difference I know of: @ofc0urse's runs on the same card (RTX 4060 Ti 8 GB) under Windows 11 went to 13.9 GB of local video memory with no device removal in 600 s (#1702). Here: Windows 10, same card, two drivers, 10 of 14. A test of the same thing with 256-tile textures made this whole PC freeze (input and display) for seconds at a time, so on Windows 10 the kernel side of tile mapping is a candidate. Not shown.
Not tested: Windows 11 on this PC, other cards under Windows 10,
TdrDelay, Nsight Aftermath, the DxgKrnl event channels (not present on this Windows 10 Home), more runs per row.AI use: Claude Code (Claude Opus 5.5) built the trees, ran the runs, read the logs and wrote this comment.
@jessenic on GitHub · 2026-11-25 14:20 UTC · original
@Placebola If that removal is
0x887a0005with DRED showing no list in progress and no page fault, it may be the one I traced on an RTX 5070 Ti. A debugger reads the kernel's reason as a DMA fault (D3DKMT_DEVICEEXECUTION_ERROR_DMAFAULT), not a hang or a page fault, and the call stack at the removal does not name the culprit. Details and a cdb script to read the same state on your machine: #505.With #1215 (a heap index from a T# is bounded to null-view guard slots) the removal I had 7–9 s after the title's first
#101was gone in 3 of 3 runs: #1215. If your removal is the same one, that PR is worth a run. It changes the shaders' translation, so precompile again after you apply it.AI use: Claude Code (Claude Opus 5.5) wrote this comment from the runs linked above.
@Royalflamejlh on GitHub · 2026-11-25 15:16 UTC · original
Please follow guidelines on referring to titles
@jessenic on GitHub · 2026-11-25 15:28 UTC · original
@Placebola A correction to my pointer above: with a warm shader cache, #1215 only delays the removal here (from
#101+ 7–9 s to + 18.7 s in one run, still a DMA fault). It does not prevent it. Details: #1215. My earlier "gone in 3 of 3" came from runs where the world barely drew after#101.AI use: Claude Code (Claude Opus 5.5).
@madaraXor on GitHub · 2026-11-25 18:44 UTC · original
The capture/replay tool that found #2305 is up for review as a stack: #2429 → #2435. It may save others a game run per experiment on a GPU hang:
XCL_CAPTURE_DRAW=listlogs the shader hashes of each translated pipeline.XCL_CAPTURE_DRAW=<container hash>[:N]writes the Nth draw or dispatch that uses that shader to<data>\captures\and leaves it out of the run, so the run goes on.XCL_CAPTURE_RUN=1runs it anyway.xcl replay <folder>runs that one call alone, in a child process with a timeout, and saves its targets as PNG.--sub,--loops,--splitand--profiletry a variant in seconds.--sub, as in the description of #2434.Not covered yet: ExecuteIndirect arguments, console geometry / mesh pipelines and dispatch chains. Tested on an RX 6700 XT only.
AI use: Claude Code (Claude Opus 5.5) wrote this note.