AMD RX 9070 XT (RDNA 4): Unhandled 0xc0000005 (read 0x8) crash in amdxc64.dll+0x861b9f during host pipeline creation #145
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/fxceless--victory-fork#145
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?
@belttroll-lab on GitHub · 2026-11-24 21:50 UTC · original
Summary
On an AMD Radeon RX 9070 XT (RDNA 4),
victory-forkconsistently crashes with an unhandled access violation (0xc0000005,read 0x8: nothing mapped there) insideamdxc64.dll+0x861b9fduring host pipeline compilation.The crash is 100% reproducible at the exact same driver offset across:
releasebuild (Series X profile)--console series-s)VICTORY_RELAY=2diagbuild (--features diagnostics) withVICTORY_D3D12_DEBUG=1Notably, no
D3D12 ERRORorD3D12 CORRUPTIONmessages are emitted by the D3D12 debug layer before the crash. Because pipeline compilation runs asynchronously on worker threads, the crash occurs aroundframe=47in release builds and aroundframe=152in diag builds, always hitting the exact same null-pointer dereference insideamdxc64.dll.(In a separate run,
no upload bufferwith0x887A0005/DXGI_ERROR_DEVICE_REMOVEDwas also observed.)Environment
fxceless/victory-fork(main), tested on bothreleaseanddiag(--features diagnostics)Crash & Stack Trace
@hashdev512 on GitHub · 2026-11-24 21:58 UTC · original
Same card (RX 9070 XT, Adrenalin 32.0.32029.2010, Ryzen 7 5700X3D, Windows 11 26300), and a cause for most of it: on
1684989, 68 of the 70 compute programs that crashamdxc64.dll+0x861b9fstop crashing when clean-up pass 4 is off (VICTORY_SHADER_OPT=11).How many programs crash. Offline, one process per program so that a crash takes down only its own test:
victory translate --pipelines --jobs 1on each of the pack's 2,734 compute containers, six at a time,1684989, diag build.a73284b60aa303edanda1266cc7391ae0d6from #120 are among the 70.Which pass. Three of the 70, each run with every setting:
VICTORY_SHADER_OPT072f5fe96efd27e150949ebfee9eb51ddd66eddf464f4bb1Then all 70 with
VICTORY_SHADER_OPT=11(passes 1, 2 and 8): 68 build, 2 still crash. The two,c1eee35dbc50a9efandf16876929fa64f9f, crash with every value including 0, so they have another cause.In the game.
VICTORY_SKIP_PIPELINESdoes not help by itself: it drops the draws, but the pipeline is still created (and sinced279e69it is created early), so the compiler still runs. With a local change that does not create a pipeline whose shader is on the skip list (not for a PR as it is),VICTORY_SHADER_OPT=11and those two hashes skipped: no compiler crash in three runs. The longest is at 10 minutes in the prologue with a warm library: 396 ms/frame median (2.5 fps), 4,813 draws/frame, 0 being made, 349 dropped (343 of them the ray-tracing builder being off), no device removal.Not tested: whether
VICTORY_SHADER_OPT=11makes any program crash that builds with every pass on (the full sweep ran only with every pass); vertex, pixel and mesh programs; commits after1684989; what in pass 4's output the compiler trips on.The 70 hashes:
No game data: hashes, counts, exit codes and timings from the tool's and VIctory's own output.
AI-assisted (Claude Fable 5.2): the sweep and the runs were launched and summarised by the model on my machine.
@ericomeehan on GitHub · 2026-11-24 22:02 UTC · original · edited 2026-11-24 22:03 UTC
Edit: I hadn't seen the comment above when I wrote this. Its
VICTORY_SHADER_OPT=11result (68 of 70 crashing programs stop crashing) is the better lead, and it means one of our own clean-up passes triggers the driver's crash, so take "rather than at the translation" below with that in mind. The links and the skip-list caveat still apply.This looks like the same crash as #120, and #3 before it: all three are an RX 9070 XT stopping at
amdxc64.dll+0x861b9fwithread 0x8.4e17478, to two compute shaders,a73284b60aa303edanda1266cc7391ae0d6. Built one at a time withvictory translate --pipelines, both crash the AMD compiler, while--validateaccepts them. Both are in the batch your release log shows queued right before the crash (user_data=4 samplers=7). A later comment there reports that RADV on Linux builds both without trouble, which points at the Windows driver's compiler rather than at the translation.578d459with 41 other compute programs, and got past it withVICTORY_SKIP_PIPELINES.One thing that may explain why skipping isn't an option for you yet: on
main,VICTORY_SKIP_PIPELINESis only read in the diagnostics build (#[cfg(all(windows, feature = "diagnostics"))]onskipped_shader/is_skippedincrates/victory-gpu/src/pipeline.rs). A release build ignores it. #91 and #106 both make it work in release builds too.Since you already have a diag build, could you try it with
VICTORY_SKIP_PIPELINES=a73284b60aa303ed,a1266cc7391ae0d6and say whether the crash moves, goes away, or names other hashes? One catch, from reading the code (not from a run): the skip list is checked in the draw and dispatch paths (
draw.rs), but not inmake::early. That function starts a pipeline at creation time if an earlier run requested it, and a request is recorded before the pipeline is built (make::ready→library::note_used). So if your earlier crashing runs saved that list, the next run could start these two pipelines early and crash anyway, skip list or not. A fresh data/cache directory for the test run avoids that. The commit hash and the Adrenalin version number would also help line this up with #120 (driver 26.11.2).Written with an AI assistant (Claude).
@icecreammule277-dot on GitHub · 2026-11-24 22:25 UTC · original
Same card and driver here (RX 9070 XT, Adrenalin 32.0.32029.2010). Confirming the REUSE finding above independently, and in game:
VICTORY_SHADER_OPT=59) builds all 183.842de0c32bc8dcc5(three samplers) still crashed in game.c1eee35dbc50a9efandf16876929fa64f9fskipped, the run gets past the crash and the opening cutscene draws lit.PR: #195
@belttroll-lab on GitHub · 2026-11-24 22:38 UTC · original
Markdown
Thanks both for the detailed analysis and suggestions! Here is a full update from my RX 9070 XT tests so far.
Environment Details
4e1747832.0.32029.2010(Windows 11 x64, RX 9070 XT, i5-14600K, 32 GB RAM)diag(--features diagnostics), tested with a freshcacheanddatadirectory1.
amdxc64.dll+0x861b9f(0xc0000005) Compiler Crash — Resolved withVICTORY_SHADER_OPT=11Testing the
diagbuild on a cleancache/datafolder with:@Arvi23 on GitHub · 2026-11-24 23:14 UTC · original
@hashdev512 thanks for the list of 70. With a patch that keeps resource handles block-local in pass 4 (on #120, every other pass left on), 66 of your 68 pass-4 programs build on an RX 9070 XT. The 2 left (
a567b9ef845fb680,878933b499cfa14d) crash on one ordinary integer merge. Details and the patch: #120AI use: Claude Code (Claude Opus 5.5) wrote this.
@HAL9000RELOADED on GitHub · 2026-11-25 21:17 UTC · original
RDNA3 data for the programs named here: on a Radeon RX 7900 XTX with Adrenalin 32.0.32015.7029 (the driver build of #422), Windows 10, fxceless
maind510ee4+ #402, every pass on,victory translate --validate --pipelinesvalidated and created all 78 of them, and the rest of the title's 25,636 pipelines, without a crash inamdxc64.dll. Details and the table for all five reports are in #422 (#422).@sceic on GitHub · 2026-11-26 02:07 UTC · original · edited 2026-11-26 02:13 UTC
Additional reproduction: RX 9070 XT crash in
amdxc64.dllat a different offset (+0x85ffbf)I would like to report another reproduction of a very similar AMD D3D12 driver crash, using a different VIctory fork.
I have been following this issue and the related discussion in #120. My crash has the same exception type and read address, but a different offset inside
amdxc64.dll.1. Test Environment
32.0.32015.1600126300avatarmanz/VIctory-7900XTXVIctory-7900XTX-main2. Build and Launch Configuration
The diagnostic build completed successfully with:
cargo build --locked --profile diag -p victory --features diagnosticsI tested the game using:
.\play.ps1 -Safe "H:\GTA6.Xbox.v1.0.2.1-CYBERLEEK\game_scarlett_master.exe"The last two launch attempts were both performed with
-Safe.The crash still occurred in Safe mode.
3. Observed Crash
The game can successfully boot and reach the 3D environment, but it eventually exits unexpectedly.
The runtime duration varies between attempts:
Game Running, with a runtime of 5 minutes 8 seconds and 7027 frames.Game Runningfor 19 seconds and 304 frames.Game Initat frame 0.The most recent
crashes.logcontains multiple crash records with the same exception location:VIctory: unhandled exception 0xc0000005 at amdxc64.dll+0x85ffbf (read 0x8: nothing mapped there)The representative call stack is:
#0 amdxc64.dll+0x85ffbf#1 amdxc64.dll+0x9562da#2 amdxc64.dll+0x957876#3 amdxc64.dll+0x955c34#4 amdxc64.dll+0x86317d...#29 D3D12Core.dll+0x67e4d#30 D3D12Core.dll+0x67b38...#38 victory.exe+0x3bbeca#39 victory.exe+0x43b07aThe same driver offset and call stack were observed repeatedly across different process IDs.
4. Comparison With This Issue
The primary crash reported in this issue is:
amdxc64.dll+0x861b9fMy crash is:
amdxc64.dll+0x85ffbfBoth report:
0xc00000050x8amdxc64.dllD3D12Core.dllThe offsets are different, so I cannot confirm that these are exactly the same underlying compiler failure.
However, the common exception pattern and the D3D12/AMD driver call path make this a potentially related RDNA 4 compatibility issue.
5. Questions for the Developers
I have read the subsequent findings about cleanup pass 4 (
REUSE) and resource-handle reuse in #120.I have not yet verified the pass-4 workaround or the resource-handle patch on my branch, so I cannot confirm whether either resolves my crash.
6. Available Diagnostic Data
I have collected the following files:
crashes.log— contains multiple repeated AMD driver access violations..crash.logfiles — contain game state and memory information.victory-20261126-094726-6212.crash.log
crashes.log
.dmp) from the failed runs.5d240a93-1b4a-4e91-b1ff-be3fd3438941.dmp
The current text logs identify the driver fault and call stack, but do not identify the exact shader or pipeline being compiled at the time of the crash.
Thank you for the investigation and for sharing the previous findings.