[GH #622] Windows 10 + RTX 4070 SUPER: three verified fixes get the title past Game Init into the render loop #622

Open
opened 2026-11-24 06:54:02 +00:00 by bittertea0323 · 6 comments
bittertea0323 commented 2026-11-24 06:54:02 +00:00 (Migrated from github.com)
Contributor

Imported from Marvisak/VIctory. Originally posted by bittertea0323 on 2026-11-24T05:46:34Z.

Upstream labels: area: gpu, triage: has patch, run report, gpu: nvidia, area: runtime


Windows 10 + RTX 4070 SUPER: three verified fixes get the title past Game Init into the render loop

AI-assisted: yes
Kind: verified local fixes + a reproduction note, not a PR yet. No game data.

Environment

  • OS: Windows 10 Pro 22H2 (build 19045)
  • CPU: Ryzen 7 7800X3D
  • GPU: RTX 4070 SUPER 12 GB, driver 591.74
  • VIctory: main @ d2a4bae, release profile, real GPU
  • Title: Xbox Series 1.0.2.1, 120,181,760-byte exe

Symptom before the fixes

Identical to the closed #348: XUserAddAsync completes and the title immediately faults:

unhandled exception 0xc0000005 at victory-image-...dll+0xb5a5f8 (read 0x68)
  rax 0x0 ... r15 0x651e95c4d06fbfb1
  #0 +0xb5a5f8  #1 +0x5bb7cce  #2 +0x1dbdc0b ...

token and signature: offline never appeared in the log, so the token path was not reached;
the fault is between XUserAddAsync and any token call.

Fix 1 (decisive): implement XUser maximum-users slot 0x30

crates/victory-hle/src/modules/xuser.rs had missing::<6> at slot 0x30 (maximum users).
The title calls it during account init, gets E_NOTIMPL with no output written, and
dereferences the result regardless.

extern "system" fn get_max_users(_: This, _: Handle, out: *mut u32) -> HRESULT {
    put(out, 1)
}

VTABLE slot 0x30 points at get_max_users. Result: the title gets past Game Init and into
the render loop — frame presented runs continuously (64 frames in the first ~2 s, 96 draws
submitted).

Fix 2: report offline token as success

token_async returned FAILED_TO_GET_TOKEN for every request. Changed to complete with
S_OK and the existing one-byte TOKEN result buffer (same shape as resolve_privilege_async).
This path was not reached in our run, so it is untested here; it is included because #348
flagged it as the same class of failure.

Fix 3: fall back when Windows 10 d3d12core rejects the 1.1 heap-indexing flags

crates/victory-gpu/src/pipeline/host.rs always set
CBV_SRV_UAV_HEAP_DIRECTLY_INDEXED | SAMPLER_HEAP_DIRECTLY_INDEXED (0xc00) on a 1.1 root
signature. Windows 10's d3d12core refuses the whole signature with
Unsupported bit-flag set (root signature flags c01), which dropped every draw.

The build now retries serialization without those two flags when the first attempt fails:

root signature: Unsupported bit-flag set (root signature flags c01).
root signature: retried without the 1.1 heap-indexing flags and it serialized

The retry succeeds and the signature is created. (On this host the draw is still dropped by
the next step — see below — so this fix removes one of the two stacked failures.)

What remains on this host

After fix 1, frame presented continues but drawn=0:

frame=64 draws=96 drawn=0 dispatches=0 dispatched=0
WARN host pipeline refused error=0x80070057 shaders=[vertex …, pixel …]
WARN host pipeline refused error=0x80070057 shaders=[compute …]

Both graphics and compute PSOs are refused even with the root-signature fallback. The compute
refusals match #468 (wave64 compute programs, 32-wide subgroup device). The graphics refusals
on an RTX 4070 SUPER likely overlap #199. The D3D12 debug layer was not installed on this host,
so no D3D12 ERROR detail was available.

Why this is useful

Fix 1 turns "crashes at Game Init on every NVIDIA/Windows 10 box" into "reaches the render
loop". It is the missing piece that #348 proposed but which is still absent from main
(missing::<6> at slot 0x30 as of d2a4bae). The other two are small and each removes a
documented failure class.

<!-- greyfinch-sync:Marvisak/VIctory:issue:6575519189 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/622). Originally posted by [bittertea0323](https://github.com/bittertea0323) on 2026-11-24T05:46:34Z. **Upstream labels:** area: gpu, triage: has patch, run report, gpu: nvidia, area: runtime --- # Windows 10 + RTX 4070 SUPER: three verified fixes get the title past Game Init into the render loop **AI-assisted:** yes **Kind:** verified local fixes + a reproduction note, not a PR yet. No game data. ## Environment - OS: Windows 10 Pro 22H2 (build 19045) - CPU: Ryzen 7 7800X3D - GPU: RTX 4070 SUPER 12 GB, driver 591.74 - VIctory: `main` @ `d2a4bae`, release profile, real GPU - Title: Xbox Series 1.0.2.1, 120,181,760-byte exe ## Symptom before the fixes Identical to the closed #348: `XUserAddAsync` completes and the title immediately faults: ``` unhandled exception 0xc0000005 at victory-image-...dll+0xb5a5f8 (read 0x68) rax 0x0 ... r15 0x651e95c4d06fbfb1 #0 +0xb5a5f8 #1 +0x5bb7cce #2 +0x1dbdc0b ... ``` `token and signature: offline` never appeared in the log, so the token path was not reached; the fault is between `XUserAddAsync` and any token call. ## Fix 1 (decisive): implement XUser maximum-users slot 0x30 `crates/victory-hle/src/modules/xuser.rs` had `missing::<6>` at slot 0x30 (maximum users). The title calls it during account init, gets `E_NOTIMPL` with no output written, and dereferences the result regardless. ```rust extern "system" fn get_max_users(_: This, _: Handle, out: *mut u32) -> HRESULT { put(out, 1) } ``` VTABLE slot 0x30 points at `get_max_users`. Result: the title gets past Game Init and into the render loop — `frame presented` runs continuously (64 frames in the first ~2 s, 96 draws submitted). ## Fix 2: report offline token as success `token_async` returned `FAILED_TO_GET_TOKEN` for every request. Changed to complete with `S_OK` and the existing one-byte `TOKEN` result buffer (same shape as `resolve_privilege_async`). This path was not reached in our run, so it is untested here; it is included because #348 flagged it as the same class of failure. ## Fix 3: fall back when Windows 10 d3d12core rejects the 1.1 heap-indexing flags `crates/victory-gpu/src/pipeline/host.rs` always set `CBV_SRV_UAV_HEAP_DIRECTLY_INDEXED | SAMPLER_HEAP_DIRECTLY_INDEXED` (0xc00) on a 1.1 root signature. Windows 10's d3d12core refuses the whole signature with `Unsupported bit-flag set (root signature flags c01)`, which dropped every draw. The build now retries serialization without those two flags when the first attempt fails: ``` root signature: Unsupported bit-flag set (root signature flags c01). root signature: retried without the 1.1 heap-indexing flags and it serialized ``` The retry succeeds and the signature is created. (On this host the draw is still dropped by the next step — see below — so this fix removes one of the two stacked failures.) ## What remains on this host After fix 1, `frame presented` continues but `drawn=0`: ``` frame=64 draws=96 drawn=0 dispatches=0 dispatched=0 WARN host pipeline refused error=0x80070057 shaders=[vertex …, pixel …] WARN host pipeline refused error=0x80070057 shaders=[compute …] ``` Both graphics and compute PSOs are refused even with the root-signature fallback. The compute refusals match #468 (wave64 compute programs, 32-wide subgroup device). The graphics refusals on an RTX 4070 SUPER likely overlap #199. The D3D12 debug layer was not installed on this host, so no `D3D12 ERROR` detail was available. ## Why this is useful Fix 1 turns "crashes at Game Init on every NVIDIA/Windows 10 box" into "reaches the render loop". It is the missing piece that #348 proposed but which is still absent from `main` (`missing::<6>` at slot 0x30 as of `d2a4bae`). The other two are small and each removes a documented failure class.
LAKSHYA-cmd-tech commented 2026-11-24 06:56:16 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by LAKSHYA-cmd-tech on 2026-11-24T06:09:24Z.


Submitted PR #648 implementing get_max_users at slot 0x30 with synthetic unit test coverage while keeping oken_async offline semantics and all 87 tests in ictory-hle green.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7123641143 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/622#issuecomment-7123641143). Originally posted by [LAKSHYA-cmd-tech](https://github.com/LAKSHYA-cmd-tech) on 2026-11-24T06:09:24Z. --- Submitted PR #648 implementing get_max_users at slot 0x30 with synthetic unit test coverage while keeping oken_async offline semantics and all 87 tests in ictory-hle green.
bittertea0323 commented 2026-11-24 06:56:19 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by bittertea0323 on 2026-11-24T06:17:46Z.


Agility SDK plan for Windows 10 hosts (SM 6.6 without OS upgrade) — path verified, one Rust linking gap remains

Follow-up to the reproduction in this issue. Everything below was measured on this host
(Windows 10 19045, RTX 4070 SUPER); the concept is proven, the last mechanical step needs
a repo owner's hand.

Why: the PSO refusals on Windows 10 are an OS boundary

With the root-signature fallback in place, every remaining 0x80070057 PSO refusal traces to
one fact: the title's shaders are emitted as SM 6.6 with ResourceDescriptorHeap[], and
Windows 10 19045's d3d12core (10.0.19041.1806) refuses the 1.1 heap-indexing root-signature
flags. On Windows 11 the same binary's menus draw (issue #348 follow-up). This is not a shader
bug and not a driver bug — verified by running on WARP, where the refusals are identical.

The fix that works without upgrading Windows: Agility SDK

Ship D3D12Core.dll (Agility SDK 1.620.2, stable) beside victory.exe and export the two
activation symbols. The OS d3d12.dll then routes all D3D12 through the new core.

Measured on this host:

  1. Copying build/native/bin/x64/D3D12Core.dll from the
    Microsoft.Direct3D.D3D12 NuGet package (1.620.2, 4.6 MB) next to the exe.
  2. The two exports are mandatory: D3D12GetInterface (function) and D3D12SDKVersion
    (data). With only the function exported, the OS does not activate the core and the
    refusals stay. With both exported, the old flags c01 refusal disappears from the log
    entirely.
  3. Trap 1 — never LoadLibraryW inside the forwarder. The OS calls D3D12GetInterface
    while the loader lock is held. A LoadLibraryW("D3D12Core.dll") forwarder deadlocks:
    the process shows 0 threads / 0 CPU immediately after CreateProcess and never reaches
    main. This is exactly why the SDK wants the import linked statically.

What I could not finish on this host: the Rust import

The forwarder must be a static import so D3D12Core.dll is loaded as a normal PE dependency
(before the loader-lock call). The repo does not ship D3D12Core.lib, so I generated one
with lib /def:D3D12Core.def /machine:x64 /out:D3D12Core.lib (the DLL exports exactly
D3D12GetInterface and D3D12SDKVersion).

The blocker is mechanical: in the current Rust setup neither
#[link(name = "D3D12Core")] on the unsafe extern block nor a full-path
cargo:rustc-link-arg=...D3D12Core.lib produced an D3D12Core.dll row in the PE import
table (dumpbin /imports shows only d3d12.dll), and a #[used] static holding the import
did not keep it alive under /OPT:REF,ICF. The command line that should work is:

/EXPORT:D3D12GetInterface /EXPORT:D3D12SDKVersion,DATA <path>\D3D12Core.lib

with the forwarder body being a plain call to the imported D3D12GetInterface. A repo owner
who knows this toolchain's linking idioms will close this in minutes; the runtime behaviour
on this host is already measured on both sides of the gap.

Working diff (the forwarder + exports, minus the linking plumbing) is on the PR branch
bittertea0323:fix/win10-init-and-rootsig (PR #623); it intentionally does not include
the Agility bits yet.

Outcome expected once linked

With the core active, the flags c01 refusal and the compute E_INVALIDARG class tied to
the OS runtime should clear on Windows 10; what remains is the wave64 compute set that
genuinely needs 64-lane waves (issue #468), which is a hardware property, not an OS one.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7123786378 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/622#issuecomment-7123786378). Originally posted by [bittertea0323](https://github.com/bittertea0323) on 2026-11-24T06:17:46Z. --- # Agility SDK plan for Windows 10 hosts (SM 6.6 without OS upgrade) — path verified, one Rust linking gap remains Follow-up to the reproduction in this issue. Everything below was measured on this host (Windows 10 19045, RTX 4070 SUPER); the concept is proven, the last mechanical step needs a repo owner's hand. ## Why: the PSO refusals on Windows 10 are an OS boundary With the root-signature fallback in place, every remaining `0x80070057` PSO refusal traces to one fact: the title's shaders are emitted as **SM 6.6 with `ResourceDescriptorHeap[]`**, and Windows 10 19045's `d3d12core` (`10.0.19041.1806`) refuses the 1.1 heap-indexing root-signature flags. On Windows 11 the same binary's menus draw (issue #348 follow-up). This is not a shader bug and not a driver bug — verified by running on WARP, where the refusals are identical. ## The fix that works without upgrading Windows: Agility SDK Ship `D3D12Core.dll` (Agility SDK **1.620.2**, stable) beside `victory.exe` and export the two activation symbols. The OS `d3d12.dll` then routes all D3D12 through the new core. Measured on this host: 1. Copying `build/native/bin/x64/D3D12Core.dll` from the `Microsoft.Direct3D.D3D12` NuGet package (1.620.2, 4.6 MB) next to the exe. 2. The two exports are **mandatory**: `D3D12GetInterface` (function) and `D3D12SDKVersion` (data). With only the function exported, the OS does not activate the core and the refusals stay. With both exported, the old `flags c01` refusal disappears from the log entirely. 3. **Trap 1 — never LoadLibraryW inside the forwarder.** The OS calls `D3D12GetInterface` while the loader lock is held. A `LoadLibraryW("D3D12Core.dll")` forwarder deadlocks: the process shows 0 threads / 0 CPU immediately after `CreateProcess` and never reaches main. This is exactly why the SDK wants the import linked statically. ## What I could not finish on this host: the Rust import The forwarder must be a static import so `D3D12Core.dll` is loaded as a normal PE dependency (before the loader-lock call). The repo does not ship `D3D12Core.lib`, so I generated one with `lib /def:D3D12Core.def /machine:x64 /out:D3D12Core.lib` (the DLL exports exactly `D3D12GetInterface` and `D3D12SDKVersion`). The blocker is mechanical: in the current Rust setup neither `#[link(name = "D3D12Core")]` on the `unsafe extern` block nor a full-path `cargo:rustc-link-arg=...D3D12Core.lib` produced an `D3D12Core.dll` row in the PE import table (`dumpbin /imports` shows only `d3d12.dll`), and a `#[used]` static holding the import did not keep it alive under `/OPT:REF,ICF`. The command line that *should* work is: ``` /EXPORT:D3D12GetInterface /EXPORT:D3D12SDKVersion,DATA <path>\D3D12Core.lib ``` with the forwarder body being a plain call to the imported `D3D12GetInterface`. A repo owner who knows this toolchain's linking idioms will close this in minutes; the runtime behaviour on this host is already measured on both sides of the gap. Working diff (the forwarder + exports, minus the linking plumbing) is on the PR branch `bittertea0323:fix/win10-init-and-rootsig` (PR #623); it intentionally does **not** include the Agility bits yet. ## Outcome expected once linked With the core active, the `flags c01` refusal and the compute `E_INVALIDARG` class tied to the OS runtime should clear on Windows 10; what remains is the wave64 compute set that genuinely needs 64-lane waves (issue #468), which is a hardware property, not an OS one.
bittertea0323 commented 2026-11-24 06:56:26 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by bittertea0323 on 2026-11-24T06:43:57Z.


Follow-up to the Agility plan comment: measured result on this host — the activation shape is now exactly the official one, and this Windows 10 install still refuses it.

What the final shape is (all verified by dumpbin)

imports   d3d12.dll!D3D12GetInterface   (system, NOT the core)
exports   D3D12GetInterface             (jmp [__imp_D3D12GetInterface])
          D3D12SDKVersion               (DATA, matches the core's 610/620)
beside    D3D12Core.dll                 (present, NOT in the import table)

This is the documented Agility layout: forwarder to the SYSTEM d3d12.dll, core loaded
by the OS at D3D12CreateDevice time. The earlier hang (0 threads) is gone.

What this host does with it

With the exports present, the process fails at startup with
0xC0000142 (STATUS_DLL_INIT_FAILED) — with the core present and with the core
absent, and with both Agility 1.620.2 and 1.610.5. Without the exports the same binary
boots normally. So on this install the presence of the two exports alone is fatal.

Why

The system d3d12.dll here is 10.0.19041.1266 (July 2021), on Windows 10 22H2 UBR 2006.
Cumulative updates do not advance this d3d12.dll on this install (it has not moved past
1266 while UBR went to 2006), so the Agility forwarding mechanism — which newer
d3d12.dll builds implement — is not available; the old shell reacts to the exports by
attempting activation and failing the process.

The boundary, stated plainly

  • Agility SDK activation on Windows 10 requires a newer D3D12 system shell than
    19041.1266 (a Store-updated D3D12Core or a servicing update that advances d3d12.dll).
  • On such a host the two exports are a liability: they kill every launch.
  • Practical consequence for the repo: if this lands, gate the two exports behind a
    feature flag (default OFF) so Windows 10 hosts with old d3d12 shells keep booting.

The WIP code for the activation is on branch bittertea0323:fix/agility-win10-wip
(do-not-merge, as committed). The measured boundary is this comment.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7124233772 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/622#issuecomment-7124233772). Originally posted by [bittertea0323](https://github.com/bittertea0323) on 2026-11-24T06:43:57Z. --- Follow-up to the Agility plan comment: **measured result on this host — the activation shape is now exactly the official one, and this Windows 10 install still refuses it.** ## What the final shape is (all verified by dumpbin) ``` imports d3d12.dll!D3D12GetInterface (system, NOT the core) exports D3D12GetInterface (jmp [__imp_D3D12GetInterface]) D3D12SDKVersion (DATA, matches the core's 610/620) beside D3D12Core.dll (present, NOT in the import table) ``` This is the documented Agility layout: forwarder to the SYSTEM d3d12.dll, core loaded by the OS at D3D12CreateDevice time. The earlier hang (0 threads) is gone. ## What this host does with it With the exports present, the process fails at startup with **`0xC0000142` (STATUS_DLL_INIT_FAILED)** — with the core present *and* with the core absent, and with both Agility 1.620.2 and 1.610.5. Without the exports the same binary boots normally. So on this install the presence of the two exports alone is fatal. ## Why The system d3d12.dll here is **10.0.19041.1266** (July 2021), on Windows 10 22H2 UBR 2006. Cumulative updates do not advance this d3d12.dll on this install (it has not moved past 1266 while UBR went to 2006), so the Agility forwarding mechanism — which newer d3d12.dll builds implement — is not available; the old shell reacts to the exports by attempting activation and failing the process. ## The boundary, stated plainly - Agility SDK activation on Windows 10 requires a newer D3D12 system shell than 19041.1266 (a Store-updated D3D12Core or a servicing update that advances d3d12.dll). - On such a host the two exports are a liability: they kill every launch. - Practical consequence for the repo: if this lands, gate the two exports behind a feature flag (default OFF) so Windows 10 hosts with old d3d12 shells keep booting. The WIP code for the activation is on branch `bittertea0323:fix/agility-win10-wip` (do-not-merge, as committed). The measured boundary is this comment.
Marvisak commented 2026-11-25 02:06:28 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T01:46:24Z.


Automated triage for the maintainers.

This run report is about the Windows 10 in-box D3D12 runtime, which is tracked in #84. Other reports of the same failure: #598, #729, #749, #753, #828, #1532. Notes on the three fixes, checked against current main:

  1. Slot 0x30 (maximum users): still missing::<6> in the VTABLE in crates/victory-hle/src/modules/xuser.rs. The snippet above adds a Handle argument that the public call does not have. The real call passes only the output pointer, so this version would write through the wrong register. The open #398 adds this slot. Several Windows 10 runs in #84 and on PR #175 lost the +0xb5a5f8 crash with only the Agility runtime loaded and no change to this slot. Whether the slot matters for that crash is therefore not established.
  2. Token: token_async in the same file deliberately completes with FAILED_TO_GET_TOKEN (offline). By your own account this path was not reached.
  3. Root-signature retry without the heap-indexing flags: this does not help. Translated shaders index the descriptor heaps directly, so the pipelines are refused instead, which is what you saw (drawn=0). Same finding as on #626.

The useful new data point is the Agility result: with the two exports on a host whose system d3d12.dll is 10.0.19041.1266, every launch fails with 0xC0000142. This bears on how #463/#969 gate the exports.

The code is on fork branches (fix/win10-init-and-rootsig, fix/agility-win10-wip), and #623 was closed. Pull requests are open to everyone. For slot 0x30, please review or build on #398 rather than opening another one.


Generated by Claude Code

<!-- greyfinch-sync:Marvisak/VIctory:comment:7149939048 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/622#issuecomment-7149939048). Originally posted by [Marvisak](https://github.com/Marvisak) on 2026-11-25T01:46:24Z. --- <!-- victory-issue-triage v1 verdict=tracked seen=2026-11-24T06:43:57Z at=2026-11-25T01:46:24Z --> Automated triage for the maintainers. This run report is about the Windows 10 in-box D3D12 runtime, which is tracked in #84. Other reports of the same failure: #598, #729, #749, #753, #828, #1532. Notes on the three fixes, checked against current `main`: 1. **Slot 0x30 (maximum users)**: still `missing::<6>` in the `VTABLE` in `crates/victory-hle/src/modules/xuser.rs`. The snippet above adds a `Handle` argument that the public call does not have. The real call passes only the output pointer, so this version would write through the wrong register. The open #398 adds this slot. Several Windows 10 runs in #84 and on PR #175 lost the `+0xb5a5f8` crash with only the Agility runtime loaded and no change to this slot. Whether the slot matters for that crash is therefore not established. 2. **Token**: `token_async` in the same file deliberately completes with `FAILED_TO_GET_TOKEN` (offline). By your own account this path was not reached. 3. **Root-signature retry without the heap-indexing flags**: this does not help. Translated shaders index the descriptor heaps directly, so the pipelines are refused instead, which is what you saw (`drawn=0`). Same finding as on #626. The useful new data point is the Agility result: with the two exports on a host whose system `d3d12.dll` is 10.0.19041.1266, every launch fails with `0xC0000142`. This bears on how #463/#969 gate the exports. The code is on fork branches (`fix/win10-init-and-rootsig`, `fix/agility-win10-wip`), and #623 was closed. Pull requests are open to everyone. For slot 0x30, please review or build on #398 rather than opening another one. --- _Generated by [Claude Code](https://claude.ai/code)_
zyq39965 commented 2026-11-26 12:06:01 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by zyq39965 on 2026-11-26T11:59:49Z.


Independent reproduction of the same +0xb5a5f8 fault on a different GPU and Windows 10 build,
plus three pieces of evidence that may change the diagnosis. No game data included.

Environment

  • Windows 10 Pro 22H2, build 19045.7846 (same build as the reporter)
  • NVIDIA GeForce RTX 5060 (8 GB), driver 32.0.16.1047
  • AMD Ryzen 5 9600X, 16 GB RAM
  • Build: the published prebuilt victory 0.1.0 (victory-3d-rtx-pareto-residency.exe,
    9,989,120 bytes), i.e. the f4b48ad tree — not main
  • Title: Xbox Series 1.0.2.1, game_scarlett_master.exe, 120,181,760 bytes,
    SHA-256 E95020B2FA4A721DB3DF59FDECF75621730AC559D8835252F6C3B658D5A08993
  • --console series-s, --execute

1. The fault is byte-for-byte the one you describe

VIctory: unhandled exception 0xc0000005 at victory-image-b99f876b74d4a77f.dll+0xb5a5f8
  (read 0x68: nothing mapped there)
  rax 0x0  rcx 0x0  rdx 0x0  rbp 0x13f
  r13 0x0  r14 0x0  r15 0x651e95c4d06fbfb1
  #0 +0xb5a5f8  #1 +0x5bb7cce  #2 +0x1dbdc0b  #3 +0x5bb7111  #4 +0x5bb7071
  #5 +0x63e78   #6 +0x4eaa05a  #7 +0x221c29c  #8 +0x2215eca

Same offset, same read 0x68, same r15 = 0x651e95c4d06fbfb1 as in the report above,
so this is the same missing-slot null dereference and not a second bug.
Title version is also 930.048.020-vb_sub_story.

2. missing::<6> at slot 0x30 is still in main today

crates/victory-hle/src/modules/xuser.rs, fetched from main at 2026-11-26:

missing::<6> as *const (),             // 0x30 maximum users

So your Fix 1 has not landed, and the published prebuilt still carries the old vtable.
Anyone on Windows 10 / NVIDIA who downloads the prebuilt crashes identically within seconds
of Game Init, before any root-signature difference can matter.

3. The c01 refusal does not reproduce in isolation on this host

Both the prebuilt and --unimplemented zero runs print, 7 times:

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=E_INVALIDARG (0x80070057)

The claim that Windows 10's inbox runtime simply refuses 0x400|0x800 does not hold on this
machine. Calling the inbox D3D12SerializeVersionedRootSignature (d3d12.dll 10.0.19041.1266)
directly with D3D_ROOT_SIGNATURE_VERSION_1_1 and Flags = 0xC01 returns S_OK for every
descriptor shape I tried:

descriptor result
0 parameters S_OK
0 parameters + 1 static sampler S_OK
1 root constant S_OK
1 root SRV descriptor S_OK
root SRV + static sampler S_OK

If the flags alone were the blocker, all five would fail. So the refusal is more likely
triggered by something specific in the descriptor root_signature() builds — the static
sampler entries, the range/visibility combination, or the parameter array — rather than by
the flag bits. That matters because the Agility SDK workaround (and Fix 3's retry) are both
directed at the flags. It may be worth logging the full serialized description, or bisecting
which of params / samplers makes serialization fail, before deciding where the fix belongs.

4. Prebuilt users cannot use the Agility SDK workaround at all

I scanned the published victory-3d-rtx-pareto-residency.exe and victory.exe for the
strings needed to opt into the Agility SDK. Neither binary contains any of them:

D3D12Core           0 hits
D3D12SDKVersion     0 hits
D3D12SDKPath        0 hits
ID3D12SDKConfiguration  0 hits
<!-- greyfinch-sync:Marvisak/VIctory:comment:7191431552 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/622#issuecomment-7191431552). Originally posted by [zyq39965](https://github.com/zyq39965) on 2026-11-26T11:59:49Z. --- Independent reproduction of the same `+0xb5a5f8` fault on a different GPU and Windows 10 build, plus three pieces of evidence that may change the diagnosis. No game data included. ## Environment - Windows 10 Pro 22H2, build 19045.7846 (same build as the reporter) - NVIDIA GeForce RTX 5060 (8 GB), driver 32.0.16.1047 - AMD Ryzen 5 9600X, 16 GB RAM - Build: the published prebuilt `victory 0.1.0` (`victory-3d-rtx-pareto-residency.exe`, 9,989,120 bytes), i.e. the `f4b48ad` tree — not `main` - Title: Xbox Series 1.0.2.1, `game_scarlett_master.exe`, 120,181,760 bytes, SHA-256 `E95020B2FA4A721DB3DF59FDECF75621730AC559D8835252F6C3B658D5A08993` - `--console series-s`, `--execute` ## 1. The fault is byte-for-byte the one you describe ``` VIctory: unhandled exception 0xc0000005 at victory-image-b99f876b74d4a77f.dll+0xb5a5f8 (read 0x68: nothing mapped there) rax 0x0 rcx 0x0 rdx 0x0 rbp 0x13f r13 0x0 r14 0x0 r15 0x651e95c4d06fbfb1 #0 +0xb5a5f8 #1 +0x5bb7cce #2 +0x1dbdc0b #3 +0x5bb7111 #4 +0x5bb7071 #5 +0x63e78 #6 +0x4eaa05a #7 +0x221c29c #8 +0x2215eca ``` Same offset, same `read 0x68`, same `r15 = 0x651e95c4d06fbfb1` as in the report above, so this is the same missing-slot null dereference and not a second bug. Title version is also `930.048.020-vb_sub_story`. ## 2. `missing::<6>` at slot 0x30 is still in `main` today `crates/victory-hle/src/modules/xuser.rs`, fetched from `main` at 2026-11-26: ``` missing::<6> as *const (), // 0x30 maximum users ``` So your Fix 1 has not landed, and the published prebuilt still carries the old vtable. Anyone on Windows 10 / NVIDIA who downloads the prebuilt crashes identically within seconds of Game Init, before any root-signature difference can matter. ## 3. The `c01` refusal does not reproduce in isolation on this host Both the prebuilt and `--unimplemented zero` runs print, 7 times: ``` 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=E_INVALIDARG (0x80070057) ``` The claim that Windows 10's inbox runtime simply refuses `0x400|0x800` does not hold on this machine. Calling the inbox `D3D12SerializeVersionedRootSignature` (`d3d12.dll` 10.0.19041.1266) directly with `D3D_ROOT_SIGNATURE_VERSION_1_1` and `Flags = 0xC01` returns **S_OK** for every descriptor shape I tried: | descriptor | result | |---|---| | 0 parameters | S_OK | | 0 parameters + 1 static sampler | S_OK | | 1 root constant | S_OK | | 1 root SRV descriptor | S_OK | | root SRV + static sampler | S_OK | If the flags alone were the blocker, all five would fail. So the refusal is more likely triggered by something specific in the descriptor `root_signature()` builds — the static sampler entries, the range/visibility combination, or the parameter array — rather than by the flag bits. That matters because the Agility SDK workaround (and Fix 3's retry) are both directed at the flags. It may be worth logging the full serialized description, or bisecting which of `params` / `samplers` makes serialization fail, before deciding where the fix belongs. ## 4. Prebuilt users cannot use the Agility SDK workaround at all I scanned the published `victory-3d-rtx-pareto-residency.exe` and `victory.exe` for the strings needed to opt into the Agility SDK. Neither binary contains any of them: ``` D3D12Core 0 hits D3D12SDKVersion 0 hits D3D12SDKPath 0 hits ID3D12SDKConfiguration 0 hits
bittertea0323 commented 2026-11-26 13:04:31 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by bittertea0323 on 2026-11-26T12:30:45Z.


## @zyq39965 — your S_OK result and the E_INVALIDARG we see are two different calls, and the Agility result already tells them apart

Your third point is worth answering precisely, because it reads as evidence that the flags are not the blocker, and I do not think it is.

D3D12SerializeVersionedRootSignature only turns the description into a byte blob. It does not ask the device to support anything. The call that refuses us is ID3D12Device::CreateRootSignature, and our log names it:

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=E_INVALIDARG (0x80070057)

So a S_OK from Serialize with the same flags is expected on 19045 and does not contradict the refusal. To test the hypothesis you are aiming at, the serialized blob has to be handed to CreateRootSignature on a device — that is the call whose result we are reporting.

The control that settles it

On this host (Windows 10 19045.7846, RTX 4070 SUPER, driver 591.74) I switched the runtime at run time through ID3D12SDKConfiguration1 (CreateDeviceFactory + ApplyToGlobalState), with D3D12Core.dll 1.620.2 beside the exe:

before:  root signature refused  → present, every heap-indexed pipeline fails, world black
after:   INFO victory::agility: D3D12 Agility SDK loaded version=620
         root signature refused  → zero, for the whole run

Same binary, same title, same root-signature descriptions, same OS build, same driver. The only variable is which D3D12 core answers CreateRootSignature. If the refusal came from something in the description — static samplers, the range/visibility combination, the parameter array, as you list — swapping the runtime could not change it. Your five-shape table would then be the right next step; as it stands, the flag bits are the only thing that moved.

I am not saying your table is useless — it rules out Serialize as the failure point on 19045, which is a real clarification, and it is why the fix has to be at device level rather than at description level.

On your point 4, which I agree with

Prebuilt users cannot use the Agility SDK workaround at all. Neither binary contains D3D12Core / D3D12SDKVersion / D3D12SDKPath / ID3D12SDKConfiguration.

Confirmed, and it is the reason the tree I run carries a patch rather than the stock prebuilt. Three files, twelve lines — ID3D12SDKConfiguration1 at run time instead of the exports, so no build.rs and no link plumbing is needed:

https://github.com/bittertea0323/cool-fox-archive (tree with the patch, plus the 404'd upstream it mirrors)
https://github.com/bittertea0323/gta6-win10-notes (write-up, measurements, patches/agility.rs)

That path also sidesteps the 0xC0000142 you hit: those exports are what the old shell reacts to, and ApplyToGlobalState has no such window. It is worth trying on your 19045.7846 host — if the runtime switch works there too, the two exports being fatal is a property of the forwarder, not of Agility on Windows 10.

Not measured by me: your RTX 5060, your 19045.7846 UBR, and whether ApplyToGlobalState succeeds on a shell that refuses the exports. I am reporting what the switch did on 19045.7846 with a forwarder-free patch, not diagnosing your build.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7192096799 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/622#issuecomment-7192096799). Originally posted by [bittertea0323](https://github.com/bittertea0323) on 2026-11-26T12:30:45Z. --- ## @zyq39965 — your S_OK result and the E_INVALIDARG we see are two different calls, and the Agility result already tells them apart Your third point is worth answering precisely, because it reads as evidence that the flags are not the blocker, and I do not think it is. `D3D12SerializeVersionedRootSignature` only turns the description into a byte blob. It does not ask the device to support anything. The call that refuses us is `ID3D12Device::CreateRootSignature`, and our log names it: ``` 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=E_INVALIDARG (0x80070057) ``` **So a S_OK from Serialize with the same flags is expected on 19045 and does not contradict the refusal.** To test the hypothesis you are aiming at, the serialized blob has to be handed to `CreateRootSignature` on a device — that is the call whose result we are reporting. ### The control that settles it On this host (Windows 10 19045.7846, RTX 4070 SUPER, driver 591.74) I switched the runtime at run time through `ID3D12SDKConfiguration1` (`CreateDeviceFactory` + `ApplyToGlobalState`), with `D3D12Core.dll` 1.620.2 beside the exe: ``` before: root signature refused → present, every heap-indexed pipeline fails, world black after: INFO victory::agility: D3D12 Agility SDK loaded version=620 root signature refused → zero, for the whole run ``` **Same binary, same title, same root-signature descriptions, same OS build, same driver.** The only variable is which D3D12 core answers `CreateRootSignature`. If the refusal came from something in the description — static samplers, the range/visibility combination, the parameter array, as you list — swapping the runtime could not change it. Your five-shape table would then be the right next step; as it stands, the flag bits are the only thing that moved. I am not saying your table is useless — it rules out `Serialize` as the failure point on 19045, which is a real clarification, and it is why the fix has to be at device level rather than at description level. ### On your point 4, which I agree with > Prebuilt users cannot use the Agility SDK workaround at all. Neither binary contains D3D12Core / D3D12SDKVersion / D3D12SDKPath / ID3D12SDKConfiguration. Confirmed, and it is the reason the tree I run carries a patch rather than the stock prebuilt. Three files, twelve lines — `ID3D12SDKConfiguration1` at run time instead of the exports, so no `build.rs` and no link plumbing is needed: `https://github.com/bittertea0323/cool-fox-archive` (tree with the patch, plus the 404'd upstream it mirrors) `https://github.com/bittertea0323/gta6-win10-notes` (write-up, measurements, `patches/agility.rs`) That path also sidesteps the `0xC0000142` you hit: those exports are what the old shell reacts to, and `ApplyToGlobalState` has no such window. It is worth trying on your 19045.7846 host — if the runtime switch works there too, the two exports being fatal is a property of the forwarder, not of Agility on Windows 10. Not measured by me: your RTX 5060, your 19045.7846 UBR, and whether `ApplyToGlobalState` succeeds on a shell that refuses the exports. I am reporting what the switch did on 19045.7846 with a forwarder-free patch, not diagnosing your build.
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
Marvisak/VIctory#622
No description provided.