Random crash VICTORY_D3D12_DEBUG=1 #4318

Open
opened 2026-11-30 18:51:02 +00:00 by ideeesign · 2 comments
ideeesign commented 2026-11-30 18:51:02 +00:00 (Migrated from github.com)
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by ideeesign on 2026-11-30T18:51:02Z.


see logs and crash log

victory-nvidia-play-20261130-183012-32560.log

crashes.log

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:6703768842 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4318). Originally posted by [ideeesign](https://github.com/ideeesign) on 2026-11-30T18:51:02Z. --- see logs and crash log [victory-nvidia-play-20261130-183012-32560.log](https://github.com/user-attachments/files/35634839/victory-nvidia-play-20261130-183012-32560.log) [crashes.log](https://github.com/user-attachments/files/35634848/crashes.log)
tyr0nsur commented 2026-11-30 18:56:45 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by tyr0nsur on 2026-11-30T18:56:45Z.


The play log identifies this run as build=release. The final failure at 18:49:06 UTC is E_INVALIDARG from D3D12 command-list Close(). It has the same final HRESULT as #4245 and #4300. The debug-layer message is needed to tell whether they fail on the same recorded command.

For this repro, please use the source launcher with -Build diag -More VICTORY_D3D12_DEBUG=1 and keep the settings and route the same. The source also accepts victory.exe play --set VICTORY_D3D12_DEBUG=1 when that executable was built with --features diagnostics. The useful excerpt is the first D3D12: error near the failure, or the no D3D12 debug layer warning if Windows could not start it. Launch options · Debug setup

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7288605298 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4318#issuecomment-7288605298). Originally posted by [tyr0nsur](https://github.com/tyr0nsur) on 2026-11-30T18:56:45Z. --- The play log identifies this run as `build=release`. The final failure at 18:49:06 UTC is `E_INVALIDARG` from D3D12 command-list `Close()`. It has the same final HRESULT as #4245 and #4300. The debug-layer message is needed to tell whether they fail on the same recorded command. For this repro, please use the source launcher with `-Build diag -More VICTORY_D3D12_DEBUG=1` and keep the settings and route the same. The source also accepts `victory.exe play --set VICTORY_D3D12_DEBUG=1` when that executable was built with `--features diagnostics`. The useful excerpt is the first `D3D12:` error near the failure, or the `no D3D12 debug layer` warning if Windows could not start it. [Launch options](https://github.com/trustno1-coder/VIctory-NVIDIA/blob/e1251c3199465565147711887351d80359162bb0/scripts/play-nvidia.ps1#L4-L18) · [Debug setup](https://github.com/trustno1-coder/VIctory-NVIDIA/blob/e1251c3199465565147711887351d80359162bb0/crates/victory-gpu/src/host.rs#L1643-L1653)
tyr0nsur commented 2026-11-30 19:29:42 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by tyr0nsur on 2026-11-30T19:29:42Z.


A likely cause, now reproduced in isolation on an RTX 4060: #3901 traced this exact Close() failure to the placed-twin copy in list.rs (copy_texture_region). placed_twins pairs twins by block size only, so a BC3 texture can be copied into a BC7 twin, and D3D12 refuses that copy across format families when the list closes (0x80070057). The fix is #4080 (the copy goes through a buffer). Its unit test fails Close() the same way on an RTX 4060 and passes with the fix (results).

Until it is merged, a run with the placed-twin copies off should avoid the crash, if this is the cause: victory.exe play --set VICTORY_PLACED_COPIED=0 (or -More VICTORY_PLACED_COPIED=0 on the script launcher). It is the behaviour from before those copies were ported, so a few textures that share memory may be stale. If the crash still happens with it, the debug-layer message is still the way to name the command, as asked above.

AI-assisted with Claude Code.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7289485364 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/4318#issuecomment-7289485364). Originally posted by [tyr0nsur](https://github.com/tyr0nsur) on 2026-11-30T19:29:42Z. --- A likely cause, now reproduced in isolation on an RTX 4060: #3901 traced this exact `Close()` failure to the placed-twin copy in `list.rs` (`copy_texture_region`). `placed_twins` pairs twins by block size only, so a BC3 texture can be copied into a BC7 twin, and D3D12 refuses that copy across format families when the list closes (`0x80070057`). The fix is #4080 (the copy goes through a buffer). Its unit test fails `Close()` the same way on an RTX 4060 and passes with the fix ([results](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4080)). Until it is merged, a run with the placed-twin copies off should avoid the crash, if this is the cause: `victory.exe play --set VICTORY_PLACED_COPIED=0` (or `-More VICTORY_PLACED_COPIED=0` on the script launcher). It is the behaviour from before those copies were ported, so a few textures that share memory may be stale. If the crash still happens with it, the debug-layer message is still the way to name the command, as asked above. AI-assisted with Claude Code.
Sign in to join this conversation.
No labels
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.

Reference
trustno1-coder/VIctory-NVIDIA#4318
No description provided.