Host GPU device removed on RTX 4070 (diag build, DRED) - many shaders fail to translate #97

Open
opened 2026-11-26 03:50:11 +00:00 by github-bot · 14 comments
Owner

@⁠TheLad808 on GitHub · 2026-11-24 00:27 UTC · original

I tried VIctory and hit the host GPU failure described in the README. Here are my details in case they help, since the README says it has only been tested on an AMD RX 6700 XT.

System

  • GPU: NVIDIA GeForce RTX 4070
  • NVIDIA driver version: 621.24
  • OS: Windows 11 [fill in if different]
  • CPU: i9-14900kf
  • VIctory commit: [run git rev-parse --short HEAD in the repo folder]

What I ran

  • Built with cargo build --profile diag -p victory --features diagnostics
  • Set VICTORY_D3D12_DEBUG=1 and VICTORY_D3D12_DRED=1
  • Ran target\diag\victory.exe run <title exe> --execute, output saved to a file

What happened

  • The host GPU device was removed after a submission of 1 list (12 compute dispatches). Final error: 0x887A0005 (device suspended).
  • The breadcrumbs named these compute programs: 9aa3629668b8e7ab, 010a50ce68d02c16, 44bb2d65d51ba5d1, 25c5ee5063e1a41f, 1547305c505a7559.
  • Several of them show Uav s0+288: uav None, and one SRV buffer is at address 31960662016 (about 30 GB in), which may fall outside the 4 GB window mentioned in the README. I'm not sure whether either is the cause.
  • On an earlier release-build run I got 0x887A0004 followed by 0x887A0006 with no breadcrumbs.
  • My screens did not flicker or go black when it crashed.

Warnings before the crash

  • Many "host pipeline refused: The parameter is incorrect (0x80070057)" warnings for compute shaders. I wonder if this is related to NVIDIA's 32-lane waves versus the 64-lane waves the README mentions, but that is only a guess.
  • Many "shader does not translate" warnings, mostly: "an address in an SGPR that is no root parameter", "structured buffer of unknown stride", "64-bit image atomic", "scalar memory read as data", "barycentrics read directly", "lane-mask join of an untracked mask", and unsupported instructions v_swap_b32 and v_xnor_b32.

Here's the error txt file

out2.docx

**@⁠TheLad808** on GitHub · 2026-11-24 00:27 UTC · [original](https://github.com/Marvisak/VIctory/issues/97) I tried VIctory and hit the host GPU failure described in the README. Here are my details in case they help, since the README says it has only been tested on an AMD RX 6700 XT. System - GPU: NVIDIA GeForce RTX 4070 - NVIDIA driver version: 621.24 - OS: Windows 11 [fill in if different] - CPU: i9-14900kf - VIctory commit: [run `git rev-parse --short HEAD` in the repo folder] What I ran - Built with `cargo build --profile diag -p victory --features diagnostics` - Set `VICTORY_D3D12_DEBUG=1` and `VICTORY_D3D12_DRED=1` - Ran `target\diag\victory.exe run <title exe> --execute`, output saved to a file What happened - The host GPU device was removed after a submission of 1 list (12 compute dispatches). Final error: 0x887A0005 (device suspended). - The breadcrumbs named these compute programs: 9aa3629668b8e7ab, 010a50ce68d02c16, 44bb2d65d51ba5d1, 25c5ee5063e1a41f, 1547305c505a7559. - Several of them show `Uav s0+288: uav None`, and one SRV buffer is at address 31960662016 (about 30 GB in), which may fall outside the 4 GB window mentioned in the README. I'm not sure whether either is the cause. - On an earlier release-build run I got 0x887A0004 followed by 0x887A0006 with no breadcrumbs. - My screens did not flicker or go black when it crashed. **Warnings before the crash** - Many "host pipeline refused: The parameter is incorrect (0x80070057)" warnings for compute shaders. I wonder if this is related to NVIDIA's 32-lane waves versus the 64-lane waves the README mentions, but that is only a guess. - Many "shader does not translate" warnings, mostly: "an address in an SGPR that is no root parameter", "structured buffer of unknown stride", "64-bit image atomic", "scalar memory read as data", "barycentrics read directly", "lane-mask join of an untracked mask", and unsupported instructions v_swap_b32 and v_xnor_b32. Here's the error txt file [out2.docx](https://github.com/user-attachments/files/35304970/out2.docx)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:50:11 +00:00
Author
Owner

@⁠engme66 on GitHub · 2026-11-24 01:34 UTC · original

Same 0x887A0004 + 0x887A0006 pair on an RTX 2070 Super, after the world title card:

Setup

  • VIctory main @ d2a4bae (82 commits), built from source with Rust 1.98.1
  • Windows 11, AMD Ryzen 7 5800X, NVIDIA RTX 2070 Super, 32 GB RAM, fixed 32 GB page file

What happened

After rebuilding with PR #58 (v_swap_b32 lowering, 4a8a058), the earlier crashes are gone: the device-removed from the null-descriptor bug (fixed by 8c26061) and the v_swap_b32 / null-write crash at +0x23cf683 no longer occur.

This run got through the menus and the Americas loading screen, into the world intro — the "VICE CITY, TWO YEARS AGO" title card rendered at 1 fps, 1017 draws/frame, with game audio working.

Right after the title card, the run died with a host GPU device removal:

INFO victory_gpu::pipeline::make: host pipelines all made made=1001 loaded=5 started_early=0
INFO victory_gpu::pipeline::library: host pipeline library saved bytes=32789230 early=810 made=1001 loaded=5 started_early=0
WARN victory_gpu::host: slow host submission ms=5296 lists=17 pipelines={... 100+ compute/mesh/vertex pipelines ...}
ERROR victory_gpu::host: host GPU device removed after a submission of 17 lists; no breadcrumbs (The specified device interface or feature level is not supported on this system. (0x887A0004)); device removed: The GPU will not respond to more commands, most likely because of an invalid command passed by the calling application. (0x887A0006); a diagnostics build with VICTORY_D3D12_DEBUG=1 names the command

Why this is still worth reporting

  • This is not the 8c26061 null-descriptor device removal — that one had no 0x887A0004, and this run got past the point where it used to fail.
  • This is not the v_swap_b32 crash — that shader now translates (PR #58), and there is no 0xc0000005 / +0x23cf683 in this run.
  • The new part is 0x887A0004: "The specified device interface or feature level is not supported on this system", on a 17-list submission in the world, on an NVIDIA Turing card. The README only lists testing on an RX 6700 XT.

I have not yet run a diagnostics build with VICTORY_D3D12_DEBUG=1

crashes.log

**@⁠engme66** on GitHub · 2026-11-24 01:34 UTC · [original](https://github.com/Marvisak/VIctory/issues/97#issuecomment-7119242831) Same 0x887A0004 + 0x887A0006 pair on an RTX 2070 Super, after the world title card: ### Setup - VIctory main @ `d2a4bae` (82 commits), built from source with Rust 1.98.1 - Windows 11, AMD Ryzen 7 5800X, NVIDIA RTX 2070 Super, 32 GB RAM, fixed 32 GB page file ### What happened After rebuilding with PR #58 (v\_swap\_b32 lowering, `4a8a058`), the earlier crashes are gone: the device-removed from the null-descriptor bug (fixed by `8c26061`) and the `v_swap_b32` / null-write crash at `+0x23cf683` no longer occur. This run got through the menus and the Americas loading screen, into the world intro — the "VICE CITY, TWO YEARS AGO" title card rendered at 1 fps, 1017 draws/frame, with game audio working. Right after the title card, the run died with a host GPU device removal: ``` INFO victory_gpu::pipeline::make: host pipelines all made made=1001 loaded=5 started_early=0 INFO victory_gpu::pipeline::library: host pipeline library saved bytes=32789230 early=810 made=1001 loaded=5 started_early=0 WARN victory_gpu::host: slow host submission ms=5296 lists=17 pipelines={... 100+ compute/mesh/vertex pipelines ...} ERROR victory_gpu::host: host GPU device removed after a submission of 17 lists; no breadcrumbs (The specified device interface or feature level is not supported on this system. (0x887A0004)); device removed: The GPU will not respond to more commands, most likely because of an invalid command passed by the calling application. (0x887A0006); a diagnostics build with VICTORY_D3D12_DEBUG=1 names the command ``` ### Why this is still worth reporting - This is not the `8c26061` null-descriptor device removal — that one had no `0x887A0004`, and this run got past the point where it used to fail. - This is not the `v_swap_b32` crash — that shader now translates (PR #58), and there is no `0xc0000005` / `+0x23cf683` in this run. - The new part is `0x887A0004`: "The specified device interface or feature level is not supported on this system", on a 17-list submission in the world, on an NVIDIA Turing card. The README only lists testing on an RX 6700 XT. I have not yet run a diagnostics build with `VICTORY_D3D12_DEBUG=1` [crashes.log](https://github.com/user-attachments/files/35306393/crashes.log)
Author
Owner

@⁠miniongk on GitHub · 2026-11-24 02:03 UTC · original

I can reproduce this failure class on current main (d2a4bae), RTX 5080, driver 621.24, Windows 11 26300, using a local 1.0.2.1 copy. The title reaches the world, then the host device is removed with DXGI_ERROR_DEVICE_HUNG after a compute dispatch. I will investigate the current failing path and check it against the existing shader PRs before changing code. Only counts and error classes will be shared, not game data or raw game logs. AI-assisted (Kimi Code).

**@⁠miniongk** on GitHub · 2026-11-24 02:03 UTC · [original](https://github.com/Marvisak/VIctory/issues/97#issuecomment-7119705958) I can reproduce this failure class on current `main` (`d2a4bae`), RTX 5080, driver 621.24, Windows 11 26300, using a local 1.0.2.1 copy. The title reaches the world, then the host device is removed with `DXGI_ERROR_DEVICE_HUNG` after a compute dispatch. I will investigate the current failing path and check it against the existing shader PRs before changing code. Only counts and error classes will be shared, not game data or raw game logs. AI-assisted (Kimi Code).
Author
Owner

@⁠ChruutvoLuzi on GitHub · 2026-11-24 02:09 UTC · original

These programs also bring down the software adapter, already in the menus, which may make this easier to test without hanging a GPU.

main at d2a4bae, diag build, VICTORY_D3D12_WARP=1, Xbox Series 1.0.2.1. Three runs ended 85 to 108 s after start, before the world. Each time 25 to 32 first-chance access violations read address 0 at the same address in WARP's compiled shader code (frames below it in d3d10warp.dll), and the device was removed with 0x887A0005.

With VICTORY_D3D12_DRED=1, the commands the list last noted were dispatches of 25c5ee5063e1a41f (three of them), 2a3522dae6b66c17 and 269b802f878c24e1. With those three in VICTORY_SKIP_PIPELINES, the next run died the same way at 1547305c505a7559. All of them bind alike: u4=0xa67100 points at heap slot 340872, which was never made, and u8 (or u5) is one of the title's low slots, 0 to 11. Those hold views without a resource, such as Shader(0, [42, 8, 5768, …]) at slot 3 and Unordered(0, 0, [42, 4, …]) at slot 6, or nothing at all. ka1qux found the same pattern on WARP in the world for d3e44e754b3eb6aa (same Unordered(0, 0, [42, 4, …]) at slot 6) and da1656ad2910e4c7, see #135, where 1547305c505a7559 also appears right after them.

On an RTX 4090 the same main build runs these menus at 30 fps without trouble, so real GPUs seem to tolerate what WARP does not.

AI-assisted (Claude Code).

**@⁠ChruutvoLuzi** on GitHub · 2026-11-24 02:09 UTC · [original](https://github.com/Marvisak/VIctory/issues/97#issuecomment-7119808159) These programs also bring down the software adapter, already in the menus, which may make this easier to test without hanging a GPU. `main` at `d2a4bae`, diag build, `VICTORY_D3D12_WARP=1`, Xbox Series 1.0.2.1. Three runs ended 85 to 108 s after start, before the world. Each time 25 to 32 first-chance access violations read address 0 at the same address in WARP's compiled shader code (frames below it in `d3d10warp.dll`), and the device was removed with `0x887A0005`. With `VICTORY_D3D12_DRED=1`, the commands the list last noted were dispatches of `25c5ee5063e1a41f` (three of them), `2a3522dae6b66c17` and `269b802f878c24e1`. With those three in `VICTORY_SKIP_PIPELINES`, the next run died the same way at `1547305c505a7559`. All of them bind alike: `u4=0xa67100` points at heap slot 340872, which was never made, and `u8` (or `u5`) is one of the title's low slots, 0 to 11. Those hold views without a resource, such as `Shader(0, [42, 8, 5768, …])` at slot 3 and `Unordered(0, 0, [42, 4, …])` at slot 6, or nothing at all. ka1qux found the same pattern on WARP in the world for `d3e44e754b3eb6aa` (same `Unordered(0, 0, [42, 4, …])` at slot 6) and `da1656ad2910e4c7`, see #135, where `1547305c505a7559` also appears right after them. On an RTX 4090 the same `main` build runs these menus at 30 fps without trouble, so real GPUs seem to tolerate what WARP does not. AI-assisted (Claude Code).
Author
Owner

@⁠miniongk on GitHub · 2026-11-24 02:15 UTC · original

Additional isolation on RTX 5080 / 621.24:

  • VICTORY_SKIP_PIPELINES=8c8f0165ddd5199d: the first mesh pipeline is skipped, but the device is still removed in a later mesh draw (b68376181e9c8b2f / 867e520305f703b2).
  • VICTORY_SHADER_LOOP_LIMIT=1000: no improvement; the device is removed at the same stage.
  • #189 head d0fd9bf selects Wave32, removes the host-pipeline refusals seen on main, and passes its workspace tests, but the device is still removed in a mesh submission.

This no longer looks specific to one pipeline or a long shader loop. I am not changing code on guesswork; next would be isolating host descriptor/resource lifetime or mesh-draw state with a synthetic reproduction. AI-assisted (Kimi Code).

**@⁠miniongk** on GitHub · 2026-11-24 02:15 UTC · [original](https://github.com/Marvisak/VIctory/issues/97#issuecomment-7119941662) Additional isolation on RTX 5080 / 621.24: - `VICTORY_SKIP_PIPELINES=8c8f0165ddd5199d`: the first mesh pipeline is skipped, but the device is still removed in a later mesh draw (`b68376181e9c8b2f` / `867e520305f703b2`). - `VICTORY_SHADER_LOOP_LIMIT=1000`: no improvement; the device is removed at the same stage. - #189 head `d0fd9bf` selects `Wave32`, removes the host-pipeline refusals seen on `main`, and passes its workspace tests, but the device is still removed in a mesh submission. This no longer looks specific to one pipeline or a long shader loop. I am not changing code on guesswork; next would be isolating host descriptor/resource lifetime or mesh-draw state with a synthetic reproduction. AI-assisted (Kimi Code).
Author
Owner

@⁠miniongk on GitHub · 2026-11-24 02:20 UTC · original

WARP comparison on #189 head d0fd9bf, same local copy and diagnostics: it reaches the world without DXGI_ERROR_DEVICE_HUNG, then after about 1,180 host pipelines the process takes an access violation in d3d10warp.dll on a write, with no D3D12 debug-layer error before it.

The hardware and software paths therefore both fail after substantial mesh/compute submission, but differently. That points more toward invalid descriptor/resource data reaching the host than a pure NVIDIA TDR. I am not changing code until this can be reduced to a minimal synthetic case. AI-assisted (Kimi Code).

**@⁠miniongk** on GitHub · 2026-11-24 02:20 UTC · [original](https://github.com/Marvisak/VIctory/issues/97#issuecomment-7120032034) WARP comparison on #189 head `d0fd9bf`, same local copy and diagnostics: it reaches the world without `DXGI_ERROR_DEVICE_HUNG`, then after about 1,180 host pipelines the process takes an access violation in `d3d10warp.dll` on a write, with no D3D12 debug-layer error before it. The hardware and software paths therefore both fail after substantial mesh/compute submission, but differently. That points more toward invalid descriptor/resource data reaching the host than a pure NVIDIA TDR. I am not changing code until this can be reduced to a minimal synthetic case. AI-assisted (Kimi Code).
Author
Owner

@⁠miniongk on GitHub · 2026-11-24 03:33 UTC · original

Two more existing-PR comparisons on the RTX 5080 / driver 621.24 setup, using the local 1.0.2.1 copy:

  • #294 (bffaefd): workspace tests passed, but both WARP and native hardware still hit host device failures. Its null/unmapped root-view fallback warnings did not occur in these runs.
  • #320 (a5ba4a4): workspace tests passed (281 passed, 0 failed). Host pipeline refusals and the divergent cross-lane translation errors from #189 were removed, but the native run still ended in DXGI_ERROR_DEVICE_HUNG; DRED implicated mesh dispatch and indirect execution.

I am testing these existing PRs rather than writing duplicate implementations. The device-removal investigation in this issue remains open. Only aggregate results and error classes shared. AI-assisted (Kimi Code).

**@⁠miniongk** on GitHub · 2026-11-24 03:33 UTC · [original](https://github.com/Marvisak/VIctory/issues/97#issuecomment-7121212034) Two more existing-PR comparisons on the RTX 5080 / driver 621.24 setup, using the local 1.0.2.1 copy: - #294 (`bffaefd`): workspace tests passed, but both WARP and native hardware still hit host device failures. Its null/unmapped root-view fallback warnings did not occur in these runs. - #320 (`a5ba4a4`): workspace tests passed (281 passed, 0 failed). Host pipeline refusals and the divergent cross-lane translation errors from #189 were removed, but the native run still ended in `DXGI_ERROR_DEVICE_HUNG`; DRED implicated mesh dispatch and indirect execution. I am testing these existing PRs rather than writing duplicate implementations. The device-removal investigation in this issue remains open. Only aggregate results and error classes shared. AI-assisted (Kimi Code).
Author
Owner

@⁠miniongk on GitHub · 2026-11-24 05:52 UTC · original

Current status after testing the existing PRs rather than duplicating them: a local combination of #413, #320, #483, #89, #137, #458 and #566 passes its serial workspace suite (310 passed, 0 failed). On the native RTX 5080 path, this run had no host-device removal, no host-pipeline refusals, and no packed-texture/readback warnings, but still reached the same explicit null-write fatal path in title code seen with the #413 combination.

So the original device hang is not shown to be resolved, and there is a separate title-side fatal path to investigate before a meaningful world-stability claim. Detailed per-PR comparisons are posted on #294, #320, #307, #483, #89, #413, #137 and #458. No game data or raw game logs shared. AI-assisted (Kimi Code).

**@⁠miniongk** on GitHub · 2026-11-24 05:52 UTC · [original](https://github.com/Marvisak/VIctory/issues/97#issuecomment-7123349705) Current status after testing the existing PRs rather than duplicating them: a local combination of #413, #320, #483, #89, #137, #458 and #566 passes its serial workspace suite (310 passed, 0 failed). On the native RTX 5080 path, this run had no host-device removal, no host-pipeline refusals, and no packed-texture/readback warnings, but still reached the same explicit null-write fatal path in title code seen with the #413 combination. So the original device hang is not shown to be resolved, and there is a separate title-side fatal path to investigate before a meaningful world-stability claim. Detailed per-PR comparisons are posted on #294, #320, #307, #483, #89, #413, #137 and #458. No game data or raw game logs shared. AI-assisted (Kimi Code).
Author
Owner

@⁠iurysf on GitHub · 2026-11-24 06:05 UTC · original

For the RTX 4070 removal specifically: #493 (bounded root SRVs, it includes #336) together with #483 stopped it on our RTX 4070. No removal in 300 s runs on main d2a4bae, where it happened every run. Disabling only the bounded root SRVs (VICTORY_ROOT_SRV_DIRECT=1) brings it back. The combination in the comment above doesn't include #493, which may be why the original hang isn't shown as resolved there. Measurements: #493

**@⁠iurysf** on GitHub · 2026-11-24 06:05 UTC · [original](https://github.com/Marvisak/VIctory/issues/97#issuecomment-7123576283) For the RTX 4070 removal specifically: #493 (bounded root SRVs, it includes #336) together with #483 stopped it on our RTX 4070. No removal in 300 s runs on main `d2a4bae`, where it happened every run. Disabling only the bounded root SRVs (`VICTORY_ROOT_SRV_DIRECT=1`) brings it back. The combination in the comment above doesn't include #493, which may be why the original hang isn't shown as resolved there. Measurements: https://git.gtahub.st/github/Marvisak--VIctory/pulls/493
Author
Owner

@⁠rocobalt1 on GitHub · 2026-11-24 06:53 UTC · original

RTX 4060 Ti: with TdrDelay raised, the world hang becomes a deterministic title crash at +0x23cf683

Machine data for the "host GPU device removed" report. One package, one build, five GPU
runs. Nothing here is game data: only hashes, HRESULTs, a crash address and frame counters
that VIctory already logs.

Environment

GPU NVIDIA GeForce RTX 4060 Ti, driver 32.0.16.1656
OS Windows 11 Pro 26200
CPU Ryzen 9 5900X
Build cargo build --release -p victory, HEAD d2a4bae (Rust 1.98.1), and the diag profile for the validation run
Command victory.exe run <game>\game_scarlett_master.exe --execute

Without a TDR delay: device hung

Four runs reported a device removal with the default TdrDelay (2 s), all with
VICTORY_D3D12_DRED=1:

Run Lists in the failing submission Result
1 32 0x887A0004 reported first, crashes.log adds 0x887A0006 The GPU will not respond to more commands
2 8 same
3 8 same
4 (WARP) – also removed, so this is not specific to the hardware adapter

DRED reports no breadcrumbs. Submission size does not decide it: 8 lists failed as
readily as 32.

With TdrDelay=60: no device removal, the title crashes instead

HKLM\SYSTEM\CurrentControlSet\Control\GraphicsDrivers set to TdrDelay=60 and
TdrDdiDelay=60, rebooted, five runs since:

  • device removed: none of them
  • the world loads: peak dropped 1380 draws in one frame, lowest fps 0.6
  • every one ends in the title's own fault, at the same address:
unhandled exception 0xc0000005 at victory-image-b99f876b74d4a77f.dll+0x23cf683 (write 0x0)
  rax 0x0  rbx 0x0  rcx 0xd0024c348  rdx 0x1  rbp 0x0
  #0 +0x23cf683   #1 +0x2215c35   #2 +0x2215eca   #3 KERNEL32   #4 ntdll

Same address, same frame +0x2215c35, same null write, on the hardware adapter and on
WARP. That is consistent with the hang having been a timeout: with a long enough budget the
submission completes, and what remains is a title-side null write during the world load.

Note the cost: with TdrDelay=60 a real hang freezes the desktop for up to a minute.

Three host textures fail to create, and the format is not the reason

VICTORY_D3D12_DEBUG=1 on the diag profile:

no host texture error=E_INVALIDARG (0x80070057)
  dimension 3, 2560x1440, 1 mip, format 86,  flags 5
no host texture error=E_INVALIDARG (0x80070057)
  dimension 3, 2560x1440, 1 mip, format 115, flags 1
no host texture error=E_INVALIDARG (0x80070057)
  dimension 3, 1024x4096, 1 mip, format 28,  flags 1   <- after a local substitution

Format 86 is B5G5R5A1_UNORM, 115 is B4G4R4A4_UNORM. Two local variants were tried:

Variant Result
clear the UAV flag for 86/115, keep the format one still fails
substitute R8G8B8A8_UNORM (28) and keep the flags every one still fails

A plain R8G8B8A8_UNORM render target at 2560x1440 cannot be rejected for its format, so
what CreateCommittedResource refuses is elsewhere in the description. The first suspects
are the initial state (legal_for(d.flags, texture_state(state)) in host_texture) and the
clear value passed through.

Reproduce

$env:VICTORY_D3D12_DRED = '1'
target\release\victory.exe run <game>\game_scarlett_master.exe --execute

# the validation messages above
cargo build --profile diag -p victory --features diagnostics
$env:VICTORY_D3D12_DEBUG = '1'
target\diag\victory.exe run <game>\game_scarlett_master.exe --execute
**@⁠rocobalt1** on GitHub · 2026-11-24 06:53 UTC · [original](https://github.com/Marvisak/VIctory/issues/97#issuecomment-7124400462) # RTX 4060 Ti: with TdrDelay raised, the world hang becomes a deterministic title crash at +0x23cf683 Machine data for the "host GPU device removed" report. One package, one build, five GPU runs. Nothing here is game data: only hashes, HRESULTs, a crash address and frame counters that VIctory already logs. ## Environment | | | |---|---| | GPU | NVIDIA GeForce RTX 4060 Ti, driver 32.0.16.1656 | | OS | Windows 11 Pro 26200 | | CPU | Ryzen 9 5900X | | Build | `cargo build --release -p victory`, HEAD `d2a4bae` (Rust 1.98.1), and the `diag` profile for the validation run | | Command | `victory.exe run <game>\game_scarlett_master.exe --execute` | ## Without a TDR delay: device hung Four runs reported a device removal with the default `TdrDelay` (2 s), all with `VICTORY_D3D12_DRED=1`: | Run | Lists in the failing submission | Result | |---|---|---| | 1 | 32 | `0x887A0004` reported first, `crashes.log` adds `0x887A0006 The GPU will not respond to more commands` | | 2 | 8 | same | | 3 | 8 | same | | 4 (WARP) | – | also removed, so this is not specific to the hardware adapter | DRED reports **no breadcrumbs**. Submission size does not decide it: 8 lists failed as readily as 32. ## With TdrDelay=60: no device removal, the title crashes instead `HKLM\SYSTEM\CurrentControlSet\Control\GraphicsDrivers` set to `TdrDelay=60` and `TdrDdiDelay=60`, rebooted, five runs since: - device removed: **none of them** - the world loads: `peak dropped 1380` draws in one frame, `lowest fps 0.6` - every one ends in the title's own fault, at the same address: ``` unhandled exception 0xc0000005 at victory-image-b99f876b74d4a77f.dll+0x23cf683 (write 0x0) rax 0x0 rbx 0x0 rcx 0xd0024c348 rdx 0x1 rbp 0x0 #0 +0x23cf683 #1 +0x2215c35 #2 +0x2215eca #3 KERNEL32 #4 ntdll ``` Same address, same frame `+0x2215c35`, same null write, on the hardware adapter and on WARP. That is consistent with the hang having been a timeout: with a long enough budget the submission completes, and what remains is a title-side null write during the world load. Note the cost: with `TdrDelay=60` a real hang freezes the desktop for up to a minute. ## Three host textures fail to create, and the format is not the reason `VICTORY_D3D12_DEBUG=1` on the diag profile: ``` no host texture error=E_INVALIDARG (0x80070057) dimension 3, 2560x1440, 1 mip, format 86, flags 5 no host texture error=E_INVALIDARG (0x80070057) dimension 3, 2560x1440, 1 mip, format 115, flags 1 no host texture error=E_INVALIDARG (0x80070057) dimension 3, 1024x4096, 1 mip, format 28, flags 1 <- after a local substitution ``` Format 86 is `B5G5R5A1_UNORM`, 115 is `B4G4R4A4_UNORM`. Two local variants were tried: | Variant | Result | |---|---| | clear the UAV flag for 86/115, keep the format | one still fails | | substitute `R8G8B8A8_UNORM` (28) and keep the flags | **every one still fails** | A plain `R8G8B8A8_UNORM` render target at 2560x1440 cannot be rejected for its format, so what `CreateCommittedResource` refuses is elsewhere in the description. The first suspects are the initial state (`legal_for(d.flags, texture_state(state))` in `host_texture`) and the clear value passed through. ## Reproduce ```powershell $env:VICTORY_D3D12_DRED = '1' target\release\victory.exe run <game>\game_scarlett_master.exe --execute # the validation messages above cargo build --profile diag -p victory --features diagnostics $env:VICTORY_D3D12_DEBUG = '1' target\diag\victory.exe run <game>\game_scarlett_master.exe --execute ```
Author
Owner

@⁠colehammond65 on GitHub · 2026-11-24 06:58 UTC · original

RTX 4080 reproduces the same failure class. Four DRED-enabled runs reached the world, then exited with 0x887A0005; the removed reason was 0x887A0006. The stopped command was EXECUTE_INDIRECT (op 5) or DISPATCH_MESH (op 42), with no page fault. PR #334 did not prevent the removal. Full report: #334

AI-assisted test report.

**@⁠colehammond65** on GitHub · 2026-11-24 06:58 UTC · [original](https://github.com/Marvisak/VIctory/issues/97#issuecomment-7124480769) **RTX 4080 reproduces the same failure class.** Four DRED-enabled runs reached the world, then exited with `0x887A0005`; the removed reason was `0x887A0006`. The stopped command was `EXECUTE_INDIRECT` (op 5) or `DISPATCH_MESH` (op 42), with no page fault. PR #334 did not prevent the removal. Full report: https://git.gtahub.st/github/Marvisak--VIctory/pulls/334 AI-assisted test report.
Author
Owner

@⁠iurysf on GitHub · 2026-11-24 09:08 UTC · original

Same +0x23cf683 fault on an RTX 4070: 7 of 7 of our runs with GPU-based validation on (which slows the GPU without a TDR) ended there before the world. That matches @⁠rocobalt1's TdrDelay=60 runs. It is the title's own watchdog, analysed in #454 and in #71, which adds an opt-in VICTORY_NO_WATCHDOG=1. Details on #454. AI-assisted.

**@⁠iurysf** on GitHub · 2026-11-24 09:08 UTC · [original](https://github.com/Marvisak/VIctory/issues/97#issuecomment-7127014829) Same `+0x23cf683` fault on an RTX 4070: 7 of 7 of our runs with GPU-based validation on (which slows the GPU without a TDR) ended there before the world. That matches @⁠rocobalt1's TdrDelay=60 runs. It is the title's own watchdog, analysed in #454 and in #71, which adds an opt-in `VICTORY_NO_WATCHDOG=1`. Details on #454. AI-assisted.
Author
Owner

@⁠Callimann8 on GitHub · 2026-11-24 10:46 UTC · original

Another RTX 4070 data point (Laptop GPU, driver 32.0.16.2114, Ryzen 9 7945HX, Win 11 26300, diag build, dGPU forced via Windows GPU preference).

Result on main ffe310e: boot, first-boot screens, intro, menus and the world load all work. The world's title card renders at 0.5-1.2 fps, then the device is removed (DXGI_ERROR_DEVICE_HUNG) about 25-45 s into the world. 22 runs, every one hung.

Real hang, not slow work: with TdrDelay raised to 60 s, the last frame is presented, nvlddmkm logs Event 153 (engine reset) 8 s later, well inside the 60 s, and the host logs nothing for 30 s. Then the title's own crash handler (Breakpad) fires and the process exits.

Tested on top of main, none of them fix it:

  • #542, #334, #587, #650, each alone
  • every pair of #334 / #587 / #650, and all three together (one 8-minute survival with all three did not repeat in 2 reruns)
  • #693 (no hang fix, no visible speedup in the world)
  • #595 no longer merges cleanly (conflict in victory-gpu/src/draw.rs)

Other things ruled out (diag switches):

  • VICTORY_SHADER_LOOP_LIMIT=1024: still hangs.
  • VICTORY_SKIP_PIPELINES with the 5 mesh pipelines in the stalled list (4adfa13bea1c556a, fa746ce8f67dac96, 4616c1b5011f1d90, f811432cfa6a15b3, 3a93976a475b8bdb): the stall moves to mesh a26422c01dcf5612 + pixel 6a3a8d3fe52b4eab.
  • A local experiment translating wave64 compute with WaveSize(32) (115 pipelines otherwise refused with "wants wave lane count of 64"): 0 refused, still hangs.

Debug layer (VICTORY_D3D12_DEBUG=1): no errors at the hang. Warnings: a title buffer used as a vertex buffer while in UNORDERED_ACCESS (37x), plus barrier before-state mismatches (70x), as in #548.

DRED and full logs are available if useful (no game data).

**@⁠Callimann8** on GitHub · 2026-11-24 10:46 UTC · [original](https://github.com/Marvisak/VIctory/issues/97#issuecomment-7129217144) Another RTX 4070 data point (Laptop GPU, driver 32.0.16.2114, Ryzen 9 7945HX, Win 11 26300, diag build, dGPU forced via Windows GPU preference). **Result on main ffe310e:** boot, first-boot screens, intro, menus and the world load all work. The world's title card renders at 0.5-1.2 fps, then the device is removed (`DXGI_ERROR_DEVICE_HUNG`) about 25-45 s into the world. 22 runs, every one hung. **Real hang, not slow work:** with `TdrDelay` raised to 60 s, the last frame is presented, nvlddmkm logs Event 153 (engine reset) 8 s later, well inside the 60 s, and the host logs nothing for 30 s. Then the title's own crash handler (Breakpad) fires and the process exits. **Tested on top of main, none of them fix it:** - #542, #334, #587, #650, each alone - every pair of #334 / #587 / #650, and all three together (one 8-minute survival with all three did not repeat in 2 reruns) - #693 (no hang fix, no visible speedup in the world) - #595 no longer merges cleanly (conflict in `victory-gpu/src/draw.rs`) **Other things ruled out (diag switches):** - `VICTORY_SHADER_LOOP_LIMIT=1024`: still hangs. - `VICTORY_SKIP_PIPELINES` with the 5 mesh pipelines in the stalled list (`4adfa13bea1c556a`, `fa746ce8f67dac96`, `4616c1b5011f1d90`, `f811432cfa6a15b3`, `3a93976a475b8bdb`): the stall moves to `mesh a26422c01dcf5612 + pixel 6a3a8d3fe52b4eab`. - A local experiment translating wave64 compute with `WaveSize(32)` (115 pipelines otherwise refused with "wants wave lane count of 64"): 0 refused, still hangs. **Debug layer (`VICTORY_D3D12_DEBUG=1`):** no errors at the hang. Warnings: a `title buffer` used as a vertex buffer while in `UNORDERED_ACCESS` (37x), plus barrier before-state mismatches (70x), as in #548. DRED and full logs are available if useful (no game data).
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 01:47 UTC · original · edited 2026-11-25 18:44 UTC

Automated triage for the maintainers.

Thank you for the report and the DRED data. This is the NVIDIA device removal in mesh/compute work, which is tracked in #71 (other reports: #99, #264, #468, #496, #619, #1107). The host pipeline refused ... 0x80070057 warnings for compute programs match what main does: Lower::new in crates/victory-shader/src/emit/lower.rs declares WaveSize(64) for wave64 programs that depend on the lane layout, and a 32-lane NVIDIA GPU refuses them (README: "some compute programs need a GPU with 64-lane waves").

New (18:10Z, 13f91ca, RTX 2070 Super): the debug layer now names an invalid call (0x887A0001) instead of a hang. CreateCommittedResource3 rejects a texture flagged as a render target whose clear value is B4G4R4A4_UNORM, a format that PC D3D12 on this card does not accept as a render target. This is confirmed in main. host_desc in crates/victory-gpu/src/resource.rs keeps the console's render-target flag whatever the format is. make_texture passes the title's clear value through with only pc_format applied, and neither of them asks the host whether the format can be used that way. This is the render-target counterpart of #1753 (B5G5R5A1_UNORM flagged for unordered access, the same packed formats 86/115). The open PRs for #1753 (#2459, #1787 and #1763) only drop or refuse the unordered-access side, so they would not clear this one.


Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-25 01:47 UTC · [original](https://github.com/Marvisak/VIctory/issues/97#issuecomment-7149956468) · edited 2026-11-25 18:44 UTC <!-- victory-issue-triage v1 verdict=tracked seen=2026-11-25T18:10:48Z at=2026-11-25T18:52:00Z --> Automated triage for the maintainers. Thank you for the report and the DRED data. This is the NVIDIA device removal in mesh/compute work, which is tracked in #71 (other reports: #99, #264, #468, #496, #619, #1107). The `host pipeline refused ... 0x80070057` warnings for compute programs match what `main` does: `Lower::new` in `crates/victory-shader/src/emit/lower.rs` declares `WaveSize(64)` for wave64 programs that depend on the lane layout, and a 32-lane NVIDIA GPU refuses them (README: "some compute programs need a GPU with 64-lane waves"). New (18:10Z, `13f91ca`, RTX 2070 Super): the debug layer now names an invalid call (`0x887A0001`) instead of a hang. `CreateCommittedResource3` rejects a texture flagged as a render target whose clear value is `B4G4R4A4_UNORM`, a format that PC D3D12 on this card does not accept as a render target. This is confirmed in `main`. `host_desc` in `crates/victory-gpu/src/resource.rs` keeps the console's render-target flag whatever the format is. `make_texture` passes the title's clear value through with only `pc_format` applied, and neither of them asks the host whether the format can be used that way. This is the render-target counterpart of #1753 (`B5G5R5A1_UNORM` flagged for unordered access, the same packed formats 86/115). The open PRs for #1753 (#2459, #1787 and #1763) only drop or refuse the unordered-access side, so they would not clear this one. --- _Generated by [Claude Code](https://claude.ai/code)_
Author
Owner

@⁠engme66 on GitHub · 2026-11-25 18:10 UTC · original

Same crash on 13f91ca, RTX 2070 Super — diag build names the command:

Setup

  • VIctory 13f91ca, diag build (VICTORY_D3D12_DEBUG=1 + VICTORY_D3D12_DRED=1)
  • Ryzen 7 5800X, RTX 2070 Super, 32 GB RAM, Windows 11
  • Game 930.048.020

What happened

  • Device removed after a submission of 1 list, no breadcrumbs: 0x887A0004 + 0x887A0001 (invalid call). Same on a second run after 5 lists.
  • Debug layer:
    ID3D12Device::CreateCommittedResource3: When D3D12_RESOURCE_FLAG_ALLOW_RENDER_TARGET is set in D3D12_RESOURCE_DESC::Flags, D3D12_CLEAR_VALUE::Format must be valid to be used as a render target. FeatureLevel is D3D_FEATURE_LEVEL_12_2. D3D12_CLEAR_VALUE::Format is B4G4R4A4_UNORM.
**@⁠engme66** on GitHub · 2026-11-25 18:10 UTC · [original](https://github.com/Marvisak/VIctory/issues/97#issuecomment-7170550156) Same crash on 13f91ca, RTX 2070 Super — diag build names the command: ### Setup - VIctory 13f91ca, diag build (`VICTORY_D3D12_DEBUG=1` + `VICTORY_D3D12_DRED=1`) - Ryzen 7 5800X, RTX 2070 Super, 32 GB RAM, Windows 11 - Game 930.048.020 ### What happened - Device removed after a submission of 1 list, no breadcrumbs: `0x887A0004` + `0x887A0001` (invalid call). Same on a second run after 5 lists. - Debug layer: ID3D12Device::CreateCommittedResource3: When D3D12_RESOURCE_FLAG_ALLOW_RENDER_TARGET is set in D3D12_RESOURCE_DESC::Flags, D3D12_CLEAR_VALUE::Format must be valid to be used as a render target. FeatureLevel is D3D_FEATURE_LEVEL_12_2. D3D12_CLEAR_VALUE::Format is B4G4R4A4_UNORM.
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/Marvisak--VIctory#97
No description provided.