Skip to content

amd-dev f84a949: AMD driver crashes (amdxc64.dll+0xd2a411) compiling the title's native DXIL compute shader ca7beffb8d3a8f28 (RX 6750 XT) #2874

Done

Description

@RodrigoTorreao

Branch / commit: amd-dev f84a949 (built locally, release). Reproduced on that commit with no local changes to the in-game code: my only local diff is in dxc.rs's offline --precompile admission gate. That path is inactive in xcl run, and I kept the diff only so the translation cache stays warm.

Hardware: AMD Radeon RX 6750 XT 12 GB (RDNA2), driver 32.0.21045.29003, 16 GB RAM, Windows 11 (10.0.26200).

What happens: At the title screen / first menus (~30 fps), the title creates a compute pipeline from a shader that is already DXIL (not translated by XCL):

[SHADER] cs ca7beffb8d3a8f28: 4096 B, format dxil, parts [SFI0,ISG1,OSG1,PSV0,STAT,HASH,DXIL]

About 0.3-0.8 s later, an xcl-pso worker crashes inside the AMD shader compiler, and the process ends:

unhandled exception 0xc0000005 in amdxc64.dll+0xd2a411 (read at address 0x138)
process ends with status 0xc0000005

Reproducibility: 3 of 3 runs. Each time it was the same shader hash and the same offset:

  • run 1 (XCL preparation on): shader at 445.9 s, crash at 446.3 s;
  • run 2 (XCL preparation on): shader at 405.1 s, crash at 405.4 s;
  • run 3 (XCL_PREPARE=0): shader at 104.4 s, crash at 105.2 s.

The machine had RAM to spare at that point (several GB free), so this is not an out-of-memory crash.

Possibly related: During xcl run's shader preparation, 2-4 of the 16 compute-pipeline worker processes exit with 0xc0000005 ("worker N ended with exit code: 0xc0000005"). I have not checked yet whether they die at the same driver offset.

Side note (separate issue?): On a fully warm cache, the compute-pipeline preparation in 16 worker processes still takes ~277 s on every run ("compute pipelines done in 277 s (4 of 16 workers failed)"). The translation step takes ~15 s.

No game data, dumps or binaries attached; hashes and log lines only.
AI-assisted (Claude Code); tested by me on the hardware above.

Activity

  1. RodrigoTorreao commented on Nov 26, 2026

    @RodrigoTorreao
    Author

    Bisected: the crash starts with 287a931, "Recompiler: each loop region of a program gets its own iteration budget" (#2793, cherry-picked into amd-dev). Its parent c32c91a does not crash.

    Method: git bisect run between c32c91a (good) and f84a949 (bad). Each step builds the commit, then runs the title for up to 300 s with XCL_PREPARE=0, with no input. A step is bad if amdxc64.dll+0xd2a411 appears. A step is good if ca7beffb8d3a8f28 arrives and the run goes on for 60 s or more without it.

    Commit Result
    c32c91a good (also 3 earlier long runs of 7-14 min, where the same native CS arrived at 96-220 s)
    287a931 bad: native CS at 93 s, then the crash
    b6fd1f2, b44bb81, f84a949 bad

    The intermediate commits that do not build on their own were skipped. 287a931 sits directly on c32c91a, so the result does not depend on them.

    Correction to my first report: 287a931 changes only translated programs (per-region loop counters in recomp/mod.rs, dxil/compact.rs, kernel.rs, lower.rs), not the native-DXIL path. The native CS ca7beffb8d3a8f28 is probably just arriving at the same moment. The program that takes the AMD compiler down is more likely one of the translated compute shaders built right before it: in both earlier runs, 15,272 B and 21,972 B DXIL CS were created 0.3-1 s before the crash. I can try to narrow down which record it is if that helps.

    RX 6750 XT, driver 32.0.21045.29003, Windows 11 (10.0.26200). No game data attached.
    AI-assisted (Claude Code); tested by me on the hardware above.

  2. ivall commented on Nov 26, 2026

    @ivall
    Collaborator

    This should be addressed on amd-dev as of bf7c82ee. The branch includes #2865's change to keep per-region loop budgets in compute and kernel shaders, retries failed preparation batches, and records the pipeline involved when it detects a driver crash during compilation. Could you retry the XCL_PREPARE=0 reproduction on the RX 6750 XT and check whether amdxc64.dll+0xd2a411 still appears?

    Tests

    • The initial local validation covered selected modules, which passed. a_put_off_dispatch_runs_at_the_submit_when_its_build_outlasts_the_wait_budget also failed on baseline 71b8e6e0. giant_driver_compiles_have_their_own_lane also failed without D3D12.X: a big driver compile waits for free commit, not free RAM #2868.
    • On the code at bf7c82ee, cargo build --workspace passed. The filtered run below had 29 passed, 1 failed (giant_driver_compiles_have_their_own_lane), 0 ignored, and 0 skip notices. The full cargo test --workspace -- --test-threads=4 run printed eight failures and four GPU skip notices before the test process exited with 0xC0000005.
    • The same full command on baseline 71b8e6e0 printed all eight of those failures, one additional failure, and four GPU skip notices before exiting with 0xC0000409. Running cargo test -p xcl --lib giant_driver_compiles_have_their_own_lane -- --test-threads=1 separately on the baseline also failed (0 passed, 1 failed, 0 ignored, 0 skip notices).
    • Follow-up test setup was an RX 9070 (driver 32.0.32029.2010), Ryzen 7 9700X, Windows 11 build 26200, Rust 1.96.0, debug profile. The reported retail-title crash on the RX 6750 XT still needs confirmation.
    Filtered test command
    cargo test -p xcl --lib -- --test-threads=1 a_failed_workers_part_is_done_again gpu_an_endless_long_loop a_long_loop_spends per_region_loop_budgets_are_compute_only driver_crash::tests big_compile_tests finish_two_pass_rejects_null_mesh_out_pointer a_span_not_ended mapped_blob_has_a_readable_dword pools_of_freed_runs_go_back a_timed_out_readback_job wait_fence_until_ignores_stale_event_signal

    AI use: Claude prepared the changes. Codex ran the follow-up tests and drafted this comment. Exact model names are unknown.

  3. vibryxcx commented on Nov 26, 2026

    @vibryxcx

    Retest on bf7c82ee, as asked, on a second RDNA2 card with a different driver. The crash is not fixed on RDNA2. With #2865's scope the driver still crashes on compute pipelines. Reverting 287a931b removes it. The new crash record shows that every run hits new pipelines.

    Setup: AMD Radeon RX 6800 (RDNA2), driver 32.0.21045.5002, i5-10600KF, 32 GB RAM, Windows 11 Pro 26200, release builds, the same retail title (TitleID 7952987A). The offset here is amdxc64.dll+0xd2a0f1 (read at 0x138), instead of +0xd2a411. It is the same read at 0x138, so most likely the same crash in a different driver build. Every run used scripts/smoke.ps1 with XCL_PRESS_A_AT, without XCL_PREPARE=0.

    tree runs result
    71b8e6e0 3 crash at +0xd2a0f1, at 1191 s (no input), 158 s and 152 s of play; 3 of 8 preparation workers end with 0xc0000005
    71b8e6e0 + #2865 (2f4b408) 2 same crash at 210 s and 163 s; 3 of 8 workers end with 0xc0000005
    71b8e6e0 with 287a931b reverted (local) 1 no crash: 600 s of play, clean exit at XCL_RUN_SECONDS, 0 workers failed
    bf7c82ee 2 see below

    bf7c82ee (A every 10 s):

    • Run 1, 900 s: preparation filled the run. Workers 0, 2 and 6 ended with 0xc0000005, and worker 6 ended again on the retry. driver-crashes.txt got 14 distinct cs- entries. One of them, cs-6e148dbd563de205, is the compute PSO whose driver compile started 1 ms before the 71b8e6e0 crash (driver compile start #142: compute PSO, 283500 B DXIL, record 6e148dbd563de205).
    • Run 2, 1800 s, warm: the title skipped the noted pipelines (console shaders in the PSO without a translation: the driver crashed building the compute pipeline of record …) and played. Presents dropped to 0 from about 390 s. At 622 s it crashed again, on a new compute pipeline and at a new offset:
      the driver crashed building pipeline cs-5a29b696095f77ac: noted in …\driver-crashes.txt and not built again
      unhandled exception 0xc0000005 in amdxc64.dll+0xd2edbc (read at address 0x20)
      
      The list now has 15 cs- and 7 g- entries. Graphics preparation reported 355 made, 6 failed.

    Reading

    • On RDNA2 the crash follows 287a931b in compute programs. Recompiler: limit per-region loop budgets to compute and kernel shaders #2865's scope removes region budgets from graphics, mesh and pixel stages only, so it cannot help here. That matches @RodrigoTorreao's second note, which points at translated compute shaders.
    • The crash list stops a repeat of the same pipeline, but every run finds new ones, and each skipped compute pipeline is work the title does not get. On this card the title cannot be played on bf7c82ee.
    • A possible next step: make region budgets opt-in for compute too (or AMD-only off), until the shape that trips LLPC is known. Then compare against one of the recorded records. I have the DXIL that bf7c82ee saved for cs-5a29b696095f77ac, but I am not posting it because it is derived from the title's shaders. I can run any record hash or switch you name.

    Not tested: XCL_PREPARE=0; whether the 7 g- entries are the same driver bug or a different one; NVIDIA; more than one run of the revert.

    AI use: Claude Code (Claude Opus 5.5) built the trees, ran the title and read the logs, and wrote this comment. Every number comes from those runs on the hardware above.


    Update: region budgets off in every stage, on bf7c82ee (a local experiment, not a proposal: budget_regions returns empty unless XCL_REGION_BUDGETS=1; driver-crashes.txt was moved aside for the run, so nothing was skipped). One 2400 s run, A every 10 s:

    • No driver crash at all. Compute preparation: 0 of 8 workers failed (3 of 8 in every run with region budgets). Graphics: 364 made, 0 failed. No amdxc64.dll exception, and no driver-crashes.txt written.
    • But a device removal (0x887a0006) 730 s into the title, with 3 title queues and the gpu-awake queue stuck for about 5.7 s. Presents had already been 0 from about 540 s. This looks like the hang Recompiler: each loop region of a program gets its own iteration budget #2793 was written for: a compute spin-wait that runs out the single budget.
    • So on RDNA2 neither choice is clean. With region budgets in compute, the AMD compiler crashes. Without them, a compute program can hang the GPU. One run of each, so read it as a direction. Something that keeps the spin-wait bound in compute while emitting a shape the compiler accepts (fewer loop-carried values per header?) looks like what is needed.

    Soak of bf7c82ee on this card (three 600 s runs, A every 10 s, the noted pipelines skipped): no new amdxc64.dll exception, but the device was lost in 3 of 3 runs: 0x887a0006 at 226 s, and 0x887a0007 at 407 s and at 380 s. The last two were followed by the title's int3 at game_scarlett_master.exe+0x2474606. With the noted pipelines skipped, the title on RDNA2 no longer crashes in the compiler, but it does not stay alive for 10 minutes either.

  4. bobosneefdev commented on Nov 26, 2026

    @bobosneefdev

    Retest on bf7c82ee on the reporter's driver version: the crash is still there on an RX 6800 with 32.0.21045.29003, at the original offset. This agrees with @vibryxcx's result above on 32.0.21045.5002.

    Setup: AMD Radeon RX 6800 16 GB, driver 32.0.21045.29003, Ryzen 5 5600X3D, 64 GB, Windows 11 Pro 26200, release build of bf7c82ee with no local changes, the same retail title. xcl run with XCL_PREPARE=0 XCL_RT_GATE=miss XCL_PSO_MAX_KB=1100 XCL_NETWORK=0, A pressed every 10 s from 40 s (XCL_PRESS_A_AT).

    run tree result
    1 71b8e6e0 + #2859 0xc0000005 in amdxc64.dll+0xd2a411 (read at 0x138) at about 140 s
    2–6 same, 287a931b reverted (local) no driver crash in 5 runs (4 to 25 min each)
    7 bf7c82ee same crash at about 132 s; noted cs-62b584e061c05fc5
    8 bf7c82ee same crash at about 128 s; noted cs-2e0055c25f49848a
    9 bf7c82ee same crash at about 126 s; noted cs-6e148dbd563de205
    10 bf7c82ee past that point with the 3 skipped; no frame from about 240 s, then 0xc0000005 in amdxc64.dll+0xd2f0dc (read at 0x20) at about 1750 s; noted cs-9377c66349bb9a5d
    • All three noted records are console compute shaders that XCL translates (8540, 14016 and 16916 B of console code), not shaders that arrive as DXIL. In run 7 the native DXIL compute shader 0cb44d684676694e arrived about 2 s before the crash, so on this card the native shader looks like a coincidence of timing rather than the cause.
    • cs-6e148dbd563de205 is also in @vibryxcx's list, so the two driver versions trip on at least one common record.
    • Each run crashed on a different pipeline at the same point in world loading, so the crash list moves the crash rather than removing it, as reported above.
    • Run 10's crash is at another offset with a read at 0x20, like the second crash @vibryxcx reports (+0xd2edbc, read at 0x20). It came after 30 minutes without a frame, while the driver built large compute pipelines one at a time.

    Edited once: run 10's result added.

    Not tested: bf7c82ee with 287a931b reverted; shader preparation on (XCL_PREPARE unset); runs without XCL_RT_GATE=miss or without XCL_PSO_MAX_KB. Runs 2–6 did not reach the world for another reason (compute pipelines of about 1 MB of DXIL and up take 25–43 s each in the driver, and the largest did not return), so "no driver crash" there covers only this crash.

    AI use: Claude Code (Claude Fable 5.2) built the trees, ran the title, read the logs and wrote this comment. Every number comes from those runs on the hardware above.

  5. oni-swr commented on Nov 27, 2026

    @oni-swr
    Contributor

    XCL_PREPARE=0 retry on bf7c82ee1b2685bb40417e09c4128177aa68d719 (unmodified amd-dev), RX 7800 XT (RDNA3), Windows 11 26200

    Setup: AMD Radeon RX 7800 XT 16 GB, driver 32.0.31035.1003, 64 GB RAM, release build with no local changes, the same retail title, scripts/smoke.ps1, XCL_NETWORK=0. The shader cache (flat DXIL, driver blobs and the used-lists) was a copy of an earlier partial warm-up on this machine, so it was not cold.

    run switches result
    A XCL_PREPARE=0, 600 s exit 0x0, 17,470 frames shown, 0 device removals, 0 crashes, peak commit 12.7 GB.
    B preparation on (used-only default), then 180 s 4 of 12 compute-preparation workers ended with 0xc0000005. They were redone after the others and preparation finished in 49 s. Then 5,184 frames, exit 0x0, 0 crashes, peak commit 12.3 GB.
    • In run A I saw no driver crash during compilation, so amdxc64.dll+0xd2a411 did not show up there. 1,024 RT-gated compute PSOs were logged as "held back without compiling" (the XCL_RT_GATE=hold default), and the log shows no giant compute compile in flight.
    • Run B is the other half. The 4 workers ended with 0xc0000005 on a different card and driver than the reporters', which looks like the same preparation-worker crash reported above on the RX 6800. The retry covered it. I did not capture the faulting module or offset, so I cannot say whether it is +0xd2a411. driver-crashes.txt in the cache had 7 entries afterwards.
    • After about 22 s the guest stops reading data and runs at a steady 30 presents/s with identical draw counts every 2 s, until the timer ends. I did not watch the screen, so I cannot tell a menu from a frozen screen, and I did not press any buttons.

    Not tested: pressing A or any input, a cold driver cache, a run past 600 s, other drivers, the RX 6750 XT.

    AI use: the runs were done and this comment written by Claude Code (Claude Sonnet 5.5), for the repository owner of this machine.

  6. oni-swr commented on Nov 27, 2026

    @oni-swr
    Contributor

    RDNA3 data point: same crash family, and a candidate shape. RX 7800 XT 16 GB, driver 32.0.31035.1003, Windows 11 build 26200, amd-dev bf7c82ee (no local changes), XCL_PREPARE=0.

    • The crash here is amdxc64.dll+0xdce035 (read at 0x18) on the same record as the RX 6800's +0xd2edbc (read at 0x20) in this thread: a compute PSO of 509,896 B DXIL.
    • It happened in 5 of 5 runs with XCL_PSO_WAIT_MS=200 (204-233 s) and in 0 of 5 without it (240-480 s). The limit only matters because its stand-ins let the title reach the pipeline; without it the title waits in pipeline builds from about 90 s on.
    • The DXIL XCL saved for it has 76 loops in 21 outer regions, up to three deep, about 4,700 PHIs. That is the shape 287a931's per-region budgets give.
    • With Recompiler: keep compute shaders on single loop budget to avoid AMD LLPC crash #2947's head (bfb40311, compute on the single budget) on the same cache: 0 of 2 compiler crashes, and in one of the two runs that pipeline was reached and compiled (details in the comment on Recompiler: keep compute shaders on single loop budget to avoid AMD LLPC crash #2947).

    AI use: Claude Code (Claude Sonnet 5.5) ran the title and read the logs; numbers are from those runs.

  7. RodrigoTorreao commented on Nov 27, 2026

    @RodrigoTorreao
    Author

    Retest of main 623d02e (includes #2947) on the original reporter machine: RX 6750 XT, driver 32.0.21045.29003, 16 GB RAM, Windows 11 26200, release build with no local changes.

    One run: XCL_PREPARE=0, an empty XCL_DXIL_CACHE, no input, XCL_RUN_SECONDS=600. There was no amdxc64.dll crash, and the run exited cleanly at 610 s. It presented 13,500 frames (26.6 fps at the end) and issued 172k draws. Before #2947, the same setup crashed at 93-446 s (3 of 3 runs).

    Caveat: the native CS ca7beffb8d3a8f28 that arrived just before every earlier crash did not show up in this run, so the title may not have reached the same point. One run only.

    AI-assisted (Claude Code with Claude Opus 5.5); run by me on the hardware above.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions