RTX 4060 Laptop: 435 runtime shader translation failures, then host device removed at world load #1579

Open
opened 2026-11-26 04:37:01 +00:00 by github-bot · 5 comments
Owner

@⁠imrealynailong on GitHub · 2026-11-24 19:26 UTC · original

RTX 4060 Laptop: 435 runtime shader translation failures, then host device removed at world load

Environment

  • GPU: NVIDIA GeForce RTX 4060 Laptop GPU (8 GB), driver 32.0.15.6607 (Vulkan 1.3.289, driverInfo 566.07)
  • CPU: Intel Core i7-13620H (10C / 16T, AVX2)
  • RAM: 15.6 GB
  • OS: Windows 11 Home 中文版, build 26200
  • Rust: 1.98.1 (pinned by rust-toolchain.toml), MSVC 19.43
  • VIctory commit: ffe310e
  • Package: Xbox Series 1.0.2.1, 107 of 108 manifest files byte-exact; game_scarlett_master.exe SHA-256 e95020b2fa4a721db3df59fdecf75621730ac559d8835252f6c3b658d5a08993

What works

The first-boot flow is solid: boot, accessibility/language/settings/legal pages, 30 fps / 33.3 ms/frame / 21 draws/frame, continuously for 628 s before the world-load failure. This matches #653 and #314 exactly, on a card neither of them tested.

What happens

victory.exe run <game>\game_scarlett_master.exe --console series-x --unimplemented zero --execute
  1. Accepting the legal terms starts the world load.
  2. Loading artwork plays, then the screen goes black partway through.
  3. Artwork reappears, then the process exits.

Log tail:

WARN victory_gpu::host: slow host submission ms=2258 lists=11 pipelines={...}

ERROR victory_gpu::host: host GPU device removed after a submission of 11 lists; no breadcrumbs
      (指定的设备接口或功能级别在此系统上不受支持。 (0x887A0004));
      device removed: GPU 不响应更多的命令,最为可能的原因是调用应用程序传递了无效的命令。 (0x887A0006)

VIctory: host GPU failure: host GPU device removed after a submission of 11 lists

Process exit code: 0x887A0005.

Worth flagging: the process exits with 0x887A0005, while the host layer logs 0x887A0004 / 0x887A0006, on the hardware adapter (no VICTORY_D3D12_WARP). #653 records 0x887A0006 for the real GPU and 0x887A0005 for WARP; this run got 0x887A0005 on hardware, so the outer code may not be a reliable WARP indicator.

Runtime translation failures: 435

Every failing shader logs one victory_gpu::pipeline warning. Counting them in this run:

stage count
compute 370
pixel 33
mesh 27
vertex 5
total 435

By reason:

count reason
92 a select on an untracked mask
80 a lane mask holding lanes elsewhere read as data
62 a descriptor read only as data
47 a structured buffer of unknown stride
35 an address in an SGPR that is no root parameter
35 a scalar memory read as data
17 an address not from a root parameter
12 a 64-bit image atomic
8 an address from a phi
8 a lane mask read as data
7 image_gather4_l
6 a descriptor's address or format read as data
5 a lane-mask join of an untracked mask
4 a descriptor read from the first lane of computed VGPRs
3 image_sample_d_cl

The top two (untracked mask, lane mask holding lanes elsewhere) are 172 of 435 — the same two that lead #653's table (88 and 80 there). Everything else in my run is a smaller long tail than #653's, and notably the lane-mask pair is more dominant here (40%) than there (50% combined was 88+80 = 168 of ~375, similar).

translate reports 100% on the same build

victory translate <game> --list over the whole package:

containers   26599 (614 duplicates skipped)
programs     26148 translated of 26148 (40647088 IR instructions)
structured   26148 of 26148 (32660347 vector instructions, 822675 guarded, 49485 on opaque masks)
resources    25736 of 26148 tracked
             used-resource entries 432763: 187 not traced

Zero failures, immediately before a run that fails 435. So translate does not see the programs that actually break the world load. Per docs/architecture.md shaders are translated at pipeline creation from the bytes the title passes, wherever it loaded them from — these 435 are evidently not in any container translate walks.

This matters for users: 26148 of 26148 translated looks like a clean pre-flight and is not one. If the gap is by design, a line in the translate summary saying how many containers/files it could not reach would stop it reading as a green light.

Sample hashes and sites:

hash=b2433b5b9845e711  GFX10 code at 0xabb0:  a select on an untracked mask
hash=17af15c4015cb4b6  GFX10 code at 0x9c4:   a structured buffer of unknown stride
hash=55679a0547649d0b  GFX10 code at 0xb4c:   a structured buffer of unknown stride
hash=c06aa62112ffba4c  GFX10 code at 0x5ca0:  a lane-mask join of an untracked mask
hash=2d0cace65bc05bb2  GFX10 code at 0x174:   barycentrics read directly
hash=04c0b3793d255541  GFX10 code at 0x700:   a scalar memory read as data   (pixel)
hash=0bd4d80ad23b106b  GFX10 code at 0x1288:  a lane mask read as data       (mesh)

The submission that kills the device

11 lists, 2258 ms, first-using a batch of compute pipelines plus mesh+pixel pairs and a few vertex+pixel pairs:

[compute 0c0380d9ec648626] [compute 0ccc14877cbec21e] [compute 1c8165626a581de4] ...
[mesh 0b15057954f1321e, pixel 055dd1a8f7b02013] [mesh 0d9d1c59733d6340, pixel c9443dc523f51e29] ...
[vertex 37ab3687378a8761, pixel f705157e661e716f] ...

Different shape from #653 (31–32 lists there, 11 here), same phase. The 2258 ms slow submission immediately precedes the removal — consistent with #1082's suggestion of logging the TDR settings.

Ruled out on this machine

  • Memory: reproduced from a clean start with 6.8 GB free; same point.
  • --console series-s: identical failure.
  • rpcrt4.dll refused by the host policy: adding it to HostPolicy::default() silences the warning and changes nothing else; the world-load removal is unchanged. Reverted.
  • appdata0.rpf placement: this was the cause of an earlier 0x80000003 at title+0x2237178 (issue #12). Fixing it reached the menus; it is not related to this failure. Confirming #12's finding on a third machine.

Ask

  1. Is a descriptor read only as data (62 here, 62 = 14% of my failures) known/expected, or new relative to #653's table? It does not appear in that issue's top five.
  2. Would a --features diagnostics build with VICTORY_D3D12_DEBUG=1 + VICTORY_D3D12_DRED=1 identify the offending command? Happy to run it and paste the DRED breadcrumbs.
  3. Should I bisect with VICTORY_SKIP_PIPELINES=<hash>,... over the compute pipelines in that submission to see whether the removal follows one in particular? If so, which subset is most useful — the 370 compute failures, or the 18 that were first-used in the killing submission?

Getting to a 30 fps menu on a 4060 Laptop was already a great result — thanks.

**@⁠imrealynailong** on GitHub · 2026-11-24 19:26 UTC · [original](https://github.com/Marvisak/VIctory/issues/1579) # RTX 4060 Laptop: 435 runtime shader translation failures, then host device removed at world load ## Environment - **GPU:** NVIDIA GeForce RTX 4060 Laptop GPU (8 GB), driver `32.0.15.6607` (Vulkan `1.3.289`, `driverInfo 566.07`) - **CPU:** Intel Core i7-13620H (10C / 16T, AVX2) - **RAM:** 15.6 GB - **OS:** Windows 11 Home 中文版, build `26200` - **Rust:** `1.98.1` (pinned by `rust-toolchain.toml`), MSVC 19.43 - **VIctory commit:** `ffe310e` - **Package:** Xbox Series 1.0.2.1, 107 of 108 manifest files byte-exact; `game_scarlett_master.exe` SHA-256 `e95020b2fa4a721db3df59fdecf75621730ac559d8835252f6c3b658d5a08993` ## What works The first-boot flow is solid: boot, accessibility/language/settings/legal pages, **30 fps / 33.3 ms/frame / 21 draws/frame**, continuously for **628 s** before the world-load failure. This matches #653 and #314 exactly, on a card neither of them tested. ## What happens ```powershell victory.exe run <game>\game_scarlett_master.exe --console series-x --unimplemented zero --execute ``` 1. Accepting the legal terms starts the world load. 2. Loading artwork plays, then the screen goes black partway through. 3. Artwork reappears, then the process exits. Log tail: ``` WARN victory_gpu::host: slow host submission ms=2258 lists=11 pipelines={...} ERROR victory_gpu::host: host GPU device removed after a submission of 11 lists; no breadcrumbs (指定的设备接口或功能级别在此系统上不受支持。 (0x887A0004)); device removed: GPU 不响应更多的命令,最为可能的原因是调用应用程序传递了无效的命令。 (0x887A0006) VIctory: host GPU failure: host GPU device removed after a submission of 11 lists ``` Process exit code: **`0x887A0005`**. Worth flagging: the process exits with `0x887A0005`, while the host layer logs `0x887A0004` / `0x887A0006`, **on the hardware adapter** (no `VICTORY_D3D12_WARP`). #653 records `0x887A0006` for the real GPU and `0x887A0005` for WARP; this run got `0x887A0005` on hardware, so the outer code may not be a reliable WARP indicator. ## Runtime translation failures: 435 Every failing shader logs one `victory_gpu::pipeline` warning. Counting them in this run: | stage | count | |---|---| | compute | 370 | | pixel | 33 | | mesh | 27 | | vertex | 5 | | **total** | **435** | By reason: | count | reason | |---|---| | 92 | `a select on an untracked mask` | | 80 | `a lane mask holding lanes elsewhere read as data` | | 62 | `a descriptor read only as data` | | 47 | `a structured buffer of unknown stride` | | 35 | `an address in an SGPR that is no root parameter` | | 35 | `a scalar memory read as data` | | 17 | `an address not from a root parameter` | | 12 | `a 64-bit image atomic` | | 8 | `an address from a phi` | | 8 | `a lane mask read as data` | | 7 | `image_gather4_l` | | 6 | `a descriptor's address or format read as data` | | 5 | `a lane-mask join of an untracked mask` | | 4 | `a descriptor read from the first lane of computed VGPRs` | | 3 | `image_sample_d_cl` | The top two (`untracked mask`, `lane mask holding lanes elsewhere`) are 172 of 435 — the same two that lead #653's table (88 and 80 there). Everything else in my run is a **smaller long tail** than #653's, and notably the lane-mask pair is *more* dominant here (40%) than there (50% combined was 88+80 = 168 of ~375, similar). ## `translate` reports 100% on the same build `victory translate <game> --list` over the whole package: ``` containers 26599 (614 duplicates skipped) programs 26148 translated of 26148 (40647088 IR instructions) structured 26148 of 26148 (32660347 vector instructions, 822675 guarded, 49485 on opaque masks) resources 25736 of 26148 tracked used-resource entries 432763: 187 not traced ``` **Zero failures**, immediately before a run that fails 435. So `translate` does not see the programs that actually break the world load. Per `docs/architecture.md` shaders are translated at pipeline creation from the bytes the title passes, wherever it loaded them from — these 435 are evidently not in any container `translate` walks. This matters for users: `26148 of 26148 translated` looks like a clean pre-flight and is not one. If the gap is by design, a line in the `translate` summary saying how many containers/files it could not reach would stop it reading as a green light. Sample hashes and sites: ``` hash=b2433b5b9845e711 GFX10 code at 0xabb0: a select on an untracked mask hash=17af15c4015cb4b6 GFX10 code at 0x9c4: a structured buffer of unknown stride hash=55679a0547649d0b GFX10 code at 0xb4c: a structured buffer of unknown stride hash=c06aa62112ffba4c GFX10 code at 0x5ca0: a lane-mask join of an untracked mask hash=2d0cace65bc05bb2 GFX10 code at 0x174: barycentrics read directly hash=04c0b3793d255541 GFX10 code at 0x700: a scalar memory read as data (pixel) hash=0bd4d80ad23b106b GFX10 code at 0x1288: a lane mask read as data (mesh) ``` ## The submission that kills the device **11 lists**, **2258 ms**, first-using a batch of compute pipelines plus mesh+pixel pairs and a few vertex+pixel pairs: ``` [compute 0c0380d9ec648626] [compute 0ccc14877cbec21e] [compute 1c8165626a581de4] ... [mesh 0b15057954f1321e, pixel 055dd1a8f7b02013] [mesh 0d9d1c59733d6340, pixel c9443dc523f51e29] ... [vertex 37ab3687378a8761, pixel f705157e661e716f] ... ``` Different shape from #653 (31–32 lists there, 11 here), same phase. The 2258 ms slow submission immediately precedes the removal — consistent with #1082's suggestion of logging the TDR settings. ## Ruled out on this machine - **Memory:** reproduced from a clean start with 6.8 GB free; same point. - **`--console series-s`:** identical failure. - **`rpcrt4.dll` refused by the host policy:** adding it to `HostPolicy::default()` silences the warning and changes nothing else; the world-load removal is unchanged. Reverted. - **`appdata0.rpf` placement:** this *was* the cause of an earlier `0x80000003` at `title+0x2237178` (issue #12). Fixing it reached the menus; it is **not** related to this failure. Confirming #12's finding on a third machine. ## Ask 1. Is `a descriptor read only as data` (62 here, 62 = 14% of my failures) known/expected, or new relative to #653's table? It does not appear in that issue's top five. 2. Would a `--features diagnostics` build with `VICTORY_D3D12_DEBUG=1` + `VICTORY_D3D12_DRED=1` identify the offending command? Happy to run it and paste the DRED breadcrumbs. 3. Should I bisect with `VICTORY_SKIP_PIPELINES=<hash>,...` over the compute pipelines in that submission to see whether the removal follows one in particular? If so, which subset is most useful — the 370 compute failures, or the 18 that were first-used in the killing submission? Getting to a 30 fps menu on a 4060 Laptop was already a great result — thanks.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:37:01 +00:00
Author
Owner

@⁠imrealynailong on GitHub · 2026-11-24 19:40 UTC · original

DRED update: the device is removed by DXGI_ERROR_DEVICE_RESET after 115 compute pipelines fail to create with E_INVALIDARG

I ran the diagnostics build (cargo build --profile diag -p victory --features diagnostics) with VICTORY_D3D12_DEBUG=1 and VICTORY_D3D12_DRED=1. Same phase, same crash, but now the breadcrumbs name things. This substantially changes my reading of the failure in the original report.

The removal itself

WARN victory_gpu::host: D3D12: ID3D12Device::RemoveDevice: Device removal has been
     triggered for the following reason (DXGI_ERROR_DEVICE_RESET: The hardware took
     an unreasonable amount of time...)

ERROR victory_gpu::host: host GPU device removed after a submission of 34 lists;
      breadcrumbs (done/count, list) []; ... device removed: ... (0x887A0007);
      debug layer: Kernel memory failure. There might be a memory leak.

So on this run:

code meaning
0x887A0005 the process exit code (DXGI_ERROR_DEVICE_RESET, i.e. TDR)
0x887A0007 the host layer's own DXGI_ERROR_DEVICE_REMOVED
debug layer Kernel memory failure. There might be a memory leak.

breadcrumbs (done/count, list) [] is empty — no command completed in the killing submission, so the fault is not attributable to one late command in it. Note the submission here is 34 lists, vs 11 in my release-build run and 31–32 in #653, so the batch size varies run to run.

115 compute pipelines fail to create with E_INVALIDARG

The far more interesting signal. The diagnostics run logs, all in victory_gpu::pipeline::host:

count  code       stage
  115  0x80070057 compute      (WARN "host pipeline refused", shaders=[compute <hash>])

115 compute pipelines are refused with E_INVALIDARG before the removal. Sample hashes:

13dfdd3b1136e407  88994c3496045f51  02384a60fda6f2d0  339d476c267c03c7
42683eebec081520  82849f7a614208eb  9afd549c4f530901  2dc602192abf6288
fa0c0819dc86ca60  a25ed0e3d4d521ba  2fa2f94f560faf39  00bcbbf278ee3d9d
9e096a1111c6faaa  d3e5b737ea7cc150  5b2ce592c3a5dd09  78c04f8d197a2904

All 115 are stage=compute and all are 0x80070057. None of them appear in the 435 translation-failure list from the original report, so these are pipelines that translated fine and then failed at D3D12 pipeline-state creation.

Also, earlier in the same run:

WARN victory_gpu::descriptor::host: host view heap capped at 1000000
     error=0x80070057 count=1245184

WARN victory_gpu::resource: no host texture error=0x80070057
     desc=ResourceDesc { dimension: 3, width: 2560, height: 1440, mips 1, format: 86,  ... }
WARN victory_gpu::resource: no host texture error=0x80070057
     desc=ResourceDesc { dimension: 3, width: 2560, height: 1440, mips 1, format: 115, ... }
  • the view heap request is 1,245,184 descriptors against a 1,000,000 cap.
  • two 2560×1440 3D textures (formats 86 and 115) fail to create with the same code.

Null bindings in the command stream

The breadcrumbs for the lists in flight show descriptor slots that are None / null on live dispatches, e.g. for df11dcd012cd7382:

Srv s1+8:  buffer None
Srv s1+16: buffer None
Srv s1+48: buffer None
Uav s1+120: uav buffer None
Uav s1+128: uav buffer None
Uav s1+152: uav buffer None

and u4=0xa16a00 [heap 330576: null] / u5=... [heap 933852: null] on several dispatches. This looks like what #1522 ("clear descriptors for null constant buffers") and #336 ("dynamic descriptor exhaustion") are chasing, and it sits next to the heap being capped.

Revised reading

The chain now looks like this rather than "a bad translated shader is submitted":

  1. The descriptor heap request (1,245,184) exceeds the 1,000,000 cap and is truncated.
  2. 115 compute PSOs fail to create with E_INVALIDARG, plus two 2560×1440 textures.
  3. Draws/dispatches that needed those pipelines or textures still reach the command lists (with None descriptors), which is where the debug layer's Kernel memory failure and the eventual TDR come from.

I am not claiming that chain is proven — step 3 is my inference from the NULLs in the breadcrumbs, not something the log states. But the 115 E_INVALIDARG PSO creations are concrete and reproducible, and they are a different lead than the translation failures I first reported.

What I would like to know

  1. Is an E_INVALIDARG on CreateComputePipeline expected to be rare, or is 115 in one world load a known condition? If it is the descriptor heap cap in step 1, does a larger host heap (or not capping) change it? I can test a raised cap locally if you point me at where it lives.
  2. Should I bisect with VICTORY_SKIP_PIPELINES now that I have a diagnostics build and can actually use it? I would like to know which of these two is the better target: the ~115 E_INVALIDARG PSOs above, or the ~435 translation failures from the first report.
  3. Is the Kernel memory failure debug-layer message something you have seen before, and does #338's WARP E_OUTOFMEMORY share a root with it?

Full logs available on request (they are large; I would rather paste the sections you want than the whole file).

**@⁠imrealynailong** on GitHub · 2026-11-24 19:40 UTC · [original](https://github.com/Marvisak/VIctory/issues/1579#issuecomment-7142425037) ## DRED update: the device is removed by `DXGI_ERROR_DEVICE_RESET` after 115 compute pipelines fail to create with `E_INVALIDARG` I ran the diagnostics build (`cargo build --profile diag -p victory --features diagnostics`) with `VICTORY_D3D12_DEBUG=1` and `VICTORY_D3D12_DRED=1`. Same phase, same crash, but now the breadcrumbs name things. This substantially changes my reading of the failure in the original report. ### The removal itself ``` WARN victory_gpu::host: D3D12: ID3D12Device::RemoveDevice: Device removal has been triggered for the following reason (DXGI_ERROR_DEVICE_RESET: The hardware took an unreasonable amount of time...) ERROR victory_gpu::host: host GPU device removed after a submission of 34 lists; breadcrumbs (done/count, list) []; ... device removed: ... (0x887A0007); debug layer: Kernel memory failure. There might be a memory leak. ``` So on this run: | code | meaning | |---|---| | `0x887A0005` | the process exit code (`DXGI_ERROR_DEVICE_RESET`, i.e. TDR) | | `0x887A0007` | the host layer's own `DXGI_ERROR_DEVICE_REMOVED` | | debug layer | **`Kernel memory failure. There might be a memory leak.`** | `breadcrumbs (done/count, list) []` is **empty** — no command completed in the killing submission, so the fault is not attributable to one late command in it. Note the submission here is **34 lists**, vs 11 in my release-build run and 31–32 in #653, so the batch size varies run to run. ### 115 compute pipelines fail to create with `E_INVALIDARG` The far more interesting signal. The diagnostics run logs, all in `victory_gpu::pipeline::host`: ``` count code stage 115 0x80070057 compute (WARN "host pipeline refused", shaders=[compute <hash>]) ``` **115 compute pipelines are refused with `E_INVALIDARG` before the removal.** Sample hashes: ``` 13dfdd3b1136e407 88994c3496045f51 02384a60fda6f2d0 339d476c267c03c7 42683eebec081520 82849f7a614208eb 9afd549c4f530901 2dc602192abf6288 fa0c0819dc86ca60 a25ed0e3d4d521ba 2fa2f94f560faf39 00bcbbf278ee3d9d 9e096a1111c6faaa d3e5b737ea7cc150 5b2ce592c3a5dd09 78c04f8d197a2904 ``` All 115 are `stage=compute` and all are `0x80070057`. None of them appear in the 435 translation-failure list from the original report, so these are pipelines that **translated fine and then failed at D3D12 pipeline-state creation**. Also, earlier in the same run: ``` WARN victory_gpu::descriptor::host: host view heap capped at 1000000 error=0x80070057 count=1245184 WARN victory_gpu::resource: no host texture error=0x80070057 desc=ResourceDesc { dimension: 3, width: 2560, height: 1440, mips 1, format: 86, ... } WARN victory_gpu::resource: no host texture error=0x80070057 desc=ResourceDesc { dimension: 3, width: 2560, height: 1440, mips 1, format: 115, ... } ``` - the view heap request is **1,245,184** descriptors against a **1,000,000** cap. - two 2560×1440 3D textures (formats 86 and 115) fail to create with the same code. ### Null bindings in the command stream The breadcrumbs for the lists in flight show descriptor slots that are `None` / `null` on live dispatches, e.g. for `df11dcd012cd7382`: ``` Srv s1+8: buffer None Srv s1+16: buffer None Srv s1+48: buffer None Uav s1+120: uav buffer None Uav s1+128: uav buffer None Uav s1+152: uav buffer None ``` and `u4=0xa16a00 [heap 330576: null]` / `u5=... [heap 933852: null]` on several dispatches. This looks like what #1522 ("clear descriptors for null constant buffers") and #336 ("dynamic descriptor exhaustion") are chasing, and it sits next to the heap being capped. ### Revised reading The chain now looks like this rather than "a bad translated shader is submitted": 1. The descriptor heap request (1,245,184) exceeds the 1,000,000 cap and is truncated. 2. **115 compute PSOs fail to create with `E_INVALIDARG`**, plus two 2560×1440 textures. 3. Draws/dispatches that needed those pipelines or textures still reach the command lists (with `None` descriptors), which is where the debug layer's `Kernel memory failure` and the eventual TDR come from. I am **not** claiming that chain is proven — step 3 is my inference from the NULLs in the breadcrumbs, not something the log states. But the 115 `E_INVALIDARG` PSO creations are concrete and reproducible, and they are a different lead than the translation failures I first reported. ### What I would like to know 1. Is an `E_INVALIDARG` on `CreateComputePipeline` expected to be rare, or is 115 in one world load a known condition? If it is the descriptor heap cap in step 1, does a larger host heap (or not capping) change it? I can test a raised cap locally if you point me at where it lives. 2. Should I bisect with `VICTORY_SKIP_PIPELINES` now that I have a diagnostics build and can actually use it? I would like to know which of these two is the better target: the ~115 `E_INVALIDARG` PSOs above, or the ~435 translation failures from the first report. 3. Is the `Kernel memory failure` debug-layer message something you have seen before, and does #338's WARP `E_OUTOFMEMORY` share a root with it? Full logs available on request (they are large; I would rather paste the sections you want than the whole file).
Author
Owner

@⁠antikohza on GitHub · 2026-11-24 19:58 UTC · original

@⁠imrealynailong — regarding your hybrid laptop setup here (i7-13620H + RTX 4060 Laptop 8 GB, 15.6 GB RAM) hitting 0x887A0004 after 11 lists:

Two parts of what hits this hardware class (same laptop class profiled in #1226) are now fixed in PR #1296 (a6f3ccb, Windows CI green):

  1. Integrated GPU default (0x887A0004): D3D12CreateDevice(None, ...) defaults to the 128 MiB Intel iGPU on hybrid laptops unless overridden; #1296's best_adapter() probes FL 12.0 non-software adapters and creates the device directly on the discrete RTX GPU.
  2. 8 GB VRAM / 15.6 GB commit exhaustion: #1296 matches the device's own LUID and auto-enables VICTORY_TEXTURE_MIP_DROP=1 on <= 8.5 GiB GPUs (verified saving ~1.1–1.2 GiB VRAM and eliminating E_OUTOFMEMORY on 8 GB laptops in #1226 and #737).

Note that your 435 runtime shader translation failures are still separate (#653 / Wave64 PRs), so you'd want those stacked too, but #1296 takes care of the adapter choice and 8 GB / 15.6 GB memory ceiling.

**@⁠antikohza** on GitHub · 2026-11-24 19:58 UTC · [original](https://github.com/Marvisak/VIctory/issues/1579#issuecomment-7142875307) @⁠imrealynailong — regarding your hybrid laptop setup here (i7-13620H + RTX 4060 Laptop 8 GB, 15.6 GB RAM) hitting `0x887A0004` after 11 lists: Two parts of what hits this hardware class (same laptop class profiled in #1226) are now fixed in **PR #1296** (`a6f3ccb`, [Windows CI green](https://github.com/antikohza/VIctory/actions/runs/45470890213)): 1. **Integrated GPU default (`0x887A0004`):** `D3D12CreateDevice(None, ...)` defaults to the 128 MiB Intel iGPU on hybrid laptops unless overridden; #1296's `best_adapter()` probes FL 12.0 non-software adapters and creates the device directly on the discrete RTX GPU. 2. **8 GB VRAM / 15.6 GB commit exhaustion:** #1296 matches the device's own LUID and auto-enables `VICTORY_TEXTURE_MIP_DROP=1` on `<= 8.5 GiB` GPUs (verified saving ~1.1–1.2 GiB VRAM and eliminating `E_OUTOFMEMORY` on 8 GB laptops in #1226 and #737). Note that your 435 runtime shader translation failures are still separate (#653 / Wave64 PRs), so you'd want those stacked too, but #1296 takes care of the adapter choice and 8 GB / 15.6 GB memory ceiling.
Author
Owner

@⁠imrealynailong on GitHub · 2026-11-24 20:32 UTC · original

Two experiments tried and backed out: neither fixes the world load, and one makes it worse

I tried two local patches against the world-load failure. Both are reverted; the tree is clean at ffe310e again. Recording them because the negative results are informative.

Baseline with frame capture (clean ffe310e, no patches)

VICTORY_CAPTURE=<dir> VICTORY_DUMP_TARGETS=1, diagnostics build.

  • Frames presented: 1,603; run: 142.9 s; exit 0xC0000005.

  • The capture shows real content: frame 128 has 274 unique colours over a #20202c background with white/grey UI text; frame 1024 has 1,051 colours (#ffffff 4,906 px). So the menus and first-boot UI do render.

    This matters because it gives a reference point: a black capture is not the normal state on this machine.

  • The same run logs 115 host pipeline refused (0x80070057, all compute) and 1 host view heap capped at 1000000 ... count=1245184.

  • The crash follows slow host submission ms=351 lists=18, with the fault inside nvwgf2umx.dll (the NVIDIA D3D12 UMD), not in victory code. No device removed line is logged on this path.

Experiment 1: raise the descriptor heap cap

crates/victory-gpu/src/descriptor/host.rs: PORTABLE_VIEWS 1,000,000 → 2,000,000, so a heap request of 1,245,184 is no longer truncated to 934,464.

Result:

metric baseline 2M cap
heap capped 1 0
PSO refusals 115 113
frames 1,603 6,284
run time 142.9 s 277 s
removes 0 1 (DXGI_ERROR_DEVICE_HUNG, 32 lists)

So the cap change is real — it removes the truncation and the failure moves from a UMD access violation to DEVICE_HUNG — but it does not get the world up.

Experiment 2: 2M cap + skip the 113 refused compute pipelines

VICTORY_SKIP_PIPELINES with all 113 hashes (this works in a --features diagnostics build).

metric 2M cap 2M cap + skip 113
PSO refusals 113 3 (a different set — see below)
frames 6,284 10,879
run time 277 s 441 s
capture (not taken) every frame pure #000000, 1 unique colour

Worth noting: the skip list was taken from the 113 refusals of the 2M-cap run, and the skipped run then refused 3 different hashes (0709e8356abd9082, e4576c6eca0f8ce3, 9662515112a3f961) that were not in that list. So the set of 64-lane compute pipelines is not fixed per package — more appear as the world streams in. Any skip-list approach is chasing a moving target.

This is the part I want to flag. With the skip, VICTORY_CAPTURE over frames 1/2/4/.../2048 produced twelve 6,121-byte PNGs, each 1920×1080 with exactly one unique colour (000000). The baseline capture of the same frames had content from frame 128 on.

So "skip the failing compute pipelines" does not fix the world: it removes the visible errors while the picture stays black. I think that is the worst of the three outcomes to report as an improvement, and I would not submit it as a patch.

It also means the "it ran 441 s instead of 142 s" framing is misleading — the extra time is spent presenting black frames, not making progress.

What I take away

  1. The 64-lane compute refusals are a real defect (Shader wants wave lane count of 64 but maximum wave lane count for device is 32), but they are not the only thing keeping the world from rendering, since skipping them all does not produce a picture.
  2. The descriptor heap truncation is also real, and fixing it changes the failure mode, but not the end state.
  3. The baseline failure on this machine is an access violation inside nvwgf2umx.dll right after a slow 18-list submission — different in character from the DEVICE_RESET / DEVICE_HUNG removals in #653, and from the DRED Kernel memory failure I reported earlier. Across my runs I have seen all three of these outcomes, which suggests the failure is timing- or order-dependent rather than one deterministic bad command.

Questions

  1. Given the three different failure shapes across runs (UMD AV, DEVICE_RESET, DEVICE_HUNG), is that expected on this build, or does it point at one latent bug with different symptoms?
  2. Is the general direction I should take the "make the 115 compute pipelines create" path (i.e. the WaveSize handling in crates/victory-shader/src/emit/shader.rs, which writes the attribute unconditionally at the lines around 525), or the descriptor/remapping path? I can dig into the former if it is useful, but I would rather not guess at which one you consider load-bearing.
  3. If the emit/shader.rs wave-size path is the right target, is there a preferred way to tell the emitter the host's WaveLaneCountMax? I did not find any existing query for it — the emitter appears to take the console's lane count only.

I have capture directories and full logs for each run and can share whichever sections help.

**@⁠imrealynailong** on GitHub · 2026-11-24 20:32 UTC · [original](https://github.com/Marvisak/VIctory/issues/1579#issuecomment-7143710237) ## Two experiments tried and backed out: neither fixes the world load, and one makes it worse I tried two local patches against the world-load failure. Both are **reverted**; the tree is clean at `ffe310e` again. Recording them because the negative results are informative. ### Baseline with frame capture (clean `ffe310e`, no patches) `VICTORY_CAPTURE=<dir> VICTORY_DUMP_TARGETS=1`, diagnostics build. - Frames presented: **1,603**; run: **142.9 s**; exit `0xC0000005`. - The capture shows **real content**: frame 128 has 274 unique colours over a `#20202c` background with white/grey UI text; frame 1024 has 1,051 colours (`#ffffff` 4,906 px). So the menus and first-boot UI do render. This matters because it gives a reference point: a black capture is **not** the normal state on this machine. - The same run logs **115** `host pipeline refused` (`0x80070057`, all `compute`) and **1** `host view heap capped at 1000000 ... count=1245184`. - The crash follows `slow host submission ms=351 lists=18`, with the fault inside **`nvwgf2umx.dll`** (the NVIDIA D3D12 UMD), not in victory code. No `device removed` line is logged on this path. ### Experiment 1: raise the descriptor heap cap `crates/victory-gpu/src/descriptor/host.rs`: `PORTABLE_VIEWS` 1,000,000 → 2,000,000, so a heap request of 1,245,184 is no longer truncated to 934,464. Result: | metric | baseline | 2M cap | |---|---|---| | heap capped | 1 | **0** | | PSO refusals | 115 | 113 | | frames | 1,603 | **6,284** | | run time | 142.9 s | **277 s** | | removes | 0 | 1 (`DXGI_ERROR_DEVICE_HUNG`, 32 lists) | So the cap change is real — it removes the truncation and the failure moves from a UMD access violation to `DEVICE_HUNG` — but it does not get the world up. ### Experiment 2: 2M cap + skip the 113 refused compute pipelines `VICTORY_SKIP_PIPELINES` with all 113 hashes (this works in a `--features diagnostics` build). | metric | 2M cap | 2M cap + skip 113 | |---|---|---| | PSO refusals | 113 | **3** (a different set — see below) | | frames | 6,284 | **10,879** | | run time | 277 s | **441 s** | | capture | (not taken) | **every frame pure `#000000`, 1 unique colour** | Worth noting: the skip list was taken from the 113 refusals of the 2M-cap run, and the skipped run then refused **3 different** hashes (`0709e8356abd9082`, `e4576c6eca0f8ce3`, `9662515112a3f961`) that were not in that list. So the set of 64-lane compute pipelines is not fixed per package — more appear as the world streams in. Any skip-list approach is chasing a moving target. **This is the part I want to flag.** With the skip, `VICTORY_CAPTURE` over frames 1/2/4/.../2048 produced twelve 6,121-byte PNGs, each 1920×1080 with exactly **one** unique colour (`000000`). The baseline capture of the same frames had content from frame 128 on. So "skip the failing compute pipelines" does **not** fix the world: it removes the visible errors while the picture stays black. I think that is the worst of the three outcomes to report as an improvement, and I would not submit it as a patch. It also means the "it ran 441 s instead of 142 s" framing is misleading — the extra time is spent presenting black frames, not making progress. ### What I take away 1. The 64-lane compute refusals are a real defect (`Shader wants wave lane count of 64 but maximum wave lane count for device is 32`), but they are **not** the only thing keeping the world from rendering, since skipping them all does not produce a picture. 2. The descriptor heap truncation is also real, and fixing it changes the failure mode, but not the end state. 3. The baseline failure on this machine is an access violation **inside `nvwgf2umx.dll`** right after a slow 18-list submission — different in character from the `DEVICE_RESET` / `DEVICE_HUNG` removals in #653, and from the DRED `Kernel memory failure` I reported earlier. Across my runs I have seen all three of these outcomes, which suggests the failure is timing- or order-dependent rather than one deterministic bad command. ### Questions 1. Given the three different failure shapes across runs (UMD AV, `DEVICE_RESET`, `DEVICE_HUNG`), is that expected on this build, or does it point at one latent bug with different symptoms? 2. Is the general direction I should take the "make the 115 compute pipelines create" path (i.e. the `WaveSize` handling in `crates/victory-shader/src/emit/shader.rs`, which writes the attribute unconditionally at the lines around 525), or the descriptor/remapping path? I can dig into the former if it is useful, but I would rather not guess at which one you consider load-bearing. 3. If the `emit/shader.rs` wave-size path is the right target, is there a preferred way to tell the emitter the host's `WaveLaneCountMax`? I did not find any existing query for it — the emitter appears to take the console's lane count only. I have capture directories and full logs for each run and can share whichever sections help.
Author
Owner

@⁠imrealynailong on GitHub · 2026-11-25 07:29 UTC · original

On 940d32f: the world load now fails at a named compute shader with DXGI_ERROR_INVALID_CALL

I pulled 319 commits (ffe310e → 940d32f), rebuilt the diagnostics profile, and re-ran with VICTORY_CAPTURE on. The failure is earlier than on ffe310e (38.5 s vs 142.9 s, 151 frames vs 1,603) but much more specific, so it may be worth a look.

The sequence at failure

INFO pipeline: first bind pipeline=... frame=151 stage="compute" size=2012 hash=a133bf0a24aff410
WARN host: no shared buffer error=...(0x887A0005) size=256
INFO descriptor::host: refused buffer view: no host copy  start=0x3789f290 len=64 element=32 count=2
WARN host: no shared buffer error=...(0x887A0005) size=256
ERROR host: host GPU device removed after a submission of 1 lists; no breadcrumbs
     ... device removed: 应用程序进行了无效的调用 (0x887A0001)
INFO pipeline: first bind pipeline=... frame=151 stage="compute" size=2168 hash=4c0ac499ad613809
VIctory: host GPU failure: ... (0x887A0001)
...
WARN host: no shared buffer error=...(0x887A0005) size=256
INFO descriptor::host: refused buffer view: no host copy  start=0x3789f1b0 len=96 element=32 count=3

Three things stand out:

  1. 0x887A0001 (DXGI_ERROR_INVALID_CALL) is the reason given for the removal, not DEVICE_RESET or DEVICE_HUNG. That is a different error class from the removals I reported before, and it says a call's parameters or an object's state were wrong, not that the GPU timed out.

  2. hash=4c0ac499ad613809 is bound immediately before the failure. That is the same hash as in #1347 ("GPU device removed (0x887A0006) on compute shader 4c0ac499ad613809 during prologue intro") — same shader, different error code, different machine. The a133bf0a24aff410 bound just before it is also in play; I cannot tell from the log which of the two submissions carried the bad call.

  3. refused buffer view: no host copy fires twice around the failure (start=0x3789f290 len=64 element=32 count=2, then start=0x3789f1b0 len=96 element=32 count=3). The d71c388 guard is doing its job, but both refusals arrive after the device is already paused, so they are likely a symptom of the removal rather than its cause.

Also of note, just before: the run creates a lot of depth-texture twins and copies several large shadow buffers to the host (len=52428800, 26214400, 37748736, 25165824 ×3), and pipeline creation is slow (ms=1625, 980, 1278, 1056, 1009 for the rectangle-list graphics pipelines). The 38 s runtime is mostly this setup churn.

Comparison across the three builds I have run

build patches frames time outcome
ffe310e none 1,603 142.9 s 0xC0000005 inside nvwgf2umx.dll; capture shows UI (274 and 1,051 colours)
ffe310e heap cap 2M + skip 113 10,879 441 s capture all #000000; DEVICE_RESET then DEVICE_HUNG
940d32f none 151 38.5 s 0x887A0001 invalid call, with 4c0ac499ad613809 bound

So 940d32f is a regression in terms of how far it gets on this machine, but it also fails with a much more legible reason. I do not know whether that is an intended trade (the d71c388 guard turning a silent corruption into a clean removal) or something new; a maintainer's read would be worth more than mine.

What I can do next

  • Take a capture on 940d32f and report which frames have content before frame 151 (I have the directory; just have not analysed it yet).
  • Run 940d32f with VICTORY_D3D12_DEBUG=1 + VICTORY_D3D12_DRED=1 to see whether the debug layer names the invalid call that triggers 0x887A0001.
  • Skip 4c0ac499ad613809 alone (just that one hash, nothing else) and see whether the run gets past frame 151 — that would separate "this shader is the trigger" from "anything at this point would fail".

Say which, if any, is useful and I will run it.

**@⁠imrealynailong** on GitHub · 2026-11-25 07:29 UTC · [original](https://github.com/Marvisak/VIctory/issues/1579#issuecomment-7155913035) ## On `940d32f`: the world load now fails at a named compute shader with `DXGI_ERROR_INVALID_CALL` I pulled 319 commits (`ffe310e` → `940d32f`), rebuilt the diagnostics profile, and re-ran with `VICTORY_CAPTURE` on. The failure is **earlier** than on `ffe310e` (38.5 s vs 142.9 s, 151 frames vs 1,603) but much more specific, so it may be worth a look. ### The sequence at failure ``` INFO pipeline: first bind pipeline=... frame=151 stage="compute" size=2012 hash=a133bf0a24aff410 WARN host: no shared buffer error=...(0x887A0005) size=256 INFO descriptor::host: refused buffer view: no host copy start=0x3789f290 len=64 element=32 count=2 WARN host: no shared buffer error=...(0x887A0005) size=256 ERROR host: host GPU device removed after a submission of 1 lists; no breadcrumbs ... device removed: 应用程序进行了无效的调用 (0x887A0001) INFO pipeline: first bind pipeline=... frame=151 stage="compute" size=2168 hash=4c0ac499ad613809 VIctory: host GPU failure: ... (0x887A0001) ... WARN host: no shared buffer error=...(0x887A0005) size=256 INFO descriptor::host: refused buffer view: no host copy start=0x3789f1b0 len=96 element=32 count=3 ``` Three things stand out: 1. **`0x887A0001` (`DXGI_ERROR_INVALID_CALL`)** is the reason given for the removal, not `DEVICE_RESET` or `DEVICE_HUNG`. That is a different error class from the removals I reported before, and it says a call's parameters or an object's state were wrong, not that the GPU timed out. 2. **`hash=4c0ac499ad613809` is bound immediately before the failure.** That is the same hash as in **#1347** ("GPU device removed (0x887A0006) on compute shader 4c0ac499ad613809 during prologue intro") — same shader, different error code, different machine. The `a133bf0a24aff410` bound just before it is also in play; I cannot tell from the log which of the two submissions carried the bad call. 3. **`refused buffer view: no host copy`** fires twice around the failure (`start=0x3789f290 len=64 element=32 count=2`, then `start=0x3789f1b0 len=96 element=32 count=3`). The `d71c388` guard is doing its job, but both refusals arrive *after* the device is already paused, so they are likely a symptom of the removal rather than its cause. Also of note, just before: the run creates a lot of depth-texture twins and copies several large shadow buffers to the host (`len=52428800`, `26214400`, `37748736`, `25165824` ×3), and pipeline creation is slow (`ms=1625`, `980`, `1278`, `1056`, `1009` for the rectangle-list graphics pipelines). The 38 s runtime is mostly this setup churn. ### Comparison across the three builds I have run | build | patches | frames | time | outcome | |---|---|---|---|---| | `ffe310e` | none | 1,603 | 142.9 s | `0xC0000005` inside `nvwgf2umx.dll`; capture **shows UI** (274 and 1,051 colours) | | `ffe310e` | heap cap 2M + skip 113 | 10,879 | 441 s | capture **all `#000000`**; `DEVICE_RESET` then `DEVICE_HUNG` | | `940d32f` | none | 151 | 38.5 s | **`0x887A0001` invalid call**, with `4c0ac499ad613809` bound | So `940d32f` is a regression in terms of how far it gets on this machine, but it also fails with a much more legible reason. I do not know whether that is an intended trade (the `d71c388` guard turning a silent corruption into a clean removal) or something new; a maintainer's read would be worth more than mine. ### What I can do next - Take a capture on `940d32f` and report which frames have content before frame 151 (I have the directory; just have not analysed it yet). - Run `940d32f` with `VICTORY_D3D12_DEBUG=1` + `VICTORY_D3D12_DRED=1` to see whether the debug layer names the invalid call that triggers `0x887A0001`. - Skip `4c0ac499ad613809` alone (just that one hash, nothing else) and see whether the run gets past frame 151 — that would separate "this shader is the trigger" from "anything at this point would fail". Say which, if any, is useful and I will run it.
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 12:46 UTC · original

Automated triage for the maintainers.

Run report with the essentials (RTX 4060 Laptop and driver, Windows 11 build, commits ffe310e and 940d32f, how far it got, the removal lines), plus careful follow-up runs. Where each part is tracked:

  • World-load removal on NVIDIA (DEVICE_HUNG/DEVICE_RESET after a slow multi-second submission on ffe310e): tracked in #71, the oldest complete report.
  • Compute pipelines refused with 0x80070057 ("wants wave lane count of 64"): main declares the console's wave size for some compute programs (crates/victory-shader/src/emit/lower.rs, Lower::new), which a 32-lane NVIDIA host refuses; tracked in #71, with open PRs #1929, #1890 and #1922.
  • View heap capped at 1,000,000 for a request of 1,245,184: that is PORTABLE_VIEWS in crates/victory-gpu/src/descriptor/host.rs (the fallback when the host refuses a larger shader-visible heap); the same cap and the slots past it are discussed in #1753.
  • 940d32f: 0x887A0001 (DXGI_ERROR_INVALID_CALL) after a one-list submission with compute 4c0ac499ad613809 bound: the same program as #1347. An invalid-call removal on NVIDIA was traced in #1753 to a typed UAV in a format the host cannot store (open PR #1763). Of the next steps you offered, the most useful is the 940d32f run with VICTORY_D3D12_DEBUG=1 and VICTORY_D3D12_DRED=1: the debug layer's message right before RemoveDevice names the invalid call and settles whether it is the #1753 case. Please post it here.

On translate reporting 26148 of 26148: it covers the programs in the containers it walks, not programs the title builds or loads from elsewhere at run time. A note in its summary is a reasonable separate request.


Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-25 12:46 UTC · [original](https://github.com/Marvisak/VIctory/issues/1579#issuecomment-7162826009) <!-- victory-issue-triage v1 verdict=tracked seen=2026-11-25T07:29:12Z at=2026-11-25T12:45:52Z --> Automated triage for the maintainers. Run report with the essentials (RTX 4060 Laptop and driver, Windows 11 build, commits `ffe310e` and `940d32f`, how far it got, the removal lines), plus careful follow-up runs. Where each part is tracked: - **World-load removal on NVIDIA** (`DEVICE_HUNG`/`DEVICE_RESET` after a slow multi-second submission on `ffe310e`): tracked in #71, the oldest complete report. - **Compute pipelines refused with `0x80070057`** ("wants wave lane count of 64"): `main` declares the console's wave size for some compute programs (`crates/victory-shader/src/emit/lower.rs`, `Lower::new`), which a 32-lane NVIDIA host refuses; tracked in #71, with open PRs #1929, #1890 and #1922. - **View heap capped at 1,000,000** for a request of 1,245,184: that is `PORTABLE_VIEWS` in `crates/victory-gpu/src/descriptor/host.rs` (the fallback when the host refuses a larger shader-visible heap); the same cap and the slots past it are discussed in #1753. - **`940d32f`: `0x887A0001` (`DXGI_ERROR_INVALID_CALL`) after a one-list submission with compute `4c0ac499ad613809` bound**: the same program as #1347. An invalid-call removal on NVIDIA was traced in #1753 to a typed UAV in a format the host cannot store (open PR #1763). Of the next steps you offered, the most useful is the `940d32f` run with `VICTORY_D3D12_DEBUG=1` and `VICTORY_D3D12_DRED=1`: the debug layer's message right before `RemoveDevice` names the invalid call and settles whether it is the #1753 case. Please post it here. On `translate` reporting 26148 of 26148: it covers the programs in the containers it walks, not programs the title builds or loads from elsewhere at run time. A note in its summary is a reasonable separate request. --- _Generated by [Claude Code](https://claude.ai/code)_
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#1579
No description provided.