[GFX10] Device Removed (0x887A0006) after untranslatable compute shaders — GTA 6 Scarlett-Master #786
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory#786
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?
@Blazzycrafter on GitHub · 2026-11-24 10:43 UTC · original
Summary
victory.exe run F:\Downloads\GTA6\game_scarlett_master.exe --executestarts up, fails to translate abatch of compute pipelines (their draws are dropped), and then dies with Device Removed. The failed
translation is the only visible fault in the log and it lines up in time with the crash.
Environment / Host Specs
C:\pagefile.sys, 64 GB allocated, peak 2.64 GB, current 1.97 GBWIN-3N8EP9MNKHIpstranscript.txtF:\Downloads\VIctory, branchmaincargo build --release -p victory→Finished release profile in 0.14s(nothing recompiled)F:\Downloads\GTA6\game_scarlett_master.exeCommand sequence
Observed behaviour
1. Pre-existing DXIL readback message (likely benign)
First line after start, no
WARNprefix. Looks like a known/separate limitation and does not abort therun.
2. Main finding: 14 compute pipelines fail to translate → their draws are dropped
All emitted from the same site (
victory_gpu::pipeline), three distinct error kinds, exclusivelystage="compute":2c2cefe06f0483900xbca8476446edcac7d5210xfa58dbdad6ff83aadb1c0xa290a0a074e2d868e6180xba1005b939a0705f27ed0xe0082bf91065944bcff40x39742582aab1c7e668e50x3780a97b0de6386eca680x394402af016b812849520x326855858df1827ed9d00x13b383d7af3f375b862bd0x36d4f639f0fc07d7a39b0xe21852b84c47ea411af20x926cThree root causes, each hit repeatedly:
select on an untracked mask(4×) — a VCN/VALU select form whose mask is not tracked by theconverter. Directly related to the recently merged per-lane work (
r4tedx/shader/per-lane-phi).lane mask holding lanes elsewhere read as data(5×) — lane masks belonging to otherwaves/groups are made readable as data; the converter cannot represent that.
structured buffer of unknown stride(5×) — StructuredBuffer whose stride is not known attranslation time; offsets cluster tightly around
0x32xx–0x39xx.Graphics pipelines (mesh/pixel, vertex/pixel) appear only in the pipeline list, never in the error
lines → the defect is compute-side.
3. Slow submission right before the crash
5.7 s of host submission across 26 lists with ~90 loaded pipelines (~80 compute plus mesh/pixel and
vertex/pixel combos). This is a symptom, not proof, but it shows the host building one large command
list into which the missing/dropped compute pipelines are embedded.
4. The crash
no breadcrumbs— the breadcrumb/marker instrumentation could not name the offending command.That is a second defect in its own right (diagnostics regression) and hides where the removal came
from.
Expected behaviour
StructuredBuffers are either translated or cleanly marked "not translated" without invalidating
the subsequent submission.
no breadcrumbsshould not happen on a diagnostics build — the breadcrumb for list 26 must beattributable.
Hypotheses / leads for the root-cause hunt
draw should not invalidate the list; if the host proceeds anyway, invalid state results.
0x3268–0x3974(stride), 4 at0xa290–0xba10(selects). That points at two compact code regions inside the same DXIL module — likely one shared
shader/dispatch.
Shaders: the console's waterfall loop over a first-lane table offset(
ffe310e) andshader/per-lane-phi(ca48fbe) touch exactly this VALU/lane-mask area. Aregression comparison against
ca48fbe^/74a9d33is the fastest test available.ms=5710may be a timeout/overshoot that finally flushes the poisoned list.Reproduction steps
Attachments / evidence
Suggested next steps
2024-era AMD driver before attributing everything to the translator.
VICTORY_D3D12_DEBUG=1and get the breadcrumb name of the offending command(fix the
no breadcrumbspath)......[i dont know where exacly.... cecause i dever get more infos... as i tried that..... maybe its just a juser error]
@Blazzycrafter on GitHub · 2026-11-24 10:43 UTC · original
0 CONFIRMED
@Blazzycrafter on GitHub · 2026-11-24 10:52 UTC · original
done
@DaviDreamerz on GitHub · 2026-11-24 10:55 UTC · original
60 Hz monitor 💀
@Blazzycrafter on GitHub · 2026-11-24 10:56 UTC · original
nope.... its 240 hz why should record in 240 if the problem lets be explained in 60 or even 30?
@MichaelSmithAI on GitHub · 2026-11-24 11:05 UTC · original · edited 2026-11-24 11:09 UTC
We checked what happens after a compute shader is refused. On
ffe310e, direct dispatch already returns when there is no host compute pipeline. Ordinary indirect dispatch also drops the requested dispatch, but it prepares the argument buffer and can record its separate argument-clamp operation before checking the pipeline.This focused change and regression test move the check ahead of that preparation. In the recording test, the original code queued an argument refresh for a dispatch it had already lost. The change queued neither the refresh nor the clamp. A separate supported indirect-dispatch control still returned the expected GPU output on RTX 4090 under Wine/vkd3d.
This establishes unnecessary work on the drop path. The log’s shader refusals do not identify which GPU operation caused the later device removal, and we haven’t measured a frame-time or stability change in the game.
The two HRESULTs in the log come from different calls. The device-removal reason is
0x887A0006(DXGI_ERROR_DEVICE_HUNG). The breadcrumb query returned0x887A0004(DXGI_ERROR_UNSUPPORTED), which Microsoft documents when auto-breadcrumbs were not enabled. On this revision, a diagnostics build usesVICTORY_D3D12_DRED=1at startup to enable breadcrumbs before device creation.VICTORY_D3D12_DEBUG=1enables the separate debug layer. The existing log leaves the last GPU operation unknown. Microsoft’s GetAutoBreadcrumbsOutput reference@Blazzycrafter on GitHub · 2026-11-24 12:08 UTC · original
dred-run.log
Video
@MichaelSmithAI
Tested....
Test Update (21-List Submission & Breadcrumbs):
0x887A0006after submitting21lists.178/302 Some(15), stopping atcommand 178 of 302 (op 42)(barriers177..179) onmesh 3 [mesh a26422c01dcf5612, pixel 6a3a8d3fe52b4eab].16through20stay at0/...completed.u8=0xa31d00 [heap 334056: null],u9=0x133e940 [heap 630602: Placed(...)],u10=0x133e8a0 [heap 630597: Unordered(...)], androot3=0xb2cfa0000(host Some((0x505ba0000, 0x60000))).@Blazzycrafter on GitHub · 2026-11-24 12:11 UTC · original
For me its abit time to sleep then later i get to test you guys...
@LAKSHYA-cmd-tech on GitHub · 2026-11-24 13:16 UTC · original
Verified and merged PR #585 (untracked v_cndmask_b32 masks and descriptor-only GetDimensions) alongside PR #704 (unknown-stride raw descriptor pool) into our integration branch (PR https://github.com/LAKSHYA-cmd-tech/VIctory/pull/18). These directly address root causes A, B, and C that caused dropped compute passes and subsequent 26-list timeouts / device removal.
@alladeen321123 on GitHub · 2026-11-24 16:34 UTC · original
I checked the 13 compute shader hashes listed here offline. Upstream
ffe310eemitted DXIL for 0/13. Combining #1084, #704 (including #193), #180, the lane-mask branch at49d6d98, and #1074 (including #1073) brought that to 11/13. Adding #309 brought it to 13/13. The last two to pass the Windows SDK validator were3d7af3f375b862bdanda97b0de6386eca68.With the same executable and inputs, the default D3D12 adapter created all 13 compute pipelines. WARP created zero. SDK
dxc -dumpbinreportedWaveSize=32for every shader; WARP reported a maximum of four lanes here. This comparison stopped at pipeline creation. Whether these changes resolve the world-load crash on hardware remains open.Both upstream Clippy configurations passed on the combined tree. Two
sgpr_spilltests still failed, including a missing ballot lookup inmask_any. AI-assisted local validation.@Marvisak on GitHub · 2026-11-25 03:52 UTC · original
Automated triage for the maintainers. Thanks for the DRED run. It is now a complete report: RTX 4070, driver 32.0.16.1088, Windows build 29708, current
main, and the breadcrumbs. As noted above,0x887A0004was only the breadcrumb query failing because DRED was off. The real result isDEVICE_HUNG(0x887A0006), and withVICTORY_D3D12_DRED=1the list stops at a mesh dispatch (op 42). That is the NVIDIA world hang tracked in #71, the oldest complete report, which also covers the compute programs that do not translate. Please follow it there.The refused compute programs drop only their own dispatches, so they are not shown to cause the removal.
Generated by Claude Code