[Crash / TDR] Host GPU device removed (0x887A0006) ~55s after Mission 1 title card on RX 9070 XT #304
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#304
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 02:11 UTC · original
System Specifications
main(latest release build)Steps to Reproduce / Observed Behavior
victory.exe run <exe_path> --execute.Relevant
crashes.logVICTORY_D3D12_DEBUG=1if command list breakdown is needed.VIctory_crashes_cleaned.txt
@GamingRipperDoc on GitHub · 2026-11-24 03:00 UTC · original
Reproduced on another RX 9070 XT, this time on Windows 10 with the Agility SDK runtime (#175) instead of Windows 11's in-box one. Same failure, and it fits hashdev512's texture-descriptor-read-as-buffer reading on #59, with one more detail below.
Setup: Windows 10 22H2 19045.7846, RX 9070 XT (driver 32.0.32015.7029), Ryzen 9 9900X.
maind2a4bae+ #175 (19aec59, D3D12Core 1.620.2), diag build,VICTORY_D3D12_DRED=1, Series X mode, played with an Xbox pad through the first-boot screens and the profile prompt into the first mission.What happened: menus at 30 fps, 0 draws dropped. The world started about 70 s in (
host mesh shader support mesh=true); it ran at about 1.3 fps (766 ms/frame, ~1,300 draws/frame, ~1,370 dropped while their pipelines were still being made). About 38 s into the world:No reboot was needed.
How this lines up with #59:
ExecuteIndirectkind 10, op 5) withu13=0x0, and a fault address with nothing there.0x2527000sits next to hashdev512's RGD capture0x25a2000, in the low range they describe.u13=0x0points at. The log resolves it to heap slot 0, and slot 0's recorded view is the title's ownCreateShaderResourceView(null, desc). Its first words[42, 2, 5768]areDXGI_FORMAT_R32_UINT,D3D12_SRV_DIMENSION_TEXTURE1Dand the default mapping0x1688. So the mesh draw on the GPU at the fault reads slot 0 throughu13, and slot 0 is a null 1D texture view, not a buffer (the same draw'su9is a[42, 1, …]buffer view, as expected). That matches the GPU-based-validation message on #59 (SRV Dimension Expected: TEXTURE2D, In Descriptor: TEXTURE1Don heap slot 0) and the reading that a buffer load through a texture descriptor produces these addresses.u13=0x0, all resolving to that slot. So it's a correlation: I have not shown that the faulting wave went throughu13.The question this raises (not checked): is
u13 = 0a value the title really means (slot 0, never written as a buffer), or user data that should have been set for these indirect draws, for example by the command signature's arguments, and is left at 0?So the runtime doesn't matter here: Agility 1.620 on Windows 10 faults the same way as the in-box runtime on Windows 11. Full
crashes.logentry (103 KB, VIctory's own output, no game data) available on request.No game data in this comment; shader hashes, host addresses and descriptor words are VIctory's own output.
AI-assisted (Claude Code); I played the run, and the log was read and decoded with the model (the meaning of the descriptor words from
crates/victory-gpu/src/descriptor.rs, which records the D3D12 view description as is).@GamingRipperDoc on GitHub · 2026-11-24 03:06 UTC · original
Correction to my comment above, plus a second run.
The
u13point was too strong. The device-removed report (op_textincrates/victory-gpu/src/draw.rs) prints[heap N: …]after every user-data value it can read as a heap index, whatever the shader does with that value. Sou13=0x0 [heap 0: … TEXTURE1D …]only says what heap slot 0 holds. It shows that the draw reads slot 0 only ifu13is a descriptor-table offset (RootType::Table), not a plain constant, and I have not checked which it is. Slot 0 is still a nullR32_UINTTEXTURE1Dview, matching the GPU-based-validation message on #59, but the link from this draw to it is unproven.Second run, same machine and build (
d2a4bae+ #175), cold shader cache again (hits=0 misses=499, since the rebuilt executable changes the cache key):page fault at 0x7000037a5000; DRED stopped at command 433 of 827, op 42 (DispatchMesh, direct), onmesh 37f363f0a5dcd806, pixel 4a45195a99ac14f7(the rigidMS_VS_TransformDprogram from #71), again withu13=0x0One observation from this dump, for what it's worth. The fault's low 32 bits,
0x037a5000, fall inside a buffer view every mesh pipeline in the dump binds ats0+688: title address0x3400000, 182,452,224 bytes (offset0x3a5000), and that range (0x3400000–0xe200000) covers the whole0x37xx_x000–0x3cax_x000cluster from #59. That would fit a shader using a console address from that buffer as is, with junk in the high half. But it doesn't hold for my first run: theres0+688was at0x2d380000, and nothing in the dump covers0x2527000. So one run of two; I'm noting it, not proposing it.No game data used. AI-assisted (Claude Code); I ran both runs.
@GamingRipperDoc on GitHub · 2026-11-24 03:11 UTC · original
Settled:
u13is a constant, so the slot-0 lead from my first comment is ruled out.I added two local diagnostics: the
shader translatedline now lists each user-data index with itsRootType, and the device-removed report prints the type after each value. A third run on the same machine (Windows 10 + #175, RX 9070 XT) gave:37f363f0a5dcd806(mesh,MS_VS_TransformD):[(8, Table), (9, Table), (10, Table), (13, Constants), (14, Constants)]d9abe24ad7bfe920(the mesh program from my first crash):[(8, Table), (9, Table), (13, Constants)]u13(135 mesh, 6 pixel, 3 vertex):(13, Constants), every oneu13=0x59b48633(Constants),u13=0x79b486ad(Constants), …So
u13=0x0was just the constant 0, and the[heap 0: … TEXTURE1D …]printed after it says nothing about these draws. (A side note for whoever reads these reports:op_textannotates every user-data value with a heap slot, constants included, which is easy to misread. Marking the type, as here, or annotating onlyTablevalues would avoid that.)Third crash: about 8 s into the world,
page fault at 0x7000037a7000, DRED stopped at command 176 of 270, op 5 (indirect kind 10 max 1) onmesh c5ffa556ab926155, pixel c4a269f4eeba3cac. That's 2 KB from my second run's0x7000037a5000: same high half, same place in #59's cluster. Thes0+688buffer from my second run is not in this dump, so that observation stays at one run of three.Both diagnostics are two lines; I can open a PR for them if they're wanted.
No game data used. AI-assisted (Claude Code); I ran all three runs.
@KingKaom on GitHub · 2026-11-24 03:55 UTC · original
Confirmed on another RX 9070 XT at
main d2a4bae(9800X3D, Windows 11 build 26300, driver 32.0.32029.2010, package verified byte-exact): same timeline — title card renders, dark scene at 0.5–1.8 s/frame, TDR ~55 s after. The diag build adds a DRED page fault at0x8000037d1000in the kind-10 indirect mesh-draw list (full data in my comment on #59). Two runs on this box stopped at different commands (1 list in flight vs 23) but in the same fault family — points at a computed address rather than one fixed resource.@GamingRipperDoc on GitHub · 2026-11-24 04:17 UTC · original
How far the first mission gets with #336 (RX 9070 XT, Windows 10,
d2a4bae+ #175 + #336, plus #294/#464/#440/#436/#305 in the longest run). Text only, no captures posted.VICTORY_CAPTURE_FRAMES) and checked the pixels: apart from the overlays, every frame is uniformly black or a flat dark grey (brightness spread of 0–2 out of 255). That fits the per-frame drops in the log: about 1,400 compute dispatches and 700 mesh draws dropped for shaders that don't translate yet, about 370–400 distinct shaders refused per run.So with #336, the title's own logic, audio and UI get well into the first cutscene on this machine; what's missing is the 3D scene, which comes down to the shaders that don't translate yet. I can repeat this capture check when shader PRs land, to see whether anything 3D appears.
No game data in this comment.
AI-assisted (Claude Code); I played the runs.
@KingKaom on GitHub · 2026-11-24 04:19 UTC · original
Follow-up on the same RX 9070 XT box (
main d2a4bae): tried to localize the world-entry fault with the existing knobs. Negative results, but they narrow it:VICTORY_SKIP_PIPELINESwith the two suspect world meshes: crash persists, and the next death names a completely different in-flight set (04b9be3756e8f41c,38d7a05a71b688dd,674baed2c9ef9873,97356b4fcf9fbb3f,c5ffa556ab926155).VICTORY_SHADER_LOOP_LIMIT=256: still crashes — not a runaway loop on this machine.VICTORY_GPU_TIMING=1(diag): 28 lists in flight at death, no slow list logged before it.VICTORY_D3D12_WARP=1: menus render fine (over a thousand frames), then the device goes away in the first world-entry first-bind burst (8ded0d53f8c51e1fmesh first bound in the same millisecond as the death), this time with0x887A0005device suspended rather than a TDR hang. So on this box the failure reproduces with no AMD driver in the loop at all.Net: the fault is location-independent — it follows whatever work is in flight entering the world — which fits the bad-descriptor-read theory in #59 better than one bad shader. Happy to run further knob combos here.
@GamingRipperDoc on GitHub · 2026-11-24 04:26 UTC · original
@KingKaom "Location-independent" matches what #336 found. On my RX 9070 XT, all three of my world-entry faults on
d2a4bae(+ #175) loggedno free dynamic descriptor slots: a table is not madeabout 1 s before the device was removed, and with #336 that warning disappears and the world lasts about 70–175 s instead of 8–38 s (details on #336). When dynamic slots run out, whatever draw comes next reads stale descriptors, so the faulting pipeline changes every time and skipping some just moves it, as you saw.Worth checking whether that warning shows in your log before the removal (
grep "no free dynamic descriptor slots"), and trying #336. With it, the later removal I get is a different one (page fault in a freed texture, ~1–3 min in).AI-assisted (Claude Code).
@KingKaom on GitHub · 2026-11-24 04:32 UTC · original
@GamingRipperDoc confirmed on all counts, and thanks — this closes the loop on my "location-independent" observation.
no free dynamic descriptor slots: a table is not madeis present exactly once in all four of my device-removal runs (main d2a4baediag+DRED ×2, andpr458×2), seconds before each removal. My earlier runs predate checking for it — matching your ~1 s pattern.pr336alone on this RX 9070 XT: warning gone entirely; world now lasts ~46 s instead of ~10–15 s, then dies exactly where you said the next layer is:page fault at 0x3a5f76000; inside freed ["texture 1024x1024 f98 ..."].pr458+pr336(81eeaf3): world ~33 s,page fault ... inside freed ["title memory 0xb58000000+0x400000", ...]— reads of unmapped title-memory copies this time, single-digit survival difference within run noise, same freed-memory family. So #336's fix holds and freed-resource lifetime is the remaining blocker on this box too.One knob pitfall to save someone an hour:
VICTORY_SKIP_PIPELINEScannot suppress the faulting work in this class — the kills ride insideExecuteIndirect, and skipped pipelines only drop direct draws/dispatches (my skip run showeddropped 0all the way to the fault).My near-constant fault VA on
main(0x8000037c3000/0x8000037d1000across runs) fits your mechanism too: with pool exhaustion, the same table slot reads the same stale slot range every run.@colehammond65 on GitHub · 2026-11-24 06:58 UTC · original
Cross-vendor RTX 4080 data point. Four runs on Windows 10 build 26300 survived 132.7–194.1 s in total, then exited with
0x887A0005and reported0x887A0006. None had a page fault or freed allocation; DRED stopped in indirect execution or mesh dispatch. PR #334 did not prevent the removal. Full report: #334AI-assisted test report.
@whilowcx on GitHub · 2026-11-24 06:54 UTC · original · edited 2026-11-24 07:36 UTC
Rewritten. The first version of this comment was written before I had read
the whole thread, and most of it duplicated work already here. What it actually
is: a third machine corroborating @GamingRipperDoc's and @KingKaom's
dynamic-descriptor-slot finding.
Setup: Windows 11 Pro 26200, Ryzen 7 3700X, 32 GB, RX 9070 XT 16 GB, driver
32.0.32029.2010 (Adrenalin 26.11.2) — the same driver as #29 and @KingKaom's
box.
mainatd2a4bae, no PRs applied, diag build, Rust 1.98.1, Series Xmode, v1.0.2.1,
VICTORY_D3D12_DRED=1. Two world runs, bothDXGI_ERROR_DEVICE_HUNG(0x887A0006), display driver reset, no reboot.The descriptor-slot warning, on a third machine.
no free dynamic descriptor slots: a table is not madeappears exactly once per run, shortly before theremoval:
That matches @GamingRipperDoc's "about 1 s before" across three faults and
@KingKaom's "exactly once in all four" runs. A WARP run of the same build has the
warning absent and dies differently —
DXGI_ERROR_UNSUPPORTEDwith the wholestack inside
d3d10warp.dll, 18 s into the world — which fits the warning beingtied to this path rather than to world entry as such.
On the rest, this is corroboration, not a new finding. @KingKaom posted
0x8000037d1000three hours before my original comment: same0x8000high halfand same low cluster as my run 2's
0x8000037ba000. The "different high half"point was already made, and it is theirs.
DRED, for the record:
0x2d7f000indirect kind 2c9da71da40af2e280x8000037ba000dispatch 1x1x1186de5778eb555c8One detail that may differ from the reports above: both faults here are on a
compute program — an indirect dispatch and a direct
dispatch 1x1x1— wherethe lists named in this issue, #59 and @KingKaom's runs are mesh draws (
kind 10,op 42).186de5778eb555c8translates and has a host pipeline. Either wayit is consistent with "a computed address rather than one fixed resource".
Not a timeout here either, corroborating @KingKaom's
VICTORY_GPU_TIMINGresult:
slow host submissionfires above 250 ms, and run 1 never logged it atall while run 2's worst was 544 ms — against the roughly 2 s the host allows.
Next from here: #336, to see whether the warning disappears and the world lasts
longer on this box too.
Counts, addresses and shader hashes only; VIctory's own output, no game data.
AI-assisted (Claude Code).
@rpmaster2 on GitHub · 2026-11-24 08:32 UTC · original · edited 2026-11-24 12:31 UTC
Same host and symptom here: RX 9070 XT 16 GB (RDNA4), Adrenalin 26.11.2 (32.0.32029.2010), Windows 11 26300.
Menus render at 30 fps, world entry reaches ~1000-2400 draws/frame at 0.3-2.9 fps, then
no free dynamic descriptor slots: a table is not made n=133/135/178and the host device is removed (0x887A0004 / 0x887A0006) before the first cutscene. DRED points at the view/sampler heaps and a stopped command list.#550,#562and the descriptor-demand diagnostics onaycow:gpu/descriptor-allocation-demand@82e4aa6 were all tested on this card; counters and the full write-up are in #597No game data, paths or hashes of game content: driver version, counters and error strings only.
AI-assisted: written by DeepSeek (OpenCode harness) from my run logs and observations; the hardware, the dump and the runs are mine.
@Marvisak on GitHub · 2026-11-25 01:48 UTC · original
Automated triage for the maintainers.
0x887A0006after a GPU page fault) on RDNA4 is discussed in #59. Several runs in this thread show the warningno free dynamic descriptor slots: a table is not made(crates/victory-gpu/src/descriptor/host.rs) about 1-2 s before the removal.edf64e2). It was followed byc1c3281(wraparound scan) and683ad7a(table constants read in place, so tables need no dynamic slots). Testers here saw the world last much longer with #336, until a later removal in freed memory.mainand post the VIctory commit (git rev-parse HEAD), the AMD driver version, the Windows build number, and thecrashes.loglines of the device removal. The attachment named in the body did not come through ascrashes.logtext in the issue, so the lines themselves would help.Generated by Claude Code