Device removed (0x887A0006) after 28-66 min on RTX 5070 Ti 12 GB: texture memory sits 1.9-3 GB above the queue's own line and the queue never gets room back (756 "no room" vs 6 "room") #4930
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?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by wrongsnow on 2026-12-01T14:30:08Z.
Body
Short version: on a 12 GB card this build always dies after 13-66 minutes with
DXGI_ERROR_DEVICE_HUNG (0x887A0006)or witha host command list did not close (0x80070057), and the length of the session tracks the VRAM budget almost linearly. The texture queue finishes every session 1.9-2.4 GB above its own "line", withno room, new textures waitprinted hundreds of times androomalmost never. LoweringVICTORY_VRAM_BUDGET_MBonly postpones it (10.9 GB -> 40 min, 9.0 GB -> 66 min); making the texture cache release sooner made it shorter (29 min). I could not find a setting that stops it.System
VICTORY_NATIVE_1440P=1), DLSS QualityBuilds and settings where it happens
d178c927334740e00x887A0006device hung, 2xnvlddmkm153d178c927334740e0a host command list did not close (0x80070057)77811902a17cb8a0a host command list did not close (0x80070057)d178c927334740e00x887A0006device hung, 2xnvlddmkm153d178c927334740e0VICTORY_TEXTURE_KEEP=0+VICTORY_TEXTURE_SOFT_MB=1500a host command list did not close (0x80070057)Launch line in every run, apart from the budget:
The 9000 MB budget was set through
%LOCALAPPDATA%\victory\victory-settings.txt(VICTORY_VRAM_BUDGET_MB=9000); setting the same value as an environment variable or on the command line had no effect,playreplaces it.Several shorter sessions while I switched settings ended the same way at 2-28 minutes; nothing ever ran past 66 minutes.
Evidence from the 66-minute run (budget 9000 MB)
The last
roomline before it died:Then, 3 seconds before the device went:
Windows logged
nvlddmkmevent 153 twice in that same second (21:44:29 and 21:44:31 local). There was noDisplayevent 4101 and no bugcheck - the driver recovered, the layer's device was gone.no roomwas printed 756 times in that session androom6 times.In the 40-minute run on the same build (AUTO budget) the same line read
12120 MB in use ... against a line of 10142 MB ... no room, new textures wait,no room427 times againstroom32 times, and it ended the same way.The part I think matters
no roomdominates the whole session (756:6), so the texture queue is starved from early on; frames still render, so this is not the same thing as the "no room at the start" case.0x887A0006device hung (with frame generation) anda host command list did not close (0x80070057): a command recorded into it was invalid(with and without frame generation, and on .01 as well).Also seen at every start (may be unrelated)
The title asks for ~6.1 GB in one reservation at startup and the layer cannot place it "at first". It then continues. I mention it because commit
9e405ccb("keep 512 MB below 4 GiB for the title's 32-bit reservations, given back on refusal, #4043") is onmainbut not in .03.What I tried, and what did not help
0x80070057instead of0x887A0006.host pipeline library loaded bytes=965350898 mapped=true. It removes the startup stalls, but not this crash.Release paths - tried, they made it worse
With the 9000 MB budget left in place I then set
VICTORY_TEXTURE_KEEP=0(the docs say the default keeps idle texture copies for up to ten minutes) andVICTORY_TEXTURE_SOFT_MB=1500instead of 3000 - i.e. make the queue give memory back sooner rather than cap what goes in.That run lasted 29.1 minutes and ended with
a host command list did not close (0x80070057), i.e. noticeably shorter than the 66 minutes the same build managed with the default release settings, and it did not stop the climb either:(
no room325 times againstroom6 times in those 29 minutes.)So releasing idle textures sooner did not bring the queue back under its line and shortened the session. I have gone back to the 9000 MB budget with the default release settings, which remains the longest-lived configuration I have found (66 min).
Questions
VICTORY_TEXTURE_KEEP,VICTORY_TEXTURE_SOFT_MB,VICTORY_TEXTURE_SWEEP,VICTORY_CARD_WINDOWS_IDLE_MS) is the one that should be bringing it back?0x887A0006here a symptom of that (a command that reads a resource that was taken away), or a separate bug? IsVICTORY_D3D12_DEBUG=1the right way to get the command named, and is the debug layer from the "Graphics Tools" optional feature enough for the release build?VICTORY_CARD_ACCOUNTING=1/VICTORY_CARD_BREAKDOWN=1on, and do you want the play log (69 MB for the 66-minute one) attached, or just the tail?Attachments I can provide
victory-nvidia-play-20261201-123825-23452.log, 69 MB), the 40-minute run (41 MB), and the 13-minute no-frame-generation run (16 MB).victory-settings.txtused, the launch.cmd, and the per-secondroomline extracted to CSV if that is easier to read than the log.victory-nvidia-play-20261201-085400-32404-v11.30.01.zip
victory-nvidia-play-20261201-123825-23452.zip
room-66min.csv
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by tyr0nsur on 2026-12-01T14:37:50Z.
I compared the first “no room” row in your CSV with the last one. The gap to the effective queue threshold was already 2,149 MiB at 12:39:32 UTC and was 2,138 MiB at 13:44:27.
The queue stayed starved while the counted texture copies decreased by 678 MiB. That makes the breakdown by allocation type more informative than another smaller texture soft limit. The
budgetreported on that line is the budget the layer uses for its decisions. On this release,VICTORY_VRAM_BUDGET_MBclamps that number while the usage field still comes directly from DXGI. Release sourceFor the next matched run,
--set VICTORY_CARD_BREAKDOWN=1would add the allocation categories to the memory samples. The rows around the first “no room” and the final two minutes, plus the first D3D12 error if present, would answer more than the queue CSV alone. For theClose()error, use a diagnostics build with Windows Graphics Tools and--set VICTORY_D3D12_DEBUG=1. The release gates out that layer even when Graphics Tools is installed. Debug-layer gateImported from trustno1-coder/VIctory-NVIDIA. Originally posted by andrewpozdnakov7-jpg on 2026-12-01T14:38:42Z.
For the launcher setting,
victory playonv2026.11.30.03clears an inheritedVICTORY_VRAM_BUDGET_MBand applies explicit--setvalues after the saved settings. The native CLI spelling is--set VICTORY_VRAM_BUDGET_MB=9000. If that was already the spelling you used, the existing run’sswitches:header and first queue budget line would help locate the difference. Release settings codeI posted a focused Windows-checked change for the inherited memory switches in #4014. It preserves their effective values and the saved-file and
--setprecedence. Patch and resultsAI-assisted with OpenAI Codex.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by wrongsnow on 2026-12-01T15:44:31Z.
Thanks both — both comments are useful, and one of them corrects me.
On the switch plumbing (Andrew, #4014) — you are right, with one addition
We did not use an inherited environment variable. We used the saved F1 file
(
%LOCALAPPDATA%\victory\victory-settings.txt), and on .03 that path does reachthe layer. Evidence from the 66-minute run:
switches:header containsVICTORY_VRAM_BUDGET_MB=9000, together withVICTORY_TEXTURE_ROOM_PERCENT=80 VICTORY_SLOT_EVICT=1 VICTORY_SAMPLED_MARKS=1 VICTORY_SAMPLED_EVICT=0 VICTORY_MENU_FRAMEGEN=2 VICTORY_FRAMEGEN_X=2 VICTORY_MENU_RES=1440 VICTORY_DLSS_MODE=quality… = 2965 MB against a line of 7200 MB (80.0 % of a budget of 9000 MB; 6944 MB after face headroom, 365 MB in texture copies): roomSo the 66.1- and 74.2-minute runs really ran at a 9,000 MB budget; the budget number
is not where the difference lies. Separately I did try the environment variable first
and got exactly the behaviour #4014 describes (no effect). For the next matched run I
will use
--set VICTORY_VRAM_BUDGET_MB=9000and clear the F1 key, so there is noambiguity about which path supplied it.
On the curve (tyr0nsur) — confirmed, and I think your reading is the important one
no room, 12:39:32Z (34 s in):9036 MB in use - 691 MB free in texture blocks + 0 + 748 MB kept for render targets = 9093 MB against a line of 7200 MB (80.0 % of a budget of 9000 MB; 6944 MB after face headroom, 2896 MB in texture copies): no room, new textures wait10461 - 1681 + 0 + 302 = 9082 MB against a line of 7200 MB (… 2218 MB in texture copies): no room, new textures waitWhich matches your table: the gap to the effective threshold is 2,149 MiB at the first
no roomand 2,138 MiB at the last sample, counted texture copies fall 678 MiB whileDXGI usage rises 1,425 MiB, and the queue never comes back under the line —
no room756 times against
room6 in 66 minutes. The same shape appears on v2026.11.30.01(427 vs 32 over 28.4 min) and on the run with the earlier release settings
(325 vs 6 over 29.1 min). I agree that another smaller soft limit is not the lever,
and I am not asking for one.
First D3D12 error — it depends on the run, so both:
Close()error at all. It ends with0x887A0006(device removed / GPU hung) at 13:44:34Z, and Windows logs
nvlddmkmevent 153twice in that same second (13:44:29Z, 13:44:31Z). No Display event 4101, no
bugcheck, the driver recovered and our device was gone.
a host command list did not close (0x80070057): a command recorded into it was invalidat 09:22:22Z.0x80070057after 13 minutes.Debug layer — you are right and I had missed it:
let debug = cfg!(feature = "diagnostics") && switch::on("VICTORY_D3D12_DEBUG"), so the releasebuild can never enable it even with Graphics Tools installed. I will build with
--profile diag --features diagnostics, install Graphics Tools, and post the namedcommand.
Next matched run (short):
--set VICTORY_VRAM_BUDGET_MB=9000 --set VICTORY_CARD_BREAKDOWN=1, and I will post the rows around the firstno room, thelast two minutes, the by-kind breakdown, and the first ERROR.
On the
VICTORY_SAMPLED_EVICT/ white-skin note in #4014 — that is the most usefulthing in this thread for me. I had the naive version of that experiment queued and it
would have failed for exactly the reason you describe. If you want a patch attempt, the
shape I would propose is: evict a cold sampled texture only when its re-upload is
guaranteed to be admitted — reserve the freed bytes and let
first_upload_decisionadmit a texture whose
slot_evictedstamp is a few seconds old, outside the whole-cardbudget; if the reserve is spent, do not evict at all. Happy to write that as a PR
behind a switch (default on,
=0keeps today's behaviour) with unit tests, or to keepit out of the tree if you would rather not go that way.
One question. If ~10 GB really is the floor on this title at 1440p Series X (your
4.4 GB non-texture + ~3.7 GB of textures), then sitting pinned at the wall is expected
and the remaining question is only why it survives 30–74 minutes at that level before
an invalid command shows up, rather than failing immediately. Is there a known
chaining mechanism there, or is that still open?
Note on the original report: I wrote it in Chinese first and used AI translation
for the English, so terminology and some phrasing may be inaccurate — please forgive
that, and tell me if a sentence reads wrong and I will restate it. Every number in it
was taken from the logs; the attached logs and CSV are the ground truth.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by wrongsnow on 2026-12-01T15:51:12Z.
Quick clarification while I collect the breakdown: the 9 GB budget did reach the layer in our runs — we used the saved F1 settings file, and the log's switches: header plus the queue line show a budget of 9000 MB. So the 66/74-minute runs were really at 9 GB. I'll follow up with VICTORY_CARD_BREAKDOWN=1 rows and a diagnostics-build capture.
I am collecting the rest now — the
--set VICTORY_CARD_BREAKDOWN=1rows around thefirst
no roomand around the last two minutes, plus a diagnostics-build capture ofthe first D3D12 error — and will post them here soon.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by wrongsnow on 2026-12-01T17:03:19Z.
Matched run done, with
--setand the breakdown. This one also answers the "who holds the memory"question, and it changes my own reading of the earlier runs.
Run: v2026.11.30.03,
--set VICTORY_VRAM_BUDGET_MB=11000 --set VICTORY_FRAMEGEN_X=3 --set VICTORY_CARD_BREAKDOWN=1 --set VICTORY_CARD_ACCOUNTING=1, Series X, native 1440p, DLSSQuality. 61 minutes, ended 16:59:26Z with
0x887A0006; the submitting thread was stuck 5,173 ms;nvlddmkm153 three times (16:59:19Z/21Z/25Z). The--setvalue did reach the layer — switchesheader has
VICTORY_VRAM_BUDGET_MB=11000and the first queue line says(80.0 % of a budget of 11000 MB …).What holds the memory, last second before the device went:
card 12,655 MB in use of a budget of 10,700 MB(+1,955 over its own budget);host textures 23,041 (6,395 MB)← the largest single item;free texture blocks 2,158 MB;host copies of textures the title fills 21,656 alive (3,650 MB);aliased targets 0 MB;process
committed 33,875 MB.Queue, first vs last (your comparison, repeated at 11 GB):
no room, 15:56:03Z (~2 min in):10179 - 234 + 0 + 725 = 10670 MB against a line of 8573 MB (… 8317 MB after face headroom …): no room→ 2,353 MB over the effective threshold12656 - 2173 + 0 + 320 = 10803 MB against 8626 MB (… 8370 after face headroom …)→ 2,433 MB overno room732 times,room16 times.The new bit — it is not that nothing is released, it is that it is thrashing. At the end, per
second: 163 host copies let go (23 MB) and 113 made again (30 MB), 316 made in all;
482,052 copies let go since the start. So the layer spends the session evicting and
re-uploading at ~160/~110 per second, parked ~2.4 GB above its own line.
That also explains an earlier result of mine: setting
VICTORY_TEXTURE_KEEP=0(release sooner)made the session shorter (29.1 min vs 66–74), because it increased the churn. And a
correction to my first report: the 11 GB run lasted 61 min, so survival is not monotonic in
the budget as I implied; 9 GB gave 66.1 and 74.2 min.
Direction I would try (small and unit-testable, happy to send it as a PR behind a switch):
admission has no hysteresis — a copy is let go and re-admitted at the same threshold, so the card
parks above the line forever. Admit only below
line - VICTORY_TEXTURE_HYSTERESIS_MB(say 512)once the queue has been out of room, and do not re-admit a copy that was let go less than N ms
ago unless the card is below that lower mark. That trades a slightly later texture load for a
near-zero churn and, I hope, no invalid command at minute 30-70.
Is churn at the wall expected on this title, or is the hysteresis direction something you would
want? If you prefer, I can also just attach the three CSVs below and leave the code alone.
Attached:
breakdown-run.csv(755 rows),memory-run.csv(2,767), `robreakdown-run.csv
memory-run.csv
room-run.csv
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by andrewpozdnakov7-jpg on 2026-12-01T17:10:10Z.
The 11,000 MB value reached the layer. The later 10,700 MB DXGI budget still applies because the override is an upper bound on the OS budget. Budget calculation
The churn is now measured. An ordinary-queue band by itself may have little effect here: at the last sample the ordinary queue was already 2,433 MB past its effective line, yet host copies were still being made. The idle sweep also has a drain target below the queue line. First uploads and other copy paths have their own admission rules. Idle sweep thresholds · First upload checks
Please keep the CSVs here. I'd start by identifying which path makes those 113 copies per second back while the ordinary queue reports no room. That tells us where to apply and measure a cooldown. #4462 is planning the shared budget and drain thresholds, so I'd link this run there before adding a second policy. The freeze at the end still needs its own matching evidence.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by wrongsnow on 2026-12-01T17:38:23Z.
Thanks — the upper-bound explanation matches what the lines show (11,000 → 10,716 → 10,700 as DXGI
moved), so we are consistent on the budget.
On which path makes the copies back, I went through the .03 source with the run in hand, and I think
the first-upload gate is not "closed by policy" but mis-computed, which is why it refuses
everything while other paths keep making copies.
1. The first-upload gate never opens on this machine. Last 748 samples: 0 allowed, ~115,000
refused per 5 s, all counted as
ExplicitBudget— butVICTORY_TEXTURE_BUDGET_MBwas not setin that run (
switches:header has noVICTORY_TEXTURE_BUDGET*, onlyVICTORY_TEXTURE_ROOM_PERCENT=80,VICTORY_TEXTURE_SOFT_MB=3000,VICTORY_TEXTURE_POOL=1, …). Readingroom_for_first_uploadatv2026.11.30.03, the second gate
dynamic_texture_capcharges the sameExplicitBudgetbucket, so thelabel is misleading: what is refusing is the dynamic cap, not an explicit byte limit. Worth its own
counter (it cost me an hour chasing a limit that was never set).
2. That cap looks too small by the free space inside allocated texture blocks. At the tag:
others = used - HOST_TEXTURES[1]; // non-texture card bytes
cap = budget - keep_free(512 MB) - others;
used (DXGI) includes the free ranges inside already-allocated 64 MB texture blocks — 234 MB at the first no room and 2,158 MB in the last second — so others is overstated by exactly that, and cap is understated by it. room() next door does credit it (used.saturating_sub(pool::texture_room()), with VICTORY_ROOM_REAL), so the two admission paths disagree.
Numbers from the run:
first no room: budget 10,716, used 10,179, host textures ~4,413, cap ≈ 4,438 → right at the cap
last sample: budget 10,700, used 12,655, host textures 6,395, cap ≈ 3,928 → 2,467 MB past the cap
3. So where do the 113/s come from? Not from the first-upload gate (0 allowed). They come from the paths that do not consult it — the filled-texture refresh and the rest of the index pass. Measured in that same run: making host copies (creation and residency) 34 ms per 5 s in the index pass, 785 slots served at their first look per 5 s (15.2 frames late on average, 909 at most), and uploaded since the start: 1,803,554 textures, 142,481 MB — that is ~39 MB/s of texture traffic for 61 minutes. "Made again" for filled copies is only ~24/s, so the churn is mostly the index pass.
Suggested first change (one function, testable): credit the free space of the texture blocks in dynamic_texture_cap the way room() does, and give the dynamic-cap refusal its own reason counter. That reopens first-upload admission without raising the cap. Then a cooldown on the index pass's re-make path, measured against the same three CSVs.
I will link this run into #4462 as you suggested rather than proposing a second policy here. For the 5,173 ms freeze I have the last 96 things done from that second and can run the diagnostics build with Graphics Tools when you want it — say the word and I will post the named command.
Alright, that's me done for tonight — I'm off to bed, it's 1:30 am here. I'll keep testing tomorrow and post the next matched run once I have it. Thanks again, the pointers were genuinely useful (the cap label one especially — I'd have kept staring at the wrong variable otherwise).
first-upload-refusals.csv
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by andrewpozdnakov7-jpg on 2026-12-01T17:41:33Z.
This matches two changes already being worked on. #4989 has the same counter ambiguity, and the fixed-cap versus dynamic-reserve split is being prepared there. #4989 follow-up
For the first-upload behavior, #4827 at b3ca3736 permits reuse of an already allocated range after checking the texture's actual D3D12 size and alignment in the pool it would use. It also defers the allocation if another upload takes that range first. The 2,158 MB total is split across blocks and pools, so it helps explain the discrepancy and can't guarantee an individual upload fits. A comparison with #4827 would measure that distinction.
For the 5.17 s freeze, the first D3D12 validation error immediately before the failure, if one is logged, is the next detail I would look at. The CSVs are sufficient for the budget discussion.