Crash at Game Init on Windows 10 + NVIDIA: R9G9B9E5 render target refused (E_INVALIDARG), then access violation at image+0xb5a5f8 (read 0x68) #741

Open
opened 2026-11-26 04:13:54 +00:00 by github-bot · 3 comments
Owner

@⁠LUK1I on GitHub · 2026-11-24 09:13 UTC · original

Summary

The title crashes immediately at startup, before any intro screen
(Game State: Game Init, frame 0, running time 0 s). Two title threads
fault on the same instruction (null pointer + 0x68). It reproduces on
every launch (5/5) with every option I tried.

Right before the crash the host refuses to create a 1920x1080
R9G9B9E5_SHAREDEXP texture with render-target and UAV flags, which looks
like the cause (details below).

Environment

  • VIctory: 8e79c80, cargo build --release -p victory
  • Rust: 1.98.1 (from rust-toolchain.toml)
  • OS: Windows 10 Pro 22H2 (build 19045.6466)
  • CPU: AMD Ryzen 5 5600 (AVX2)
  • GPU: NVIDIA GeForce RTX 5060
  • RAM: 16 GB
  • Game: own dump of the Xbox Series package, version 1.0.2.1
    (title build string: 930.048.020-vb_sub_story)
  • Windows display language: Russian

Steps

target\release\victory.exe run \game_scarlett_master.exe --execute

Likely cause

Right before the crash the console shows:

WARN victory_gpu::resource: no host texture error 0x80070057 (E_INVALIDARG)
ResourceDesc { dimension: 3, alignment: 0, width: 1920, height: 1080,
depth_or_array_size: 1, mip_levels: 1, format: 67, sample_count: 1,
sample_quality: 0, layout: 0, flags: 5 }

Format 67 is DXGI_FORMAT_R9G9B9E5_SHAREDEXP, and flags 5 are
ALLOW_RENDER_TARGET | ALLOW_UNORDERED_ACCESS. The host D3D12 device
refuses this on Windows 10 + NVIDIA, so the title's resource is probably
null when it reads +0x68 shortly after. Perhaps it needs a check with
CheckFeatureSupport and a fallback format (e.g. R11G11B10_FLOAT or
R16G16B16A16_FLOAT) when the host can't render to or write R9G9B9E5.

Other warnings in the same run, probably unrelated:

  • a host DLL outside the host policy: refused amd_fidelityfx_upscaler_xbox.dll
  • the title's crash reporter tries to upload a minidump to
    submit.backtrace.io and the HLE blocks it as expected
    (HTTP connection blocked)

Crash log

crashes.log (identical on every run):

VIctory: unhandled exception 0xc0000005 at victory-image-b99f876b74d4a77f.dll+0xb5a5f8 (read 0x68: nothing mapped there)
#0 +0xb5a5f8
#1 +0x1dc5cb4
#2 +0x5bbf240
#3 +0x35cd6e1
#4 +0x63e78
#5 +0x4eaa05a
#6 +0x221c29c
#7 +0x2215eca
#8 KERNEL32.DLL+0x17374
#9 ntdll.dll+0x4cc91

Second thread, same instruction:
#0 +0xb5a5f8
#1 +0x5bb7cce
#2 +0x1dbdc0b
#3 +0x5bb7111
#4 +0x5bb7071
#5 +0x63e78
#6 +0x4eaa05a
#7 +0x221c29c
#8 +0x2215eca

The title's own debug dump at the crash: Game State: Game Init, Frame: 0,
TileHeap used 176 MB of 6236 MB, no scripts running.

What I tried

  • --unimplemented zero: same crash, same address
  • --console series-s: the title reports Lockhart, same crash, same address
  • git pull + rebuild (shader cache entries were regenerated): same crash

Only about 7 shaders are translated before the crash, so it happens
before any real rendering.

Full crashes.log attached (addresses only, no game data).

**@⁠LUK1I** on GitHub · 2026-11-24 09:13 UTC · [original](https://github.com/Marvisak/VIctory/issues/741) ### Summary The title crashes immediately at startup, before any intro screen (`Game State: Game Init`, frame 0, running time 0 s). Two title threads fault on the same instruction (null pointer + 0x68). It reproduces on every launch (5/5) with every option I tried. Right before the crash the host refuses to create a 1920x1080 R9G9B9E5_SHAREDEXP texture with render-target and UAV flags, which looks like the cause (details below). ### Environment - VIctory: 8e79c80, `cargo build --release -p victory` - Rust: 1.98.1 (from rust-toolchain.toml) - OS: Windows 10 Pro 22H2 (build 19045.6466) - CPU: AMD Ryzen 5 5600 (AVX2) - GPU: NVIDIA GeForce RTX 5060 - RAM: 16 GB - Game: own dump of the Xbox Series package, version 1.0.2.1 (title build string: 930.048.020-vb_sub_story) - Windows display language: Russian ### Steps target\release\victory.exe run <game dir>\game_scarlett_master.exe --execute ### Likely cause Right before the crash the console shows: WARN victory_gpu::resource: no host texture error 0x80070057 (E_INVALIDARG) ResourceDesc { dimension: 3, alignment: 0, width: 1920, height: 1080, depth_or_array_size: 1, mip_levels: 1, format: 67, sample_count: 1, sample_quality: 0, layout: 0, flags: 5 } Format 67 is DXGI_FORMAT_R9G9B9E5_SHAREDEXP, and flags 5 are ALLOW_RENDER_TARGET | ALLOW_UNORDERED_ACCESS. The host D3D12 device refuses this on Windows 10 + NVIDIA, so the title's resource is probably null when it reads +0x68 shortly after. Perhaps it needs a check with CheckFeatureSupport and a fallback format (e.g. R11G11B10_FLOAT or R16G16B16A16_FLOAT) when the host can't render to or write R9G9B9E5. Other warnings in the same run, probably unrelated: - `a host DLL outside the host policy: refused amd_fidelityfx_upscaler_xbox.dll` - the title's crash reporter tries to upload a minidump to submit.backtrace.io and the HLE blocks it as expected (`HTTP connection blocked`) ### Crash log crashes.log (identical on every run): VIctory: unhandled exception 0xc0000005 at victory-image-b99f876b74d4a77f.dll+0xb5a5f8 (read 0x68: nothing mapped there) #0 +0xb5a5f8 #1 +0x1dc5cb4 #2 +0x5bbf240 #3 +0x35cd6e1 #4 +0x63e78 #5 +0x4eaa05a #6 +0x221c29c #7 +0x2215eca #8 KERNEL32.DLL+0x17374 #9 ntdll.dll+0x4cc91 Second thread, same instruction: #0 +0xb5a5f8 #1 +0x5bb7cce #2 +0x1dbdc0b #3 +0x5bb7111 #4 +0x5bb7071 #5 +0x63e78 #6 +0x4eaa05a #7 +0x221c29c #8 +0x2215eca The title's own debug dump at the crash: Game State: Game Init, Frame: 0, TileHeap used 176 MB of 6236 MB, no scripts running. ### What I tried - `--unimplemented zero`: same crash, same address - `--console series-s`: the title reports Lockhart, same crash, same address - git pull + rebuild (shader cache entries were regenerated): same crash Only about 7 shaders are translated before the crash, so it happens before any real rendering. Full crashes.log attached (addresses only, no game data).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:13:54 +00:00
Author
Owner

@⁠MichaelSmithAI on GitHub · 2026-11-24 09:20 UTC · original

The second thread’s stack matches the Windows 10 report in #348. On that reporter’s original machine, the baseline failed during Game Init in 3/3 hardware runs. With #175 and the app-local D3D12 Agility runtime, the same machine reached interactive menus and completed 16,383 draws in 120 seconds. A separate RTX 3070 tester on your exact Windows build (19045.6466) also got past Game Init. Original-machine comparison · Same Windows build

Could you try #175 with its cargo xtask agility step, using the same game settings, and report whether the host still refuses root signatures and whether startup gets past Game Init?

The format-67 warning is also reproducible independently. Our RTX 4090 capability query under Wine/vkd3d reported sampling support, with render-target and typed-UAV support both absent. #492 already addresses that resource-creation case. Testing #175 on its own first would help distinguish the two effects.

**@⁠MichaelSmithAI** on GitHub · 2026-11-24 09:20 UTC · [original](https://github.com/Marvisak/VIctory/issues/741#issuecomment-7127280814) The second thread’s stack matches the Windows 10 report in #348. On that reporter’s original machine, the baseline failed during Game Init in 3/3 hardware runs. With #175 and the app-local D3D12 Agility runtime, the same machine reached interactive menus and completed 16,383 draws in 120 seconds. A separate RTX 3070 tester on your exact Windows build (19045.6466) also got past Game Init. [Original-machine comparison](https://git.gtahub.st/github/Marvisak--VIctory/issues/348) · [Same Windows build](https://git.gtahub.st/github/Marvisak--VIctory/pulls/175) Could you try #175 with its `cargo xtask agility` step, using the same game settings, and report whether the host still refuses root signatures and whether startup gets past Game Init? The format-67 warning is also reproducible independently. Our RTX 4090 capability query under Wine/vkd3d reported sampling support, with render-target and typed-UAV support both absent. #492 already addresses that resource-creation case. Testing #175 on its own first would help distinguish the two effects.
Author
Owner

@⁠LUK1I on GitHub · 2026-11-24 09:30 UTC · original

Tested #175 on its own (no #492), same settings, after cargo xtask agility.

Result: it works here.

  • No more "root signature: Unsupported bit-flag set" / "host root signature
    refused" warnings (0 in this run; several per run before).
  • Startup gets past Game Init. I got through the intro screens and the start
    screen; the title created the player profile and settings saves
    (Player~..., SettingsProfileSettings~...), then started loading into the
    world.
  • 2,595 frames presented; between frames 1024 and 2048 it ran at about
    30 fps (22,386 draws and 1,025 dispatches in that span).

Remaining warnings before the world:

  • 76 x "host pipeline refused ... (0x80070057)", mostly compute shaders
  • many "shader does not translate; its pipelines' draws are dropped",
    mostly compute, a few mesh and pixel (e.g. "a lane mask read as data is
    not supported", "a scalar memory read as data is not supported",
    "a descriptor read only as data is not supported")
  • 2 x "no host texture" with E_INVALIDARG, now format 86, 2560x1440,
    flags 5 (RT | UAV)
  • the device method at slot 0x1c8 is still reported as not implemented

Entering the world: the first mesh pipelines are created, a submission
takes 3040 ms ("slow host submission ms=3040 lists=27"), and the host
device is removed:

host GPU device removed after a submission of 27 lists; no breadcrumbs
(0x887A0004); device removed: DXGI_ERROR_DEVICE_HUNG (0x887A0006)

So on Windows 10 with #175 it now behaves like the README describes for
Windows 11: menus, profile and saves work, and the world hangs the GPU.

One earlier launch, 12 s before the working one, threw C++ exception
0x887e0003 from the XboxBvhBuilder image while loading D3D12Core.dll.
I think the Agility files were not in place yet; it didn't happen again.

Happy to run a diagnostics build with VICTORY_D3D12_DEBUG=1 /
VICTORY_D3D12_DRED=1 if that helps.

Windows 10 Pro 22H2 (19045.6466), RTX 5060, Ryzen 5 5600, 16 GB RAM.

crashes.log

**@⁠LUK1I** on GitHub · 2026-11-24 09:30 UTC · [original](https://github.com/Marvisak/VIctory/issues/741#issuecomment-7127517462) Tested #175 on its own (no #492), same settings, after `cargo xtask agility`. Result: it works here. - No more "root signature: Unsupported bit-flag set" / "host root signature refused" warnings (0 in this run; several per run before). - Startup gets past Game Init. I got through the intro screens and the start screen; the title created the player profile and settings saves (Player~..., SettingsProfileSettings~...), then started loading into the world. - 2,595 frames presented; between frames 1024 and 2048 it ran at about 30 fps (22,386 draws and 1,025 dispatches in that span). Remaining warnings before the world: - 76 x "host pipeline refused ... (0x80070057)", mostly compute shaders - many "shader does not translate; its pipelines' draws are dropped", mostly compute, a few mesh and pixel (e.g. "a lane mask read as data is not supported", "a scalar memory read as data is not supported", "a descriptor read only as data is not supported") - 2 x "no host texture" with E_INVALIDARG, now format 86, 2560x1440, flags 5 (RT | UAV) - the device method at slot 0x1c8 is still reported as not implemented Entering the world: the first mesh pipelines are created, a submission takes 3040 ms ("slow host submission ms=3040 lists=27"), and the host device is removed: host GPU device removed after a submission of 27 lists; no breadcrumbs (0x887A0004); device removed: DXGI_ERROR_DEVICE_HUNG (0x887A0006) So on Windows 10 with #175 it now behaves like the README describes for Windows 11: menus, profile and saves work, and the world hangs the GPU. One earlier launch, 12 s before the working one, threw C++ exception 0x887e0003 from the XboxBvhBuilder image while loading D3D12Core.dll. I think the Agility files were not in place yet; it didn't happen again. Happy to run a diagnostics build with VICTORY_D3D12_DEBUG=1 / VICTORY_D3D12_DRED=1 if that helps. Windows 10 Pro 22H2 (19045.6466), RTX 5060, Ryzen 5 5600, 16 GB RAM. [crashes.log](https://github.com/user-attachments/files/35323206/crashes.log)
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 03:49 UTC · original

Automated triage for the maintainers.

Thanks for the complete report and the follow-up run (RTX 5060, Windows 10 22H2 19045.6466, 8e79c80, crash at +0xb5a5f8 read 0x68 during Game Init). This is the Windows 10 in-box D3D12 failure: root signatures with the directly indexed heap flags are refused, nothing draws, and the title then crashes at +0xb5a5f8. It is tracked in #84, the oldest complete report. Your test with #175 (closed without merging) getting past Game Init matches the other Windows 10 results there. main still does not load an Agility SDK runtime. The open PRs for it are #463 and #969.

The other findings:

  • R9G9B9E5 render target / UAV refused (format 67, flags 5): main has no fallback for this format. Open PR #492 substitutes R16G16B16A16_FLOAT.
  • World entry DXGI_ERROR_DEVICE_HUNG with the Agility runtime: this is the NVIDIA world hang tracked in #71.

Please retest once one of the Agility PRs is merged.


Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-25 03:49 UTC · [original](https://github.com/Marvisak/VIctory/issues/741#issuecomment-7152277850) <!-- victory-issue-triage v1 verdict=tracked seen=2026-11-24T09:30:46Z at=2026-11-25T03:49:40Z --> Automated triage for the maintainers. Thanks for the complete report and the follow-up run (RTX 5060, Windows 10 22H2 19045.6466, `8e79c80`, crash at `+0xb5a5f8` read `0x68` during Game Init). This is the Windows 10 in-box D3D12 failure: root signatures with the directly indexed heap flags are refused, nothing draws, and the title then crashes at `+0xb5a5f8`. It is tracked in **#84**, the oldest complete report. Your test with #175 (closed without merging) getting past Game Init matches the other Windows 10 results there. `main` still does not load an Agility SDK runtime. The open PRs for it are #463 and #969. The other findings: - **R9G9B9E5 render target / UAV refused (format 67, flags 5):** `main` has no fallback for this format. Open PR #492 substitutes R16G16B16A16_FLOAT. - **World entry `DXGI_ERROR_DEVICE_HUNG` with the Agility runtime:** this is the NVIDIA world hang tracked in #71. Please retest once one of the Agility PRs is merged. --- _Generated by [Claude Code](https://claude.ai/code)_
This discussion has been locked. Commenting is limited to contributors.
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.

Dependencies

No dependencies set

Reference
github/Marvisak--VIctory#741
No description provided.