v0.2.0 does not start on Windows 10: the packaged engine does not opt into the Agility SDK, so 435 root signatures are refused and the title dies at +0xb5a5f8 #24

Open
opened 2026-11-27 05:54:02 +00:00 by lukinhasnojento · 1 comment
lukinhasnojento commented 2026-11-27 05:54:02 +00:00 (Migrated from github.com)
Contributor

Imported from stellarr-studio/kelvaroq. Originally posted by lukinhasnojento on 2026-11-27T05:54:02Z.


The v0.2.0 package does not start on Windows 10, and the cause is in the build, not in the title: the packaged engine does not opt into the Agility SDK, so the OS d3d12.dll provides the core, and that core rejects the root-signature flags the console uses.

What happens here

  • Windows 10 19045, RTX 4060 8 GB (driver 32.0.16.2101), Ryzen 5 5500, 24 GB.
  • kelvaroq-cli.exe play <exe> → the engine exits 0xc0000005 after about 7 s. The title's own crash context is read 0x68 at +0xb5a5f8.
  • Immediately before, 435 lines of:
    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=... (0x80070057) shaders=[vertex ..., pixel ...]
    
  • Same result with --experimental-render, and same result with VICTORY_WAVE_WIDE=1 VICTORY_WAVE64_PAIRED=1.

The last line of that message is not your validation: pipeline/host.rs prints the error blob D3D12SerializeVersionedRootSignature returns. 0xc01 is ALLOW_INPUT_ASSEMBLER_INPUT_LAYOUT (0x1) | CBV_SRV_UAV_HEAP_DIRECTLY_INDEXED (0x400) | SAMPLER_HEAP_DIRECTLY_INDEXED (0x800), and the last two exist only in the Agility D3D12Core, not in the core that ships with Windows 10.

Why the package hits it

native/kelvaroq-engine.exe exports neither D3D12SDKVersion nor D3D12SDKPath; I checked all four executables and the DLL in the package and none of them carries the names. Without those exports the loader uses the system core, so on Windows 11 (your test machines) it works and on Windows 10 it does not. Copying D3D12\D3D12Core.dll beside the engine does not help on its own for the same reason.

Verified fix

From sources/native.zip I added the two exports the upstream app carries to apps/victory/src/main.rs:

#[unsafe(no_mangle)] #[allow(non_upper_case_globals)] pub static D3D12SDKVersion: u32 = 620;
#[unsafe(no_mangle)] #[allow(non_upper_case_globals)] pub static D3D12SDKPath: &[u8; 7] = b"D3D12\\\0";
#[cfg(target_env = "msvc")] #[used] #[unsafe(link_section = ".drectve")]
static D3D12_SDK_EXPORTS: [u8; 56] = *b" /EXPORT:D3D12SDKVersion,DATA /EXPORT:D3D12SDKPath,DATA ";

built it (cargo build --release -p victory, 91 s), put D3D12\D3D12Core.dll 1.620.2 next to the binary, and ran it. Result: 0 root signature refusals (was 435), no early crash, and the title reaches the world.

What the fixed build then does

It runs 118 s and ends at +0x23cf683 (write 0x0), the same address the engine reports on the other trees, preceded by a single 30.1 s silent stall at t = 87.6 s:

... 110-150 draws/frame telemetry ...
   <30.1 s with no log line>
BacktraceBreakpad: added upload_file_minidump

That is the engine's own GPU-location-signature watchdog. The fatal stub at +0x23cf623 builds a 13-byte buffer and adds (12 - i) to byte i, which decodes to "GPU Loc Sig"; the loop it belongs to renews its budget when a single poll spans more than 2.0 s and then counts 30 polls without progress (ebp = 0x1e), with the two floats in .rdata at 0x6159bd4 (2.0) and 0x6159e20 (300.0). So on this 8 GB card the watchdog arms after one >2 s wait and fires 30 s later.

Asks

  1. Is shipping the Agility opt-in and D3D12\D3D12Core.dll in the ZIP intended? That alone takes the package from "7 s crash" to "reaches the world" on Windows 10.
  2. On your 8 GB measurements, does the run also show a single multi-second stall before the +0x23cf683 write, or does your unified memory path avoid the stalls that arm the watchdog?

No game content, no assets and no dumps are attached; the numbers above are RVAs and log lines.

<!-- greyfinch-sync:stellarr-studio/kelvaroq:issue:6640879709 --> Imported from [stellarr-studio/kelvaroq](https://github.com/stellarr-studio/kelvaroq/issues/24). Originally posted by [lukinhasnojento](https://github.com/lukinhasnojento) on 2026-11-27T05:54:02Z. --- The v0.2.0 package does not start on Windows 10, and the cause is in the build, not in the title: the packaged engine does not opt into the Agility SDK, so the OS `d3d12.dll` provides the core, and that core rejects the root-signature flags the console uses. ## What happens here - Windows 10 19045, RTX 4060 8 GB (driver 32.0.16.2101), Ryzen 5 5500, 24 GB. - `kelvaroq-cli.exe play <exe>` → the engine exits `0xc0000005` after about 7 s. The title's own crash context is `read 0x68` at `+0xb5a5f8`. - Immediately before, 435 lines of: ``` 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=... (0x80070057) shaders=[vertex ..., pixel ...] ``` - Same result with `--experimental-render`, and same result with `VICTORY_WAVE_WIDE=1 VICTORY_WAVE64_PAIRED=1`. The last line of that message is not your validation: `pipeline/host.rs` prints the error blob `D3D12SerializeVersionedRootSignature` returns. `0xc01` is `ALLOW_INPUT_ASSEMBLER_INPUT_LAYOUT` (0x1) | `CBV_SRV_UAV_HEAP_DIRECTLY_INDEXED` (0x400) | `SAMPLER_HEAP_DIRECTLY_INDEXED` (0x800), and the last two exist only in the Agility `D3D12Core`, not in the core that ships with Windows 10. ## Why the package hits it `native/kelvaroq-engine.exe` exports neither `D3D12SDKVersion` nor `D3D12SDKPath`; I checked all four executables and the DLL in the package and none of them carries the names. Without those exports the loader uses the system core, so on Windows 11 (your test machines) it works and on Windows 10 it does not. Copying `D3D12\D3D12Core.dll` beside the engine does not help on its own for the same reason. ## Verified fix From `sources/native.zip` I added the two exports the upstream app carries to `apps/victory/src/main.rs`: ```rust #[unsafe(no_mangle)] #[allow(non_upper_case_globals)] pub static D3D12SDKVersion: u32 = 620; #[unsafe(no_mangle)] #[allow(non_upper_case_globals)] pub static D3D12SDKPath: &[u8; 7] = b"D3D12\\\0"; #[cfg(target_env = "msvc")] #[used] #[unsafe(link_section = ".drectve")] static D3D12_SDK_EXPORTS: [u8; 56] = *b" /EXPORT:D3D12SDKVersion,DATA /EXPORT:D3D12SDKPath,DATA "; ``` built it (`cargo build --release -p victory`, 91 s), put `D3D12\D3D12Core.dll` 1.620.2 next to the binary, and ran it. Result: **0 root signature refusals** (was 435), no early crash, and the title reaches the world. ## What the fixed build then does It runs 118 s and ends at `+0x23cf683` (`write 0x0`), the same address the engine reports on the other trees, preceded by a single 30.1 s silent stall at t = 87.6 s: ``` ... 110-150 draws/frame telemetry ... <30.1 s with no log line> BacktraceBreakpad: added upload_file_minidump ``` That is the engine's own GPU-location-signature watchdog. The fatal stub at `+0x23cf623` builds a 13-byte buffer and adds `(12 - i)` to byte `i`, which decodes to `"GPU Loc Sig"`; the loop it belongs to renews its budget when a single poll spans more than 2.0 s and then counts 30 polls without progress (`ebp = 0x1e`), with the two floats in `.rdata` at `0x6159bd4` (2.0) and `0x6159e20` (300.0). So on this 8 GB card the watchdog arms after one >2 s wait and fires 30 s later. ## Asks 1. Is shipping the Agility opt-in and `D3D12\D3D12Core.dll` in the ZIP intended? That alone takes the package from "7 s crash" to "reaches the world" on Windows 10. 2. On your 8 GB measurements, does the run also show a single multi-second stall before the `+0x23cf683` write, or does your unified memory path avoid the stalls that arm the watchdog? No game content, no assets and no dumps are attached; the numbers above are RVAs and log lines.
lukinhasnojento commented 2026-11-27 12:52:18 +00:00 (Migrated from github.com)
Author
Contributor

Imported from stellarr-studio/kelvaroq. Originally posted by lukinhasnojento on 2026-11-27T12:52:18Z.


A confirmation that narrows the report: the missing opt-in is not a kelvaroq-render problem, and the flags are not the title's.

I rebuilt upstream fxceless/victory-fork 9a9091d (the tree your native/build.json pins, plus its later commits) twice on the same Windows 10 19045 machine:

build D3D12 core result
with D3D12SDKVersion/D3D12SDKPath + D3D12\D3D12Core.dll 1.620.2 Agility 0 root signatures refused
without the exports system d3d12.dll 435 refused, +0xb5a5f8 (read 0x68)
with the exports, core folder removed — 0x887e0003 DXGI_ERROR_SDK_COMPONENT_MISSING, C++ exception on frame 0

So upstream reproduces your package's failure exactly, and the flags come from the runtime, not from the game: 0xc01 is ALLOW_INPUT_ASSEMBLER_INPUT_LAYOUT (0x1) plus CBV_SRV_UAV_HEAP_DIRECTLY_INDEXED (0x400) and SAMPLER_HEAP_DIRECTLY_INDEXED (0x800), and the last two are set unconditionally in create_root_signature because the translated shaders index descriptor heaps directly. A Windows 10 core predates them, so every root signature fails, and the title then dereferences the pipeline it never got.

On Windows 11 the system core accepts them, which is why the package works there and not here. Shipping the two exports and D3D12\D3D12Core.dll is the whole fix on Windows 10.

No game content in this comment: addresses, flag values and log counts only.

<!-- greyfinch-sync:stellarr-studio/kelvaroq:comment:7218775159 --> Imported from [stellarr-studio/kelvaroq](https://github.com/stellarr-studio/kelvaroq/issues/24#issuecomment-7218775159). Originally posted by [lukinhasnojento](https://github.com/lukinhasnojento) on 2026-11-27T12:52:18Z. --- A confirmation that narrows the report: the missing opt-in is not a kelvaroq-render problem, and the flags are not the title's. I rebuilt upstream `fxceless/victory-fork` `9a9091d` (the tree your `native/build.json` pins, plus its later commits) twice on the same Windows 10 19045 machine: | build | D3D12 core | result | |---|---|---| | with `D3D12SDKVersion`/`D3D12SDKPath` + `D3D12\D3D12Core.dll` 1.620.2 | Agility | 0 root signatures refused | | without the exports | system `d3d12.dll` | 435 refused, `+0xb5a5f8` (`read 0x68`) | | with the exports, core folder removed | — | `0x887e0003` `DXGI_ERROR_SDK_COMPONENT_MISSING`, C++ exception on frame 0 | So upstream reproduces your package's failure exactly, and the flags come from the runtime, not from the game: `0xc01` is `ALLOW_INPUT_ASSEMBLER_INPUT_LAYOUT` (0x1) plus `CBV_SRV_UAV_HEAP_DIRECTLY_INDEXED` (0x400) and `SAMPLER_HEAP_DIRECTLY_INDEXED` (0x800), and the last two are set unconditionally in `create_root_signature` because the translated shaders index descriptor heaps directly. A Windows 10 core predates them, so every root signature fails, and the title then dereferences the pipeline it never got. On Windows 11 the system core accepts them, which is why the package works there and not here. Shipping the two exports and `D3D12\D3D12Core.dll` is the whole fix on Windows 10. No game content in this comment: addresses, flag values and log counts only.
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
stellarr-studio/kelvaroq#24
No description provided.