D3D12.X: NVIDIA device hung (0x887a0006) on title-texture upload; XCL_FRAME_DUMP crashes the UMD (RTX 3080 Ti) #499

Open
opened 2026-11-26 04:23:40 +00:00 by github-bot · 4 comments
Owner

@⁠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=1 is on
. Both happen while the background pipeline
builds 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 main at
4017f8f (observations 1–2) and a6f5f7a (observation 3). XCL_NETWORK=0 plus an OS
firewall 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:

xcl: title texture: upload failed: texture copy: D3D12 device removed
(0x887a0006: La GPU no responderá a más comandos, probablemente porque la aplicación
que realiza la llamada ha pasado un comando no válido.)
xcl: D3D12 device removed: 0x887a0006 ...

DXGI_ERROR_DEVICE_HUNG (not 0x887a0007 DEVICE_REMOVED of #248). The last traces are
PresentX #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=1 crashes the NVIDIA UMD (4017f8f)

With the frame-dump readback on, a 60 s run crashed at ~250 presents / ~21 s:

Game exited with code 0xc0000005
CRASH: unhandled exception 0xc0000005 in nvwgf2umx.dll+0x8d713f (read at address 0x3c)
on the stack: xcl.exe+0x4ac2ec, xcl.exe+0x606c20, xcl.exe+0x445910, xcl.exe+0x272022

frame_20.bmp / frame_140.bmp were written first (both black, loading). Four runs at
the 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.rs readback_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 the
loading 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)

  • Observation 1: check the texture-upload copy's resource state / synchronization on
    NVIDIA at the loading phase; compare #248's texture-retirement work (this is HUNG,
    not REMOVED, and arenas were small).
  • Observation 2: reproduce with XCL_FRAME_DUMP=1 on NVIDIA; inspect the readback
    copy's state transitions in present.rs.
  • The stall: #156.

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 01:03 UTC · [original](https://github.com/xcl-dev/xcl/issues/499) ## 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=1` is on**. Both happen while the background pipeline builds 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 `main` at `4017f8f` (observations 1–2) and `a6f5f7a` (observation 3). `XCL_NETWORK=0` plus an OS firewall 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: ``` xcl: title texture: upload failed: texture copy: D3D12 device removed (0x887a0006: La GPU no responderá a más comandos, probablemente porque la aplicación que realiza la llamada ha pasado un comando no válido.) xcl: D3D12 device removed: 0x887a0006 ... ``` `DXGI_ERROR_DEVICE_HUNG` (not `0x887a0007` DEVICE_REMOVED of #248). The last traces are PresentX #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=1` crashes the NVIDIA UMD (`4017f8f`) With the frame-dump readback on, a 60 s run crashed at ~250 presents / ~21 s: ``` Game exited with code 0xc0000005 CRASH: unhandled exception 0xc0000005 in nvwgf2umx.dll+0x8d713f (read at address 0x3c) on the stack: xcl.exe+0x4ac2ec, xcl.exe+0x606c20, xcl.exe+0x445910, xcl.exe+0x272022 ``` `frame_20.bmp` / `frame_140.bmp` were written first (both black, loading). Four runs at the 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.rs` `readback_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 the loading 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) - Observation 1: check the texture-upload copy's resource state / synchronization on NVIDIA at the loading phase; compare #248's texture-retirement work (this is HUNG, not REMOVED, and arenas were small). - Observation 2: reproduce with `XCL_FRAME_DUMP=1` on NVIDIA; inspect the readback copy's state transitions in `present.rs`. - The stall: #156. ## 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:23:40 +00:00
Author
Owner

@⁠MonkeyPython on GitHub · 2026-11-24 02:18 UTC · original · edited 2026-11-24 02:25 UTC

@⁠odd/tasks/draft-issue-499-update.md

**@⁠MonkeyPython** on GitHub · 2026-11-24 02:18 UTC · [original](https://github.com/xcl-dev/xcl/issues/499#issuecomment-7119996462) · edited 2026-11-24 02:25 UTC @⁠odd/tasks/draft-issue-499-update.md
Author
Owner

@⁠Anon64 on GitHub · 2026-11-24 03:42 UTC · original

Data point for observation 2 (XCL_FRAME_DUMP=1 crashing the NVIDIA UMD): it does not reproduce here on current main.

  • main 91f9a5e, release, XCL_FRAME_DUMP=1, scripts/smoke.ps1 (60 s, XCL_NETWORK=0) on a retail title
  • NVIDIA GeForce RTX 3060 12 GB (Ampere, wave32), driver 581.80, Intel Core i9-14900KF, Windows 11 25H2 26200.9974, 3840×2160
  • the dumps ran: 14 frame_*.bmp written, report.json last_frame_dump.frame 1580
xcl-smoke v1
commit: 91f9a5e9f03156ea82dc55a18f7704862da7a5db
gpu: NVIDIA GeForce RTX 3060
title: retail-title
seconds: 60
exit: 0x0
frames shown: 1641 (PresentX 1641)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 14718 MB

Not 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.

**@⁠Anon64** on GitHub · 2026-11-24 03:42 UTC · [original](https://github.com/xcl-dev/xcl/issues/499#issuecomment-7121351360) Data point for observation 2 (`XCL_FRAME_DUMP=1` crashing the NVIDIA UMD): it does not reproduce here on current `main`. - `main` `91f9a5e`, release, `XCL_FRAME_DUMP=1`, `scripts/smoke.ps1` (60 s, `XCL_NETWORK=0`) on a retail title - NVIDIA GeForce RTX 3060 12 GB (Ampere, wave32), driver 581.80, Intel Core i9-14900KF, Windows 11 25H2 26200.9974, 3840×2160 - the dumps ran: 14 `frame_*.bmp` written, `report.json` `last_frame_dump.frame` 1580 ``` xcl-smoke v1 commit: 91f9a5e9f03156ea82dc55a18f7704862da7a5db gpu: NVIDIA GeForce RTX 3060 title: retail-title seconds: 60 exit: 0x0 frames shown: 1641 (PresentX 1641) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 14718 MB ``` **Not 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.
Author
Owner

@⁠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, and XCL_RUN_SECONDS=175.

  • vGPU, DXC 1.8, XCL_DXC_THREADS=1, XCL_UMA_MB=2048: XCL logged its first 1920×1080 present at 28.1 s and then 0xc0000005 in nvwgf2umx.dll+0x741e19 (read at address 0x0) at 33.7 s. Peak process commit was 8,766 MB. Launcher exit code was 0xc0000409.
  • vGPU, same settings with DXC 1.9.2609: XCL logged its first frame again. Launcher exit code was 0xc0000409. The faulting module was confirmed only for the DXC 1.8 run.
  • WARP (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 logged 0x8007000e.

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.

**@⁠godjacry** on GitHub · 2026-11-24 13:30 UTC · [original](https://github.com/xcl-dev/xcl/issues/499#issuecomment-7132939834) 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`, and `XCL_RUN_SECONDS=175`. - **vGPU, DXC 1.8, `XCL_DXC_THREADS=1`, `XCL_UMA_MB=2048`:** XCL logged its first 1920×1080 present at 28.1 s and then `0xc0000005 in nvwgf2umx.dll+0x741e19 (read at address 0x0)` at 33.7 s. Peak process commit was 8,766 MB. Launcher exit code was `0xc0000409`. - **vGPU, same settings with DXC 1.9.2609:** XCL logged its first frame again. Launcher exit code was `0xc0000409`. The faulting module was confirmed only for the DXC 1.8 run. - **WARP (`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 logged `0x8007000e`. 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.
Author
Owner

@⁠itsSio on GitHub · 2026-11-25 23:51 UTC · original · edited 2026-11-26 03:26 UTC

Taking Observation 2 (XCL_FRAME_DUMP / readback_copy in crates/xcl/src/hle/d3d12x/present.rs; Observation 1's upload hang is separate): route !composited XCL_FRAME_DUMP readback through the transitioned swapchain bb instead of raw title src, guard readback_copy against invalid/zero GetCopyableFootprints, MSAA (SampleDesc.Count > 1), and BUFFER resources (covering XCL_TRACE_FRAME too), 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, commit b25ae0cf3816b2538742645b755ea8cf967976fd, based on 08db8020):

  • Workspace tests (debug): cargo test --workspace -- --test-threads=4 passed 1431 passed, 0 failed, 47 ignored on both RTX 5080 (driver 32.0.16.1088, 26 SKIPPED) and RTX 2080 SUPER (driver 32.0.16.1088, 27 SKIPPED); frame_dump_tests 5/0/0 (WARP; fails on the buffer assertion if the readback_copy guard is removed).
  • Retail XCL_FRAME_DUMP=1 verification (RTX 5080, release):
    • 60 s scripts/smoke.ps1 (XCL_FRAME_DUMP=1): main 08db8020 1573 frames (60 60 60, 9877 MB, 0 removals, 0 crashes) vs b25ae0cf 1588 frames (60 60 60, 9890 MB, 0 removals, 0 crashes).
    • 120 s XCL_FRAME_DUMP=1 + XCL_PRESS_A_AT=15,25,35,45,55: both main 08db8020 (3258 frames, non-black from ~105 s) and b25ae0cf (3306 frames, non-black from ~89 s) capture genuine non-black BMPs (max=249, mean=36.6, 99.8% non-dark) with 0 nvwgf2umx.dll faults.
  • Not tested: reproducing the original RTX 3080 Ti UMD crash (did not reproduce on RTX 5080 on main), AMD discrete GPUs, Linux / Wine / vkd3d-proton.

AI use
Ran via Samaritan:

  • OpenCode (Claude Opus 5.5): wrote 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 5080 scripts/smoke.ps1 runs.
  • Google Antigravity CLI (Gemini 4 Hydrogen (High)): wrote the initial plan comment and an earlier superseded attempt (5df036c7), and ran the 120 s XCL_FRAME_DUMP=1 non-black verification.
  • Google Antigravity CLI (Gemini 4 Neon (High)): coordinated verification, opened fork draft PR itsSio/xcl#6, and updated this comment.
**@⁠itsSio** on GitHub · 2026-11-25 23:51 UTC · [original](https://github.com/xcl-dev/xcl/issues/499#issuecomment-7178135580) · edited 2026-11-26 03:26 UTC Taking Observation 2 (`XCL_FRAME_DUMP` / `readback_copy` in `crates/xcl/src/hle/d3d12x/present.rs`; Observation 1's upload hang is separate): route `!composited` `XCL_FRAME_DUMP` readback through the transitioned swapchain `bb` instead of raw title `src`, guard `readback_copy` against invalid/zero `GetCopyableFootprints`, MSAA (`SampleDesc.Count > 1`), and `BUFFER` resources (covering `XCL_TRACE_FRAME` too), and add D3D12 unit/GPU tests. **Update (2026-11-26):** Implemented and verified on fork draft PR [`itsSio/xcl#6`](https://github.com/itsSio/xcl/pull/6) (`d3d12x/frame-dump-swapchain-readback`, commit `b25ae0cf3816b2538742645b755ea8cf967976fd`, based on `08db8020`): - **Workspace tests (debug):** `cargo test --workspace -- --test-threads=4` passed **1431 passed, 0 failed, 47 ignored** on both RTX 5080 (driver `32.0.16.1088`, 26 `SKIPPED`) and RTX 2080 SUPER (driver `32.0.16.1088`, 27 `SKIPPED`); `frame_dump_tests` 5/0/0 (WARP; fails on the buffer assertion if the `readback_copy` guard is removed). - **Retail `XCL_FRAME_DUMP=1` verification (RTX 5080, release):** - 60 s `scripts/smoke.ps1` (`XCL_FRAME_DUMP=1`): `main` `08db8020` `1573` frames (`60 60 60`, `9877 MB`, `0` removals, `0` crashes) vs `b25ae0cf` `1588` frames (`60 60 60`, `9890 MB`, `0` removals, `0` crashes). - 120 s `XCL_FRAME_DUMP=1` + `XCL_PRESS_A_AT=15,25,35,45,55`: both `main` `08db8020` (`3258` frames, non-black from ~105 s) and `b25ae0cf` (`3306` frames, non-black from ~89 s) capture genuine non-black BMPs (`max=249`, `mean=36.6`, `99.8%` non-dark) with `0` `nvwgf2umx.dll` faults. - **Not tested:** reproducing the original RTX 3080 Ti UMD crash (did not reproduce on RTX 5080 on `main`), AMD discrete GPUs, Linux / Wine / vkd3d-proton. **AI use** Ran via Samaritan: - OpenCode (Claude Opus 5.5): wrote `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 5080 `scripts/smoke.ps1` runs. - Google Antigravity CLI (Gemini 4 Hydrogen (High)): wrote the initial plan comment and an earlier superseded attempt (`5df036c7`), and ran the 120 s `XCL_FRAME_DUMP=1` non-black verification. - Google Antigravity CLI (Gemini 4 Neon (High)): coordinated verification, opened fork draft PR `itsSio/xcl#6`, and updated this comment.
This discussion has been locked. Commenting is limited to contributors.
No description provided.