Repository navigation
Backlog
Labels
Description
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, +0x2215eca
- 9ce2070, warm cache: same crash at 196 s
- dd2ae9a: 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 s
So 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 on 9ce2070)
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
Console output
Game exited with code 0x887a0006 (2289696774)
CRASH: the D3D12 device was removed (0x887a0006: The GPU will not respond to more commands, most likely because of an invalid command passed by the calling application.) – the title is stopped
Imports: 1186 (game-dll:amd_fidelityfx_loader_xbox.dll: 4, game-dll:bink2scarlett.dll: 23, game-dll:libhttpclient.gdk.dll: 38, game-dll:msvcp140.dll: 157, game-dll:vcruntime140.dll: 82, game-dll:vcruntime140_1.dll: 4, game-dll:xboxbvhbuilder.dll: 7, hle-cross:kernelx.dll: 14, hle:acphal.dll: 19, hle:d3d12_xs.dll: 4, hle:gameinput.dll: 1, hle:kernelx.dll: 56, hle:minuserx.dll: 2, hle:xaudio2_9.dll: 1, hle:xcrdapi.dll: 1, hle:xg_xs.dll: 2, stub: 1, system: 770)
Unimplemented functions called (10):
2212× d3d12_xs.dll!ID3D12CommandAllocator::#9 (not on PC) (first call: game_scarlett_master.exe+0x188501)
2154× d3d12_xs.dll!ID3D12GraphicsCommandList10::#126 (not on PC) (first call: game_scarlett_master.exe+0x3263e)
2154× d3d12_xs.dll!ID3D12GraphicsCommandList10::#142 (not on PC) (first call: game_scarlett_master.exe+0x329e9)
2154× d3d12_xs.dll!ID3D12GraphicsCommandList10::#75 (console extension) (first call: game_scarlett_master.exe+0x32820)
290× d3d12_xs.dll!ID3D12CommandQueue::#31 (newer layout) (first call: 0x0)
4× d3d12_xs.dll!ID3D12GraphicsCommandList10::#131 (not on PC) (first call: game_scarlett_master.exe+0x2478bc5)
4× d3d12_xs.dll!ID3D12GraphicsCommandList10::#131 (not on PC) (first call: game_scarlett_master.exe+0x2478cba)
4× d3d12_xs.dll!ID3D12GraphicsCommandList10::#132 (not on PC) (first call: game_scarlett_master.exe+0x2478c99)
2× d3d12_xs.dll!ID3D12GraphicsCommandList10::#101 (not on PC) (first call: game_scarlett_master.exe+0x50a6657)
1× d3d12_xs.dll!ID3D12GraphicsCommandList10::#132 (not on PC) (first call: game_scarlett_master.exe+0x2478ba4)
Activity
[-]GTA VI 1.0.2.1: GPU hang / crash at +0x23cf683 when the story loads (RTX 3070 Ti)[/-][+]Retail title 1.0.2.1: GPU hang / crash at +0x23cf683 when the story loads (RTX 3070 Ti)[/+]am-cob commentedon Nov 24, 2026
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 commentedon Nov 24, 2026
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 commentedon Nov 24, 2026
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 commentedon Nov 24, 2026
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 commentedon Nov 24, 2026
@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).
(f4ce27c run 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 commentedon Nov 24, 2026
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)
{ "schema": "xcl.queue-comparison.v1", "scope": "Timestamps are XCL host uptime in seconds. Durations marked ms are milliseconds. Activity intervals bracket the last present reported by the two-second samples before the first fault. Recording/gate IDs are process-local. Guest outstanding and presents_whole_run come from exit reports. Stage- and queue-event counts stop at the first fault, even if other threads logged during crash handling.", "local_build": {"xcl_base":"00fa55c1eb2b","local_changes":"instrumented fork with pinned PR 708","pr708":"89184d1d3811005f8213153510fe545cf3c101ea","host":"Linux / Proton Experimental","gpu":"RTX 4070 Ti SUPER","driver":"595.112.07","backend":"vkd3d-proton 4522cc1a + dxil-spirv 34f0ff84","dxc":"1.8.2505.32"}, "gate_semantics": "Private fence: 1 = queue reached prefix, 2 = monitor opened after testing guest memory, 3 = queue retired gate. A preceding-queue-work warning means fence < 1 at that poll; the guest-word predicate was skipped. A closed recording may never be submitted. A present counter alone does not establish a visible scene.", "matched_words": "Three 64-bit bottom-of-pipe writes from two producer recordings (the second serves two words). Matched by order, offsets -16/-88/+128 relative to the split word and wanted value equal to final presents + 4; no absolute addresses used.", "prior": {"instrumentation":"Address-scoped submissions and scheduled stacks, separate executable from the four pipeline-traced runs.","last_present_interval_s":[96.031,98.032],"scoped_batches_completed":40,"gates_retired":38,"guest_outstanding":515,"events_s":[[110.524,"gate_retired",19],[110.54,"gate_retired",20],[110.926,"gate_retired",21],[110.947,"batch_completed",20],[110.947,"batch_completed",22],[125.023,"symbolized_sample","one caller in translated_compute_pso via vkd3d/Vulkan; another waiting for DXC inside translated_graphics_pso (pixel stage); compiler worker in dxcompiler.dll"],[127.116,"guest_null_write"]],"presents":1537,"A_button_s":42.786,"logged_compute_after_A":{"all":265,"with_xcl_driver_blob":22,"without_xcl_driver_blob":243},"presents_whole_run":1537}, "runs": { "control": {"A_button_s":42.731,"first_fault":{"kind":"guest_null_write","host_s":128.007,"seconds_after_A":85.276},"last_present_interval_s":[96.051,98.052],"guest_outstanding":499,"scoped_wait_recordings":{"submitted":18,"recorded":44},"gates":{"retired":18,"armed":18},"scoped_batches":{"completed":19,"submitted":19},"three_matched_words":"no producer or consumer submission","dxil":{"misses":163,"successful_compiles":160},"open_builds_at_first_fault":{"dxc":3,"native":0},"last_storage_sample":{"host_s":126.058,"requests_completed":88098,"controls_completed":1560,"requests_failed":1461,"requests_in_flight":0,"requests_unsubmitted":0},"logged_compute_after_A":{"all":209,"with_xcl_driver_blob":9,"without_xcl_driver_blob":200},"presents_whole_run":1586}, "warm_first": {"A_button_s":42.751,"first_fault":{"kind":"guest_stack_overflow","host_s":100.164,"seconds_after_A":57.413},"last_present_interval_s":[96.092,98.092],"guest_outstanding":501,"scoped_wait_recordings":{"submitted":38,"recorded":42},"gates":{"retired":37,"armed":38},"scoped_batches":{"completed":38,"submitted":40},"three_matched_words":"submitted: 3 words reached, 2 gates retired","dxil":{"misses":11,"successful_compiles":9},"open_builds_at_first_fault":{"dxc":2,"native":2},"last_storage_sample":{"host_s":100.104,"requests_completed":89595,"controls_completed":1540,"requests_failed":319,"requests_in_flight":0,"requests_unsubmitted":0},"control_keys":{"reused":127,"recompiled":0},"logged_compute_after_A":{"all":206,"with_xcl_driver_blob":9,"without_xcl_driver_blob":197},"presents_whole_run":1573}, "warm_repeat": {"A_button_s":42.768,"first_fault":{"kind":"guest_null_write","host_s":129.016,"seconds_after_A":86.248},"last_present_interval_s":[98.038,100.039],"guest_outstanding":644,"scoped_wait_recordings":{"submitted":18,"recorded":43},"gates":{"retired":18,"armed":18},"scoped_batches":{"completed":19,"submitted":19},"three_matched_words":"no producer or consumer submission","dxil":{"misses":65,"successful_compiles":64},"open_builds_at_first_fault":{"dxc":1,"native":2},"last_storage_sample":{"host_s":128.045,"requests_completed":87857,"controls_completed":1548,"requests_failed":2545,"requests_in_flight":0,"requests_unsubmitted":0},"control_keys":{"reused":156,"recompiled":0},"logged_compute_after_A":{"all":225,"with_xcl_driver_blob":9,"without_xcl_driver_blob":216},"presents_whole_run":1632}, "two_prebuilt": {"A_button_s":42.828,"first_fault":{"kind":"guest_null_write","host_s":130.102,"seconds_after_A":87.274},"last_present_interval_s":[100.039,102.04],"guest_outstanding":565,"scoped_wait_recordings":{"submitted":18,"recorded":43},"gates":{"retired":18,"armed":18},"scoped_batches":{"completed":19,"submitted":19},"three_matched_words":"no producer or consumer submission","dxil":{"misses":67,"successful_compiles":67},"open_builds_at_first_fault":{"dxc":0,"native":3},"last_storage_sample":{"host_s":130.046,"requests_completed":88940,"controls_completed":1529,"requests_failed":318,"requests_in_flight":0,"requests_unsubmitted":0},"control_keys":{"reused":156,"recompiled":0},"logged_compute_after_A":{"all":254,"with_xcl_driver_blob":11,"without_xcl_driver_blob":243},"presents_whole_run":1563} }, "native_microbench": [{"label":"control compute","dxil_bytes":685832,"static_samplers":0,"node_mask":1,"flags":0,"cold_ms":15126.169,"warm_ms":87.413,"cache_source":"earlier game run"},{"label":"warm repeat compute","dxil_bytes":903000,"static_samplers":2,"node_mask":1,"flags":0,"cold_ms":30099.352,"warm_ms":145.25,"cache_source":"offline build"}], "public_windows": {"708-1":{"A_button_s":27.163,"same_queue_prefix_warnings_s":[110.066,110.067],"fault":["guest_null_write",113.861],"dxil_compiles_whole_run":11,"presents_whole_run":1653,"logged_compute_after_A":{"all":20,"with_xcl_driver_blob":3,"without_xcl_driver_blob":17}},"708-2":{"A_button_s":15.457,"same_queue_prefix_warnings_s":[73.516,73.516],"fault":["device_hung",74.844],"dxil_compiles_whole_run":1,"presents_whole_run":1288,"logged_compute_after_A":{"all":0,"with_xcl_driver_blob":0,"without_xcl_driver_blob":0}}}, "sources": {"windows_report_and_four_attachments":"https://github.com/ivall/xcl/issues/675#issuecomment-7122213579","gate_code":"https://github.com/ivall/xcl/blob/89184d1d3811005f8213153510fe545cf3c101ea/crates/xcl/src/hle/d3d12x/wait_gate.rs#L57-L78"}, "protocol": "Control starts with 235 DXIL and 22 native entries. Both warm runs start with 394 and 22. The two-prebuilt run starts with 396 and 24. Same executable, backend, profile, 1280x720 private display, gamepad and loopback-only game network. No scheduled stacks in these four runs. Stage tracing begins at 80 s. Storage completion includes failed requests. Guest request counts come from the guest crash report.", "native_microbench_scope": "Standalone native compute PSO call in separate processes with identical DXIL, root signature, adapter and backend, without/with validated driver blob. One cold and one warm observation per pipeline; not scene timings.", "runtime_examples": {"control_compute_ms":{"dxc":6686,"native":15854},"warm_repeat_compute_ms":{"dxc":7234,"native_lower_bound_at_fault":21797,"demand_lower_bound_at_fault":29120},"two_prebuilt_same_warm_repeat_compute":{"dxil_hit_s":109.165,"native_begin_end_s":[109.171,109.329],"supplied_native_blob_bytes":4817328,"native_ms":158,"demand_ms":220,"other_unfinished_native_at_fault":{"compute":2,"graphics":1}}}, "public_context": "Windows RTX 3070 Ti, driver 32.0.16.2114 per reporter; exact PR head unspecified. The two warnings refer to one queue within each run. No per-present timestamps for the final frame; DXIL report totals do not timestamp individual compilations.", "activity_scope": "Stock activity counters are process-wide two-second deltas. A submit is one nonempty ExecuteCommandLists call accounted after submission handling; it can contain multiple lists/segments. Neither its count nor a draw/dispatch count measures GPU completion.", "fault_codes": {"guest_null_write":"0xc0000005 at +0x23cf683, write to zero","guest_stack_overflow":"0xc00000fd at +0x5647177","device_hung":"0x887a0006"} }qcdaark commentedon Nov 24, 2026
@am-cob The #708 head I used is db4599d (merged onto main 64b3f35); it hasn't changed since. These two runs were made last night with XCL_ACTIVITY=1, DRED unset, on main 64b3f35 + #708 db4599d + #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 commentedon Nov 24, 2026
@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)
{ "windows_after_last_present_bin": { "1": { "seconds": 28.011, "wrapped_submit_calls": 0, "first_fault": [ "guest_null_write", 134.152 ] }, "2": { "seconds": 10.004, "wrapped_submit_calls": 13, "first_fault": [ "device_hung", 96.888 ] } }, "linux_repeat": { "first_fault": [ "guest_null_write", "+0x23cf683", 127.979 ], "guest_at_fault": { "frame": 1110, "streaming_state": "Prestream", "streaming_requests": 581 }, "last_present_interval_s": [ 96.059, 98.06 ], "complete_later_windows": 14, "later_window_totals": { "presents": 0, "submits": 0, "draws": 121, "dispatches": 7170 }, "target_columns": [ "pipeline", "native_create_ms", "whole_bind_ms", "cached_blob_bytes", "end_s", "hresult" ], "targets": [ [ "compute_881664", 159, 220, 4672248, 105.806, "0x0" ], [ "compute_214404", 16, 33, 1019016, 117.234, "0x0" ], [ "depth_only_graphics", 10, 40, 699504, 121.068, "0x0" ] ], "last_storage_sample": { "t": 126.069, "submitted": 87829, "completed": 87829, "in_flight": 0, "unsubmitted": 0, "failed": 907 } } }AI use — OpenAI Codex (GPT-6) ran the local trials, compared their traces with your two Windows logs, and drafted this reply.
qcdaark commentedon Nov 24, 2026
@am-cob Thanks. One more run on main d5442d2 + #708 db4599d (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
CowboyBingus commentedon Nov 24, 2026
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.
qcdaark commentedon Nov 24, 2026
@am-cob I identified the shader the GPU hangs in, from an Nsight Aftermath dump (RTX 3070 Ti, driver 621.24, main e50836b + #708 db4599d; 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 commentedon Nov 24, 2026
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 | A | last present window | null write | after A |
|---|---|---|---|---|
| 1 | 17.1 s | 98.1 s | 125.9 s | 108.8 s |
| 2 | 45.5 s | 104.1 s | 132.8 s | 87.4 s |
| 3 | 25.1 s | ~59 s | 86.9 s | 61.8 s |
| 5 | 69.4 s | 152.1 s | 182.1 s | 112.6 s |
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
CowboyBingus commentedon Nov 24, 2026
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 Recompiler: bounded split-wave64 spin default and early-exit-safe s_barrier #798), its two halves meet atGroupMemoryBarrierWithGroupSync.+0x23cf683watchdog when the device isn't removed first).0x00070000at +0xD4), so Recompiler: the FSSM header's wave32 flag decides a program's wave size #573 does not change it. The Recompiler: the first structured form runs code a taken jump skips, and skips an else it jumps into #701 fixes (Recompiler: first structured form stops at a taken jump to a pending target and runs an else it jumps into (#701) #721, Recompiler: a jump from the if branch to its else branch runs the else branch (#701) #728, Recompiler: a second jump to a pending skip flag stops the code after it (#701) #729, Recompiler: preserve control flow across structured jumps #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.
54 remaining items
grahamster2 commentedon Nov 25, 2026
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.
qcdaark commentedon Nov 25, 2026
@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.
HKEY-Funk-Machine commentedon Nov 25, 2026
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 [OFFICIAL] Looking for PRs with shaders optimization #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.
joeypercia commentedon Nov 25, 2026
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+ DirectStorage: wait briefly for late destination pages #1464 DirectStorage: read a physical-page list again when its request runs #1405 D3D12.X: clamp ExecuteIndirect argument records and total work on the GPU #1795 xcl run: a title's minidump of itself is declined, not left to hang #742 D3D12.X: XCL_GPU_CULPRIT names the dispatches a stalled queue has not done #1323 D3D12.X: prepare for the unified memory copy path #1326 D3D12.X: the committed window gets a copy in video memory #1329 D3D12.X: compute pipelines are built ahead of their first bind #889 XG: fix CopyFromSubresource 7-argument ABI and guard destination span #684 D3D12.X: newer list layout #139 Reset goes through title_list::reset #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 commentedon Nov 25, 2026
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 commentedon Nov 25, 2026
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 commentedon Nov 25, 2026
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.
madaraXor commentedon Nov 25, 2026
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 kernelx: XMemMapPhysicalPagesScatter with no page array unmaps #495, D3D12.X: composite multi-plane PresentX overlays #615, XG: fix CopyFromSubresource 7-argument ABI and guard destination span #684, D3D12.X: title texture reads outside the coherent window use the safe copy #751, D3D12.X: render targets on one physical page share its video memory #1182, D3D12.X: tiny sampled textures take 4 KiB heap slots, not 64 KiB tiles #1248, D3D12.X: console UAV clears (#53 / #54) get the slots' PC descriptors #1291, DirectStorage: read a physical-page list again when its request runs #1405, D3D12.X: a draw does not wait for a graphics pipeline still being built #1798, Recompiler: route huge compute programs through the direct DXIL translator #1809 and dxil: collapse forward s_cbranch_execz regions and make read-only loads branchless #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.
grahamster2 commentedon Nov 25, 2026
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.
humsterbumster commentedon Nov 25, 2026
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 commentedon Nov 25, 2026
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 D3D12.X: integration branch that reaches the in-world HUD on NVIDIA (reference, not for merge) #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 commentedon Nov 25, 2026
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 commentedon Nov 25, 2026
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 Recompiler: split direct compute programs that use global atomic adds #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 commentedon Nov 25, 2026
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.
D3D12.X: binds go on without big compute programs that write only images