[RX 7600 / RDNA 3] Crash (0xc0000005) at Frame 0 after root signature flag 0xc01 refused (0x80070057) #168
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Belobug--VIctory-Belobug-AMD#168
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?
@SirSilenoz on GitHub · 2026-11-25 18:24 UTC · original
Environment
7952987A(930.048.020-vb_sub_story)Description
The title reaches
Game State: Game Init(Frame 0) and crashes with an unhandled access violation (0xc0000005reading0x68withrax=0x0/rcx=0x0) right aftervictory_gpu::pipeline::hostrefuses three vertex/pixel shader root signatures due to unsupported bit-flag0xc01(E_INVALIDARG / 0x80070057).Relevant Log Output
@lerapeurdu62280-debug on GitHub · 2026-11-26 19:12 UTC · original
This is Windows 10's own D3D12 runtime, not the card. On 10.0.19045 it stops at shader model 6.5, and it refuses the root signatures every translated pipeline uses: they index the descriptor heaps directly (
CBV_SRV_UAV_HEAP_DIRECTLY_INDEXED | SAMPLER_HEAP_DIRECTLY_INDEXED, 0x400 | 0x800, logged as flagsc00/c01). Nothing draws, and the title then reads through the missing pipeline. The crash atvictory-image-…+0xb5a5f8(read 0x68) is the same one avatarmanz/VIctory-7900XTX#165 reports on an RX 7800 XT under Windows 10.I measured the same refusal here on Windows 10 Pro 19045 with an RX 6600 (RDNA 2): the runtime reports a highest shader model of 6.5 and no
ID3D12Device10. With the Agility SDK 1.620.2 loaded, it reports 6.6, and the root signatures are taken.The fix in this repository is #44 (load the D3D12 Agility SDK on Windows 10).
cargo xtask agilitystagesD3D12Core.dllfrom Microsoft's NuGet package intotarget\<profile>\D3D12\, and a build then exports what Windows needs to load it. Until it lands, merging #44 locally (or running on Windows 11) should get you past Frame 0.@adrianmjim on GitHub · 2026-11-26 19:39 UTC · original
Some details to add to the comment above.
root_signature()incrates/victory-gpu/src/pipeline/host.rsserializes every host pipeline's root signature as version 1.1. The flags areCBV_SRV_UAV_HEAP_DIRECTLY_INDEXED | SAMPLER_HEAP_DIRECTLY_INDEXED(0x400 | 0x800), plusALLOW_INPUT_ASSEMBLER_INPUT_LAYOUTfor graphics, which makes 0xc01. The runtime's serializer does not look at the card, and it refuses flags it doesn't know with the text in your log.What I checked on an RX 7900 XT with Windows 11 26300's in-box runtime:
Unsupported bit-flag set (root signature flags 1000).and so on. That is the same message as yours.I can't run Windows 10 here.
After
cargo xtask agilityand a new build with #44,victory configshowsD3D12Core.dll (version 620). Results with it on Windows 10:SM 0x65 onlyon the in-box runtime without it.About the access violation:
victory-image-<hash>.dllis the recompiled title, and the hash in your log matches the build I have here. So the faulting code is the game's, not victory's Rust.There is one related gap:
D3D12SerializeVersionedRootSignaturefromd3d12_xs.dll, so it serializes its own root signatures at runtime. victory forwards that call to the same host serializer (crates/victory-gpu/src/root.rs).E_INVALIDARGand no blob, and nothing is logged. The console's serializer wouldn't fail on those flags, so the title may not check for that failure.I have a small local change, not pushed:
victorylogs one error at device creation when the runtime refuses the directly indexed flags. It says that every pipeline will be refused, and why.Its tests pass on this machine (7 of 7 in the touched modules). I haven't tested it on Windows 10 or in the game.
If you can, try #44 first. If it still crashes, a log from a run without #44 on this change would show whether the title's own root signatures were refused before the crash. I can open a PR if that's useful.
@lerapeurdu62280-debug on GitHub · 2026-11-26 19:41 UTC · original
Thanks @adrianmjim, that fills in the serializer side well. It matches what I saw on Windows 10:
c00/c01refused with the in-box runtime, and taken once the Agility runtime was loaded (#44,victory configshowing version 620).I can run Windows 10 here (Pro 19045, RX 6600, no game files). If you push the logging change as a PR or a branch, I'll build it on the in-box runtime and with
cargo xtask agility, and post what the device-creation error says in both cases, plus your module tests. That covers the half you can't run.@adrianmjim on GitHub · 2026-11-26 19:46 UTC · original
@lerapeurdu62280-debug thanks, that would be very useful. Here it is as a branch, on current
main(4f62c2a): https://github.com/adrianmjim/VIctory-Belobug-AMD/tree/gpu/root-sig-refused (00003e2, two commits, onlyvictory-gpu:host.rs,pipeline/host.rs,root.rs).What it adds:
0x400 | 0x800), one error says so:the D3D12 runtime refuses directly indexed descriptor heaps (shader model 6.6), so every host pipeline will be refused; ..., with the runtime's reason. Before, this only showed as one refusal per pipeline.D3D12SerializeVersionedRootSignature), a warninghost refused the title's root signaturegives itshr,flagsand the runtime's text. Before, the title just gotE_INVALIDARGand no blob, silently.What I'd expect on your machine:
cargo xtask agility: the device-creation error, and possiblyhost refused the title's root signaturelines with flags0xc01or higher.cargo xtask agilityand a rebuild: neither line.The tests of the touched modules (
cargo test -p victory-gpu --lib -- root:: pipeline::host::) pass here: 7 of 7, on Windows 11's in-box runtime. On Windows 10's in-box runtime,the_runtime_refuses_flags_it_does_not_knowis the one to watch.Not tested here: Windows 10 and the game.
@lerapeurdu62280-debug on GitHub · 2026-11-26 19:53 UTC · original
@adrianmjim tested
00003e2on Windows 10 Pro 19045, AMD RX 6600 (Adrenalin 32.0.21045), debug build, no game files. Both of your expectations hold.victory runneeds the title, so to see the device-creation line I added a throwaway test, not pushed, that installs atracing_subscriberand callscrate::host::host()once.In-box runtime (your branch as is, so no Agility exports):
cargo test -p victory-gpu --lib -- root:: pipeline::host::: 7 passed, 0 failed, includingthe_runtime_refuses_flags_it_does_not_know.victory-gpulib: 114 passed, 1 failed. The failure isdepth_bounds_control_a_title_draw, the expected one on this runtime; it fails onmaintoo.Agility runtime (#44 merged on top,
cargo xtask agility, test binary rebuilt and checked to exportD3D12SDKVersion/D3D12SDKPath):victory-gpulib: 115 passed, 1 failed. The failure waswatch::tests::a_write_through_another_view_is_reported_at_the_guarded_one, which passed 3/3 alone; it is one of the known parallel-runwatch::flakes.So the message fires exactly where it should and names the fix. I couldn't exercise the
host refused the title's root signaturewarning: that needs the title's ownD3D12SerializeVersionedRootSignaturecalls, so it needs the game.AI-assisted: yes (Claude Code)
@adrianmjim on GitHub · 2026-11-26 19:54 UTC · original
Thanks, that's exactly the half I couldn't run: the error fires on Windows 10's in-box runtime with the runtime's own reason (
root signature flags c00) and is gone with the Agility runtime, and the module tests pass on both. Agreed that the title root-signature warning needs the game.The one
watch::failure in your Agility run,a_write_through_another_view_is_reported_at_the_guarded_one, is one of the three tests from #174, a stale-pin race between tests in the same binary; #175 fixes it (0 of 140 full runs here, against 19 of 139 onmain).@adrianmjim on GitHub · 2026-11-26 19:56 UTC · original
Opened as #317 (same two commits, on
main4f62c2a), with your Windows 10 results in the description. Thanks again.