Crash at Game Init on Windows 10 + NVIDIA: R9G9B9E5 render target refused (E_INVALIDARG), then access violation at image+0xb5a5f8 (read 0x68) #741
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory#741
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@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 threadsfault 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
8e79c80,cargo build --release -p victory(title build string: 930.048.020-vb_sub_story)
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.dllsubmit.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 addressOnly about 7 shaders are translated before the crash, so it happens
before any real rendering.
Full crashes.log attached (addresses only, no game data).
@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 agilitystep, 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.
@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.
refused" warnings (0 in this run; several per run before).
screen; the title created the player profile and settings saves
(Player~..., SettingsProfileSettings~...), then started loading into the
world.
30 fps (22,386 draws and 1,025 dispatches in that span).
Remaining warnings before the world:
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")
flags 5 (RT | UAV)
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
@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+0xb5a5f8read0x68during 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.mainstill does not load an Agility SDK runtime. The open PRs for it are #463 and #969.The other findings:
mainhas no fallback for this format. Open PR #492 substitutes R16G16B16A16_FLOAT.DXGI_ERROR_DEVICE_HUNGwith 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