Windows 10: boot dies with 0xC0000005 at victory-image+0xb5a5f8 — inbox d3d12.dll rejects root signature 1.1 flags (0x80070057) #3530
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory#3530
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?
@NyaNyaHua4290 on GitHub · 2026-11-27 14:50 UTC · original
Windows 10: boot dies with
0xC0000005atvictory-image+0xb5a5f8— the inboxd3d12.dllrejects our root signature 1.1 flags (0x80070057)TL;DR
On Windows 10 the title boots, renders the first-boot screens for about a second, then faults in title code at
victory-image-<hash>.dll+0xb5a5f8(read 0x68, i.e. a null dereference). The cause is upstream of the title: thelayer builds root signatures with the root-signature-1.1 flags below, Windows 10's inbox
d3d12.dllanswersE_INVALIDARG, six pipelines fail to create, and the title dereferences a pipeline object that was never made.Shipping the D3D12 Agility SDK (
D3D12Core.dll+ the two exports) fixes it completely. Nothing else changed.Environment
game_scarlett_master.exe, 120,181,760 bytesb99f876b74d4a77f03af5f878223b27bd647b5c35a79d5decd9f716504239e93(matchesKnownBuildincrates/victory-game/src/lib.rs), sha256e95020b2fa4a721db3df59fdecf75621730ac559d8835252f6c3b658d5a08993Reproduced on three trees, all at the same title RVA:
Marvisak/VIctory63bcca43c6a00a758510398fa43096ce7e4f7df0whiteh4cker-tr/VIctory_sm86b079c378c5556b5eefc03acd92f49b570aeee0aeYaekai/victory-scarlett-3070b4e351cSymptom
Boot/legal/language screens present (~256 frames), then:
root signature: Unsupported bit-flag setandhost root signature refusedappear 470 times in one boot(once per pipeline the layer tries to make), so essentially every pipeline of the first frame fails.
Why
crates/victory-gpu/src/pipeline/host.rsbuilds a versioned root signature (1.1) with:Those flags (with
D3D12_ROOT_SIGNATURE_DESC1and Shader Model 6.6) are only understood by a D3D12 runtime thatships them. The log names the exact combination:
0xC01=ALLOW_INPUT_ASSEMBLER_INPUT_LAYOUT (0x1)|CBV_SRV_UAV_HEAP_DIRECTLY_INDEXED (0x200)|SAMPLER_HEAP_DIRECTLY_INDEXED (0x800)— the two directly-indexed flags are precisely the ones Windows 10 lacks,and the layer's own "unsupported bit-flag" warning fires on the same values.
Windows 11's inbox
d3d12.dlldoes; Windows 10's does not — it returnsE_INVALIDARG (0x80070057), exactly what the log says. With Agility SDK present the same root signatures are accepted, whichis why the same build runs on Windows 11.
Fix: ship the Agility SDK
The Windows D3D12 loader looks for
D3D12SDKVersionandD3D12SDKPathin the main executable's exporttable; when it finds them it loads
D3D12Core.dllfrom that folder instead of the inbox runtime.1.
apps/victory/src/sdk.rs(new)2.
apps/victory/build.rs(new)3.
apps/victory/src/main.rs4.
D3D12Core.dllbesidevictory.exeCheck with
dumpbin /exports target\release\victory.exe— bothD3D12SDKPathandD3D12SDKVersionmust belisted.
Result
root signature refusedUnsupported bit-flag set0xC0000005after ~1 sWith the fix (plus a
victory.exe warmpass) the title runs at 20–24 fps at 2,000–3,000 draws on this machine(RTX 3060 Laptop 6 GiB, Series S profile, DLSS performance), 10–13 fps at 5,500+ draws (prison).
Notes / questions
cargo xtask agilitytask that fetches the package (the wayrorodev6/Neptune forks do it) would makethis a one-liner for users; I am happy to send a PR with the three files above if you want it.
VICTORY_FRAMEGENthroughdlssg_for_sm86on Ampere is a net loss: rendered frametime goes from ~45 ms to ~280 ms, presented fps 6–7 vs 11–13 without it. So FG is not a workaround for
6 GiB cards — worth a note in the docs.
VICTORY_TEXTURE_ROOM_PERCENT=94fills the card to 5.8/6 GiB and the session spends 25.9 s in 93,400"wait for card memory to be mapped" waits; dropping it to 78–80 helped here.
Log excerpt (reproduced on the unpatched build)
crashes.log(one record; there is a second from a worker thread with the same+0xb5a5f8):Layer log, the same boot (470 of each line):
crashes.log