a host command list did not close (0x80070057) with frame generation on, at 4k+ draws/frame, while the card's VRAM budget is NOT exhausted #4942

Open
opened 2026-12-01 14:56:35 +00:00 by github-bot · 3 comments
Owner

@⁠zifeiyuzl on GitHub · 2026-12-01 14:55 UTC · original

Build: v2026.11.30.03 (release, victory.exe SHA-256 d178c927...3711)
GPU: NVIDIA GeForce RTX 4090 Laptop 16 GB (Ada), driver 617.42
Profile: Series X, native 1440p, DLSS Quality, frame generation 2x
OS: Windows 11 22631, hardware-accelerated GPU scheduling on

What happens

The game aborts after 20-26 minutes of play with:

ERROR victory_gpu::host: a host command list did not close
      (0x80070057): a command recorded into it was invalid

Same address every time. crashes.log records it as host GPU failure. No host pipeline failed, no shader translation failures.

The important part: VRAM is NOT exhausted

From memory now: right before the crash:

the card's own : 12,072 MB in use of a budget of 14,625 MB   ← 2.5 GB still free
the PC's shared:  8,555 MB in use                            ← 8.5 GB already moved off-card

2.5 GB of dedicated VRAM is unused while 8.5 GB of resources have already been evicted to system
memory over PCIe.
The layer is walking off the card before it has to.

Related counters from the same run:

new memory waited for (VICTORY_WAIT_RESIDENT=0): 30,000 times, 10,719.9 ms, longest 431.7 ms
present budget: over_60hz=21  over_30hz=21        (every frame over 33 ms)

Why the test setup does not show this

Your notes say the test route is "in the opening rooms". This crash happens at
4,412 draws/frame in a dense scene. VICTORY_TEXTURE_ROOM_PERCENT=80 is a fixed percentage of the
budget (~11.8 GB here), so:

  • opening rooms: texture demand < 11.8 GB → nothing spills → fine
  • dense scene (4k+ draws): demand > 11.8 GB → the excess is placed in the 31.8 GB shared pool, which
    D3D12 accepts silently → no error, just PCIe-latency reads on every sample

A 12 GB card does not hit this only because its absolute pool is smaller and its test scene is lighter;
the ratio is the same, the workload is not.

What I tried

VICTORY_SLOTS_BITMAP=1 (the newer descriptor-slot allocator):

counter default allocator VICTORY_SLOTS_BITMAP=1
descriptor slots rewritten ("showed a texture and were written with another") 3,469,561 1,126,604 (−68%)
new memory waited for 77,000 / 22.8 s 30,000 / 10.7 s (−53%)
shared memory in use 9,849 MB 8,555 MB
time to crash 20 min 28 s 26 min 18 s
frame rate 21.5 fps 18.4 fps (−14%)

So the newer allocator cuts the slot churn a lot and delays the crash, but does not stop it, and it
costs 14% frame rate. The default allocator therefore stays on for me.

VICTORY_ALIAS_TARGETS is unset (off by default as of v2026.11.29.02), and there is no alias_rt
overflow_tiles line in the log — so this is no longer the render-target aliasing overflow.

Suggestion

  1. VICTORY_TEXTURE_ROOM_PERCENT looks like it is computed from the total budget instead of the
    remaining one. Computing the pool from budget − in_use − (render targets + FG buffers) would
    stop the early eviction. At minimum, when the dedicated budget still has free space, nothing should
    be placed in the shared pool.
  2. If the pool must stay a fixed percentage, consider lowering it automatically when draws/frame rises
    above some threshold (this scene runs 4.4k).
  3. The 0x80070057 on Close() happens with frame generation on and appears tied to the descriptor
    slot churn (see the numbers above) — the newer allocator reduces but does not remove it.

Logs

Attached: the play log up to the crash (30.5 MB) and crashes.log.

Hardware note: this is a laptop 4090 with a 160 W ceiling, 16 GB. The desktop test card is 12 GB but
much faster per watt, so the draw-call density here is far higher than in the opening rooms.

**@⁠zifeiyuzl** on GitHub · 2026-12-01 14:55 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4941) **Build**: v2026.11.30.03 (release, `victory.exe` SHA-256 `d178c927...3711`) **GPU**: NVIDIA GeForce RTX 4090 **Laptop** 16 GB (Ada), driver 617.42 **Profile**: Series X, native 1440p, DLSS Quality, frame generation 2x **OS**: Windows 11 22631, hardware-accelerated GPU scheduling on ## What happens The game aborts after **20-26 minutes of play** with: ``` ERROR victory_gpu::host: a host command list did not close (0x80070057): a command recorded into it was invalid ``` Same address every time. `crashes.log` records it as `host GPU failure`. No `host pipeline failed`, no shader translation failures. ## The important part: VRAM is NOT exhausted From `memory now:` right before the crash: ``` the card's own : 12,072 MB in use of a budget of 14,625 MB ← 2.5 GB still free the PC's shared: 8,555 MB in use ← 8.5 GB already moved off-card ``` **2.5 GB of dedicated VRAM is unused while 8.5 GB of resources have already been evicted to system memory over PCIe.** The layer is walking off the card before it has to. Related counters from the same run: ``` new memory waited for (VICTORY_WAIT_RESIDENT=0): 30,000 times, 10,719.9 ms, longest 431.7 ms present budget: over_60hz=21 over_30hz=21 (every frame over 33 ms) ``` ## Why the test setup does not show this Your notes say the test route is "**in the opening rooms**". This crash happens at **4,412 draws/frame** in a dense scene. `VICTORY_TEXTURE_ROOM_PERCENT=80` is a fixed percentage of the budget (~11.8 GB here), so: - opening rooms: texture demand < 11.8 GB → nothing spills → fine - dense scene (4k+ draws): demand > 11.8 GB → the excess is placed in the 31.8 GB shared pool, which D3D12 accepts silently → no error, just PCIe-latency reads on every sample A 12 GB card does not hit this only because its absolute pool is smaller and its test scene is lighter; the ratio is the same, the workload is not. ## What I tried `VICTORY_SLOTS_BITMAP=1` (the newer descriptor-slot allocator): | counter | default allocator | VICTORY_SLOTS_BITMAP=1 | | --- | --- | --- | | descriptor slots rewritten ("showed a texture and were written with another") | 3,469,561 | 1,126,604 (−68%) | | `new memory waited for` | 77,000 / 22.8 s | 30,000 / 10.7 s (−53%) | | shared memory in use | 9,849 MB | 8,555 MB | | time to crash | 20 min 28 s | 26 min 18 s | | frame rate | 21.5 fps | 18.4 fps (−14%) | So the newer allocator cuts the slot churn a lot and delays the crash, but does **not** stop it, and it costs 14% frame rate. The default allocator therefore stays on for me. `VICTORY_ALIAS_TARGETS` is unset (off by default as of v2026.11.29.02), and there is **no** `alias_rt` `overflow_tiles` line in the log — so this is no longer the render-target aliasing overflow. ## Suggestion 1. `VICTORY_TEXTURE_ROOM_PERCENT` looks like it is computed from the total budget instead of the **remaining** one. Computing the pool from `budget − in_use − (render targets + FG buffers)` would stop the early eviction. At minimum, when the dedicated budget still has free space, nothing should be placed in the shared pool. 2. If the pool must stay a fixed percentage, consider lowering it automatically when draws/frame rises above some threshold (this scene runs 4.4k). 3. The `0x80070057` on `Close()` happens with `frame generation on` and appears tied to the descriptor slot churn (see the numbers above) — the newer allocator reduces but does not remove it. ## Logs Attached: the play log up to the crash (30.5 MB) and `crashes.log`. Hardware note: this is a **laptop** 4090 with a 160 W ceiling, 16 GB. The desktop test card is 12 GB but much faster per watt, so the draw-call density here is far higher than in the opening rooms.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 14:56:35 +00:00
Author
Owner

@⁠hrk1337 on GitHub · 2026-12-01 15:04 UTC · original

I might be experiencing the exact same issue #4934

**@⁠hrk1337** on GitHub · 2026-12-01 15:04 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4941#issuecomment-7315296867) I might be experiencing the exact same issue [#4934](https://git.gtahub.st/github/trustno1-coder--VIctory-NVIDIA/issues/4934)
Author
Owner

@⁠Destoryed1 on GitHub · 2026-12-01 15:10 UTC · original

Same thing happens to me on an RTX 4080S, though frame generation disable.
And it refuses to crash when in debug mode.

**@⁠Destoryed1** on GitHub · 2026-12-01 15:10 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4941#issuecomment-7315457656) Same thing happens to me on an RTX 4080S, though frame generation disable. And it refuses to crash when in debug mode.
Author
Owner

@⁠andrewpozdnakov7-jpg on GitHub · 2026-12-01 15:14 UTC · original

The 8,555 MiB figure is DXGI NON_LOCAL.CurrentUsage for the process. It includes memory used directly by the GPU from system RAM, such as upload and shared buffers. It does not count how many texture bytes moved out of VRAM. The local figure shows about 2.5 GiB of headroom against the reported budget at that sample. These two counters cannot establish that the texture queue's 80% threshold caused Close() to fail. DXGI counter definition

The RTX 4080 Super report with frame generation off is worth keeping separate until the failing command matches. The same 0x80070057 can come from different commands. If a diagnostics run reaches the failure, the first D3D12 validation error before Close() would help distinguish them. The separate texture-admission logging PR is #4938.

**@⁠andrewpozdnakov7-jpg** on GitHub · 2026-12-01 15:14 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4941#issuecomment-7315577078) The 8,555 MiB figure is DXGI `NON_LOCAL.CurrentUsage` for the process. It includes memory used directly by the GPU from system RAM, such as upload and shared buffers. It does not count how many texture bytes moved out of VRAM. The local figure shows about 2.5 GiB of headroom against the reported budget at that sample. These two counters cannot establish that the texture queue's 80% threshold caused `Close()` to fail. [DXGI counter definition](https://learn.microsoft.com/windows/win32/api/dxgi1_4/ns-dxgi1_4-dxgi_query_video_memory_info) The RTX 4080 Super report with frame generation off is worth keeping separate until the failing command matches. The same `0x80070057` can come from different commands. If a diagnostics run reaches the failure, the first D3D12 validation error before `Close()` would help distinguish them. The separate texture-admission logging PR is #4938.
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/trustno1-coder--VIctory-NVIDIA#4942
No description provided.