CapFrameX's overlay hook in xcl.exe: the D3D12 device is removed (0x887a002b) within 9 s – 13 min; XCL_D3D12_DEBUG=1 crashes in D3D12Core.dll+0x606fb at start #927

Closed
opened 2026-11-24 08:43:40 +00:00 by ateezie · 1 comment
ateezie commented 2026-11-24 08:43:40 +00:00 (Migrated from github.com)
Contributor

Imported from ivall/xcl. Originally posted by ateezie on 2026-11-24T08:43:40Z.


Setup: Windows 11 Pro 10.0.26200, NVIDIA GeForce RTX 5090 (32 GB), Rust 1.100.0, DXC 1.9.2602.17 (Windows SDK 10.0.26100), xcl main beaa245, release build. Retail title (TitleID 7952987A, game_scarlett_master.exe).

1. An injected OSD hook removes the device

With CapFrameX running (it injects %LOCALAPPDATA%\CapFrameX\hook\x64\cfx_osd_hook_<hash>.dll into D3D12 processes, and runs CX-PresentMon-2.6.1-x64.exe), 4 runs of 4 ended in:

D3D12 device removed: 0x887a002b The application is trying to use a resource to which it does not have the required access privileges.
process ends with status 0x887a002b; on the stack: xcl.exe+0x343c0, xcl.exe+0x16fcdf, xcl.exe+0x343c0, xcl.exe+0x17367e, cfx_osd_hook_60e16818.dll+0x3f61e, cfx_osd_hook_60e16818.dll+0x52807, cfx_osd_hook_60e16818.dll+0x45a94, cfx_osd_hook_60e16818.dll+0x5bbfb
  • Same stack in all 4 runs: the call that sees the removal comes through the hook.
  • After 9.5 s, ~2 min, ~13 min and 9.5 s. Each time within 0.3–0.5 s after a burst of
    a texture at … lies in a GPU view of the title's CPU memory: kept in step with … (256–4096 so far).
  • With CapFrameX closed (no cfx_osd_hook module in xcl.exe, checked): no device removal in 2 runs
    (80 s and 137 s; those ended in the #751 detile AV and the +0x23cf683 watchdog, below).

Not established: whether the hook causes the removal or only observes it first. Not tested: excluding xcl.exe in CapFrameX's settings; other overlays (RTSS, Steam, Discord, NVIDIA).
Suggestion: README note that OSD / capture overlays should be off for xcl.exe; maybe log injected non-system modules in report.json.

2. XCL_D3D12_DEBUG=1 crashes at start

Debug layer from the inbox d3d12SDKLayers.dll (System32). 2.2 s after launch, right after the first command allocator is wrapped:

D3D12.X: ID3D12CommandAllocator – 9 PC methods, 512 internal slots under the guard, +64 stubs (CommandAllocator, PC vtable D3D12SDKLayers.dll+0x2fe9a8)
unhandled exception 0xc0000005 in D3D12Core.dll+0x606fb (read at address 0x0) rax=0x0 rcx=0x0 rsi=… (vtable xcl.exe+0x4e7dc3) rdi=… (vtable D3D12Core.dll+0x2489d0) r12=… (vtable xcl.exe+0x4eae38); on the stack: xcl.exe+0x4eadb8, xcl.exe+0x189824, xcl.exe+0x1533b4, xcl.exe+0x52bb85, xcl.exe+0x17a35f

Not symbolised yet (the xcl.exe offsets are from the beaa245 release build; xcl.pdb is kept).
XCL_DRED=1 stalls the title at startup here as well (after the 3rd compute PSO, 3 of 3 runs; XCL_PSO_DISK_CACHE=0 made no difference) – as already reported in #675.

AI use: Claude Code (Claude Opus 5.5) ran the title, read the logs, found the hook module on the stacks and wrote this draft. The runs were on the reporter's machine.

<!-- greyfinch-sync:ivall/xcl:issue:6577950437 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/933). Originally posted by [ateezie](https://github.com/ateezie) on 2026-11-24T08:43:40Z. --- **Setup:** Windows 11 Pro 10.0.26200, NVIDIA GeForce RTX 5090 (32 GB), Rust 1.100.0, DXC 1.9.2602.17 (Windows SDK 10.0.26100), xcl `main` beaa245, release build. Retail title (TitleID 7952987A, `game_scarlett_master.exe`). ## 1. An injected OSD hook removes the device With CapFrameX running (it injects `%LOCALAPPDATA%\CapFrameX\hook\x64\cfx_osd_hook_<hash>.dll` into D3D12 processes, and runs `CX-PresentMon-2.6.1-x64.exe`), 4 runs of 4 ended in: ``` D3D12 device removed: 0x887a002b The application is trying to use a resource to which it does not have the required access privileges. process ends with status 0x887a002b; on the stack: xcl.exe+0x343c0, xcl.exe+0x16fcdf, xcl.exe+0x343c0, xcl.exe+0x17367e, cfx_osd_hook_60e16818.dll+0x3f61e, cfx_osd_hook_60e16818.dll+0x52807, cfx_osd_hook_60e16818.dll+0x45a94, cfx_osd_hook_60e16818.dll+0x5bbfb ``` - Same stack in all 4 runs: the call that sees the removal comes through the hook. - After 9.5 s, ~2 min, ~13 min and 9.5 s. Each time within 0.3–0.5 s after a burst of `a texture at … lies in a GPU view of the title's CPU memory: kept in step with …` (256–4096 so far). - With CapFrameX closed (no `cfx_osd_hook` module in xcl.exe, checked): no device removal in 2 runs (80 s and 137 s; those ended in the #751 detile AV and the `+0x23cf683` watchdog, below). Not established: whether the hook causes the removal or only observes it first. Not tested: excluding xcl.exe in CapFrameX's settings; other overlays (RTSS, Steam, Discord, NVIDIA). Suggestion: README note that OSD / capture overlays should be off for xcl.exe; maybe log injected non-system modules in report.json. ## 2. `XCL_D3D12_DEBUG=1` crashes at start Debug layer from the inbox `d3d12SDKLayers.dll` (System32). 2.2 s after launch, right after the first command allocator is wrapped: ``` D3D12.X: ID3D12CommandAllocator – 9 PC methods, 512 internal slots under the guard, +64 stubs (CommandAllocator, PC vtable D3D12SDKLayers.dll+0x2fe9a8) unhandled exception 0xc0000005 in D3D12Core.dll+0x606fb (read at address 0x0) rax=0x0 rcx=0x0 rsi=… (vtable xcl.exe+0x4e7dc3) rdi=… (vtable D3D12Core.dll+0x2489d0) r12=… (vtable xcl.exe+0x4eae38); on the stack: xcl.exe+0x4eadb8, xcl.exe+0x189824, xcl.exe+0x1533b4, xcl.exe+0x52bb85, xcl.exe+0x17a35f ``` Not symbolised yet (the xcl.exe offsets are from the beaa245 release build; xcl.pdb is kept). `XCL_DRED=1` stalls the title at startup here as well (after the 3rd compute PSO, 3 of 3 runs; `XCL_PSO_DISK_CACHE=0` made no difference) – as already reported in #675. **AI use:** Claude Code (Claude Opus 5.5) ran the title, read the logs, found the hook module on the stacks and wrote this draft. The runs were on the reporter's machine.
ivall commented 2026-11-24 11:06:00 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by ivall on 2026-11-24T10:52:47Z.


Thanks for the careful runs. Part 1: the device removal comes only with CapFrameX's hook injected into xcl.exe (4 of 4 runs with it, 0 of 2 without), so it is the overlay's doing or at least needs it; XCL does not support third-party overlay hooks in its process – please run without them. Part 2 (XCL_D3D12_DEBUG=1 crashing in D3D12Core.dll at start): the debug layer was the inbox d3d12SDKLayers.dll from System32. When D3D12Core.dll comes from an Agility SDK, the debug layer has to come from the same Agility package; mixed versions are known to crash. If it still crashes with matching DLLs, please open a separate issue for it. Closing this one.

<!-- greyfinch-sync:ivall/xcl:comment:7129365684 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/issues/933#issuecomment-7129365684). Originally posted by [ivall](https://github.com/ivall) on 2026-11-24T10:52:47Z. --- Thanks for the careful runs. Part 1: the device removal comes only with CapFrameX's hook injected into `xcl.exe` (4 of 4 runs with it, 0 of 2 without), so it is the overlay's doing or at least needs it; XCL does not support third-party overlay hooks in its process – please run without them. Part 2 (`XCL_D3D12_DEBUG=1` crashing in `D3D12Core.dll` at start): the debug layer was the inbox `d3d12SDKLayers.dll` from System32. When `D3D12Core.dll` comes from an Agility SDK, the debug layer has to come from the same Agility package; mixed versions are known to crash. If it still crashes with matching DLLs, please open a separate issue for it. Closing this one.
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#927
No description provided.