Skip to content

Retail title 1.0.2.1: GPU hang / crash at +0x23cf683 when the story loads (RTX 3070 Ti) #675

Backlog

Description

@qcdaark

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

report.json
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

  1. added
    bug
    on Nov 24, 2026
  2. changed the title [-]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)[/+] on Nov 24, 2026
  3. am-cob commented on Nov 24, 2026

    @am-cob

    We also see the guest null write at +0x23cf683 during the first story load on an RTX 4070 Ti SUPER (16 GB, NVIDIA 595.112.7). This is a local build based on cb868b2, with Proton Experimental, vkd3d-proton 4522cc1a, dxil-spirv 34f0ff84, 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 reason DXGI_ERROR_DEVICE_HUNG. The upload is where XCL observed the hang. The log leaves the responsible GPU command unidentified.

    Could you capture XCL_DRED=1 on 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=1 and XCL_THREAD_DUMP_AT=80,85,90,95 on 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 dd2ae9a

    OpenAI Codex (GPT-6) ran the local comparisons and analyzed the logs.

  4. ItsMrClockwork commented on Nov 24, 2026

    @ItsMrClockwork

    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

    Game exited with code 0x80000003 (2147483651)
    CRASH: unhandled exception 0x80000003 in game_scarlett_master.exe+0x193e00f rax=0x8007000e rbx=0x735ef9338 rcx=0x8007000e rdx=0x0 rsi=0x8007000e rdi=0x6fcfaff9c0 rbp=0x8 r8=0x1caf81685c0 r9=0x0 r10=0x1caf8140000 r11=0x246 r12=0x68428f45d0e43df9 r13=0x6fcfaff9c0 r14=0x6fcfaff810 r15=0x1 rsp=0x6fcfaff780; on the stack: game_scarlett_master.exe+0x63fa690, game_scarlett_master.exe+0x9c42960, game_scarlett_master.exe+0x164e4a, game_scarlett_master.exe+0x9c42960, game_scarlett_master.exe+0x34c001, game_scarlett_master.exe+0x9c42958
    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 (9):
    19446× d3d12_xs.dll!ID3D12CommandAllocator::#9 (not on PC) (first call: game_scarlett_master.exe+0x188501)
    19440× d3d12_xs.dll!ID3D12GraphicsCommandList10::#126 (not on PC) (first call: game_scarlett_master.exe+0x3263e)
    19440× d3d12_xs.dll!ID3D12GraphicsCommandList10::#142 (not on PC) (first call: game_scarlett_master.exe+0x329e9)
    19440× d3d12_xs.dll!ID3D12GraphicsCommandList10::#75 (console extension) (first call: game_scarlett_master.exe+0x32820)
    162× 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)
    1× d3d12_xs.dll!ID3D12GraphicsCommandList10::#132 (not on PC) (first call: game_scarlett_master.exe+0x2478ba4)
    Report: C:\Users\watch\AppData\Local\XCL\RockstarGamesInc.28872443D20A7\logs\report.json
    Log: C:\Users\watch\AppData\Local\XCL\RockstarGamesInc.28872443D20A7\logs\xcl.log

  5. qcdaark commented on Nov 24, 2026

    @qcdaark
    Author

    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):

    • Preload works: 360 → 424 → 442 shader sets an earlier run used are built ahead (1024+ pipelines built during the menu).
    • Story loading now stays at ~28–30 fps much longer: run 3 presents at 30 fps until 88 s (A pressed at 52 s); before D3D12.X: pipelines an earlier run used are built ahead of their first use #690 presents dropped to ~11 fps a few seconds after A.
    • It still ends ~90 s after pressing A:
      • run 2: a new crash, 0xc0000005 in game_scarlett_master.exe+0x4e4c918 (read at 0x1d) at 129.7 s, preceded from 104 s by 13 × "Wait64BitValueX timed out after 2000 ms ... memory holds Some(0)"
      • run 3: back to the guest null write at +0x23cf683 at 144.8 s, no Wait64BitValueX timeouts
    • Still 300+ compute PSO creations per run, 8–9 of them taking 1–17 s in the driver (nvgpucomp64.dll), even with "driver blobs kept on disk".
    • During run 2 the whole PC froze for a while (even Win+Ctrl+Shift+B did nothing), no TDR event (4101) in the System log.

    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

  6. am-cob commented on Nov 24, 2026

    @am-cob

    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 89184d1 on 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 +0x23cf683 in 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 #662

    OpenAI Codex (GPT-6) integrated the PR locally, ran the matched test and compared the logs.

  7. qcdaark commented on Nov 24, 2026

    @qcdaark
    Author

    @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).

    run build preloaded sets compute PSOs after A Wait64BitValueX timeouts end after A
    3 f4ce27c 442 16 (30.8 s) 0 null write +0x23cf683 92.9 s
    4 f4ce27c 470 2 (6.3 s) 0 null write +0x23cf683 89.2 s
    5 f4ce27c 473 5 (1.9 s) 0 device removed 0x887a0006 64.1 s
    708-1 main + #708 481 17 (24.4 s) 0 null write +0x23cf683 86.7 s
    708-2 main + #708 502 0 0 device removed 0x887a0006 59.4 s

    (f4ce27c run 2, without #708: 13 timeouts, then the read at +0x4e4c918.)

    • With D3D12.X: preserve recorded positions of 64-bit waits #708 the 13 timeouts are gone, and the read at +0x4e4c918 did not occur in either run.
    • It still ends at the same point. In 708-2 nothing was compiled after A, and the run ended with:
      "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.
    • So on this NVIDIA GPU some queue work before that gate never completes and the device hangs, even with no compile stalls. XCL_DRED=1 stalls the title at ~9 s here, so I can't get breadcrumbs. Happy to run any other switch.

    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

  8. am-cob commented on Nov 24, 2026

    @am-cob

    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=1 with 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

    • Use the first A-button receipt to align the runs. The Windows logs say gamepad buttons 0x4 pressed for the first time. Our test controller logs test 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.
    • Count the stock log warnings for preceding queue work and the memory condition separately. Compare queue identities within a single run. The gate IDs, command-list recordings and batch IDs in our data come from private instrumentation.
    • In 708-1 we count 20 completed translated compute PSOs after A. Three log reuse of an XCL driver blob and 17 have no reuse marker. In 708-2 all three counts are zero. Whole-run DXIL compilations in report.json measure 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"}
    }
  9. qcdaark commented on Nov 24, 2026

    @qcdaark
    Author

    @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.

  10. am-cob commented on Nov 24, 2026

    @am-cob

    @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

    Windows run Time covered after that window Wrapped ExecuteCommandLists calls First fault
    1 28.011 s 0 Guest null write at 134.152 s
    2 10.004 s 13 Device removal at 96.888 s

    In 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 at 89184d1, and local tracing and cache changes. It did not include #573. Each trial ran xcl.exe run <game-folder> offline with XCL_ACTIVITY=1 and 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.

  11. qcdaark commented on Nov 24, 2026

    @qcdaark
    Author

    @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

  12. CowboyBingus commented on Nov 24, 2026

    @CowboyBingus

    Outdated (old base d5442d2 + #708). The stop described here was the split-wave64 compute hang that #798 fixed. For current main, see my latest comment below.

    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 + #708 db4599d. Same end here: one queue reports "preceding queue work", then 0x887a0006.

    So far: the title makes no queue Wait calls 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.

  13. qcdaark commented on Nov 24, 2026

    @qcdaark
    Author

    @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):

    • compute, NumThreads=(64,1,1), WaveSize=32 → a console wave64 program in the split-wave64 form
    • 25 × Barrier(mode 9), 24 × WaveActiveBallot, 19 × WaveReadLaneAt, groupshared xcl_lds [8192 x i32]
    • 3 loops (back-edges); the big one spans listing lines 996–3980 with 6 barriers inside; its exit test combines both halves' masks through xcl_lds
    • Aftermath's PC mappings (dxil:1109 … dxil:4086), read as lines of the dxc -dumpbin listing: 22 of 23 fall inside that big loop and 1 inside the third loop (4066–4186). That line mapping is my assumption.

    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.

  14. qcdaark commented on Nov 24, 2026

    @qcdaark
    Author

    Summary of tonight's runs on main beaa245 (no #708), RTX 3070 Ti, driver 621.24. Logs attached (user name removed).

    1. 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.

    2. 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 |

    3. 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.

    4. 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

  15. CowboyBingus commented on Nov 24, 2026

    @CowboyBingus

    Outdated and partly wrong (old base d5442d2). The conclusion that the split-wave64 halves fall out of step is wrong: see my correction in the next comment. #798 has since fixed the hang. Kept for the record; for current main, see my latest comment below.

    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=1 stalls the title within 5 s here too, so I used local breadcrumbs instead: after each draw, dispatch and ExecuteIndirect, a WriteBufferImmediate (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):

    Bounded exchanges for that program alone (XCL_X_SPIN 1, every other program unchanged, 0 dispatches skipped): its dispatch completes. The title then faults reading 0xffffffffffffffff at +0x248c3f4 at 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 0xffffffffffffffff at +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.

  16. 52 remaining items

  17. imnicho commented on Nov 25, 2026

    @imnicho
    Contributor

    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 globallycoherent is off its windows. That is the change #1850 already proposes; my numbers for it are there: #1850 (comment) . 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, no XCL_PSO_WAIT_MS (binds wait for their pipelines), heap windows on. Two local trees on one driver-blob cache: A = main c4d37be + #684 + #266 + #1782 + #1316 / #1448; B = main b7aa9f3 + #684 + #266 + #1288 + #1316 / #1448 + #1323 (for XCL_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 with 0x80000003 at +0x2474606.

    3. XCL_GPU_CULPRIT=1 (tree B) names one dispatch as started and not done at the watchdog's report: record 50625695d2e6cbe7, groups 32x32x2. It is numthreads(4, 4, 4) in the split form, one console wave per group, XCL_X_SPIN 1; its HLSL (358 KB) has 51 xcl_x_ballot and 76 xcl_x_rla_uniform sites 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):

    change its dispatch how the run ends
    none not done at the report 0x887a0006
    spin bound 2^20 -> 2^8 done in under 5 s (not in the report) 0x887a0006 27 s after the set-up; not done then: 0f7ab64371906bc1 (8x8x1, groups 320x180x1) and 18567a5f0145bde9 (64x1x1, indirect), both split with XCL_X_SPIN 1; dispatch markers reached #11567 (#3260 before)
    the poll as in #1244 (InterlockedCompareExchange(.., 0u, 0u, c)), bound 2^20 not done after 5 s, gone from the report 4 s later 0x887a0006 16 s after the set-up
    XCL_X_SPIN 1 -> 0 (a group barrier at each meet) not done after 5 s, done before 16 s no device removal; the title's stall check (0xc0000005 at +0x2215c35) 29 s after its last frame, with 22 indirect dispatches of one list not done
    the switch form for that program (memory windows as root UAVs behind the switch; every other program still with heap windows) done in under 5 s (not in the report) 0x887a0006 49 s after the set-up; not done at the reports: 206ed63b96be21a1 (groups 64x64x1), 117 dispatches of d22f746890686a68 on one list, later 18567a5f0145bde9; markers reached #12809
    heap windows, NonUniformResourceIndex taken off the window index not done at the report 0x887a0006 14 s after the set-up
    heap windows, the range guard taken off not done at the report 0x887a0006 14 s after the set-up
    heap windows without globallycoherent done in under 5 s (not in the report) 0x887a0006 53 s after the set-up, other programs not done; markers reached #14557

    5. 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):

    • Wave formation with [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 a GroupMemoryBarrier.
    • The meet through arrival counters as xcl_x_meet does 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 not globallycoherent. 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

    AI use: Claude Code with Claude Fable 5.2 ran the title and the tests, read the logs and wrote this.

  18. qcdaark commented on Nov 25, 2026

    @qcdaark
    Author

    RTX 3070 Ti: the world-load hang is one split-wave64 compute program, CS_DepthProcessingHBO (cs b78fa10b425b8e54). 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. With XCL_PSO_TRACE=1 on main 6567c5f, the dump's DXIL size (119,880 B) matches driver compile … record b78fa10b425b8e54. --export-hlsl --record-hash names it deferred_tiled:CS_DepthProcessingHBO. It is an 8×8 HBAO depth pass with two [loop] marches, and every compare in it is a xcl_x_ballot exchange (177 meets).

    run switch (local) result
    A every split-wave64 CS/MS refused (like not-rex's XCL_WAVE64_REFUSE=1) no device removal; world runs at ~1 present / 2 s; title 0x80000003 at +0x4da6315 at 187 s
    B only b78fa10b425b8e54 refused no device removal; title 0x80000003 at +0x4da6315 at 235 s
    C same as B, repeat no device removal; same title exception at 343 s
    D XCL_X64_ALL_MASKS=1 hang, 0x887a0006 at 131 s
    E LOOP_GUARD budget 1024 in split programs only (same idea as #1284) hang at 155 s (no dump)
    F exchange wait bounded at 1024 polls instead of 2^20 hang at 120 s, but this time the dump has 4 warps in a different split program (37 KB DXIL)

    Without these switches the hang happened in every run I made today: 10 runs across c160d86, 689f2db and 6567c5f, 45–125 s after A.

    What it rules out, on this card:

    • It's not the mask liveness pass (D).
    • It's not the program's own loops running into LOOP_GUARD (E).
    • It's not just a slow desync timeout in the meets (F only moved the hang to another program).

    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:

    • main 6567c5f: 2 of 4 runs ended earlier (65–70 s) in a different way: Aftermath Error_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 is title texture: upload failed: texture copy: D3D12 device removed. This looks like an unmapped tile in a reserved texture. D3D12.X: eliminate multi-heap UpdateTileMappings and per-texture Signal stalls in vram::Pages #1747 (tile mappings trimmed, merged today) is my guess, but I haven't bisected it.
    • Another layer on the same card doesn't hang here: VIctory-based forks (fxceless/victory-fork) render the opening cutscene with no device loss. Its README says it fixed a split-wave64 hang by turning off a barrier form for 64-lane programs, which suggests the split form of this kind of program is where the trouble is.

    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. And CS_DepthProcessingHBO is 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

  19. grahamster2 commented on Nov 25, 2026

    @grahamster2
    Collaborator

    RTX 3080: refusing only b78fa10b425b8e54 does 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: main e9e94ce plus open PRs #751 #1182 #1248 #1345 #1526 #1798 #759 #758 #1806, the now-merged #1791 and #1809, #1123's commit 517e4df cherry-picked, and local diagnostic switches that are not in main or 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.

    run local switch result
    1 refuse only b78fa10b425b8e54 (XCL_REFUSE_CS, local; the log confirms it was refused at 5.5 s) still hangs. Presents stop at ~70 s (world start ~68 s); counter Wait64 timeouts (>= 0x5a6, completed=0x0) at 74-79 s; device removed 0x887a0006 at 91 s, then title 0x80000003 at +0x2474606.
    2 refuse every compute program in the split-wave64 form (XCL_REFUSE_SPLIT, local; like not-rex's #505 run): 942 programs refused, which on this card is every wave64 CS no GPU wait timeout, no device removal. Presents keep going (1-6 per 2 s) from 70 to 110 s; all six target dumps from 71-78 s read back. The run ends at 110 s on a title 0xc0000005 at +0x8f92a (read at 0xffffffffffffffff, three threads at once).

    #1123's chain line in run 1 (3 of them, 74-87 s), e.g.:

    GPU wait chain: q0 Wait64(0x70417fe58>=0x5a6) -> q3 end=signal (no tracked wait in front of it: executing, or behind a wait XCL does not track); same_end=4/4 (expired cells this tick), earlier_releases=0, write64_cycle_breaks=0
    

    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.

    • The G-buffer (2560x1440 formats 28 and 29): every draw ran (34 each, no stand-ins), but 0 of 230,400 sampled texels are non-zero in all six frames.
    • Depth (format 19) is 0 too.
    • The presented frame is the opening title card.
    • The G-buffer's ExecuteIndirect argument records go from 0 of 34 with InstanceCount != 0 to 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=1 with #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_SECONDS ended it). This is the same XCL_DRED=1 start-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_LIST switch, not in main): no single second program. I sorted the 938 other split-wave64 compute programs by hash.

    • Refusing half of the candidates each time hung in all 10 steps, ending at fffeb74b2ca33327, the last hash. Refusing HBO plus that one still hangs (chain end=signal, device removed 0x887a0006 at 73 s). So plain halving doesn't converge.
    • Allowing only one half (refusing the other 469 + HBO): both halves hang alone. So there are at least two culprits (one per half), or the hang isn't tied to particular programs, only to enough split-wave64 compute running at world start.
    • Allow-only inside the first half (by hash order): 234 hang, 117 hang, 58 (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.

  20. qcdaark commented on Nov 25, 2026

    @qcdaark
    Author

    @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_DepthProcessingHBO included):

    0x887a0006 at 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 b78fa10b425b8e54 alone 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.

  21. HKEY-Funk-Machine commented on Nov 25, 2026

    @HKEY-Funk-Machine

    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 has b78fa10b425b8e54 in 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. main bf9eebd plus #751 merged, and local changes, none for upstream:

    • xgameruntime/api.rs: a startup hang on this machine; I run with XCL_NO_PC_RUNTIME=1;
    • XCL_REFUSE_CS=<hex>: refuses those compute records in translated_compute_pso_once (the program then takes the untranslated path, and its dispatches are skipped);
    • with XCL_DRED=1: a SetMarker before each translated Dispatch, 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 a Dispatch. No page fault (VA 0, no allocation). That list has 13 SetMarkers in its breadcrumbs, and its current recording marked 13 records. The dispatch in progress follows the 2nd marker, which is 39f23deaf6a63310 (3 360 B console code).

    run refused dispatches (skipped) end
    5 runs – ~10 000–10 800 0x887a0006 at 114–122 s; DRED stuck in the dispatch of 39f23deaf6a63310 (2 runs with markers)
    2 runs b78fa10b425b8e54 10 030 (1 451), 10 192 (1 859) 0x887a0006 at 115 and 119 s: no change
    A 39f23deaf6a63310 80 891 (11 310) 0x887a0007 at 198 s, then the title's null write at +0x23cf683; DRED has no started list. Before it, a bridged queue.Wait timed out with recorded=0x70f, submitted=0x70d, completed=0x70d
    B 39f23deaf6a63310 47 952 (8 192) at ~138 s the title's 0x80000003 at +0x1881f, then 0x887a0006; DRED has two lists on two queues, each stuck in the Dispatch after its only marker: b78fa10b425b8e54 and dbf67dce61beac41
    • On native wave64 the first hang is not b78fa10b425b8e54: refusing it changes nothing, and DRED puts the GPU in 39f23deaf6a63310.
    • Past 39f23deaf6a63310, run B hangs with b78fa10b425b8e54 in progress, so it may also fail to finish on this card in the native form. It shares the hang with dbf67dce61beac41 on another queue, and DRED can't tell which of the two is stuck and which is waiting. One run.
    • Run A reaches the +0x23cf683 null 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).
    • This fits @grahamster2's result: refusing one program moves you to the next hang.

    Not tested: refusing 39f23deaf6a63310 together with b78fa10b425b8e54 and/or dbf67dce61beac41; why 39f23deaf6a63310 does 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.

  22. joeypercia commented on Nov 25, 2026

    @joeypercia

    RTX 4070 Ti: d22f746890686a68, the program the RTX 5080 table above lists with 117 dispatches not done, is LoadTriangles from XboxBvhBuilder.dll, and its float atomics cannot spin. On the HLSL path with heap windows and XCL_UMA_SHADOW=1 its list stops with no device removal: the title's Wait64BitValueX waits time out with the memory still 0.

    AI use: Claude Code (Claude Opus 5.5) ran this, read the dumped program and wrote this report.

  23. JalenTheDev commented on Nov 25, 2026

    @JalenTheDev

    RX 6800S (RDNA2, native wave64): +0x23cf683 still 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):

    • run A: 0xc0000005 write-at-0 at game_scarlett_master.exe+0x2215c35 at t = 44 s — during the boot splash, long before story load.
    • run B: +0x23cf683 at 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

  24. dnzarc commented on Nov 25, 2026

    @dnzarc

    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 goes

    Same machine as my comments above (RTX 4050 Laptop 5,920 MiB, 24 GB RAM, driver 32.0.16.2124, Windows 11 26300). Build: main cbc296a + #640 5d6fac8 (cherry-picked; conflicts in vram.rs resolved to main's TilePool fields) + #1428 e29892e (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.

    run page budget presents end
    A 4,096 MB 7,500 at 30.0 fps, 0 stalls 0x887a0007 at pools 8,512 MB / 12,195 MB local
    B 2,048 MB 2,700, 24 -> 12 fps 0x8007000E at pools 8,576 MB
    C 4,096 MB, + #541 1,800 at 30 fps 0x8007000E at +0x193e00f, pools 8,704 MB

    What 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 past cap instead 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 of refused, 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.

  25. HKEY-Funk-Machine commented on Nov 25, 2026

    @HKEY-Funk-Machine

    AMD RX 9070: the world-load GPU hang here follows skipped dispatches. With nothing skipped there is no hang; with XCL_PSO_WAIT_MS skipping, the program in flight changes with every skip.

    Follow-up to my 7150865142 above (39f23deaf6a63310). Same card; the runs below are on #2057 at 8ff4b02 (direct DXIL, caches filled first; details in #2057 7152473795), plus one on main for 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.rs only (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 line RUNNING for … ms and not finished.

    tree XCL_PSO_WAIT_MS XCL_SKIP_CS dispatches (skipped) end in flight
    #2057 50 – 23 594 (718) 0x887a0006 at 128 s (profile off)
    #2057 50 39f23deaf6a63310 10 276 (448) 0x887a0006 at 120 s 8e0da70f49ca611c, 517 ms
    #2057 50 39f2…, 8e0d… 32 325 (1 210) 0x887a0006 at 132 s 6da1f38b06d6c735, 1 607 ms
    #2057 + #929 50 – 11 838 (458) 0x887a0006 at 154 s (2 700 frames, others ~1 800) 69b2c70b2eff4802, 1 696 ms
    #2057 unset – 8 192 (0) no removal in 360 s; the title stops presenting at ~95 s an ExecuteIndirect "running" 250 s, with no TDR, so the queue is waiting, not executing
    • No skips, no hang. With XCL_PSO_WAIT_MS unset, 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).
    • With skips, the hang moves. Each program I skip is replaced by another one in flight at the hang, at about the same time. On main (HLSL path) DRED put it in 39f23deaf6a63310 (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.

  26. madaraXor commented on Nov 25, 2026

    @madaraXor

    RX 6700 XT (RDNA2, native wave64): refusing 39f23deaf6a63310 alone moves the hang only a few seconds later. With b78fa10b425b8e54 refused 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 with 39f23deaf6a63310 alone.

    Edited 04:33 UTC: added run E, a repeat of C, which hung. One clean run of C does not show that refusing b78fa10b425b8e54 removes the hang. Edited 04:48 UTC: added run F.

    These runs answer @HKEY-Funk-Machine's Not tested (refusing 39f23deaf6a63310 together with b78fa10b425b8e54 and/or dbf67dce61beac41) on an RDNA2 card.

    Setup:

    run refused (besides ActivateRays) world starts presenting end
    A (cold cache) – 2 681 s the GPU stops about 7 s later (fence waits pending from 2 688 s), 0x887a0006 at 2 724 s, then the title's null write at +0x23cf683
    B 39f23deaf6a63310 377 s 0x887a0006 at 386 s, then 0x80000003 at +0x2474606 (the offset @qcdaark saw on the 3070 Ti)
    C 39f23deaf6a63310, b78fa10b425b8e54 446 s no device removal. The world draws at 0.5–3 frames a second (up to about 11 000 dispatches per 2 s), with pauses while new graphics pipelines build. From about 700 s, 19 bridged queue.Wait calls 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 raises 0x80000003 (stack +0x71b9b10, +0x2215eca).
    D 39f23deaf6a63310, b78fa10b425b8e54, dbf67dce61beac41 about 446 s no device removal; after about 25 s of world frames, 0x80000003 at +0x3bf4 on two threads, then a read of address 1 at +0x4dac5ae
    E (repeat of C) 39f23deaf6a63310, b78fa10b425b8e54 370 s 0x887a0006 at 389 s, then 0x80000003 at +0x2474606, as in B
    F the two 3 MB screen-probe programs 56c0cd3b82a00c6e / 958400d2caf07244 instead (the title creates 56c0cd3b82a00c6e as its world starts) about 466 s 0x887a0006 at 513 s (the GPU stopped at about 484 s), then 0x80000003 at +0x2474606: those two are not the cause
    • On native wave64, 39f23deaf6a63310 is not the only program in the hang. With it refused (B), the GPU still hangs within about 9 s of the world starting.
    • Refusing b78fa10b425b8e54 as 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.
    • Refusing dbf67dce61beac41 as well (D): there was no GPU hang in that one run, but the title asserted sooner.
    • In run C, the end looks like video memory oversubscription rather than a hang: GPU waits of more than 5 s at 13.7 GB local, with no device removal.
    • The frames dumped while the world was presenting (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:

    • More repeats of each row.
    • The same refusals without direct DXIL and heap windows.
    • Without my local changes, or on another driver.
    • Which program the GPU is in when it hangs (no DRED on this tree).

    AI use: Claude Code (Claude Opus 5.5) ran the runs, read the logs and wrote this comment.

  27. grahamster2 commented on Nov 25, 2026

    @grahamster2
    Collaborator

    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 1 on main (cbc296a) and microbenchmarks on an RTX 3080. The retail title was not run for this.

    What the bisection actually refused. split_wave64 is 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 (a v_cmp mask). 9 % are readlane/readfirstlane. 4.7k are inside loops, in 125 programs. The common shape is v_cmp -> s_or/s_and/s_xor_b64 -> s_and_saveexec_b64 -> s_cbranch_execz: every v_cmp exchanges, 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_wave64 loop, 2^18 threads x 8192 iterations, 64-thread groups, one readfirstlane exchange and one LDS store + load per iteration, GPU timestamps, median of 7):

    form LDS block 32 KB (today) LDS block 1K words
    native wave32 10.0 ms 4.2 ms
    split, counter spin (default) 41.9 ms 14.0 ms
    split, group barrier (XCL_WAVE64_SPIN=0) 13.9 ms 6.2 ms

    Two things multiply here, on top of the exchange count:

    1. The LDS block is always 32 KB. Any program that touches LDS gets groupshared uint xcl_lds[8192], whatever it allocates on the console. Its COMPUTE_PGM_RSRC2.LDS_SIZE is 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.
    2. The spin meet costs about 2.3-3x the barrier meet in one-wave groups. Recompiler: bounded split-wave64 spin default and early-exit-safe s_barrier #798 made the counter spin the default for one-wave groups too. This is only a measurement for Recompiler: bounded split-wave64 spin default and early-exit-safe s_barrier #798 / Recompiler: split wave64 spin loops poll with a compare-exchange, not an add of 0 (#847) #1244. In a one-wave group the two halves are the whole group, but I'm not proposing to change the hang guard here.

    Plan: size xcl_lds from 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 in recomp/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.

  28. humsterbumster commented on Nov 25, 2026

    @humsterbumster

    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 aa9ab8a and vkd3d-proton master ec20719 (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: 0x80000003 at game+0x4da6315 (417 s), a plain exit rc=1 (564 s), and 0xc0000005 reading 0xffffffffffffffff at game+0x4f28df1 with a poison pattern in rax (377 s). No 0x887a0006, no device removal, and never your +0x23cf683.

    Two observations that might matter for the NVIDIA-hang theory:

    • The story phase presents 0-2 frames per 2 s and the window is black, while the GPU queues are idle (0 submits, 0 draws for long stretches). On vkd3d-proton 3.1 the same phase drew the loading artwork at 4.5 fps.
    • On 3.2.0 the log repeats 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 0x887a0006 leg 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.

  29. HKEY-Funk-Machine commented on Nov 25, 2026

    @HKEY-Funk-Machine

    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 39f23deaf6a63310 and b78fa10b425b8e54 refused. Here is the same refusal on RDNA4, on #2057 with 0d25b89 (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 8ff4b02 plus 0d25b89 cherry-picked (runtime part only). Local, not for upstream: xgameruntime/api.rs (start-up hang here; XCL_NO_PC_RUNTIME=1) and an XCL_REFUSE_CS list (the program takes the untranslated path; its dispatches are skipped). Refused: 39f23deaf6a63310, b78fa10b425b8e54, and 95cc13288a27a96e (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.

    runs GPU hang furthest
    8ff4b02 6 6 of 6, at 120–154 s world loading
    + 0d25b89 4 4 of 4, at 108–184 s the prologue's first title card in 1 of 4
    + 0d25b89 + refusals 2 0 of 2 the title card in 1 of 2

    The two runs with both:

    run world loading (ListX #101) dispatches (skipped) draws (skipped) end
    1 ~89 s 131 072 (1 358) 31 147 (22 282) no removal; at ~179 s the title's 0x80000003 at +0x3bf4 (the assert @madaraXor's run D ended in)
    2 ~140 s 88 678 (512) 31 858 (12 801) no removal; at ~251 s the title's null write at +0x2215c35 (the "GPU Lo…" abort path of #505), after three Wait64BitValueX time-outs on one cell (0x70417fe18, memory holding an older value, e.g. cb9 for cbc)

    Not tested: more runs; graphics pipelines precompiled; the refusals without 0d25b89, or 0d25b89 on main; why 39f23deaf6a63310 and b78fa10b425b8e54 do 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.

  30. humsterbumster commented on Nov 25, 2026

    @humsterbumster

    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 master ec20719 (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 0x80000003 at game+0x4da6315 (417 s and 414 s in two runs) — never your address.

    Warm (a previous run's vkd3d-proton.cache.write promoted to vkd3d-proton.cache, 677,592 B): same settings, and the run ends at 246 s with

    unhandled exception 0xc0000005 in game_scarlett_master.exe+0x23cf683 (write at address 0x0) rax=0x0 rbx=0x0 rcx=0x1435c348 rdx=0x1
    

    which 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:

    • The pinned-3.1 driver-side AV (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.
    • The crash address is reachable regardless of the number of skipped draws: 61,978 skipped with XCL_PSO_WAIT_MS=50 and 2,048 with 500 ms behave the same.

    AI-assisted (omp / DeepSeek V4.1 Flash 1017), nv-linux class. No game data attached.

  31. qcdaark commented on Nov 25, 2026

    @qcdaark
    Author

    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 record 1ada490879c33c0e, not b78fa10b425b8e54 (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.

    run tree end huge compiles
    A main 6020a33 0x887a0006 at 132 s, then 0x80000003 at +0x2474606 91
    B main + #2118 (33424af) 0x887a0006 at 123 s, same signature 88
    C c160d86 tree + #1597 0x887a0006 at 154 s, same signature –
    D same as C, XCL_WAVE64_SPIN=0 0x887a0006 at 221 s –
    E main 6020a33, refusing 1ada490879c33c0e and b78fa10b425b8e54 no device removal. The title raises 0x80000003 at +0x187fb at 227 s, presenting about 1 frame per 2 s before that 115

    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.

    • Result: with both refused, there was no device removal, and the run went about 100 s past where A and B hung.
    • Both were refused: run E's log has no driver compile for either record. In A, both were built.
    • Caveats: it's one run, and the title then stopped at +0x187fb, which could come from the skipped dispatches.

    Compared with @HKEY-Funk-Machine's RX 9070 runs just above:

    • The pattern matches: refusing HBO plus one other program got past the world-load hang there too (0 of 2).
    • The second program is not the same:
      • On AMD it is 39f23deaf6a63310.
      • On this card that program was built (51,260 B DXIL) and ran in run E with no hang.
      • Here the dump points at 1ada490879c33c0e instead.
    • So which program hangs seems to depend on the vendor, with HBO in the hang on both.

    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.log and report.json for runs A, B and E, and the local switch as refuse-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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    buggoal:world-load

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions