xcl do not use provided D3D12Core.dll, VSH issue #595
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#595
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?
@Ekibunnel on GitHub · 2026-11-24 02:19 UTC · original
Game and package version
What happens
Window open for a few seconds and close.
title says :
compiling shaders : 0, 1212 pipelines queued, 3 failedXCL version
508a0c7GPU and driver version
NVIDIA GeForce RTX 5080, 32.0.16.2101
Windows version
Windows 10 22H2 (19045.7807), D3D12 Agility SDK is next to xcl.exe (D3D12Core.dll 1.620.2.0)
report.json and xcl.log
report.json
xcl.log
Console output
@pickles976 on GitHub · 2026-11-24 03:02 UTC · original
Static analysis of the crash from a byte-verified copy of the same binary (SHA-256
e95020b2fa4a721db3df59fdecf75621730ac559d8835252f6c3b658d5a08993= the hash in the leak announcement; not acquired or run by me, disassembly below is local, offline). All RVAs areexe+.1. Fault semantics — null vptr, not null object.
The faulting function starts at
0xb5a5d0(unwind record0xb5a5d0..0xb5aa54):The object slot is a valid pointer to zero-initialized memory — never constructed — being dispatched as if live.
0x651e95c4d06fbfb1is a compiler-issued type-hash immediate (334 occurrences across.text); this call site's tag class is the one whose vtableexe+0x61eced8your tagger already printed forr11.2. Reachable via a thin wrapper from a subsystem-init loop.
Frame
exe+0x5bb7cceis exactly the return site ofcall 0xb5a490=xor edx,edx; jmp 0xb5a5d0. Its caller (unwind0x5bb7b40..0x5bb830d) is a bring-up loop that registers a family of subsystems: per entry it extracts a 9-bit feature field (bextr ctrl 0x90f= bits 15..23) from a config table addressed through[obj+0x650]→[+0xc68]/[+0xc78], allocates via a factory thunk, and stores handles at fixed slots ([rsi+r14*8+0x188/0x1a8/0x1c8/0x1e8]). The factory at0x1819530is:operator new(0x158)→ store vtable&0x61eced8→ copy fields — so the crashed object was expected to come from exactly this factory, and instead came back as zeroed memory.3. The stack line has one bogus frame.
exe+0x75b30f8lands in.data(mid-image), it is stale stack residue, not a return address. Real chain is 4 frames. Worth filtering candidates by section in the walker.4. Loader-side observation that may matter more than the crash. Across all 100 MB of
.textthere is not one RIP-relative reference (noFF 15 /FF 25, nomov reg,[rip+…]) to any of the 587 static import-directory slots — includingkernel32and the Xbox DLLs. All 275 import-style thunks areFF 25 jmp [rip+…]into a table in.rdata(≈0x6794xxx) whose static contents are self-referential RVAs (e.g. slot0x6794620, 40 callers, content0x67982b8), i.e. the binary carries a custom link-time call table (.xbldsection era linker pass, likely populated at startup by the game itself). If so, a compatibility layer that binds only the PE import directory binds slots the game never reads — which would make the per-DLLImports:accounting a directory dump, not observed traffic. A cheap discriminator on your next run: log inside one implemented HLE function (e.g. anacphalentry) — if it never fires while the game still runs 2 s, bindings are going somewhere the game doesn't use, and the zero-vtable object in (1) plausibly comes from a code path that never consulted the shim at all.5. Ranked causes for the zeroed object (all consistent with (1)): constructor skipped on an error path the console never takes (config bit 23.. field unset because a settings query returned success-but-zero), or an auto-stubbed API with a
void**/object out-param that returned S_OK without writing — yourreport.json → called_stubsshould list exactly which stubs ran before the crash; the object's type is the class of vtable0x61eced8, so a content-tag at allocation time (you already tag it at read time) pins the producer.Happy to decode further frames locally — the unwind tables are intact (248 k functions in
.pdata) and I can resolve anyexe+0x…from a crash report to its function bounds, wrapper chain, and type-hash tag offline.@Ekibunnel on GitHub · 2026-11-24 05:47 UTC · original
I had the same issue on VIctory.
And this PR https://github.com/Marvisak/VIctory/pull/175 did fix the issue.
@pickles976 on GitHub · 2026-11-24 05:52 UTC · original
Careful with this one — I checked the linked PR, and it isn't this issue's mechanism.
VIctory's #175 loads the D3D12 Agility SDK runtime on Windows 10 so shader-model 6.6 compiles exist. That addresses a capability failure:
D3DCompilerejecting SM 6.6 → HR errors from shader-creation calls, no AV, no null object. This issue's crash is the zero object: a success-returning factory handing back an all-zero object whose vtable load (mov rax,[obj]; call [rax+off]) faults — the chain is auth failure → uninitialized subsystem (#598) → the site decoded atgame+0xb5a5f8.The discriminator is one line in any dump: a fault in the title's code at
+0xb5a5f8reading a vtable off a zeroed object = this issue; a shader-compile HRESULT error (or a fault insidedxcompiler.dll) = the Agility-class problem. A run that still shows the+0xb5a5f8read won't be moved by an Agility-SDK loader, in either project.Worth noting for the ecosystem generally (day 1 has produced two large independent projects attempting this): fixes don't transfer by symptom name, only by faulting site. Both codebases are seeing the same title, so the sites are common ground — worth citing them in each other's issues.
@Ekibunnel on GitHub · 2026-11-24 06:34 UTC · original
What I meant was : it is an issue with using the right
D3D12Core.dllIt is said in the README.md and in HANDOFF.md that Microsoft D3D12 Agility SDK is loaded from :
%XCL_D3D12_DIR%(only it, when set),<xcl.exe dir>\D3D12,<xcl.exe dir>,%LOCALAPPDATA%\XCL\D3D12But I did test it and it does not work for most of them, the only path that work is
%LOCALAPPDATA%\XCL\D3D12.If you put
D3D12Core.dllinside<xcl.exe dir>\D3D12or<xcl.exe dir>it does not work.Using
%XCL_D3D12_DIR%will not work no matter where it point to.@pickles976 on GitHub · 2026-11-24 06:40 UTC · original
Static read of the loader against your result — the search list is not the bug, and that narrows it usefully:
candidates()(crates/xcl/src/gpu/agility.rs:50) returns env-first exactly as documented, and it is unit-tested for that order (agility_tests.rs:105). So your observation lives downstream of directory selection: eitherprobe_dir(needsD3D12Core.dlldirectly in the folder) or activation (CreateDeviceFactory).agility.rs:55: "do not silently fall through"): setXCL_D3D12_DIRand a wrong folder is a hardUnavailable— no fallback to the others. The most common wrong folder is the extracted NuGet root: the DLL actually lives inbin\x64\. The README line ("point%XCL_D3D12_DIR%at it") doesn't say which folder, and that ambiguity is a real docs bug — proposing a clarification separately."{XCL_D3D12_DIR}=… has no D3D12Core.dll", probe errors prefixed with the full DLL path, activation errors verbatim from Win32). If you paste the reason line xcl logged (it reports the Agility decision at startup), we can name which stage killed the exe-dir attempts — one candidate worth testing while you're at it: paths with non-ASCII characters fail the ANSI encoding step (encode_wide_for_code_page), while%LOCALAPPDATA%is usually pure ASCII — an exe dir likeC:\Users\Sebastián\…or any umlaut explains "only LOCALAPPDATA works" exactly.@Ekibunnel on GitHub · 2026-11-24 07:15 UTC · original
If I set the folder on the my
S:drive it doesn't workIt also does not work if I try on my
G:orD:drive (even tho the path here is very small and pure ASCII)But it does work if the folder is on my
C:orR:drive@Ekibunnel on GitHub · 2026-11-24 08:47 UTC · original
The folder is being translated by XCL's virtual file system before it is probed
XCL use
GAME:,G: {game},D: {game},T: {data}\temp,S: {data}\plsAnd my main drives are
S:,G:,D:that why I have issues@vakaobr on GitHub · 2026-11-24 12:20 UTC · original
@Ekibunnel's diagnosis is right: the Agility SDK probe reads
<dir>\D3D12Core.dllafter the VFS hooks are in, so on a drive letter a console mount names (G:,D:,S:) the read lands in the game folder. #1136 registers each candidate'sD3D12Core.dllas one of XCL's own paths before the hooks go in, the mechanism #49 and #331 use for the game folder and the shader cache. It coversXCL_D3D12_DIR,<exe dir>\D3D12and<exe dir>, and it registers the files rather than the folders, so anxcl.exeat a drive root doesn't take the whole drive from the console mount.AI use: Claude Code, Claude Opus 5.5 wrote this note.