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

Open
opened 2026-11-24 01:03:02 +00:00 by MonkeyPython · 4 comments
MonkeyPython commented 2026-11-24 01:03:02 +00:00 (Migrated from github.com)
Contributor

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

<!-- greyfinch-sync:ivall/xcl:issue:6572202649 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/499). Originally posted by [MonkeyPython](https://github.com/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=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.
Anon64 commented 2026-11-24 03:42:52 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by Anon64 on 2026-11-24T03:42:52Z.


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.

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 break 0x80000003. The log has title texture: upload failed: texture copy: D3D12 device removed (0x887a0006 ...) then D3D12 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_DUMP on, 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.

xcl-smoke v1
commit: 2c717a043c8488938179fca81da4bb9e7913a358
gpu: NVIDIA GeForce RTX 3060
title: retail-1
seconds: 300
exit: 0x887a0006
frames shown: none logged (the run did not reach its end)
presents per 2 s (last 3): 4 4 5
device removals: 2
crashes: 2
peak commit: 37732 MB
xcl-smoke v1
commit: 753e8b1a2568c37248133880328f5fe1d5220193
gpu: NVIDIA GeForce RTX 3060
title: retail-1
seconds: 300
exit: 0x80000003
frames shown: none logged (the run did not reach its end)
presents per 2 s (last 3): 3 5 3
device removals: 2
crashes: 2
peak commit: 35339 MB
<!-- greyfinch-sync:ivall/xcl:comment:7121351360 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/499#issuecomment-7121351360). Originally posted by [Anon64](https://github.com/Anon64) on 2026-11-24T03:42:52Z. --- 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. *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 break `0x80000003`. The log has `title texture: upload failed: texture copy: D3D12 device removed (0x887a0006 ...)` then `D3D12 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_DUMP` on, 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. ``` xcl-smoke v1 commit: 2c717a043c8488938179fca81da4bb9e7913a358 gpu: NVIDIA GeForce RTX 3060 title: retail-1 seconds: 300 exit: 0x887a0006 frames shown: none logged (the run did not reach its end) presents per 2 s (last 3): 4 4 5 device removals: 2 crashes: 2 peak commit: 37732 MB ``` ``` xcl-smoke v1 commit: 753e8b1a2568c37248133880328f5fe1d5220193 gpu: NVIDIA GeForce RTX 3060 title: retail-1 seconds: 300 exit: 0x80000003 frames shown: none logged (the run did not reach its end) presents per 2 s (last 3): 3 5 3 device removals: 2 crashes: 2 peak commit: 35339 MB ```
MonkeyPython commented 2026-11-24 07:05:34 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by MonkeyPython on 2026-11-24T02:18:25Z.


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

<!-- greyfinch-sync:ivall/xcl:comment:7119996462 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/issues/499#issuecomment-7119996462). Originally posted by [MonkeyPython](https://github.com/MonkeyPython) on 2026-11-24T02:18:25Z. --- @odd/tasks/draft-issue-499-update.md
godjacry commented 2026-11-24 14:06:34 +00:00 (Migrated from github.com)
Author
Contributor

Imported 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, 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.

<!-- greyfinch-sync:ivall/xcl:comment:7132939834 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/issues/499#issuecomment-7132939834). Originally posted by [godjacry](https://github.com/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`, 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.
itsSio commented 2026-11-26 00:05:44 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by itsSio on 2026-11-25T23:51:17Z.


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.
<!-- greyfinch-sync:ivall/xcl:comment:7178135580 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/499#issuecomment-7178135580). Originally posted by [itsSio](https://github.com/itsSio) on 2026-11-25T23:51:17Z. --- 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.
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl#494
No description provided.