Docs: diagnose Windows memory exhaustion during world loading #80
No reviewers
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!80
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-80"
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?
@mattiolocoding on GitHub · 2026-11-27 17:08 UTC · original
mattiolocoding:docs/windows-memory-pressure→main· +115 −0 · 2 files · 4 commits · openA Series S run on an RTX 3060 Ti 8 GB and 32 GB of RAM reaches the menu, then aborts on the first scene load when Windows system commit reaches its limit. The README now points to a troubleshooting guide with the measured failure, a launch profile for comparison, instructions for checking commit and GPU memory, and links to related reports.
Two isolated retries reached the same limit, including one with two pipeline workers and synchronous command recording. With automatic paging active after reboot, the same two-worker profile passed the allocation failure and reached the intro with audio and subtitles. The picture was black and the process ended on window close. The guide records those limits, the live GPU budget, and related upstream proposals.
Validated: the documentation's local links resolve,
git diff --checkpasses, andxtask policyaccepts all 280 tracked files. The change contains documentation and summarized measurements. AI-assisted with Codex.@YUYING234 on GitHub · 2026-11-27 17:12 UTC · original
Issues are disabled on this repository, so this goes here, because it is the same subject: host memory and VRAM exhaustion on an 8 GB card, measured on the release build.
Machine: RTX 4060 Laptop 8 GB (8,188 MiB; D3D12 budget here about 6.4 GB), i9-14900HX, 32 GB DDR5, Windows 11 build 26300, driver 621.01, HAGS on, hybrid graphics.
d12eb1b, release build, NVIDIA files fromGet-NVIDIA-DLSS.cmd. Launched with-SeriesS -Dlss performance -FrameGen -FrameGenX 2, no menus touched.Two things your patch would have been measuring here
1. The card spends the whole run over its budget, with the overflow in host memory. 174 samples, every 5 s, 14 m 39 s:
One frame at 19:59 was near-white with
DRAWS 7283 DROPPED 2548andSHARED 7.7- that is the shape of the failure your log line would name.2. The run ended in a device removal, 14 m 39 s in, after the pipeline library failed to load over and over:
The library never loads on this card, so everything in it is compiled at run time - 259 ms for one mesh+pixel pair in that log. If your diagnostics name the phase, this run would tell us whether the removal follows the memory trim or the pipeline storm.
One more datapoint for the memory question
DLSS Frame Generation works on this card - Streamline reports it supported and it is a clean 2.07x (12 -> 24, 13 -> 26, 14 -> 28, 18 -> 36) - but only for the first three minutes. It then stops and never returns for the remaining 11 m 30 s, while the render rate recovers (16 fps, FG off). With
-Dlss qualitybefore that it was intermittent: 5 of 12 samples without FG, and those sat at 7.74-7.85 GB where the working ones sat at 7.53-7.70 GB.So the frame generation drop tracks the card's memory closely, which is what
READMEsays it should - but "never comes back" is not what I would expect from pressure alone, and if your trim runs during world loading it may be the same knob.Happy to re-run with any build or switch you want (I can also put the four-line CSV of the whole session anywhere you like). No game files, screenshots or NVIDIA files are included.
@YUYING234 on GitHub · 2026-11-27 18:18 UTC · original
Follow-up with four things the two fresh-save runs turned up, since three of them look like memory/window code rather than the title.
Both runs:
29d8dbf, release,play-foxhound.ps1 -SeriesS -Dlss performance -FrameGen -FrameGenX 2, saves cleared, nothing else touched. The only difference was a reboot between them.1. Going over the card's budget is not occasional on 8 GB, it is the steady state
So both end 1.2-1.4 GB above budget; the reboot only slows the creep by about 30 %. If a low-VRAM preset is meant to hold this card under budget, it does not on a fresh save.
2. A fixed jump of +424 MiB at a scene transition, in both runs
The two runs are independent (different process, one after a reboot) and the jump is the same to within 1 MiB, at the same kind of transition. That reads like one fixed allocation made when a scene changes and not given back, rather than a per-frame leak - which would fit the "creep" that never comes down.
3. Closing the window with frame generation on leaves an orphan process
CloseMainWindow(and Esc, which appears to do the same) destroyed the window but the title kept running:and Streamline then complained on every present until the process was killed - 923 lines:
So the shutdown path never reaches
lifecycle: window closed: suspending the title, and FG keeps presenting to a dead window. Worth a check on whatever handles WM_CLOSE while frame generation is on - for us the only clean way out was the in-game pause menu (and a reboot after the orphan, because it keeps the card allocated).4. The frame-generation dropouts are not a VRAM cliff
I had assumed (in my first message) that FG stops once the card passes about 7.7 GB. B rules that out: FG worked in 36 of 36 samples at 7.6-7.7 GB, 12.5 -> 25.0 fps, exactly 2.00x.
In A, where FG missed 3 of 36 samples, all three were at scene loads, not at high memory:
So the dropouts track transitions, not the memory ceiling - which makes them consistent with the D3D12 device being reset/recreated at those moments rather than with the texture budget. My earlier "over 7.7 GB and FG goes" line is withdrawn.
Also, for context: one hard system freeze
After the two device removals above I kept testing without a reboot and the machine froze outright at 20:36 (no bugcheck, no WHEA, no TDR, no dump -
Kernel-Power 41only). The GPU had logged 27 x nvlddmkm Event 153 in that hour. Hardware checks afterwards are clean (no remapped VRAM rows, disks healthy, battery 86 %). I read it as the driver being left in a bad state after repeated device removals rather than anything in your code, but if the pipeline-library path can trigger a removal, it may be worth knowing that a second removal without a reboot was enough to take the machine down.No game files or screenshots attached; everything above is numbers from my own runs.
@YUYING234 on GitHub · 2026-11-27 18:21 UTC · original
Following the reporting format you added in
29d8dbf(good timing - it made me go back and read the codes properly, and I had one of them wrong).GPU RTX 4060 Laptop 8 GB (8,188 MiB, D3D12 budget ~6.4 GB), driver 621.01, hybrid graphics, HAGS on. Windows 11 build 26300. Release
29d8dbf, built here; launched withscripts\play-foxhound.ps1 -Exe <own copy> -SeriesS -Dlss performance -FrameGen -FrameGenX 2 -Build release, saves cleared, no menus touched.The two logs from the run that went wrong
Play log:
%LOCALAPPDATA%\victory\logs\victory-nvidia-20261127-204818.log(8.67 MB, run ended 20:57:11). The failure is at line 36629:I had been quoting 0x887A0005 in my earlier comments, and that was wrong. The codes in the log are:
DXGI_ERROR_DEVICE_HUNG("the GPU will not respond to more commands; most likely the application passed an invalid command") - this is the real one,DXGI_ERROR_UNSUPPORTEDalongside it, which reads like a follow-up call after the hang rather than the cause.So this is a hung GPU, not a removed device, and that matters: on this machine a hang is not contained by the driver. The same evening the whole system froze once (no bugcheck, no WHEA, no TDR, no dump, only
Kernel-Power 41), andnvlddmkmhad logged 27 x Event 153 in the hour before. If the hang is real and not synthetic, TDR is not catching it here.Crash log:
%LOCALAPPDATA%\victory\data\7952987A\crashes.log, 0.9 KB, both entries from today, pasted whole:%LOCALAPPDATA%\victory\data\7952987A\temp\holds no*.crash.logfrom either run - the small dump path never ran, which fits a hang: the process is still alive when the device stops answering.What both runs looked like just before
Both go over budget by a lot before the hang, and in both the load right before it is the same shape: a scene change, then a fixed +424 / +425 MiB step in VRAM that never comes back down (independent runs, one of them after a reboot). That is in my previous comment; mentioning it again only because a hung GPU and a card driven 1.4 GB past its budget are hard to separate from the outside.
And the exit path, which may be the same code area
Closing the window with frame generation on leaves the process running (18.89 GB RAM, 7.7 GB VRAM, GPU 100 %) and Streamline complains 923 times:
lifecycle: window closed: suspending the titlenever appears in that run's log. Only the in-game pause menu exited cleanly.What I can add
I have the full 8.67 MB play log and the 6.31 MB one from the other hang; tell me which lines you want and I will paste them (I did not attach 15 MB of log to a comment). The one thing I cannot give you is a clean reproduction: it happens after 4-7 minutes at 12-15 fps, once the card is above budget, not at a fixed step.
@YUYING234 on GitHub · 2026-11-27 19:47 UTC · original
Tested
0cef07eon the same 8 GB laptop tonight, and whatever went in between29d8dbfand this one changed the picture completely. Same machine, same launch line (-SeriesS -Dlss performance -FrameGen -FrameGenX 2), saves cleared.The run
25.8 minutes and still going, no device hang, no crash-log entry. For comparison, on the same card tonight:
d12eb1b(this morning)29d8dbfDXGI_ERROR_DEVICE_HUNG(0x887A0006)0cef07eThat is the creep down by a factor of about 18, and the run outliving the previous best by 3.6x without a hang.
Ten-minute window in detail (60 samples, every 10 s):
Note the third line: 7213 draws with the GPU at 33 % and
IDLE BEHIND US 19.4in the panel - that is the submitting side, not the card, and it is the only place in the run where the GPU was not the limit.Two things you may want to know
1. The warm-up restart does not fire from the script launcher. I launched with
scripts\play-foxhound.ps1 -Exe <game>; one process the whole time, and%LOCALAPPDATA%\victory\warmednever appeared, so the first start of a newvictory.exestill runs cold on that path. If the marker is only written byvictory.exe play, the launcher users keep the slow first session. (My first two fresh runs today sat at 12.5 and 14 fps medians - I now cannot tell whether that was the cold start or just this card, because the restart never happened on this path.)2. The card's own budget shrinks as shared memory grows. The F3 panel started the run at
VRAM 6.3/6.4 GBand ended it atVRAM 6.1/5.5 GBwithSHARED 7.8- Windows cut the budget by about 900 MiB once the overflow to shared memory got large. So on 8 GB the usable budget is not a constant, and a loop that trims to "the budget" will chase a moving number.Visual, in case it is useful
Interiors look right: skin, hair, lamp falloff and depth of field all read correctly at DLSS Performance, and the softness is what I would expect from the 0.5 scale. Two places do not:
Both are the same pair of symptoms I reported against another fork on this hardware, so it may be the title's lighting being translated rather than anything of yours.
Same offer as before: tell me which lines you want from the play log and I will paste them; I did not attach 9 MB of log.
@YUYING234 on GitHub · 2026-11-27 19:48 UTC · original
Correction to the comment above, 24 seconds after I wrote it: the run did hang. It was alive at 25.8 minutes when I sampled it, and
crashes.logrecorded the failure at 26 minutes exactly:So the corrected table is:
d12eb1b29d8dbf0cef07eStill a large improvement - creep down ~18x, life up ~3.7x - but not fixed, and the two are probably not the same thing: the creep had almost stopped (+95 MiB over the ten minutes before the hang, flat by the end) when the hang came anyway. That fits your own new line in
crashes.logbetter than it fits a memory theory: it is one command, not a budget.Which is why I am going to build with
--features diagnosticsand run withVICTORY_D3D12_DEBUG=1next, so the next hang names the command instead of us guessing. If there is anything else you want set at the same time (a logging level, a switch you suspect), say it now and I will include it in the same run - a hang costs 5 to 26 minutes and I would rather spend it on your list than mine.One thing that changed since the previous build and may matter: the hang at 26 minutes came after several story beats had loaded (the run went from an interior to a gym, a street, a police scene), so there were more distinct pipelines in play than in the 7-minute run. If the command that hangs is a rare one, that is where it would show up.
@YUYING234 on GitHub · 2026-11-27 23:13 UTC · original
Closing the loop on the crashes I reported, with a correction to something I said earlier first.
Correction. My first two comments said "no menus touched". That was true of the first runs. The last three runs ran with settings saved from the F1 menu, and those override the launch flags - so the command line I quoted is not what actually ran. The values, since they are what anyone reproducing this needs:
The part that matters for reading the result below: the run that survived used
VICTORY_MENU_RES=1440, i.e. 2560x1440, while the runs that hung used1080to1440. So it was not a lighter scene that saved it - if anything it was a heavier one.What happened on
df2daafSame machine, same fresh save, same prologue. Reached the boat - the scene that hung three times tonight (DEVICE_HUNG at 47 s twice, and one whole-system freeze at the same point) - drove it for 22 minutes with no hang.
And one thing that is new rather than a non-event: the
pipeline library: made [...] (the library did not load it: 0x80070057)lines that ran through every earlier log are gone from this build. That was the tightest pattern I had around the hangs, so its disappearance is the most interesting line in this comment.What I will not claim
e69e39c's upload room reservation: a missing upload buffer leaves a copy that never completes, and the crash log named exactly that -Unsignaled CrossQueueBarrier: 82d9447withStreaming Requests: 1211inPrestream. But that is a guess from the symptom, not a measurement.Next from me unless you would rather I did something else: repeat the same 22-minute boat run twice on
df2daafto see whether "no repro" holds, since one clean run against three hangs is thin evidence.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.