Two invalid commands named by the D3D12 debug layer (CopyBufferRegion: COPY_DEST read as a source; CopyTextureRegion: BC7 256x256 destination vs R32G32B32A32 source) - host GPU failure in Chapter 2, Girls Trip, Delights Cabaret, RTX 5060 Ti #3539

Open
opened 2026-11-30 00:45:49 +00:00 by github-bot · 4 comments
Owner

@⁠arbuzproject on GitHub · 2026-11-30 00:41 UTC · original

Host GPU failures on RTX 5060 Ti in Chapter 2, "Girls' Trip" (Delights Cabaret): two invalid commands named by the D3D12 debug layer

Repro on v2026.11.29.05 (release victory.exe, SHA-256 80612b22a3cb76503a361caf241afd54d110c64ffc2a6e0efd9b7edb30415a3f),
Windows 11 26200, RTX 5060 Ti 8 GB, driver 32.0.16.2101, Ryzen 5 7500F, 32 GB.

Settings: series-s, --res 1440, Series S picture 360 (640x360), DLSS ultraperformance
(and one run with DLSS fully off: same crash), frame generation off, VICTORY_RELAY=2,
VICTORY_RELAY_COPY=1, VICTORY_TEXTURE_ROOM_PERCENT=90, VICTORY_LEVELS_ON_DEMAND=0,
VICTORY_PANEL=0, VICTORY_FPS_LINE=0, 30 fps cap.

Repro: one specific spot. In Chapter 2, the mission "Girls' Trip", in the location
Delights Cabaret: continue from the autosave (the game saves a checkpoint there) and play
8-10 minutes. The same spot failed on every attempt: 9 crashes, five of them this failure, on
v2026.11.29.01 and v2026.11.29.05, with DLSS on and off, at every texture room tried.

1. Close() fails: CopyBufferRegion reads a shadow buffer that is a copy destination

VIctory: host GPU failure: a host command list did not close
(0x80070057): a command recorded into it was invalid;
debug layer: ID3D12CommandList::CopyBufferRegion: Using CopyBufferRegion on Command List
(0x...:'Unnamed ID3D12GraphicsCommandList Object'):
Resource state (0x400: D3D12_RESOURCE_STATE_COPY_DEST) of resource
(0x...:'Unnamed ID3D12Resource Object') (subresource: 0) is invalid for use as a source buffer.
Expected State Bits (all): 0x800: D3D12_RESOURCE_STATE_COPY_SOURCE,
Assumed Actual State: 0x400: D3D12_RESOURCE_STATE_COPY_DEST,
Missing State: 0x800: D3D12_RESOURCE_STATE_COPY_SOURCE.

Appears 37 seconds into a run (before any crash), in the relay's landing path:
crates/victory-gpu/src/host.rs, fn card_back (the stage-2 landing) does

list.CopyBufferRegion(fetched, at, &plan.ranges[i].shadow.buffer, lo as u64, (hi - lo) as u64);

with no transition of shadow.buffer to COPY_SOURCE, and the same in the stage-1
fetch (check.as_ref().map_or(&pieces, |c| &c.copies)).

A local patch that transitions each touched shadow buffer COPY_DEST -> COPY_SOURCE
before the copies and back afterwards made this message disappear and moved the crash
from ~8 to ~7 minutes with a different, later command (below). The patch used
crate::barstat::rb(list, &barriers) with transition(...):

let mut touched: Vec<&ID3D12Resource> = Vec::new();
{
    let mut seen = std::collections::HashSet::new();
    let mut to_source = Vec::new();
    for &(i, ..) in &pieces {
        let buf = &plan.ranges[i].shadow.buffer;
        if seen.insert(buf.as_raw() as usize) {
            touched.push(buf);
            to_source.push(transition(buf, D3D12_RESOURCE_STATE_COPY_DEST,
                                            D3D12_RESOURCE_STATE_COPY_SOURCE));
        }
    }
    if !to_source.is_empty() { crate::barstat::rb(list, &to_source); }
}
// ... the CopyBufferRegion calls ...
if !touched.is_empty() {
    let back: Vec<_> = touched.iter()
        .map(|b| transition(*b, D3D12_RESOURCE_STATE_COPY_SOURCE,
                               D3D12_RESOURCE_STATE_COPY_DEST))
        .collect();
    crate::barstat::rb(list, &back);
}

(let&list borrow fix in the stage-1 site: its list is owned there.)

2. Device removed: CopyTextureRegion with mismatched formats

With the patch above, the next fatal command (7 minutes in) is:

VIctory: host GPU failure: a host command list did not close (0x80070057):
a command recorded into it was invalid;
debug layer: ID3D12CommandList::CopyTextureRegion: The destination region extends past,
at least, one of the edges of the destination subresource. When the destination format is
BC7_TYPELESS, the source format is R32G32B32A32_TYPELESS, DstX is 0, DstY is 0, DstZ is 0
and the effective SrcBox width is 256, height is 256, and depth is 1, the operation
requires the destination subresource to have 1024 width, 1024 height, and 1 depth.
But the destination subresource only has 256 width, 256 height, and 1 depth.

So a 256x256 R32G32B32A32_TYPELESS source is copied into a 256x256 BC7_TYPELESS
destination; with BC7's 4x4 blocks the API reads the box in blocks, so the box has to be
64x64 blocks (or the copy has to go through a conversion). Whatever produces this copy
uses a host copy whose format differs from the title texture's.

Earlier runs without the debug layer showed the same failure as a device removal:

relay: the device was lost before fence value 129271 was reached ...;
device removed: 0x887A0006

3. Scale of the state problem

A 7-minute run with VICTORY_D3D12_DEBUG=1 logs 126,000 validation messages:
78,991 from ID3D12CommandQueue1 (mostly "Using SetComputeRootShaderResourceView ...
Resource state (0x400: COPY_DEST) (promoted from COMMON state) ... is invalid"),
46,777 from ID3D12CommandList, 195 from CGraphicsCommandList, 71 from
ID3D12PipelineLibrary, 2 from ID3D12Device (CreateReservedResource: layout
64KB_UNDEFINED_SWIZZLE with format R32G8X24_TYPELESS is not tiled-capable).

Excluded

DLSS (a run with DLSS fully off crashed the same way), frame generation, resolution/picture
size (540/360), VICTORY_TEXTURE_ROOM_PERCENT 76/86/90, VICTORY_SAMPLED_EVICT 0/1 (it
released 0 textures of 68,593 idle ones — the eviction pass is a no-op here),
VICTORY_PIPELINE_BOOK=0/1, VICTORY_RELAY=1/2.

Logs

Ready to attach: the play logs (victory-nvidia-play-*.log, 73-79 MB with the debug layer,
4-7 MB without) and crashes.log with 9 entries, 5 of them this failure.

Attachments

Secret gist (link-accessible): https://gist.github.com/arbuzproject/a81569a183504d21e08131f2ca1c3491

  • crashes.log - all nine crash entries of this machine.
  • debug-layer-summary.txt - the 79 MB play log of the run with VICTORY_D3D12_DEBUG=1, reduced: the settings line, every message category with counts, the distinct messages, the severity=1 (ERROR) ones, and the last 120 lines of the run.

Related: #3493 (GPU removed on an RTX 5060), #3479 (device removed at the same spot, RTX 3060 6 GB).

**@⁠arbuzproject** on GitHub · 2026-11-30 00:41 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/3539) # Host GPU failures on RTX 5060 Ti in Chapter 2, "Girls' Trip" (Delights Cabaret): two invalid commands named by the D3D12 debug layer Repro on **v2026.11.29.05** (release `victory.exe`, SHA-256 `80612b22a3cb76503a361caf241afd54d110c64ffc2a6e0efd9b7edb30415a3f`), Windows 11 26200, RTX 5060 Ti 8 GB, driver 32.0.16.2101, Ryzen 5 7500F, 32 GB. Settings: `series-s`, `--res 1440`, Series S picture 360 (640x360), DLSS ultraperformance (and one run with DLSS fully off: same crash), frame generation off, `VICTORY_RELAY=2`, `VICTORY_RELAY_COPY=1`, `VICTORY_TEXTURE_ROOM_PERCENT=90`, `VICTORY_LEVELS_ON_DEMAND=0`, `VICTORY_PANEL=0`, `VICTORY_FPS_LINE=0`, 30 fps cap. Repro: one specific spot. In **Chapter 2**, the mission **"Girls' Trip"**, in the location **Delights Cabaret**: continue from the autosave (the game saves a checkpoint there) and play 8-10 minutes. The same spot failed on every attempt: 9 crashes, five of them this failure, on v2026.11.29.01 and v2026.11.29.05, with DLSS on and off, at every texture room tried. ## 1. `Close()` fails: `CopyBufferRegion` reads a shadow buffer that is a copy destination ``` VIctory: host GPU failure: a host command list did not close (0x80070057): a command recorded into it was invalid; debug layer: ID3D12CommandList::CopyBufferRegion: Using CopyBufferRegion on Command List (0x...:'Unnamed ID3D12GraphicsCommandList Object'): Resource state (0x400: D3D12_RESOURCE_STATE_COPY_DEST) of resource (0x...:'Unnamed ID3D12Resource Object') (subresource: 0) is invalid for use as a source buffer. Expected State Bits (all): 0x800: D3D12_RESOURCE_STATE_COPY_SOURCE, Assumed Actual State: 0x400: D3D12_RESOURCE_STATE_COPY_DEST, Missing State: 0x800: D3D12_RESOURCE_STATE_COPY_SOURCE. ``` Appears **37 seconds** into a run (before any crash), in the relay's landing path: `crates/victory-gpu/src/host.rs`, `fn card_back` (the stage-2 landing) does ```rust list.CopyBufferRegion(fetched, at, &plan.ranges[i].shadow.buffer, lo as u64, (hi - lo) as u64); ``` with no transition of `shadow.buffer` to `COPY_SOURCE`, and the same in the stage-1 fetch (`check.as_ref().map_or(&pieces, |c| &c.copies)`). A local patch that transitions each touched shadow buffer `COPY_DEST -> COPY_SOURCE` before the copies and back afterwards made this message disappear and moved the crash from ~8 to ~7 minutes with a different, later command (below). The patch used `crate::barstat::rb(list, &barriers)` with `transition(...)`: ```rust let mut touched: Vec<&ID3D12Resource> = Vec::new(); { let mut seen = std::collections::HashSet::new(); let mut to_source = Vec::new(); for &(i, ..) in &pieces { let buf = &plan.ranges[i].shadow.buffer; if seen.insert(buf.as_raw() as usize) { touched.push(buf); to_source.push(transition(buf, D3D12_RESOURCE_STATE_COPY_DEST, D3D12_RESOURCE_STATE_COPY_SOURCE)); } } if !to_source.is_empty() { crate::barstat::rb(list, &to_source); } } // ... the CopyBufferRegion calls ... if !touched.is_empty() { let back: Vec<_> = touched.iter() .map(|b| transition(*b, D3D12_RESOURCE_STATE_COPY_SOURCE, D3D12_RESOURCE_STATE_COPY_DEST)) .collect(); crate::barstat::rb(list, &back); } ``` (`let&list` borrow fix in the stage-1 site: its `list` is owned there.) ## 2. Device removed: `CopyTextureRegion` with mismatched formats With the patch above, the next fatal command (7 minutes in) is: ``` VIctory: host GPU failure: a host command list did not close (0x80070057): a command recorded into it was invalid; debug layer: ID3D12CommandList::CopyTextureRegion: The destination region extends past, at least, one of the edges of the destination subresource. When the destination format is BC7_TYPELESS, the source format is R32G32B32A32_TYPELESS, DstX is 0, DstY is 0, DstZ is 0 and the effective SrcBox width is 256, height is 256, and depth is 1, the operation requires the destination subresource to have 1024 width, 1024 height, and 1 depth. But the destination subresource only has 256 width, 256 height, and 1 depth. ``` So a 256x256 `R32G32B32A32_TYPELESS` source is copied into a 256x256 `BC7_TYPELESS` destination; with BC7's 4x4 blocks the API reads the box in blocks, so the box has to be 64x64 blocks (or the copy has to go through a conversion). Whatever produces this copy uses a host copy whose format differs from the title texture's. Earlier runs without the debug layer showed the same failure as a device removal: ``` relay: the device was lost before fence value 129271 was reached ...; device removed: 0x887A0006 ``` ## 3. Scale of the state problem A 7-minute run with `VICTORY_D3D12_DEBUG=1` logs **126,000** validation messages: 78,991 from `ID3D12CommandQueue1` (mostly "Using SetComputeRootShaderResourceView ... Resource state (0x400: COPY_DEST) (promoted from COMMON state) ... is invalid"), 46,777 from `ID3D12CommandList`, 195 from `CGraphicsCommandList`, 71 from `ID3D12PipelineLibrary`, 2 from `ID3D12Device` (`CreateReservedResource`: layout 64KB_UNDEFINED_SWIZZLE with format R32G8X24_TYPELESS is not tiled-capable). ## Excluded DLSS (a run with DLSS fully off crashed the same way), frame generation, resolution/picture size (540/360), `VICTORY_TEXTURE_ROOM_PERCENT` 76/86/90, `VICTORY_SAMPLED_EVICT` 0/1 (it released 0 textures of 68,593 idle ones — the eviction pass is a no-op here), `VICTORY_PIPELINE_BOOK=0/1`, `VICTORY_RELAY=1/2`. ## Logs Ready to attach: the play logs (`victory-nvidia-play-*.log`, 73-79 MB with the debug layer, 4-7 MB without) and `crashes.log` with 9 entries, 5 of them this failure. ## Attachments Secret gist (link-accessible): https://gist.github.com/arbuzproject/a81569a183504d21e08131f2ca1c3491 - `crashes.log` - all nine crash entries of this machine. - `debug-layer-summary.txt` - the 79 MB play log of the run with `VICTORY_D3D12_DEBUG=1`, reduced: the settings line, every message category with counts, the distinct messages, the `severity=1` (ERROR) ones, and the last 120 lines of the run. Related: #3493 (GPU removed on an RTX 5060), #3479 (device removed at the same spot, RTX 3060 6 GB).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-30 00:45:50 +00:00
Author
Owner

@⁠github-actions[bot] on GitHub · 2026-11-30 00:41 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 00:41 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/3539#issuecomment-7265494696) 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

@⁠arbuzproject on GitHub · 2026-11-30 00:42 UTC · original

GPU: NVIDIA GeForce RTX 5060 Ti, 8 GB (driver 32.0.16.2101). Windows: 11, build 26200. CPU: Ryzen 5 7500F, 32 GB RAM (the title commits ~26 GB in this scene).

Both logs are attached, plus the debug-layer summary, all in this gist: https://gist.github.com/arbuzproject/a81569a183504d21e08131f2ca1c3491

  • play-log-full-nondebug.log - the full play log victory-nvidia-play-20261129-231549-360.log (v2026.11.29.05, 5 MB): the run that failed with a host command list did not close (0x80070057) and no debug layer, so it is the clean one.
  • crashes.log - all nine crash entries of this machine.
  • debug-layer-summary.txt - the 79 MB log of the run with VICTORY_D3D12_DEBUG=1 (the one where the two named commands came from), reduced: the settings line, every message category with counts, the distinct messages, the severity=1 (ERROR) ones, and the last 120 lines of the run. The full 79 MB is too large for a gist - say the word and I will upload it in parts.

Where it happens: Chapter 2, mission "Girls' Trip", location Delights Cabaret - the same spot every attempt, 8-10 minutes after resuming the autosave at that checkpoint. It is not DLSS (a run with DLSS fully off failed the same way), not frame generation, not VICTORY_TEXTURE_ROOM_PERCENT (76/86/90), not VICTORY_SAMPLED_EVICT (it released 0 of 68,593 idle textures), not VICTORY_PIPELINE_BOOK, not VICTORY_RELAY=1/2.

One detail that may narrow it down: with the relay landing copies given COPY_DEST -> COPY_SOURCE -> COPY_DEST barriers around them (patch in section 1), the CopyBufferRegion message disappears and the run then fails on the CopyTextureRegion one (section 2) instead. So the two are independent, and the second one is the one that still stops play.

**@⁠arbuzproject** on GitHub · 2026-11-30 00:42 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/3539#issuecomment-7265512884) GPU: NVIDIA GeForce RTX 5060 Ti, 8 GB (driver 32.0.16.2101). Windows: 11, build 26200. CPU: Ryzen 5 7500F, 32 GB RAM (the title commits ~26 GB in this scene). Both logs are attached, plus the debug-layer summary, all in this gist: https://gist.github.com/arbuzproject/a81569a183504d21e08131f2ca1c3491 - `play-log-full-nondebug.log` - the full play log `victory-nvidia-play-20261129-231549-360.log` (v2026.11.29.05, 5 MB): the run that failed with `a host command list did not close (0x80070057)` and no debug layer, so it is the clean one. - `crashes.log` - all nine crash entries of this machine. - `debug-layer-summary.txt` - the 79 MB log of the run with `VICTORY_D3D12_DEBUG=1` (the one where the two named commands came from), reduced: the settings line, every message category with counts, the distinct messages, the `severity=1` (ERROR) ones, and the last 120 lines of the run. The full 79 MB is too large for a gist - say the word and I will upload it in parts. Where it happens: Chapter 2, mission "Girls' Trip", location Delights Cabaret - the same spot every attempt, 8-10 minutes after resuming the autosave at that checkpoint. It is not DLSS (a run with DLSS fully off failed the same way), not frame generation, not `VICTORY_TEXTURE_ROOM_PERCENT` (76/86/90), not `VICTORY_SAMPLED_EVICT` (it released 0 of 68,593 idle textures), not `VICTORY_PIPELINE_BOOK`, not `VICTORY_RELAY=1/2`. One detail that may narrow it down: with the relay landing copies given `COPY_DEST -> COPY_SOURCE -> COPY_DEST` barriers around them (patch in section 1), the `CopyBufferRegion` message disappears and the run then fails on the `CopyTextureRegion` one (section 2) instead. So the two are independent, and the second one is the one that still stops play.
Author
Owner

@⁠Birdstappen223 on GitHub · 2026-11-30 23:56 UTC · original · edited 2026-12-01 02:11 UTC

I have the same issue. 0x887a0005

RTX 5080 Laptop (16GB VRAM) (NVIDIA Driver Version 596.49)
CPU: Intel Core Ultra 9 275HX
RAM: 32 GB
Windows 11

VILauncher 1.2.2
VIctory-NVIDIA
Series X
1080p

NO DLSS.

Commit: e1251c3

Mission: Girls' Trip
Crash 1: approaching the guys/Dunk rescue
Crash 2: same area
Crash 3: inside Delights Cabaret following Vicki
0x887A0005

Same crash occurs at multiple points in the mission.

victory-nvidia-play-20261130-225848-23756.zip

crashes.log

**@⁠Birdstappen223** on GitHub · 2026-11-30 23:56 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/3539#issuecomment-7295712978) · edited 2026-12-01 02:11 UTC I have the same issue. **0x887a0005** RTX 5080 Laptop (16GB VRAM) (NVIDIA Driver Version 596.49) CPU: Intel Core Ultra 9 275HX RAM: 32 GB Windows 11 VILauncher 1.2.2 VIctory-NVIDIA Series X 1080p NO DLSS. Commit: e1251c3 Mission: Girls' Trip Crash 1: approaching the guys/Dunk rescue Crash 2: same area Crash 3: inside Delights Cabaret following Vicki 0x887A0005 Same crash occurs at multiple points in the mission. [victory-nvidia-play-20261130-225848-23756.zip](https://github.com/user-attachments/files/35648300/victory-nvidia-play-20261130-225848-23756.zip) [crashes.log](https://github.com/user-attachments/files/35648311/crashes.log)
Author
Owner

@⁠Birdstappen223 on GitHub · 2026-12-01 02:14 UTC · original

I have the same issue. 0x887a0005

RTX 5080 Laptop (16GB VRAM) (NVIDIA Driver Version 596.49) CPU: Intel Core Ultra 9 275HX RAM: 32 GB Windows 11

VILauncher 1.2.2 VIctory-NVIDIA Series X 1080p

NO DLSS.

Commit: e1251c3

Mission: Girls' Trip Crash 1: approaching the guys/Dunk rescue Crash 2: same area Crash 3: inside Delights Cabaret following Vicki 0x887A0005

Same crash occurs at multiple points in the mission.

victory-nvidia-play-20261130-225848-23756.zip

crashes.log

Something may be accumulating during gameplay, streaming resources, translated pipelines, descriptors, memory/copies, etc.

I have reproduced this 4 times and each crash happened around 21-27 minutes of gameplay.

Another crash happened on the race track side mission.

victory-nvidia-play-20261201-013941-27860.zip

**@⁠Birdstappen223** on GitHub · 2026-12-01 02:14 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/3539#issuecomment-7298390221) > I have the same issue. **0x887a0005** > > RTX 5080 Laptop (16GB VRAM) (NVIDIA Driver Version 596.49) CPU: Intel Core Ultra 9 275HX RAM: 32 GB Windows 11 > > VILauncher 1.2.2 VIctory-NVIDIA Series X 1080p > > NO DLSS. > > Commit: [e1251c3](https://github.com/trustno1-coder/VIctory-NVIDIA/commit/e1251c3199465565147711887351d80359162bb0) > > Mission: Girls' Trip Crash 1: approaching the guys/Dunk rescue Crash 2: same area Crash 3: inside Delights Cabaret following Vicki 0x887A0005 > > Same crash occurs at multiple points in the mission. > > [victory-nvidia-play-20261130-225848-23756.zip](https://github.com/user-attachments/files/35648300/victory-nvidia-play-20261130-225848-23756.zip) > > [crashes.log](https://github.com/user-attachments/files/35648311/crashes.log) Something may be accumulating during gameplay, streaming resources, translated pipelines, descriptors, memory/copies, etc. I have reproduced this 4 times and each crash happened around 21-27 minutes of gameplay. Another crash happened on the race track side mission. [victory-nvidia-play-20261201-013941-27860.zip](https://github.com/user-attachments/files/35651577/victory-nvidia-play-20261201-013941-27860.zip)
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#3539
No description provided.