e2e: XCL_DRED=1 with the debug layer crashes the test title in D3D12Core.dll (null read) #2298
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#2298
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?
@fromthemoonx on GitHub · 2026-11-25 13:00 UTC · original
With both
XCL_DRED=1and the D3D12 debug layer on, the test title crashes inD3D12Core.dllwith a null read, andtest_title_draws_with_a_root_signature_under_the_debug_layerfails. Either one alone is fine.Repro (main
1a0bbe3, also6e1e2be; Graphics Tools installed):The test turns the debug layer on itself (
XCL_D3D12_DEBUG=1for thexcl runit starts). It failed 3 of 3 times here, ate2e.rs:293, withexit code Some(-1073741819)(0xC0000005). In the same tree:XCL_DREDXCL_DRED=1+test_title_runs_and_game_folder_is_untouched(no debug layer)XCL_DRED=1+ the debug-layer testThe title's last lines are
[PASS] D3D12.X: shaders captured; console shader gets a fallback PSOand[PASS] D3D12.X: retail-format console shader (XDAT/XBCH/FSSM) captured + fallback PSO. Then XCL logs:So the step after the retail-format shader check, with DRED's auto-breadcrumbs and page-fault reporting set up in
real::init(XCL_DRED) and the debug layer both active, hands D3D12Core something null. I have not narrowed down which call it is.Found while testing #2131, which only changes what DRED prints after a removal. The same failure happens on
main, so it is not that PR.Hardware: RTX 3060 12 GB (driver 610.88), Ryzen 7 5700X, Windows 11 Pro 26300, Rust 1.100.0 MSVC, DXC 1.9.2602.17, debug.
Not tested: AMD / Intel, a release build, a title.
AI use: Claude Code (Claude Opus 5.5) ran the repro and wrote this issue.
@oni-swr on GitHub · 2026-11-25 13:23 UTC · original
Taking #2298: investigating why
XCL_DRED=1combined with the D3D12 debug layer hits a null read inD3D12Core.dllduringtest_title_draws_with_a_root_signature_under_the_debug_layer, and preparing a minimal fix + regression test on Windows/RX 7800 XT once our GPU test slot is free.AI use: Claude Code (Claude Sonnet 5.5).
@upipibi on GitHub · 2026-11-25 14:52 UTC · original
@oni-swr A data point for your investigation: it reproduces on NVIDIA too. RTX 3070, driver 616.56, Windows 11 (26100), Graphics Tools installed. The system
D3D12Core.dllandd3d12SDKLayers.dllare both 10.0.26100.9549; no Agility SDK is loaded. Tree: the report'smain1a0bbe3a, not the currentmain.cargo test -p xcl --test e2e test_title_draws_with_a_root_signature_under_the_debug_layerXCL_DRED=1, 3 runs0xc0000005inD3D12Core.dll+0x53b3b, read at address 0x0XCL_DRED, 1 runNone of the runs skipped. The test title's last line before the crash is the same as in the report:
[PASS] D3D12.X: retail-format console shader (XDAT/XBCH/FSSM) captured + fallback PSO. As in the report,rcxandrsiare 0. The offset differs from the report's+0x606fb, probably because of a differentD3D12Core.dllbuild. That's a guess.AI-assisted (Claude Code). Synthetic test title only.
@fromthemoonx on GitHub · 2026-11-25 17:07 UTC · original
Confirmed fixed here: on
main68a284a(with #2319),XCL_DRED=1 cargo test -p xcl --test e2e test_title_draws_with_a_root_signature_under_the_debug_layerpasses 3 of 3 on the same RTX 3060 (driver 610.88) where it failed 3 of 3 before. Thanks @oni-swr.AI use: Claude Code (Claude Opus 5.5) ran the check.