D3D12.X: NVIDIA device hung (0x887a0006) on title-texture upload; XCL_FRAME_DUMP crashes the UMD (RTX 3080 Ti) #494
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?
Imported from ivall/xcl. Originally posted by MonkeyPython on 2026-11-24T01:03:02Z.
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.
Imported from ivall/xcl. Originally posted by Anon64 on 2026-11-24T03:42:52Z.
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.
Edit (2026-11-28): observation 1 reproduces on current
main. Same RTX 3060 12 GB and driver 581.80, retail title, release,XCL_ACTIVITY=1 XCL_NETWORK=0, 8 preparation threads, A pressed every 4 s, 300 s. In 2 of 3 runs the device hangs (0x887a0006) during a title-texture upload, and the title then stops at the debug break0x80000003. The log hastitle texture: upload failed: texture copy: D3D12 device removed (0x887a0006 ...)thenD3D12 device removed: 0x887a0006.2c717a04, first run: no hang, presenting to ~338 s, 2 234 frames, exit 0x0.2c717a04, second run: device hung at ~187 s.753e8b1a(with the pipeline-library stack #3045–#3057): device hung at ~232 s.Neither run had
XCL_FRAME_DUMPon, so this is the upload hang alone. Peak local video memory was 18 546 MB and 17 083 MB, past the card's 12 GB.mainreaches on Windows; the obstacle is replaced vtables — proposal: proxies #172Imported from ivall/xcl. Originally posted by MonkeyPython on 2026-11-24T02:18:25Z.
@odd/tasks/draft-issue-499-update.md
mainreaches on Windows; the obstacle is replaced vtables — proposal: proxies #172mainreaches on Windows; the obstacle is replaced vtables — proposal: proxies #172mainreaches on Windows; the obstacle is replaced vtables — proposal: proxies #172Imported from ivall/xcl. Originally posted by godjacry on 2026-11-24T13:30:55Z.
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.
Imported from ivall/xcl. Originally posted by itsSio on 2026-11-25T23:51:17Z.
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.