amd-dev f84a949: AMD driver crashes (amdxc64.dll+0xd2a411) compiling the title's native DXIL compute shader ca7beffb8d3a8f28 (RX 6750 XT) #2874
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl#2874
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@RodrigoTorreao on GitHub · 2026-11-26 20:21 UTC · original
Branch / commit:
amd-devf84a949(built locally, release). Reproduced on that commit with no local changes to the in-game code: my only local diff is indxc.rs's offline--precompileadmission gate. That path is inactive inxcl 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):
About 0.3-0.8 s later, an
xcl-psoworker crashes inside the AMD shader compiler, and the process ends:Reproducibility: 3 of 3 runs. Each time it was the same shader hash and the same offset:
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 with0xc0000005("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.
@RodrigoTorreao on GitHub · 2026-11-26 20:36 UTC · original
Bisected: the crash starts with
287a931b, "Recompiler: each loop region of a program gets its own iteration budget" (#2793, cherry-picked intoamd-dev). Its parentc32c91adoes not crash.Method:
git bisect runbetweenc32c91a(good) andf84a949(bad). Each step builds the commit, then runs the title for up to 300 s withXCL_PREPARE=0, with no input. A step is bad ifamdxc64.dll+0xd2a411appears. A step is good ifca7beffb8d3a8f28arrives and the run goes on for 60 s or more without it.c32c91a287a931bb6fd1f27,b44bb819,f84a949The intermediate commits that do not build on their own were skipped.
287a931bsits directly onc32c91a, so the result does not depend on them.Correction to my first report:
287a931bchanges only translated programs (per-region loop counters inrecomp/mod.rs,dxil/compact.rs,kernel.rs,lower.rs), not the native-DXIL path. The native CSca7beffb8d3a8f28is 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.
@ivall on GitHub · 2026-11-26 22:29 UTC · original
This should be addressed on
amd-devas ofbf7c82ee. 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 theXCL_PREPARE=0reproduction on the RX 6750 XT and check whetheramdxc64.dll+0xd2a411still appears?Tests
a_put_off_dispatch_runs_at_the_submit_when_its_build_outlasts_the_wait_budgetalso failed on baseline71b8e6e0.giant_driver_compiles_have_their_own_lanealso failed without #2868.bf7c82ee,cargo build --workspacepassed. The filtered run below had 29 passed, 1 failed (giant_driver_compiles_have_their_own_lane), 0 ignored, and 0 skip notices. The fullcargo test --workspace -- --test-threads=4run printed eight failures and four GPU skip notices before the test process exited with0xC0000005.71b8e6e0printed all eight of those failures, one additional failure, and four GPU skip notices before exiting with0xC0000409. Runningcargo test -p xcl --lib giant_driver_compiles_have_their_own_lane -- --test-threads=1separately on the baseline also failed (0 passed, 1 failed, 0 ignored, 0 skip notices).Filtered test command
AI use: Claude prepared the changes. Codex ran the follow-up tests and drafted this comment. Exact model names are unknown.
@vibryxcx on GitHub · 2026-11-26 23:09 UTC · original · edited 2026-11-27 01:32 UTC
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. Reverting287a931bremoves 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 at0x138), instead of+0xd2a411. It is the same read at0x138, so most likely the same crash in a different driver build. Every run usedscripts/smoke.ps1withXCL_PRESS_A_AT, withoutXCL_PREPARE=0.71b8e6e0+0xd2a0f1, at 1191 s (no input), 158 s and 152 s of play; 3 of 8 preparation workers end with0xc000000571b8e6e0+ #2865 (2f4b408)0xc000000571b8e6e0with287a931breverted (local)XCL_RUN_SECONDS, 0 workers failedbf7c82eebf7c82ee(A every 10 s):0xc0000005, and worker 6 ended again on the retry.driver-crashes.txtgot 14 distinctcs-entries. One of them,cs-6e148dbd563de205, is the compute PSO whose driver compile started 1 ms before the71b8e6e0crash (driver compile start #142: compute PSO, 283500 B DXIL, record 6e148dbd563de205).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 list now has 15cs-and 7g-entries. Graphics preparation reported355 made, 6 failed.Reading
287a931bin compute programs. #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.bf7c82ee.bf7c82eesaved forcs-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 7g-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_regionsreturns empty unlessXCL_REGION_BUDGETS=1;driver-crashes.txtwas moved aside for the run, so nothing was skipped). One 2400 s run, A every 10 s:0 of 8 workers failed(3 of 8 in every run with region budgets). Graphics:364 made, 0 failed. Noamdxc64.dllexception, and nodriver-crashes.txtwritten.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 #2793 was written for: a compute spin-wait that runs out the single budget.Soak of
bf7c82eeon this card (three 600 s runs, A every 10 s, the noted pipelines skipped): no newamdxc64.dllexception, but the device was lost in 3 of 3 runs:0x887a0006at 226 s, and0x887a0007at 407 s and at 380 s. The last two were followed by the title'sint3atgame_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.@bobosneefdev on GitHub · 2026-11-26 23:18 UTC · original · edited 2026-11-26 23:24 UTC
Retest on
bf7c82eeon 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
bf7c82eewith no local changes, the same retail title.xcl runwithXCL_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).71b8e6e0+ #28590xc0000005inamdxc64.dll+0xd2a411(read at0x138) at about 140 s287a931breverted (local)bf7c82eecs-62b584e061c05fc5bf7c82eecs-2e0055c25f49848abf7c82eecs-6e148dbd563de205bf7c82ee0xc0000005inamdxc64.dll+0xd2f0dc(read at0x20) at about 1750 s; notedcs-9377c66349bb9a5d0cb44d684676694earrived about 2 s before the crash, so on this card the native shader looks like a coincidence of timing rather than the cause.cs-6e148dbd563de205is also in @vibryxcx's list, so the two driver versions trip on at least one common record.0x20, like the second crash @vibryxcx reports (+0xd2edbc, read at0x20). 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:
bf7c82eewith287a931breverted; shader preparation on (XCL_PREPAREunset); runs withoutXCL_RT_GATE=missor withoutXCL_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.
@oni-swr on GitHub · 2026-11-27 01:35 UTC · original
XCL_PREPARE=0retry onbf7c82ee1b2685bb40417e09c4128177aa68d719(unmodifiedamd-dev), RX 7800 XT (RDNA3), Windows 11 26200Setup: 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.XCL_PREPARE=0, 600 s0xc0000005. 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.amdxc64.dll+0xd2a411did not show up there. 1,024 RT-gated compute PSOs were logged as "held back without compiling" (theXCL_RT_GATE=holddefault), and the log shows no giant compute compile in flight.0xc0000005on 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.txtin the cache had 7 entries afterwards.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.
github-bot referenced this issue2026-11-27 03:34:41 +00:00
@oni-swr on GitHub · 2026-11-27 07:42 UTC · original
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-devbf7c82ee(no local changes),XCL_PREPARE=0.amdxc64.dll+0xdce035(read at0x18) on the same record as the RX 6800's+0xd2edbc(read at0x20) in this thread: a compute PSO of 509,896 B DXIL.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.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 #2947).AI use: Claude Code (Claude Sonnet 5.5) ran the title and read the logs; numbers are from those runs.
@RodrigoTorreao on GitHub · 2026-11-27 10:03 UTC · original
Retest of
main623d02e(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 emptyXCL_DXIL_CACHE, no input,XCL_RUN_SECONDS=600. There was noamdxc64.dllcrash, 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
ca7beffb8d3a8f28that 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.