Crash 0xc0000005 at victory-image+0xb5a5f8 on RTX 3050 6 GB, 8 GB RAM #873

Open
opened 2026-11-25 11:31:03 +00:00 by ImZenitsu · 2 comments
ImZenitsu commented 2026-11-25 11:31:03 +00:00 (Migrated from github.com)
Contributor

Imported from fxceless/victory-fork. Originally posted by ImZenitsu on 2026-11-25T11:31:03Z.


Setup:

  • Windows 10 x64
  • NVIDIA GeForce RTX 3050 6 GB
  • 8 GB system RAM
  • Game version 930.048.020 (Series X, ROW, US)
  • Built with: cargo build --release -p victory

Command:
.\target\release\victory.exe run "" --execute
(with VICTORY_CACHE_DIR and VICTORY_DATA_DIR set)

Result:
The window reaches the menus and shows frame stats (about 25 fps), then crashes:
VIctory: unhandled exception 0xc0000005 at victory-image-b99f876b74d4a77f.dll+0xb5a5f8 (read 0x68: nothing mapped there)

Tried:

  • Freeing RAM (memory use dropped from 71% to 62%), still crashes
  • VICTORY_D3D12_DRED=1, no GPU failure reported
  • VICTORY_D3D12_AGILITY pointing to Agility SDK 1.620.2 (D3D12Core.dll), still crashes at the same address

Question: Is this crash expected on 6 GB / 8 GB systems, and is there a setting that avoids it?

<!-- greyfinch-sync:fxceless/victory-fork:issue:6603499627 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/issues/874). Originally posted by [ImZenitsu](https://github.com/ImZenitsu) on 2026-11-25T11:31:03Z. --- Setup: - Windows 10 x64 - NVIDIA GeForce RTX 3050 6 GB - 8 GB system RAM - Game version 930.048.020 (Series X, ROW, US) - Built with: cargo build --release -p victory Command: .\target\release\victory.exe run "<game exe>" --execute (with VICTORY_CACHE_DIR and VICTORY_DATA_DIR set) Result: The window reaches the menus and shows frame stats (about 25 fps), then crashes: VIctory: unhandled exception 0xc0000005 at victory-image-b99f876b74d4a77f.dll+0xb5a5f8 (read 0x68: nothing mapped there) Tried: - Freeing RAM (memory use dropped from 71% to 62%), still crashes - VICTORY_D3D12_DRED=1, no GPU failure reported - VICTORY_D3D12_AGILITY pointing to Agility SDK 1.620.2 (D3D12Core.dll), still crashes at the same address Question: Is this crash expected on 6 GB / 8 GB systems, and is there a setting that avoids it?
gangganghaofeifange commented 2026-11-27 02:53:54 +00:00 (Migrated from github.com)
Author
Contributor

Imported from fxceless/victory-fork. Originally posted by gangganghaofeifange on 2026-11-27T02:53:54Z.


On the VRAM part of the question (4 GB card, measured):

GTX 1650 SUPER 4 GB (Turing, 32-lane), i7-10700, 16 GB RAM, Win10 22H2 19045.6466, driver 32.0.15.8115, built from 81d54b0. Same stop: +0xb5a5f8 (read 0x68), 15-50 s in, 0 draws/frame.

Counters sampled every 2 s while the run was alive (\GPU Process Memory(*)\Dedicated Usage and Shared Usage):

at the moment of the crash MB
Dedicated usage, peak 237 (DXGI budget reported: 3340)
Shared usage, peak 201
Process working set ~1400

So the "is 6 GB / 8 GB enough" part can be closed: the title never gets past roughly 240 MB of VRAM (7 % of budget) before it dies. Freeing system RAM or leaning on shared video memory cannot move this - it is the Agility path, as noted above.

One note for anyone attempting the naive workaround: exporting D3D12SDKVersion / D3D12SDKPath as data symbols and dropping D3D12Core\D3D12Core.dll beside the exe does not get there either. Versions 1.600.10, 1.614.1 and 1.619.0 all die with 0xC0000142 (STATUS_DLL_INIT_FAILED) before the first log line, because victory.exe statically imports d3d12.dll (dumpbin /dependents), so the in-box loader runs the SDK handshake during process init.

<!-- greyfinch-sync:fxceless/victory-fork:comment:7208527782 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/issues/874#issuecomment-7208527782). Originally posted by [gangganghaofeifange](https://github.com/gangganghaofeifange) on 2026-11-27T02:53:54Z. --- **On the VRAM part of the question (4 GB card, measured):** GTX 1650 SUPER 4 GB (Turing, 32-lane), i7-10700, 16 GB RAM, Win10 22H2 19045.6466, driver 32.0.15.8115, built from `81d54b0`. Same stop: `+0xb5a5f8 (read 0x68)`, 15-50 s in, `0 draws/frame`. Counters sampled every 2 s while the run was alive (`\GPU Process Memory(*)\Dedicated Usage` and `Shared Usage`): | at the moment of the crash | MB | |---|---| | Dedicated usage, peak | **237** (DXGI budget reported: 3340) | | Shared usage, peak | 201 | | Process working set | ~1400 | So the "is 6 GB / 8 GB enough" part can be closed: the title never gets past roughly **240 MB of VRAM** (7 % of budget) before it dies. Freeing system RAM or leaning on shared video memory cannot move this - it is the Agility path, as noted above. One note for anyone attempting the naive workaround: exporting `D3D12SDKVersion` / `D3D12SDKPath` as data symbols and dropping `D3D12Core\D3D12Core.dll` beside the exe does not get there either. Versions 1.600.10, 1.614.1 and 1.619.0 all die with `0xC0000142` (STATUS_DLL_INIT_FAILED) before the first log line, because `victory.exe` statically imports `d3d12.dll` (`dumpbin /dependents`), so the in-box loader runs the SDK handshake during process init.
Corus9 commented 2026-11-28 21:22:10 +00:00 (Migrated from github.com)
Author
Contributor

Imported from fxceless/victory-fork. Originally posted by Corus9 on 2026-11-28T21:22:10Z.


Cause: this Windows' own D3D12 refuses the bindless root-signature flags, so every pipeline is dropped and the title then reads a null at +0xb5a5f8

Reproduced on main at 368967f (nothing local but the fix below), same fault as in the report:

  • Windows 10 Home 22H2, build 19045.6466, system d3d12.dll 10.0.19041.5794
  • RTX 2060 6 GB, driver 591.59, i5-6400 (4C/4T), 24 GB RAM
  • title 1.0.2.1, exe blake3 b99f876b74d4a77f03af5f878223b27bd647b5c35a79d5decd9f716504239e93, Game State: Game Init

0xc0000005 at victory-image-…dll+0xb5a5f8 (read 0x68), rax 0, 9–11 s after launch. It is the same with run --execute and with play, with --console series-x and series-s, at 720p and at 1080→1440, with 5.7 GB and with 22.4 GB of free commit, and with the debug layer on. Not memory, not the profile, not the resolution.

What the log says before it, every time:

WARN victory_gpu::pipeline::host: root signature: Unsupported bit-flag set (root signature flags c00).
WARN victory_gpu::pipeline::host: host root signature refused error=The parameter is incorrect. (0x80070057) shaders=[compute 052a2316a03b9ba1]

Eight of those in 11 s, and every presented frame reads drawn=0 (frame=128 draws=192 drawn=0): no draw reaches the card, and then the title dereferences a null.

The message is the runtime's, not ours. A 60-line probe that calls D3D12SerializeVersionedRootSignature with a one-parameter description shows this machine's serializer rejects both heap-directly-indexed flags, on 1.0 and on 1.1:

version=0x1 flags=0x1   -> true
version=0x1 flags=0x400 -> false  "Unsupported bit-flag set (root signature flags 400)."
version=0x1 flags=0x800 -> false  "Unsupported bit-flag set (root signature flags 800)."
version=0x2 flags=0xc00 -> false  "Unsupported bit-flag set (root signature flags c00)."
version=0x2 flags=0xc01 -> false  "Unsupported bit-flag set (root signature flags c01)."

root_signature() (pipeline/host.rs) sets both flags on every description and returns None when serialization fails, so each of those pipelines is dropped.

Fix that works here: carry the D3D12 Agility SDK (1.620.2, D3D12Core.dll from NuGet Microsoft.Direct3D.D3D12) beside the exe and export both names. D3D12SDKVersion alone is not enough — with only that one exported the process dies at load with 0xC0000142 for every SDK version tried (4, 600, 606, 610, 614, 620), with or without the DLL beside it. Adding D3D12SDKPath makes it start:

#[unsafe(no_mangle)] pub static D3D12SDKVersion: u32 = 620;
static SDK_PATH: [u8; 2] = *b".\0";
#[repr(transparent)] pub struct PathPtr(*const c_char);
unsafe impl Sync for PathPtr {}
#[unsafe(no_mangle)] pub static D3D12SDKPath: PathPtr = PathPtr(SDK_PATH.as_ptr() as *const c_char);

plus cargo:rustc-link-arg=/EXPORT:D3D12SDKVersion,data and /EXPORT:D3D12SDKPath,data from a build script.

Same command again (play … --series-s --dlss off --no-framegen-ready --set VICTORY_BVH_BUILDER=0), now with Agility 1.620.2:

  • Unsupported bit-flag set: 0; host root signature refused: 0
  • 16,384 frames presented in 150 s, stopped by me, no crash
  • draws now run: frame=1024 draws=512 drawn=512, 60.0 fps / 16.7 ms (14 draws a frame at the boot screen — that black boot is #1081, not this)

Unchanged after the fix, on this setup: 29× a pipeline creation method that is not implemented (slots 0x1c8 and 0x218), one host view heap capped at 1000000; views past it read a null, and the four emulated console instructions (Clwb, Clzero, Monitorx, Mwaitx).

For the README's Windows 10 claim it may matter more generally: Windows 10's system runtime also has no shader model 6.6 and no mesh shaders, so an Agility SDK build looks like the condition for running on Windows 10 at all, not just for this crash.

<!-- greyfinch-sync:fxceless/victory-fork:comment:7245968473 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/issues/874#issuecomment-7245968473). Originally posted by [Corus9](https://github.com/Corus9) on 2026-11-28T21:22:10Z. --- **Cause: this Windows' own D3D12 refuses the bindless root-signature flags, so every pipeline is dropped and the title then reads a null at `+0xb5a5f8`** Reproduced on `main` at `368967f` (nothing local but the fix below), same fault as in the report: - Windows 10 Home 22H2, build 19045.6466, system `d3d12.dll` **10.0.19041.5794** - RTX 2060 6 GB, driver 591.59, i5-6400 (4C/4T), 24 GB RAM - title 1.0.2.1, exe blake3 `b99f876b74d4a77f03af5f878223b27bd647b5c35a79d5decd9f716504239e93`, `Game State: Game Init` `0xc0000005 at victory-image-…dll+0xb5a5f8 (read 0x68)`, `rax 0`, 9–11 s after launch. It is the same with `run --execute` and with `play`, with `--console series-x` and `series-s`, at 720p and at 1080→1440, with 5.7 GB and with 22.4 GB of free commit, and with the debug layer on. Not memory, not the profile, not the resolution. What the log says before it, every time: ``` WARN victory_gpu::pipeline::host: root signature: Unsupported bit-flag set (root signature flags c00). WARN victory_gpu::pipeline::host: host root signature refused error=The parameter is incorrect. (0x80070057) shaders=[compute 052a2316a03b9ba1] ``` Eight of those in 11 s, and every presented frame reads `drawn=0` (`frame=128 draws=192 drawn=0`): no draw reaches the card, and then the title dereferences a null. The message is the runtime's, not ours. A 60-line probe that calls `D3D12SerializeVersionedRootSignature` with a one-parameter description shows this machine's serializer rejects both heap-directly-indexed flags, on 1.0 and on 1.1: ``` version=0x1 flags=0x1 -> true version=0x1 flags=0x400 -> false "Unsupported bit-flag set (root signature flags 400)." version=0x1 flags=0x800 -> false "Unsupported bit-flag set (root signature flags 800)." version=0x2 flags=0xc00 -> false "Unsupported bit-flag set (root signature flags c00)." version=0x2 flags=0xc01 -> false "Unsupported bit-flag set (root signature flags c01)." ``` `root_signature()` (`pipeline/host.rs`) sets both flags on every description and returns `None` when serialization fails, so each of those pipelines is dropped. **Fix that works here:** carry the D3D12 Agility SDK (1.620.2, `D3D12Core.dll` from NuGet `Microsoft.Direct3D.D3D12`) beside the exe and export **both** names. `D3D12SDKVersion` alone is not enough — with only that one exported the process dies at load with `0xC0000142` for every SDK version tried (4, 600, 606, 610, 614, 620), with or without the DLL beside it. Adding `D3D12SDKPath` makes it start: ```rust #[unsafe(no_mangle)] pub static D3D12SDKVersion: u32 = 620; static SDK_PATH: [u8; 2] = *b".\0"; #[repr(transparent)] pub struct PathPtr(*const c_char); unsafe impl Sync for PathPtr {} #[unsafe(no_mangle)] pub static D3D12SDKPath: PathPtr = PathPtr(SDK_PATH.as_ptr() as *const c_char); ``` plus `cargo:rustc-link-arg=/EXPORT:D3D12SDKVersion,data` and `/EXPORT:D3D12SDKPath,data` from a build script. Same command again (`play … --series-s --dlss off --no-framegen-ready --set VICTORY_BVH_BUILDER=0`), now with Agility 1.620.2: - `Unsupported bit-flag set`: **0**; `host root signature refused`: **0** - **16,384 frames presented in 150 s**, stopped by me, **no crash** - draws now run: `frame=1024 draws=512 drawn=512`, 60.0 fps / 16.7 ms (14 draws a frame at the boot screen — that black boot is #1081, not this) Unchanged after the fix, on this setup: 29× `a pipeline creation method that is not implemented` (slots `0x1c8` and `0x218`), one `host view heap capped at 1000000; views past it read a null`, and the four emulated console instructions (`Clwb`, `Clzero`, `Monitorx`, `Mwaitx`). For the README's Windows 10 claim it may matter more generally: Windows 10's system runtime also has no shader model 6.6 and no mesh shaders, so an Agility SDK build looks like the condition for running on Windows 10 at all, not just for this crash.
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
fxceless/victory-fork#873
No description provided.