host command list did not close (0x80070057) still on v2026.11.29.05: the failed list is a decoration bake (diagnostics notes) #3901

Open
opened 2026-11-30 11:02:36 +00:00 by github-bot · 7 comments
Owner

@⁠ShalakZ on GitHub · 2026-11-30 10:57 UTC · original

Version: v2026.11.29.05 (main 41adb551) + two local commits that do not touch recording. Also on v2026.11.29.02.
GPU: RTX 4080 16 GB, driver 621.40, Windows 11, i9-14900K, 64 GB. Series X profile, 2560x1440, DLSS off, frame generation off.

What happens: a host command list did not close (0x80070057), the same as #452 (closed, asked to reopen as a new issue if it still happens on .05). In scripted runs from a new game it happens at about 200 s, at a scene change in the opening (also seen once at 74 s and once at 81 s). Rate on .02: diagnostics build 3 of 4 runs, --features ab build 2 of 2; release build: scripted runs on defaults survived 3 of 3, runs with some switches changed crashed 2 of 3, and a hand-played run on defaults crashed at 368 s. On .05: diagnostics 1 of 1 at 209 s; ab and release 900 s runs survived.

VRAM is not the trigger: crashed and surviving runs sit at the same card use (13.5-14.0 GB of a ~14.4 GB budget) at that moment, with no host memory pressure warning in the scripted crashes.

Which list fails: without the debug layer (no Graphics Tools here), I made a diagnostics build log the list's notes (note_op/note_read, kept with VICTORY_D3D12_DRED=1) before fail() at the Close, and added both subresource indices and the source's host description to the title texture copy note (list.rs). In all 4 diagnostics crashes the failed list was a decoration-bake list: CopyTextureRegion subresource to subresource, no box, BC1/BC3/BC7 (formats 71, 77, 78, 98, 99) from a 512x512 10-level host texture, level i+1, into a 256x256 9-level one, level i (18 to 108 notes per list). Every noted copy checks out (indices in range, source level no larger than destination level, same format), so the invalid command is one that writes no note, recorded in that same bake list: a barrier, an upload, readable, zeros, or card_writes on the path from bring_bake_sources (draw.rs). VICTORY_BAKE_SOURCES=0 did not stop it (crash at 410 s). VICTORY_TEXTURE_BACK=0 did not stop it (crash at 74 s).

Next I can try: add notes on those unnoted records and post which one it is. The log-the-notes change is small and diagnostics-only; I can open it as a PR if useful.

**@⁠ShalakZ** on GitHub · 2026-11-30 10:57 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/3901) **Version:** v2026.11.29.05 (main 41adb551) + two local commits that do not touch recording. Also on v2026.11.29.02. **GPU:** RTX 4080 16 GB, driver 621.40, Windows 11, i9-14900K, 64 GB. Series X profile, 2560x1440, DLSS off, frame generation off. **What happens:** `a host command list did not close (0x80070057)`, the same as #452 (closed, asked to reopen as a new issue if it still happens on .05). In scripted runs from a new game it happens at about 200 s, at a scene change in the opening (also seen once at 74 s and once at 81 s). Rate on .02: diagnostics build 3 of 4 runs, `--features ab` build 2 of 2; release build: scripted runs on defaults survived 3 of 3, runs with some switches changed crashed 2 of 3, and a hand-played run on defaults crashed at 368 s. On .05: diagnostics 1 of 1 at 209 s; ab and release 900 s runs survived. **VRAM is not the trigger:** crashed and surviving runs sit at the same card use (13.5-14.0 GB of a ~14.4 GB budget) at that moment, with no `host memory pressure` warning in the scripted crashes. **Which list fails:** without the debug layer (no Graphics Tools here), I made a diagnostics build log the list's notes (`note_op`/`note_read`, kept with `VICTORY_D3D12_DRED=1`) before `fail()` at the Close, and added both subresource indices and the source's host description to the title texture copy note (list.rs). In all 4 diagnostics crashes the failed list was a decoration-bake list: `CopyTextureRegion` subresource to subresource, no box, BC1/BC3/BC7 (formats 71, 77, 78, 98, 99) from a 512x512 10-level host texture, level i+1, into a 256x256 9-level one, level i (18 to 108 notes per list). **Every noted copy checks out** (indices in range, source level no larger than destination level, same format), so the invalid command is one that writes no note, recorded in that same bake list: a barrier, an upload, `readable`, zeros, or `card_writes` on the path from `bring_bake_sources` (draw.rs). `VICTORY_BAKE_SOURCES=0` did not stop it (crash at 410 s). `VICTORY_TEXTURE_BACK=0` did not stop it (crash at 74 s). **Next I can try:** add notes on those unnoted records and post which one it is. The log-the-notes change is small and diagnostics-only; I can open it as a PR if useful.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-30 11:02:37 +00:00
Author
Owner

@⁠github-actions[bot] on GitHub · 2026-11-30 10:57 UTC · original

Please attach both logs from the run that went wrong. Without them we can only guess. Paste %LOCALAPPDATA% into the address bar of File Explorer to get there.

  1. The play log, in %LOCALAPPDATA%\victory\logs\: the newest victory-nvidia-play-<date>-<time>-<number>.log (from victory.exe) or victory-nvidia-<date>-<time>.log (from the script launcher). The window shows its path at the start, on the line Log: ....
  2. The crash log: %LOCALAPPDATA%\VIctory\data\7952987A\crashes.log, and, if there is one from that run, the newest victory-<date>-<time>-<number>.crash.log in %LOCALAPPDATA%\VIctory\data\7952987A\temp\.

Also say which GPU, Windows version (10 or 11)

**@⁠github-actions[bot]** on GitHub · 2026-11-30 10:57 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/3901#issuecomment-7276322113) Please attach both logs from the run that went wrong. Without them we can only guess. Paste `%LOCALAPPDATA%` into the address bar of File Explorer to get there. 1. The play log, in `%LOCALAPPDATA%\victory\logs\`: the newest `victory-nvidia-play-<date>-<time>-<number>.log` (from `victory.exe`) or `victory-nvidia-<date>-<time>.log` (from the script launcher). The window shows its path at the start, on the line `Log: ...`. 2. The crash log: `%LOCALAPPDATA%\VIctory\data\7952987A\crashes.log`, and, if there is one from that run, the newest `victory-<date>-<time>-<number>.crash.log` in `%LOCALAPPDATA%\VIctory\data\7952987A\temp\`. Also say which GPU, Windows version (10 or 11)
Author
Owner

@⁠andrewpozdnakov7-jpg on GitHub · 2026-11-30 11:04 UTC · original

@⁠ShalakZ, I checked the copies listed in your report in isolation on Windows WARP, in a diagnostics build from 41adb551. I used generated committed textures with the same 512Г—512 / 10-level source and 256Г—256 / 9-level destination, with source and destination already in their copy states. One direct command list copied each whole source level i+1 to destination level i across formats 71, 77, 78, 98 and 99.

All 45 copies recorded, Close() returned S_OK, and the queue completed without device removal. That confirms the recorded size, format and mip pairing works in isolation on WARP. This fixture covered neither the rest of the bake list nor RTX behavior. The D3D12 debug layer did not activate on my system.

Your proposed extra notes would help isolate the unrecorded commands. Could you post the notes from one failing list in recording order, including which operations come immediately before and after the texture copies? Barrier state before and after and a label for each upload or clear would be useful. #3880 reports the same Close error on .05, but we would need matching command evidence to connect the two.

AI-assisted with OpenAI Codex.

**@⁠andrewpozdnakov7-jpg** on GitHub · 2026-11-30 11:04 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/3901#issuecomment-7276488679) @⁠ShalakZ, I checked the copies listed in your report in isolation on Windows WARP, in a diagnostics build from `41adb551`. I used generated committed textures with the same 512Г—512 / 10-level source and 256Г—256 / 9-level destination, with source and destination already in their copy states. One direct command list copied each whole source level `i+1` to destination level `i` across formats 71, 77, 78, 98 and 99. All 45 copies recorded, `Close()` returned `S_OK`, and the queue completed without device removal. That confirms the recorded size, format and mip pairing works in isolation on WARP. This fixture covered neither the rest of the bake list nor RTX behavior. The D3D12 debug layer did not activate on my system. Your proposed extra notes would help isolate the unrecorded commands. Could you post the notes from one failing list in recording order, including which operations come immediately before and after the texture copies? Barrier state before and after and a label for each upload or clear would be useful. #3880 reports the same `Close` error on .05, but we would need matching command evidence to connect the two. AI-assisted with OpenAI Codex.
Author
Owner

@⁠ShalakZ on GitHub · 2026-11-30 12:04 UTC · original · edited 2026-12-01 15:14 UTC

Named it. The command the runtime refuses is the placed-twin copy in crates/victory-gpu/src/list.rs (copy_texture_region, the loop over crate::resource::placed_twins(dst.resource), on by default via VICTORY_PLACED_COPIED). It had no note, which is why every noted copy looked valid. Correction to my report: the list that fails Close is the title's own copy list (host_list(this)), not the decoration-bake list.

Evidence (diagnostics build, VICTORY_D3D12_DRED=1, RTX 4080, driver 621.40, Windows 11, base v2026.11.29.05 + notes on every barrier, twin copy, zero fill and card write): the failing list had 112 notes (all kept). The only commands flagged as invalid were 7 twin copies:

  • source: SUBRESOURCE_INDEX 2..8 of a 1024x1024, 11-level, 1-layer DXGI_FORMAT_BC3_UNORM_SRGB (78) texture
  • destination: SUBRESOURCE_INDEX 0..6 of the twin, 256x256, 7 levels, 1 layer, DXGI_FORMAT_BC7_UNORM_SRGB (99), at (0,0,0), null box

Twins in the same list with the same family (BC1 into BC1, 71/72) were fine. placed_twins matches the block size only (element(pc_format(..))), so BC3 and BC7 (both 16-byte blocks) pair up, and the copy then goes texture to texture across typeless families.

Repro in isolation (RTX 4080, no debug layer, a unit test):

  • (a) that exact copy, BC3_UNORM_SRGB 1024x1024x11 subresources 2..8 into BC7_UNORM_SRGB 256x256x7 subresources 0..6: Close() = 0x80070057.
  • (b) same copy into a BC3_UNORM_SRGB twin: Close() = S_OK.
  • (c) through a buffer: GetCopyableFootprints gives the same offsets, sizes and row pitches for both halves (16-byte blocks). Texture (BC3) to buffer with footprint format 78, buffer to texture (BC7) with footprint format 99: S_OK, executed, and the BC7 levels read back bit-exact equal to the BC3 source levels. Footprint formats of the other family are refused on either side.

So a fix that keeps the twins: when family(src) != family(twin), send the twin copy through a buffer (out with the source format's footprints, in with the twin's), as texture::alias already does for views read in another format (that function itself needs equal level counts and the same index on both sides, so it cannot be reused as is). Skipping cross-family twins would also stop the crash but leaves those views stale. I have not yet confirmed in game that the crash stops (it hits about 1 run in 2-3 at a scene change ~200 s in); will report when I have.

This likely is #3880 too, if its failing list has twin copies.

**@⁠ShalakZ** on GitHub · 2026-11-30 12:04 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/3901#issuecomment-7277897679) · edited 2026-12-01 15:14 UTC Named it. The command the runtime refuses is the **placed-twin copy** in `crates/victory-gpu/src/list.rs` (`copy_texture_region`, the loop over `crate::resource::placed_twins(dst.resource)`, on by default via `VICTORY_PLACED_COPIED`). It had no note, which is why every noted copy looked valid. Correction to my report: the list that fails `Close` is the title's own copy list (`host_list(this)`), not the decoration-bake list. **Evidence (diagnostics build, `VICTORY_D3D12_DRED=1`, RTX 4080, driver 621.40, Windows 11, base v2026.11.29.05 + notes on every barrier, twin copy, zero fill and card write):** the failing list had 112 notes (all kept). The only commands flagged as invalid were 7 twin copies: - source: `SUBRESOURCE_INDEX` 2..8 of a 1024x1024, 11-level, 1-layer **`DXGI_FORMAT_BC3_UNORM_SRGB` (78)** texture - destination: `SUBRESOURCE_INDEX` 0..6 of the twin, 256x256, 7 levels, 1 layer, **`DXGI_FORMAT_BC7_UNORM_SRGB` (99)**, at (0,0,0), null box Twins in the same list with the same family (BC1 into BC1, 71/72) were fine. `placed_twins` matches the block size only (`element(pc_format(..))`), so BC3 and BC7 (both 16-byte blocks) pair up, and the copy then goes texture to texture across typeless families. **Repro in isolation (RTX 4080, no debug layer, a unit test):** - (a) that exact copy, BC3_UNORM_SRGB 1024x1024x11 subresources 2..8 into BC7_UNORM_SRGB 256x256x7 subresources 0..6: `Close()` = `0x80070057`. - (b) same copy into a BC3_UNORM_SRGB twin: `Close()` = `S_OK`. - (c) through a buffer: `GetCopyableFootprints` gives the same offsets, sizes and row pitches for both halves (16-byte blocks). Texture (BC3) to buffer with footprint format 78, buffer to texture (BC7) with footprint format 99: `S_OK`, executed, and the BC7 levels read back bit-exact equal to the BC3 source levels. Footprint formats of the other family are refused on either side. So a fix that keeps the twins: when `family(src) != family(twin)`, send the twin copy through a buffer (out with the source format's footprints, in with the twin's), as `texture::alias` already does for views read in another format (that function itself needs equal level counts and the same index on both sides, so it cannot be reused as is). Skipping cross-family twins would also stop the crash but leaves those views stale. I have not yet confirmed in game that the crash stops (it hits about 1 run in 2-3 at a scene change ~200 s in); will report when I have. This likely is #3880 too, if its failing list has twin copies.
Author
Owner

@⁠ShalakZ on GitHub · 2026-11-30 15:41 UTC · original · edited 2026-12-01 15:14 UTC

Fix posted as #4080: placed-twin copies across BC families now go through a buffer.

  • Texture source: out to a pooled buffer in the source's format (whole subresource, GetCopyableFootprints), then into the twin in the twin's format, with the title's box and place.
  • Buffer source: its footprint is retagged to the twin's format.
  • Everything else: same family, another element size or block width, or planar depth/stencil all keep the title's copy.

In game (RTX 4080, driver 621.40, Win 11, v2026.11.29.05 + the fix, 2560x1440, DLSS off, RT off):

  • Diagnostics + VICTORY_D3D12_DRED=1, 420 s: copies BC3_UNORM_SRGB (78) -> BC7_UNORM (98) went through a buffer at 69 s and 200 s. The lists closed and the run survived.
  • Release, 360 s x 3 with four more of our switches on (that set had failed Close 2 times in 4, at about 206 s): all three survived, with no did not close. One of them sent BC3_UNORM_SRGB (78) -> BC7_UNORM_SRGB (99) copies through a buffer at 69 s; the other two made no cross-family copy.
  • Before the fix, the same scripted start failed Close at 199-206 s in 11 runs and at 69-72 s in 2. Those are the times the copies now go through.

D3D12 notes from the unit tests (RTX 4080):

  • A box that ends at the edge of a small BC level (right = 2 on a 2x2 level) is valid texture to texture, but Close refuses it on a 4x4 BC buffer footprint (0x80070057). Round it to whole blocks there.
  • A footprint in the other family's format is refused on either side of the buffer.
**@⁠ShalakZ** on GitHub · 2026-11-30 15:41 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/3901#issuecomment-7283410874) · edited 2026-12-01 15:14 UTC Fix posted as #4080: placed-twin copies across BC families now go through a buffer. - **Texture source:** out to a pooled buffer in the source's format (whole subresource, `GetCopyableFootprints`), then into the twin in the twin's format, with the title's box and place. - **Buffer source:** its footprint is retagged to the twin's format. - **Everything else:** same family, another element size or block width, or planar depth/stencil all keep the title's copy. **In game** (RTX 4080, driver 621.40, Win 11, v2026.11.29.05 + the fix, 2560x1440, DLSS off, RT off): - Diagnostics + `VICTORY_D3D12_DRED=1`, 420 s: copies BC3_UNORM_SRGB (78) -> BC7_UNORM (98) went through a buffer at 69 s and 200 s. The lists closed and the run survived. - Release, 360 s x 3 with four more of our switches on (that set had failed `Close` 2 times in 4, at about 206 s): all three survived, with no `did not close`. One of them sent BC3_UNORM_SRGB (78) -> BC7_UNORM_SRGB (99) copies through a buffer at 69 s; the other two made no cross-family copy. - Before the fix, the same scripted start failed `Close` at 199-206 s in 11 runs and at 69-72 s in 2. Those are the times the copies now go through. **D3D12 notes from the unit tests** (RTX 4080): - A box that ends at the edge of a small BC level (`right = 2` on a 2x2 level) is valid texture to texture, but `Close` refuses it on a 4x4 BC buffer footprint (0x80070057). Round it to whole blocks there. - A footprint in the other family's format is refused on either side of the buffer.
Author
Owner

@⁠mindtao on GitHub · 2026-12-01 06:12 UTC · original

Independent confirmation of this Close() failure on v2026.11.30.03 (RTX 5060 Ti 16 GB, driver 621.24, Windows 11 26100, Ryzen 5 9600X, 32 GB RAM). Profile: series-x, native 2560x1440 output, DLSS performance, frame generation off, VICTORY_TEXTURE_SOFT_MB=2048, VICTORY_TEXTURE_ROOM_PERCENT=70.

crashes.log holds 7 entries of the same 0x80070057:

  • 2026-11-30 15:09:58Z, 16:23:35Z, 16:59:29Z
  • 2026-12-01 04:25:57Z, 05:26:24Z, 05:31:00Z, 06:08:13Z

plus one 0x8007000E at 2026-11-30 14:48:07Z and one device-removed at 2026-11-30 15:48:01Z.

It is deterministic on this machine: my save sits directly before one specific story scene, so the game reaches the failing command list in 2-15 minutes every time, and it is the same place each run. In the one run where the release build logged the error itself:

first bind ... frame=24475 stage="mesh" size=4336 hash=480d53fc48107a50
first bind ... frame=24475 stage="pixel" size=8220 hash=f41ec9d9437c021c
ERROR victory_gpu::host: a host command list did not close (0x80070057)

Ruled out on this machine (none moved the crash):

  • frame generation 4x -> off: the failure is not frame-generation dependent here, contrary to the note in v2026.11.30.02's release text
  • VICTORY_D3D12_DEBUG=1 on the release build: prints nothing, the release carries no command naming
  • VICTORY_SKIP_PIPELINES=480d53fc48107a50,f41ec9d9437c021c: ignored by the release build
  • video memory at the crash is 11.9 of 14.9 GB, not exhausted
  • HVCI / Memory Integrity on and off: identical crash

Question: is the #4080 twin route part of v2026.11.30.03? The PR is still open, and this looks like the same placed-twin copy across format families. Meanwhile I am testing VICTORY_PLACED_COPIED=0 on .03 to see whether the scene passes at all, and will report back either way.

Full play log (5 MB) and crashes.log available on request.

**@⁠mindtao** on GitHub · 2026-12-01 06:12 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/3901#issuecomment-7302604216) Independent confirmation of this `Close()` failure on **v2026.11.30.03** (RTX 5060 Ti 16 GB, driver 621.24, Windows 11 26100, Ryzen 5 9600X, 32 GB RAM). Profile: series-x, native 2560x1440 output, DLSS performance, frame generation **off**, `VICTORY_TEXTURE_SOFT_MB=2048`, `VICTORY_TEXTURE_ROOM_PERCENT=70`. `crashes.log` holds **7 entries of the same `0x80070057`**: - 2026-11-30 15:09:58Z, 16:23:35Z, 16:59:29Z - 2026-12-01 04:25:57Z, 05:26:24Z, 05:31:00Z, 06:08:13Z plus one `0x8007000E` at 2026-11-30 14:48:07Z and one device-removed at 2026-11-30 15:48:01Z. It is **deterministic on this machine**: my save sits directly before one specific story scene, so the game reaches the failing command list in 2-15 minutes every time, and it is the same place each run. In the one run where the release build logged the error itself: ``` first bind ... frame=24475 stage="mesh" size=4336 hash=480d53fc48107a50 first bind ... frame=24475 stage="pixel" size=8220 hash=f41ec9d9437c021c ERROR victory_gpu::host: a host command list did not close (0x80070057) ``` Ruled out on this machine (none moved the crash): - frame generation 4x -> off: the failure is not frame-generation dependent here, contrary to the note in v2026.11.30.02's release text - `VICTORY_D3D12_DEBUG=1` on the release build: prints nothing, the release carries no command naming - `VICTORY_SKIP_PIPELINES=480d53fc48107a50,f41ec9d9437c021c`: ignored by the release build - video memory at the crash is 11.9 of 14.9 GB, not exhausted - HVCI / Memory Integrity on and off: identical crash **Question:** is the #4080 twin route part of v2026.11.30.03? The PR is still open, and this looks like the same placed-twin copy across format families. Meanwhile I am testing `VICTORY_PLACED_COPIED=0` on .03 to see whether the scene passes at all, and will report back either way. Full play log (5 MB) and `crashes.log` available on request.
Author
Owner

@⁠andrewpozdnakov7-jpg on GitHub · 2026-12-01 11:23 UTC · original

I checked the v2026.11.30.03 tag. It does not include #4080. 0x80070057 alone doesn’t identify the failing command. Could you share the D3D12 validation line that names it from a diagnostics build with VICTORY_D3D12_DEBUG=1? That would let us check whether this is the placed-twin copy fixed by #4080.

**@⁠andrewpozdnakov7-jpg** on GitHub · 2026-12-01 11:23 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/3901#issuecomment-7309567135) I checked the `v2026.11.30.03` tag. It does not include #4080. `0x80070057` alone doesn’t identify the failing command. Could you share the D3D12 validation line that names it from a diagnostics build with `VICTORY_D3D12_DEBUG=1`? That would let us check whether this is the placed-twin copy fixed by #4080.
Author
Owner

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

@⁠mindtao right, .03 doesn't have #4080 yet, the PR is still open. Two things you can try in the meantime:

  • VICTORY_PLACED_COPIED=0 should get you past it if it's the same twin copy. It skips the copies into placed twins, so a few textures can end up stale, but it's a quick way to tell whether this is the same bug.
  • Or build #4080 on top of .03. It merges cleanly, and How-e, tyr0nsur and tillo88 have all run it on .03 without the close error coming back.

I don't think the two "first bind" lines right before the error matter much here. They're just the last pipelines that got made before the list was closed. The command that gets refused is a texture copy in the title's copy list. If you can run a diagnostics build with VICTORY_D3D12_DEBUG=1, the debug layer should print something like "The source format is BC3_TYPELESS and the destination format is BC7_TYPELESS" if it's this one.

**@⁠ShalakZ** on GitHub · 2026-12-01 15:14 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/3901#issuecomment-7315591116) @⁠mindtao right, .03 doesn't have #4080 yet, the PR is still open. Two things you can try in the meantime: - `VICTORY_PLACED_COPIED=0` should get you past it if it's the same twin copy. It skips the copies into placed twins, so a few textures can end up stale, but it's a quick way to tell whether this is the same bug. - Or build #4080 on top of .03. It merges cleanly, and How-e, tyr0nsur and tillo88 have all run it on .03 without the close error coming back. I don't think the two "first bind" lines right before the error matter much here. They're just the last pipelines that got made before the list was closed. The command that gets refused is a texture copy in the title's copy list. If you can run a diagnostics build with `VICTORY_D3D12_DEBUG=1`, the debug layer should print something like "The source format is BC3_TYPELESS and the destination format is BC7_TYPELESS" if it's this one.
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#3901
No description provided.