[RX 7600 / RDNA 3] Crash (0xc0000005) at Frame 0 after root signature flag 0xc01 refused (0x80070057) #168

Open
opened 2026-11-26 03:37:04 +00:00 by github-bot · 7 comments
Owner

@⁠SirSilenoz on GitHub · 2026-11-25 18:24 UTC · original

Environment

  • OS: Windows 10 (10.0.19045)
  • CPU: AMD Ryzen 5 5600G
  • GPU: AMD Radeon RX 7600 8GB (RDNA 3)
  • Title / Build: 7952987A (930.048.020-vb_sub_story)

Description

The title reaches Game State: Game Init (Frame 0) and crashes with an unhandled access violation (0xc0000005 reading 0x68 with rax=0x0 / rcx=0x0) right after victory_gpu::pipeline::host refuses three vertex/pixel shader root signatures due to unsupported bit-flag 0xc01 (E_INVALIDARG / 0x80070057).

Relevant Log Output

WARN victory_gpu::pipeline::host: root signature: Unsupported bit-flag set (root signature flags c01).
WARN victory_gpu::pipeline::host: host root signature refused error=The parameter is incorrect. (0x80070057) shaders=[vertex dfafaf385b2f94e8, pixel 06295fb1d1aefb78]
WARN victory_gpu::pipeline::host: root signature: Unsupported bit-flag set (root signature flags c01).
WARN victory_gpu::pipeline::host: host root signature refused error=The parameter is incorrect. (0x80070057) shaders=[vertex 58d926085fca4999, pixel edc1cad8ffb79bc9]
WARN victory_gpu::pipeline::host: root signature: Unsupported bit-flag set (root signature flags c01).
WARN victory_gpu::pipeline::host: host root signature refused error=The parameter is incorrect. (0x80070057) shaders=[vertex 0602c2384acbb3b2, pixel a78d088fa55aa495]

VIctory: unhandled exception 0xc0000005 at victory-image-b99f876b74d4a77f.dll+0xb5a5f8 (read 0x68: nothing mapped there)
  rax 0x0 rbx 0x3 rcx 0x0 rdx 0x0
**@⁠SirSilenoz** on GitHub · 2026-11-25 18:24 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/issues/168) ### Environment - **OS:** Windows 10 (10.0.19045) - **CPU:** AMD Ryzen 5 5600G - **GPU:** AMD Radeon RX 7600 8GB (RDNA 3) - **Title / Build:** `7952987A` (`930.048.020-vb_sub_story`) ### Description The title reaches `Game State: Game Init` (Frame 0) and crashes with an unhandled access violation (`0xc0000005` reading `0x68` with `rax=0x0` / `rcx=0x0`) right after `victory_gpu::pipeline::host` refuses three vertex/pixel shader root signatures due to unsupported bit-flag `0xc01` (`E_INVALIDARG / 0x80070057`). ### Relevant Log Output ```text WARN victory_gpu::pipeline::host: root signature: Unsupported bit-flag set (root signature flags c01). WARN victory_gpu::pipeline::host: host root signature refused error=The parameter is incorrect. (0x80070057) shaders=[vertex dfafaf385b2f94e8, pixel 06295fb1d1aefb78] WARN victory_gpu::pipeline::host: root signature: Unsupported bit-flag set (root signature flags c01). WARN victory_gpu::pipeline::host: host root signature refused error=The parameter is incorrect. (0x80070057) shaders=[vertex 58d926085fca4999, pixel edc1cad8ffb79bc9] WARN victory_gpu::pipeline::host: root signature: Unsupported bit-flag set (root signature flags c01). WARN victory_gpu::pipeline::host: host root signature refused error=The parameter is incorrect. (0x80070057) shaders=[vertex 0602c2384acbb3b2, pixel a78d088fa55aa495] VIctory: unhandled exception 0xc0000005 at victory-image-b99f876b74d4a77f.dll+0xb5a5f8 (read 0x68: nothing mapped there) rax 0x0 rbx 0x3 rcx 0x0 rdx 0x0
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:37:04 +00:00
Author
Owner

@⁠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 flags c00/c01). Nothing draws, and the title then reads through the missing pipeline. The crash at victory-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 agility stages D3D12Core.dll from Microsoft's NuGet package into target\<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.

**@⁠lerapeurdu62280-debug** on GitHub · 2026-11-26 19:12 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/issues/168#issuecomment-7201314367) 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 flags `c00`/`c01`). Nothing draws, and the title then reads through the missing pipeline. The crash at `victory-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 agility` stages `D3D12Core.dll` from Microsoft's NuGet package into `target\<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.
Author
Owner

@⁠adrianmjim on GitHub · 2026-11-26 19:39 UTC · original

Some details to add to the comment above.

root_signature() in crates/victory-gpu/src/pipeline/host.rs serializes every host pipeline's root signature as version 1.1. The flags are CBV_SRV_UAV_HEAP_DIRECTLY_INDEXED | SAMPLER_HEAP_DIRECTLY_INDEXED (0x400 | 0x800), plus ALLOW_INPUT_ASSEMBLER_INPUT_LAYOUT for 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:

  • The serializer accepts each single flag bit up to 0x800, and it accepts 0xc01.
  • Each bit from 0x1000 up is refused with 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 agility and a new build with #44, victory config shows D3D12Core.dll (version 620). Results with it on Windows 10:

  • On #44, Arvi23 ran the game with it on Windows 10 19044 (RX 9070 XT). No root signatures were refused, and it reached the prologue without a crash.
  • HAL9000RELOADED, on 19045 with an RX 7900 XTX, saw the device come up on the Agility runtime with it, and SM 0x65 only on the in-box runtime without it.

About the access violation:

  • victory-image-<hash>.dll is 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.
  • The read at +0x68 goes through a pointer the function was handed, and that pointer was null. I haven't traced where it comes from.
  • On victory's side, a refused root signature is handled: the pipeline comes back empty, and every draw or dispatch that uses it is dropped. I found no host code that reads through the missing root signature.

There is one related gap:

  • The title imports D3D12SerializeVersionedRootSignature from d3d12_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).
  • If the in-box runtime refuses one of them, the title gets E_INVALIDARG and 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.
  • That could lead to a null read like yours, but I haven't shown that this is what happens.

I have a small local change, not pushed:

  • victory logs one error at device creation when the runtime refuses the directly indexed flags. It says that every pipeline will be refused, and why.
  • Refusals of the title's own root signatures are logged with their flags and the runtime's reason.

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.

**@⁠adrianmjim** on GitHub · 2026-11-26 19:39 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/issues/168#issuecomment-7201827689) Some details to add to the comment above. `root_signature()` in `crates/victory-gpu/src/pipeline/host.rs` serializes every host pipeline's root signature as version 1.1. The flags are `CBV_SRV_UAV_HEAP_DIRECTLY_INDEXED | SAMPLER_HEAP_DIRECTLY_INDEXED` (0x400 | 0x800), plus `ALLOW_INPUT_ASSEMBLER_INPUT_LAYOUT` for 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: - The serializer accepts each single flag bit up to 0x800, and it accepts 0xc01. - Each bit from 0x1000 up is refused with `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 agility` and a new build with #44, `victory config` shows `D3D12Core.dll (version 620)`. Results with it on Windows 10: - On #44, Arvi23 ran the game with it on Windows 10 19044 (RX 9070 XT). No root signatures were refused, and it reached the prologue without a crash. - HAL9000RELOADED, on 19045 with an RX 7900 XTX, saw the device come up on the Agility runtime with it, and `SM 0x65 only` on the in-box runtime without it. About the access violation: - `victory-image-<hash>.dll` is 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. - The read at +0x68 goes through a pointer the function was handed, and that pointer was null. I haven't traced where it comes from. - On victory's side, a refused root signature is handled: the pipeline comes back empty, and every draw or dispatch that uses it is dropped. I found no host code that reads through the missing root signature. There is one related gap: - The title imports `D3D12SerializeVersionedRootSignature` from `d3d12_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`). - If the in-box runtime refuses one of them, the title gets `E_INVALIDARG` and 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. - That could lead to a null read like yours, but I haven't shown that this is what happens. I have a small local change, not pushed: - `victory` logs one error at device creation when the runtime refuses the directly indexed flags. It says that every pipeline will be refused, and why. - Refusals of the title's own root signatures are logged with their flags and the runtime's reason. 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.
Author
Owner

@⁠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/c01 refused with the in-box runtime, and taken once the Agility runtime was loaded (#44, victory config showing 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.

**@⁠lerapeurdu62280-debug** on GitHub · 2026-11-26 19:41 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/issues/168#issuecomment-7201865535) Thanks @⁠adrianmjim, that fills in the serializer side well. It matches what I saw on Windows 10: `c00`/`c01` refused with the in-box runtime, and taken once the Agility runtime was loaded (#44, `victory config` showing 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.
Author
Owner

@⁠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, only victory-gpu: host.rs, pipeline/host.rs, root.rs).

What it adds:

  • At device creation. If the runtime's serializer refuses the directly indexed heap flags (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.
  • Title root signatures. When the host serializer refuses one of the title's own root signatures (through D3D12SerializeVersionedRootSignature), a warning host refused the title's root signature gives its hr, flags and the runtime's text. Before, the title just got E_INVALIDARG and no blob, silently.

What I'd expect on your machine:

  • In-box runtime, no cargo xtask agility: the device-creation error, and possibly host refused the title's root signature lines with flags 0xc01 or higher.
  • After cargo xtask agility and 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_know is the one to watch.

Not tested here: Windows 10 and the game.

**@⁠adrianmjim** on GitHub · 2026-11-26 19:46 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/issues/168#issuecomment-7201953729) @⁠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, only `victory-gpu`: `host.rs`, `pipeline/host.rs`, `root.rs`). What it adds: - **At device creation.** If the runtime's serializer refuses the directly indexed heap flags (`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. - **Title root signatures.** When the host serializer refuses one of the title's own root signatures (through `D3D12SerializeVersionedRootSignature`), a warning `host refused the title's root signature` gives its `hr`, `flags` and the runtime's text. Before, the title just got `E_INVALIDARG` and no blob, silently. What I'd expect on your machine: - **In-box runtime, no `cargo xtask agility`:** the device-creation error, and possibly `host refused the title's root signature` lines with flags `0xc01` or higher. - **After `cargo xtask agility` and 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_know` is the one to watch. Not tested here: Windows 10 and the game.
Author
Owner

@⁠lerapeurdu62280-debug on GitHub · 2026-11-26 19:53 UTC · original

@⁠adrianmjim tested 00003e2 on Windows 10 Pro 19045, AMD RX 6600 (Adrenalin 32.0.21045), debug build, no game files. Both of your expectations hold.

victory run needs the title, so to see the device-creation line I added a throwaway test, not pushed, that installs a tracing_subscriber and calls crate::host::host() once.

In-box runtime (your branch as is, so no Agility exports):

INFO victory_gpu::host: host adapter name="AMD Radeon RX 6600" vram_mb=8147
INFO victory_gpu::host: host D3D12 device ready
ERROR victory_gpu::host: the D3D12 runtime refuses directly indexed descriptor heaps (shader model 6.6), so every host pipeline will be refused; Windows 10's in-box runtime does this and needs the D3D12 Agility SDK runtime beside victory.exe why=Unsupported bit-flag set (root signature flags c00).
  • cargo test -p victory-gpu --lib -- root:: pipeline::host::: 7 passed, 0 failed, including the_runtime_refuses_flags_it_does_not_know.
  • Full victory-gpu lib: 114 passed, 1 failed. The failure is depth_bounds_control_a_title_draw, the expected one on this runtime; it fails on main too.

Agility runtime (#44 merged on top, cargo xtask agility, test binary rebuilt and checked to export D3D12SDKVersion/D3D12SDKPath):

  • The same three lines without the ERROR: device ready, nothing refused.
  • The 7 module tests: 7 passed.
  • Full victory-gpu lib: 115 passed, 1 failed. The failure was watch::tests::a_write_through_another_view_is_reported_at_the_guarded_one, which passed 3/3 alone; it is one of the known parallel-run watch:: flakes.

So the message fires exactly where it should and names the fix. I couldn't exercise the host refused the title's root signature warning: that needs the title's own D3D12SerializeVersionedRootSignature calls, so it needs the game.

AI-assisted: yes (Claude Code)

**@⁠lerapeurdu62280-debug** on GitHub · 2026-11-26 19:53 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/issues/168#issuecomment-7202071310) @⁠adrianmjim tested `00003e2` on **Windows 10 Pro 19045, AMD RX 6600** (Adrenalin 32.0.21045), debug build, no game files. Both of your expectations hold. `victory run` needs the title, so to see the device-creation line I added a throwaway test, not pushed, that installs a `tracing_subscriber` and calls `crate::host::host()` once. **In-box runtime** (your branch as is, so no Agility exports): ``` INFO victory_gpu::host: host adapter name="AMD Radeon RX 6600" vram_mb=8147 INFO victory_gpu::host: host D3D12 device ready ERROR victory_gpu::host: the D3D12 runtime refuses directly indexed descriptor heaps (shader model 6.6), so every host pipeline will be refused; Windows 10's in-box runtime does this and needs the D3D12 Agility SDK runtime beside victory.exe why=Unsupported bit-flag set (root signature flags c00). ``` - `cargo test -p victory-gpu --lib -- root:: pipeline::host::`: **7 passed, 0 failed**, including `the_runtime_refuses_flags_it_does_not_know`. - Full `victory-gpu` lib: 114 passed, 1 failed. The failure is `depth_bounds_control_a_title_draw`, the expected one on this runtime; it fails on `main` too. **Agility runtime** (#44 merged on top, `cargo xtask agility`, test binary rebuilt and checked to export `D3D12SDKVersion`/`D3D12SDKPath`): - The same three lines **without the ERROR**: device ready, nothing refused. - The 7 module tests: 7 passed. - Full `victory-gpu` lib: 115 passed, 1 failed. The failure was `watch::tests::a_write_through_another_view_is_reported_at_the_guarded_one`, which passed 3/3 alone; it is one of the known parallel-run `watch::` flakes. So the message fires exactly where it should and names the fix. I couldn't exercise the `host refused the title's root signature` warning: that needs the title's own `D3D12SerializeVersionedRootSignature` calls, so it needs the game. AI-assisted: yes (Claude Code)
Author
Owner

@⁠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 on main).

**@⁠adrianmjim** on GitHub · 2026-11-26 19:54 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/issues/168#issuecomment-7202080465) 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 on `main`).
Author
Owner

@⁠adrianmjim on GitHub · 2026-11-26 19:56 UTC · original

Opened as #317 (same two commits, on main 4f62c2a), with your Windows 10 results in the description. Thanks again.

**@⁠adrianmjim** on GitHub · 2026-11-26 19:56 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/issues/168#issuecomment-7202126292) Opened as #317 (same two commits, on `main` `4f62c2a`), with your Windows 10 results in the description. Thanks again.
This discussion has been locked. Commenting is limited to contributors.
No description provided.