D3D12.X: NVIDIA device hung (0x887a0006) on title-texture upload; XCL_FRAME_DUMP crashes the UMD (RTX 3080 Ti) #499
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#499
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?
@MonkeyPython on GitHub · 2026-11-24 01:03 UTC · original
Summary
On an RTX 3080 Ti (Ampere, wave32-only), a retail title (Series 1.0.2.1) fails
in the loading/menu phase in two distinct ways besides the null write of #232: a
DXGI device hung during a title-texture upload, and an access violation inside the
NVIDIA UMD when
XCL_FRAME_DUMP=1is on. Both happen while the background pipelinebuilds are stalled (tens of thousands queued, almost none done), at 3–7 fps.
Setup
Windows 11 Pro 26300, Ryzen 7 7800X3D, 32 GB, RTX 3080 Ti 12 GB (driver 621.24),
Rust 1.100.0 stable MSVC, DXC 1.8.2502.11 (SDK 10.0.26100). Release builds of
mainat4017f8f(observations 1–2) anda6f5f7a(observation 3).XCL_NETWORK=0plus an OSfirewall outbound block on
xcl.exe. 3840×2160.Observation 1 — device hung on a texture upload (
a6f5f7a, 300 s run)The run reached the settings/legal/consent menus; on confirming, fps degraded
30 → 20.6 → 19.2 and then:
DXGI_ERROR_DEVICE_HUNG(not0x887a0007DEVICE_REMOVED of #248). The last traces arePresentX #2700; the title's VRAM arenas logged so far total ~317 MB. The window froze on
the loading spinner ~48 s before the run ended.
Observation 2 —
XCL_FRAME_DUMP=1crashes the NVIDIA UMD (4017f8f)With the frame-dump readback on, a 60 s run crashed at ~250 presents / ~21 s:
frame_20.bmp/frame_140.bmpwere written first (both black, loading). Four runs atthe same commit without the dump ran clean to 60 s (641–1511 frames, exit 0x0) —
but note observation 1 shows a different failure without the dump at a newer commit,
so the dump is a correlate of this UMD crash, not of loading-phase stability in general.
The dump path is
present.rsreadback_copy(READBACK heap copy recorded at present).Common context — the pipeline stall
In every long run the shader counter barely moves:
0 running, 0–43 done, ~58 700 pipelines queued, and the title sits at 3–7 fps once past the menus (30 fps while theloading art slideshow runs). This is the #156 shape (NVIDIA PSO builds that never
finish); whether it causes either failure is not established.
Suggested direction (owner's call)
NVIDIA at the loading phase; compare #248's texture-retirement work (this is HUNG,
not REMOVED, and arenas were small).
XCL_FRAME_DUMP=1on NVIDIA; inspect the readbackcopy's state transitions in
present.rs.Not tested
Other NVIDIA GPUs; plain-main isolation of stall vs failure; whether observation 1
recovers with the #248 follow-ups. No game files attached.
AI use: Gentle Shell (Pi coding agent), model qwen4-max: ran the title and wrote this
report from the logs; a human reviewed it before opening. No code changes.
@MonkeyPython on GitHub · 2026-11-24 02:18 UTC · original · edited 2026-11-24 02:25 UTC
@odd/tasks/draft-issue-499-update.md
@Anon64 on GitHub · 2026-11-24 03:42 UTC · original
Data point for observation 2 (
XCL_FRAME_DUMP=1crashing the NVIDIA UMD): it does not reproduce here on currentmain.main91f9a5e, release,XCL_FRAME_DUMP=1,scripts/smoke.ps1(60 s,XCL_NETWORK=0) on a retail titleframe_*.bmpwritten,report.jsonlast_frame_dump.frame1580Not tested: the RTX 3080 Ti or driver 621.24;
4017f8f, the commit the crash was seen on; runs longer than 60 s; observation 1 (the device hang past the menus), which this run does not reach.Written with Claude Code (Claude Opus 5.5) from a run on this machine.
@godjacry on GitHub · 2026-11-24 13:30 UTC · original
Additional data point for observation 2 on an RTX 5060, with frame dumping configured.
Setup: XCL release built from
47efa2ecea0a12934719ae69b81930cf02a4b1c3. Xbox Series retail title 1.0.2.1. Windows 11 Pro 26300.9974 host, Ryzen 5 5600X, 12 GiB RAM, RTX 5060 8 GiB, NVIDIA driver 617.42 (32.0.16.1742). Offline Windows Sandbox with 6 GiB assigned and vGPU enabled.Launch:
xcl.exe run "<game directory>", with Series S (device_type = "lockhart"), a 1280×720 window,XCL_NETWORK=0,XCL_FRAME_DUMP=4,XCL_ACTIVITY=1, andXCL_RUN_SECONDS=175.XCL_DXC_THREADS=1,XCL_UMA_MB=2048: XCL logged its first 1920×1080 present at 28.1 s and then0xc0000005 in nvwgf2umx.dll+0x741e19 (read at address 0x0)at 33.7 s. Peak process commit was 8,766 MB. Launcher exit code was0xc0000409.0xc0000409. The faulting module was confirmed only for the DXC 1.8 run.XCL_ADAPTER=warp), DXC 1.9.2609, otherwise same settings: XCL logged its first frame, an out-of-memory error, and a breakpoint (0x80000003). A separate vGPU run with two DXC workers also logged0x8007000e.No visible menu in these runs. There was no paired test with frame dumping disabled, so these results do not establish whether frame capture triggered the NVIDIA fault.
AI use: OpenAI Codex (GPT-6) ran these local tests and summarized the results.
@itsSio on GitHub · 2026-11-25 23:51 UTC · original · edited 2026-11-26 03:26 UTC
Taking Observation 2 (
XCL_FRAME_DUMP/readback_copyincrates/xcl/src/hle/d3d12x/present.rs; Observation 1's upload hang is separate): route!compositedXCL_FRAME_DUMPreadback through the transitioned swapchainbbinstead of raw titlesrc, guardreadback_copyagainst invalid/zeroGetCopyableFootprints, MSAA (SampleDesc.Count > 1), andBUFFERresources (coveringXCL_TRACE_FRAMEtoo), and add D3D12 unit/GPU tests.Update (2026-11-26): Implemented and verified on fork draft PR
itsSio/xcl#6(d3d12x/frame-dump-swapchain-readback, commitb25ae0cf3816b2538742645b755ea8cf967976fd, based on08db8020):cargo test --workspace -- --test-threads=4passed 1431 passed, 0 failed, 47 ignored on both RTX 5080 (driver32.0.16.1088, 26SKIPPED) and RTX 2080 SUPER (driver32.0.16.1088, 27SKIPPED);frame_dump_tests5/0/0 (WARP; fails on the buffer assertion if thereadback_copyguard is removed).XCL_FRAME_DUMP=1verification (RTX 5080, release):scripts/smoke.ps1(XCL_FRAME_DUMP=1):main08db80201573frames (60 60 60,9877 MB,0removals,0crashes) vsb25ae0cf1588frames (60 60 60,9890 MB,0removals,0crashes).XCL_FRAME_DUMP=1+XCL_PRESS_A_AT=15,25,35,45,55: bothmain08db8020(3258frames, non-black from ~105 s) andb25ae0cf(3306frames, non-black from ~89 s) capture genuine non-black BMPs (max=249,mean=36.6,99.8%non-dark) with0nvwgf2umx.dllfaults.main), AMD discrete GPUs, Linux / Wine / vkd3d-proton.AI use
Ran via Samaritan:
b25ae0cf, the tests, and the fork draft PR description, and ran the Main PC unit tests; helper sessions on OpenCode (Claude Opus 5.5) ran Build PC unit tests and the RTX 5080scripts/smoke.ps1runs.5df036c7), and ran the 120 sXCL_FRAME_DUMP=1non-black verification.itsSio/xcl#6, and updated this comment.