Windows 10 + RTX 4080: crash at start without the D3D12 Agility SDK; memory and per-frame CPU work grow during play #138
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA#138
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?
@vvarlord on GitHub · 2026-11-27 18:41 UTC · original
Windows 10 + RTX 4080: crash at start without the D3D12 Agility SDK; memory and per-frame CPU work grow during play
Three things from building and playing this fork on Windows 10 with an RTX 4080:
victory.exefixes it (patch below).System
cargo build --release --locked -p victoryvictory playdefaults): Series X profile, native 2560×1440, DLSS Quality, no frame-rate cap, frame generation made ready; switched on at 2x from F11. Windows 10: every graphics pipeline refused, crash at start
What happens: after the NVIDIA download the window opens, then the title crashes. Its own crash handler reports "Game State: Game Init" at frame 0, and the layer blocks the minidump upload. It happened the same way on both runs.
In the log, for every graphics pipeline (457 of 457 in one run):
Cause:
root_signature()incrates/victory-gpu/src/pipeline/host.rsalways setsCBV_SRV_UAV_HEAP_DIRECTLY_INDEXED | SAMPLER_HEAP_DIRECTLY_INDEXED, which need shader model 6.6. Windows 10's in-box Direct3D 12 runtime (D3D12Core.dll10.0.19041.7291 here) has no shader model 6.6 and rejects those flags. The README lists Windows 10 as supported, but the measurements were all taken on Windows 11.Fix used here: the D3D12 Agility SDK.
victory.exeexportsD3D12SDKVersionandD3D12SDKPath, and Direct3D 12 then loads a newer runtime from aD3D12\folder beside the exe.Then
D3D12Core.dllandd3d12SDKLayers.dllfrom the NuGet package Microsoft.Direct3D.D3D12 1.620.2 (build/native/bin/x64) go intoD3D12\besidevictory.exe. Both are signed by Microsoft and on the package's list of distributable files.Checked:
dumpbin /exportsshows both symbols.victory translate --pipelines <empty folder>, which makes a device and requires shader model 6.6, passes.Worth knowing before taking it upstream:
D3D12\folder, Windows 10 makes no device at all:The D3D12 SDK version configuration of the host exe is invalid. A release would have to ship the folder, orvictory playcould fetch it on first start the way it fetches NVIDIA's files.D3D12SDKPathis relative to the exe's folder, so for the one-file release the folder has to sit in the game folder too.2. Resources used during one session
The session ran about 46 minutes and was ended normally ("title suspended; ending the title"). Frame generation was on at 2x for most of it.
Graphics card
Process and PC, sampled three times at minute 38:
victory.exeVICTORY_WAIT_RESIDENT=0counter)For reference, the title reserves 24 GB of address space at start and is told its limit is 13,824 MB.
Frame rate and submitting thread over the session
The audio was choppy. There are no audio lines in the log, so it is probably the stalls above, but that is a guess.
3. Memory and per-frame CPU work keep growing (possible leak)
Process memory: at minute 38, private memory grew about 1 GB a minute (40.36 → 41.32 GB in 50 s), with 8.65 GB of commit left on the PC. At that rate commit would have run out within ten minutes. The game was closed at minute 46, so I don't know what happens then, and I have no sample from earlier in the session. The memory the log does account for stays flat: host copies on the card at about 2.1 GB, and title memory by address at 4 pages. So whatever grows is not in the log.
Submitting thread: its work per frame went from 22 ms to 72–122 ms, and the GPU is idle behind it, so this is what pulled the frame rate down. Two parts of it grow far more than the rest:
VICTORY_LATE_WAIT=2)VICTORY_CARD_STEPS=2)Part of that is the scene, since the area got busier from minute 34. But the cost per unit of work rose as well:
A cost per unit that rises while the process keeps growing could mean that something these two passes walk keeps getting longer. That is a guess. I can run a diagnostics build or turn on a switch that shows where host memory goes, if one exists.
In-game effects
I started at chapter 1, and the game ran fine at a constant 14 fps real and 28 fps with frame generation. This continued until roughly after I broke Donnie out. That's when I first noticed the quality degrading, around the minute 38 mark where Claude captured the data. From there, the quality degraded drastically. The sound got so choppy and unpleasant that I had to take my headset off. More and more lighting bugs started to appear, and at one point the whole screen just turned white for about 10 seconds. The frame rate dropped to single digits. As soon as a cutscene started to play, the errors lessened slightly, but as soon as it went back to gameplay, they came straight back.
4. Smaller: frame generation can't be switched off on an RTX 40 with 3x–6x selected
An RTX 40 generates at most one frame per rendered frame. With 3x–6x selected in F1, the layer caps it to 2x correctly while frame generation is on. But on every frame without an upscale (menu, loading), it tries to switch frame generation off and passes the uncapped count, which Streamline refuses:
This happened 13,399 times in this session. In
crates/victory-gpu/src/streamline.rs, the cap tonum_frames_to_generate_maxsits insideif on && .... On the way off,wanted.max(2) - 1goes toslDLSSGSetOptionsunchanged, the call fails,calls.framegen_onstaystrue, and it is tried again on the next frame. Applying the cap on the way off too, or sending 1 when off, should fix it.The full log of the session (42 MB) is available on request.
@CuteBooty on GitHub · 2026-11-27 19:04 UTC · original
A data point for your point 2 and 3 (memory and per-frame work growing), from much smaller hardware: RTX 3070 8 GB, Ryzen 5 3600, 32 GB, Windows 11, Series S profile at 1080p, no DLSS, built from source.
I saw growth that follows play in the same way and counted where it came from. On this PC it was the table of placed-view shapes: padding words in the descriptions carry garbage, so nearly every buffer view looks new, the table (4,194,304 shapes) fills inside about 30 minutes of play, and after that views fall through to entries that are never released.
#58 fixes exactly this, and it is approved but not merged yet. With my own local patch of the same idea (not that branch):
1010e023, 30 min)d12eb1b2+ patch, 37 min)More detail is in my comment on #58.
So it may be worth repeating your 46-minute session on the #58 branch: if the same thing is behind your numbers, the growth per minute and the submitting thread's time should both stop climbing. Your log can tell beforehand: in the
memory, morelines, look atshapes of placed views keptand see whether it runs up to 4,194,304.What I can not say from my runs:
No logs attached (mine carry local paths); I can post trimmed lines if useful.
Measurements and this note were prepared with an AI assistant (Claude Code); the runs were played on my machine.
@BE29ZZ on GitHub · 2026-11-27 20:00 UTC · original
Opened #237 to fix item 4 (turning DLSS Frame Generation off on RTX 40 cards when 3x–6x is selected in F1 now passes
num_frames_to_generate = 1instead of the uncapped count, preventing thecode=38loop).@trustno1-coder on GitHub · 2026-11-27 20:08 UTC · original
v2026.11.27.4 (https://github.com/trustno1-coder/VIctory-NVIDIA/releases/tag/v2026.11.27.4) includes a fix for memory that keeps growing during play (PR #58). The same view became a new table entry every time the game rewrote it, reaching millions of entries and gigabytes after 15+ minutes. That's what ends in "not enough memory" (0x8007000E) and then the GPU dropping out. Please try the new exe. If it still runs out, attach the new play log. On a 16 GB RAM PC, Series S in the F1 menu also helps a lot.
@trustno1-coder on GitHub · 2026-11-27 20:59 UTC · original
A fix for this is released: v2026.11.27.6 (https://github.com/trustno1-coder/VIctory-NVIDIA/releases/tag/v2026.11.27.6).
Your log shows the start-up crash 0x887E0003, "The D3D12 SDK version configuration of the host exe is invalid" (D3D12SerializeVersionedRootSignature). victory.exe kept asking Windows for Direct3D 12 1.614 whatever was there, and releases before .6 could not change that. Now it asks for the version that is actually there: the
D3D12folder's, or Windows' own.On Windows 10 it then offers to download Microsoft's 1.614, because Windows 10's own is too old for the game's shaders. Answer Y, or run
victory.exe get-d3d12in that folder.Please try .6 and tell me if it starts. If it doesn't, attach the new
victory-nvidia-play-*.logandcrashes.log(both in %LOCALAPPDATA%\victory\logs) and your Windows version (winver).@trustno1-coder on GitHub · 2026-11-27 21:33 UTC · original
For Windows 10: v2026.11.27.7 (https://github.com/trustno1-coder/VIctory-NVIDIA/releases/tag/v2026.11.27.7) should fix the close a second after the start. Windows 10's own Direct3D 12 refuses a kind of root signature the translated shaders need, even when it reports shader model 6.8, so .6 never offered Microsoft's newer runtime there. Now, on Windows 10 without a
D3D12folder, victory.exe always offers it at the first start: answer Y (Microsoft's own, from nuget.org, about 22 MB, signed by Microsoft), or runvictory.exe get-d3d12in that folder. If it still fails, please attach the newestvictory-nvidia-play-*.logfrom%LOCALAPPDATA%\victory\logs\and%LOCALAPPDATA%\VIctory\data\7952987A\crashes.logfrom that run.@vvarlord on GitHub · 2026-11-27 21:52 UTC · original
ok, can confirm the installer on windows 10 works, going to test now what happens on a longer session and will report back, thanks for the quick fix.
@vvarlord on GitHub · 2026-11-27 23:47 UTC · original
ok i just played for 2 hours and did not have any issues, so looks like the fix worked. At least on my machine ^^