NVIDIA: title asks for 1,245,184 view slots, host heap caps at 1,000,000 -> device removed at start (0x887A0004 / 0x887A0001) #2138

Open
opened 2026-11-26 04:55:49 +00:00 by github-bot · 4 comments
Owner

@⁠CQ187901 on GitHub · 2026-11-25 05:50 UTC · original

Setup

  • VIctory 940d32f (main as of 2026-11-25, zipball), release build; toolchain: pinned 1.98.1 not installed here, built with RUSTUP_TOOLCHAIN=stable (1.100.0)
  • Windows 10.0.26300, i7-13700KF (16C/24T), 31.8 GB RAM, NVIDIA RTX 4070 12 GB, driver 32.0.16.2124 (621.24)
  • Retail 1.0.2.1 Series X, game_scarlett_master.exe, run with victory.exe run <exe> --execute, VICTORY_WINDOW_MAX=1920x1080, page file 64 GB
  • Everything prebuilt first:
    victory.exe translate --cache --pipelines shaders.rpf <exe> XboxBvhBuilder.dll amd_fidelityfx_upscaler_xbox.dll
    → 25,985 shader containers in 120 s (307 refused); 27,160 pipelines in 559 s (23,057 made, 3,607 found in the library); cache 2.19 GB

What happens

Boot is fine (Series X, title 7952987A, 4 title DLLs bound, 0 missing). It presents frames 4 → 8 → 16 → 32 → 64 (0.2 fps, 5361 ms/frame, 1 draw/frame) and then, about 4 s after the title started:

WARN victory_gpu::descriptor::host: host view heap capped at 1000000 error=参数错误。 (0x80070057) count=1245184
WARN victory_gpu::descriptor::host: title slot past the host heap index=1245175 count=934464 for_draw=false
...
WARN victory_gpu::resource: the host refuses castable formats: textures of one memory in other formats get their own host texture error=参数错误。 (0x80070057) desc=ResourceDesc { dimension: 3, alignment: 0, width: 2560, height: 1440, depth_or_array_size: 1, mip_levels: 1, format: 115, sample_count: 1, sample_quality: 0, layout: 0, flags: 1 }
WARN victory_gpu::resource: no host texture error=参数错误。 (0x80070057) desc=ResourceDesc { ... same ... }
ERROR victory_gpu::host: host GPU device removed after a submission of 1 lists; no breadcrumbs (指定的设备接口或功能级别在此系统上不受支持。 (0x887A0004)); device removed: 应用程序进行了无效的调用。 (0x887A0001)

Same with VICTORY_D3D12_DEBUG=1 (the debug layer itself does not appear to be active in this release build; the message still says "a diagnostics build ... names the command").

Reading

crates/victory-gpu/src/descriptor/host.rs:151-168: the title asks for count = 1,245,184 views, the heap creation fails, the fallback caps it at PORTABLE_VIEWS = 1_000_000, and the comment there says "descriptors past the host's limit are left out; a title that reaches them needs remapping". On this title the slots do go past count = 934464 (i.e. PORTABLE_VIEWS - MIN_DYNAMIC), so draws end up referencing slots without a view, and the next submission takes the device down.

NVIDIA's shader-visible descriptor heap limit is 1,048,576: here creating 1,245,184 fails and 1,000,000 is accepted. An AMD card (RX 6700 XT, the only machine in your status table) presumably takes the larger heap, which is why this looks NVIDIA-specific.

Questions

  1. Is remapping the title's view slots onto a ≤1M host heap planned? If so, any pointer on how the shader side would have to change — the translated shaders read the heap index themselves, so an indirection table would need to be visible to them.
  2. Is the format 115 (R16G16B16A16) 2560×1440 texture refusal (castable formats) related to the removal, or a separate problem?

I can run builds on this machine (RTX 4070 12 GB, driver 621.24) and report results. Full logs kept locally, happy to attach if useful.

**@⁠CQ187901** on GitHub · 2026-11-25 05:50 UTC · [original](https://github.com/Marvisak/VIctory/issues/2138) ## Setup - VIctory `940d32f` (main as of 2026-11-25, zipball), release build; toolchain: pinned `1.98.1` not installed here, built with `RUSTUP_TOOLCHAIN=stable` (1.100.0) - Windows `10.0.26300`, i7-13700KF (16C/24T), 31.8 GB RAM, **NVIDIA RTX 4070 12 GB, driver 32.0.16.2124 (621.24)** - Retail 1.0.2.1 Series X, `game_scarlett_master.exe`, run with `victory.exe run <exe> --execute`, `VICTORY_WINDOW_MAX=1920x1080`, page file 64 GB - Everything prebuilt first: `victory.exe translate --cache --pipelines shaders.rpf <exe> XboxBvhBuilder.dll amd_fidelityfx_upscaler_xbox.dll` → 25,985 shader containers in 120 s (307 refused); 27,160 pipelines in 559 s (23,057 made, 3,607 found in the library); cache 2.19 GB ## What happens Boot is fine (Series X, title `7952987A`, 4 title DLLs bound, 0 missing). It presents frames 4 → 8 → 16 → 32 → 64 (0.2 fps, 5361 ms/frame, 1 draw/frame) and then, about 4 s after the title started: ``` WARN victory_gpu::descriptor::host: host view heap capped at 1000000 error=参数错误。 (0x80070057) count=1245184 WARN victory_gpu::descriptor::host: title slot past the host heap index=1245175 count=934464 for_draw=false ... WARN victory_gpu::resource: the host refuses castable formats: textures of one memory in other formats get their own host texture error=参数错误。 (0x80070057) desc=ResourceDesc { dimension: 3, alignment: 0, width: 2560, height: 1440, depth_or_array_size: 1, mip_levels: 1, format: 115, sample_count: 1, sample_quality: 0, layout: 0, flags: 1 } WARN victory_gpu::resource: no host texture error=参数错误。 (0x80070057) desc=ResourceDesc { ... same ... } ERROR victory_gpu::host: host GPU device removed after a submission of 1 lists; no breadcrumbs (指定的设备接口或功能级别在此系统上不受支持。 (0x887A0004)); device removed: 应用程序进行了无效的调用。 (0x887A0001) ``` Same with `VICTORY_D3D12_DEBUG=1` (the debug layer itself does not appear to be active in this release build; the message still says "a diagnostics build ... names the command"). ## Reading `crates/victory-gpu/src/descriptor/host.rs:151-168`: the title asks for `count = 1,245,184` views, the heap creation fails, the fallback caps it at `PORTABLE_VIEWS = 1_000_000`, and the comment there says *"descriptors past the host's limit are left out; a title that reaches them needs remapping"*. On this title the slots do go past `count = 934464` (i.e. `PORTABLE_VIEWS - MIN_DYNAMIC`), so draws end up referencing slots without a view, and the next submission takes the device down. NVIDIA's shader-visible descriptor heap limit is 1,048,576: here creating 1,245,184 fails and 1,000,000 is accepted. An AMD card (RX 6700 XT, the only machine in your status table) presumably takes the larger heap, which is why this looks NVIDIA-specific. ## Questions 1. Is remapping the title's view slots onto a ≤1M host heap planned? If so, any pointer on how the shader side would have to change — the translated shaders read the heap index themselves, so an indirection table would need to be visible to them. 2. Is the `format 115` (R16G16B16A16) 2560×1440 texture refusal (castable formats) related to the removal, or a separate problem? I can run builds on this machine (RTX 4070 12 GB, driver 621.24) and report results. Full logs kept locally, happy to attach if useful.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:55:49 +00:00
Author
Owner

@⁠NuraadGit on GitHub · 2026-11-25 05:54 UTC · original

Two separate problems here, and both are already being worked on:

1. The texture refusal is the device removal. format: 115 is DXGI_FORMAT_B4G4R4A4_UNORM, not R16G16B16A16 (that one is 10). NVIDIA can't render to B4G4R4A4 and can't write B5G5R5A1 (86) as a typed UAV. The title asks for full-screen targets in both, so the texture is never made, and the device is removed soon after. The same thing was reported in #1753, #1754 and #1758. The open fix on main is #89 (such targets become R8G8B8A8_UNORM where the GPU refuses them). It currently conflicts with main. fxceless/victory-fork has the same substitution in resource.rs (target_format). On an RTX 2080 there, the log shows it taking effect for both formats:

INFO victory_gpu::resource: the host does not render to this format: 8-bit RGBA stands in format=115
INFO victory_gpu::resource: the host does not render to this format: 8-bit RGBA stands in format=86

2. The view heap cap. As you say, the slots past 934,464 read null on main. #2121 (opened today) remaps them: the title's slots go into 256-slot pages of a 1,000,000-slot host heap, and translated shaders look each index up in a page table. Before that, Xeltax/VIcky fx-heapmap-4e (on the fork) did the same with a heap map. Our 2080 runs it into the world:

WARN victory_gpu::descriptor::host: host view heap with a heap map: title slots past the window that hold views get pool slots count=1245184 ...

So for your 4070, #89 is what to try first for the removal, then #2121 for the slots past the cap.

**@⁠NuraadGit** on GitHub · 2026-11-25 05:54 UTC · [original](https://github.com/Marvisak/VIctory/issues/2138#issuecomment-7154245376) Two separate problems here, and both are already being worked on: **1. The texture refusal is the device removal.** `format: 115` is `DXGI_FORMAT_B4G4R4A4_UNORM`, not R16G16B16A16 (that one is 10). NVIDIA can't render to B4G4R4A4 and can't write B5G5R5A1 (86) as a typed UAV. The title asks for full-screen targets in both, so the texture is never made, and the device is removed soon after. The same thing was reported in #1753, #1754 and #1758. The open fix on main is #89 (such targets become R8G8B8A8_UNORM where the GPU refuses them). It currently conflicts with main. fxceless/victory-fork has the same substitution in `resource.rs` (`target_format`). On an RTX 2080 there, the log shows it taking effect for both formats: ``` INFO victory_gpu::resource: the host does not render to this format: 8-bit RGBA stands in format=115 INFO victory_gpu::resource: the host does not render to this format: 8-bit RGBA stands in format=86 ``` **2. The view heap cap.** As you say, the slots past 934,464 read null on main. #2121 (opened today) remaps them: the title's slots go into 256-slot pages of a 1,000,000-slot host heap, and translated shaders look each index up in a page table. Before that, Xeltax/VIcky `fx-heapmap-4e` (on the fork) did the same with a heap map. Our 2080 runs it into the world: ``` WARN victory_gpu::descriptor::host: host view heap with a heap map: title slots past the window that hold views get pool slots count=1245184 ... ``` So for your 4070, #89 is what to try first for the removal, then #2121 for the slots past the cap.
Author
Owner

@⁠hah346 on GitHub · 2026-11-25 13:50 UTC · original

Related RTX 2060 startup result on Windows 11 build 26300 (driver 616.64), Series S profile, offline in an AppContainer with read-only title files. The goal was to reach the first visible splash, with no input injected.

  • Upstream 940d32f: the window opens, but the view heap request (1,245,184 entries) exceeds the host heap and startup stops at 0x80000003 after two black presents.
  • PR #2121 at 40bd210: the page map is enabled and the title goes further. Frame 128 is captured; before the eventual device removal the log reports texture creation failures for formats 67 (flags 5) and 115 (flags 1), then 0x887A0004 / 0x887A0001.
  • fxceless/victory-fork 0b0074e: it passes that removal point on the same GPU, but every sampled presented PNG through frame 2048 is entirely black even while draws and dispatches are submitted. #2121 with WARP also kept presenting, with black captures through frame 1024.

Is there a recommended exact branch or startup diagnostic to distinguish a missing intro texture/upload from selection of the wrong present source on Turing? I can run one targeted capture on this machine. No title files, dumps, or screenshots attached. AI-assisted with Codex.

**@⁠hah346** on GitHub · 2026-11-25 13:50 UTC · [original](https://github.com/Marvisak/VIctory/issues/2138#issuecomment-7164356924) Related RTX 2060 startup result on Windows 11 build 26300 (driver 616.64), Series S profile, offline in an AppContainer with read-only title files. The goal was to reach the first visible splash, with no input injected. - Upstream `940d32f`: the window opens, but the view heap request (1,245,184 entries) exceeds the host heap and startup stops at `0x80000003` after two black presents. - PR #2121 at `40bd210`: the page map is enabled and the title goes further. Frame 128 is captured; before the eventual device removal the log reports texture creation failures for formats 67 (flags 5) and 115 (flags 1), then `0x887A0004` / `0x887A0001`. - `fxceless/victory-fork` `0b0074e`: it passes that removal point on the same GPU, but every sampled presented PNG through frame 2048 is entirely black even while draws and dispatches are submitted. #2121 with WARP also kept presenting, with black captures through frame 1024. Is there a recommended exact branch or startup diagnostic to distinguish a missing intro texture/upload from selection of the wrong present source on Turing? I can run one targeted capture on this machine. No title files, dumps, or screenshots attached. AI-assisted with Codex.
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 15:47 UTC · original

Automated triage for the maintainers.

Complete NVIDIA run report (RTX 4070, driver 621.24, Windows build 26300, VIctory 940d32f, log lines included). It shows two known failures, both still in main (da82e44):

  • View heap capped at 1,000,000 (count=1245184, title slots past 934,464 read null). In crates/victory-gpu/src/descriptor/host.rs (the heap creation fallback around PORTABLE_VIEWS / MIN_DYNAMIC), the capped heap keeps 934,464 title slots and drops the rest. Tracked in #1760 (also #1808, #1851). Open PR #2121 pages title slots onto the capped heap; it currently conflicts with main.
  • Format 115 2560x1440 render target refused (E_INVALIDARG). Format 115 is B4G4R4A4_UNORM, which NVIDIA cannot render to. pc_format in crates/victory-gpu/src/resource.rs passes it through unchanged. Tracked in #797 (also #1600, #1952). Open PR #89 substitutes R8G8B8A8_UNORM where the host refuses the format; it currently conflicts with main.

None of the commits merged to main since this report changes either path. On the follow-up question about a black present on Turing: there is no recommended branch for that yet, and it is better asked in its own issue once the two failures above are fixed in main.


Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-25 15:47 UTC · [original](https://github.com/Marvisak/VIctory/issues/2138#issuecomment-7167314095) <!-- victory-issue-triage v1 verdict=tracked seen=2026-11-25T13:50:02Z at=2026-11-25T15:46:18Z --> Automated triage for the maintainers. Complete NVIDIA run report (RTX 4070, driver 621.24, Windows build 26300, VIctory 940d32f, log lines included). It shows two known failures, both still in main (da82e44): - **View heap capped at 1,000,000 (count=1245184, title slots past 934,464 read null).** In `crates/victory-gpu/src/descriptor/host.rs` (the heap creation fallback around `PORTABLE_VIEWS` / `MIN_DYNAMIC`), the capped heap keeps 934,464 title slots and drops the rest. Tracked in #1760 (also #1808, #1851). Open PR #2121 pages title slots onto the capped heap; it currently conflicts with main. - **Format 115 2560x1440 render target refused (E_INVALIDARG).** Format 115 is B4G4R4A4_UNORM, which NVIDIA cannot render to. `pc_format` in `crates/victory-gpu/src/resource.rs` passes it through unchanged. Tracked in #797 (also #1600, #1952). Open PR #89 substitutes R8G8B8A8_UNORM where the host refuses the format; it currently conflicts with main. None of the commits merged to main since this report changes either path. On the follow-up question about a black present on Turing: there is no recommended branch for that yet, and it is better asked in its own issue once the two failures above are fixed in main. --- _Generated by [Claude Code](https://claude.ai/code)_
Author
Owner

@⁠hah346 on GitHub · 2026-11-26 11:42 UTC · original

RTX 2060 (6 GiB) follow-up. I tested VItoriaBr 1361e190 with diagnostics on Windows 11 build 26300, NVIDIA driver 616.64, and the Series X profile.

With the default texture-room policy and an 82% threshold, faces rendered with normal color in some shots. DXGI local usage was 5,828 MiB at the first frame with at least 500 draws and 6,450 MiB later in the cutscene. With VICTORY_TEXTURE_BUDGET_MB=1024, those readings fell to 4,833 and 5,312 MiB, but faces turned nearly black again while clothing and bright background objects still rendered. The sampled 3D sections stayed around 1–3 FPS in both runs.

I also saw the display-mode mismatch reported above. The log confirmed 1280x720, while the live HUD still showed 3840x2160 in the window scene. One run per setting with a shared warm cache. AI-assisted with Codex.

**@⁠hah346** on GitHub · 2026-11-26 11:42 UTC · [original](https://github.com/Marvisak/VIctory/issues/2138#issuecomment-7191057803) RTX 2060 (6 GiB) follow-up. I tested VItoriaBr 1361e190 with diagnostics on Windows 11 build 26300, NVIDIA driver 616.64, and the Series X profile. With the default texture-room policy and an 82% threshold, faces rendered with normal color in some shots. DXGI local usage was 5,828 MiB at the first frame with at least 500 draws and 6,450 MiB later in the cutscene. With VICTORY_TEXTURE_BUDGET_MB=1024, those readings fell to 4,833 and 5,312 MiB, but faces turned nearly black again while clothing and bright background objects still rendered. The sampled 3D sections stayed around 1–3 FPS in both runs. I also saw the display-mode mismatch reported above. The log confirmed 1280x720, while the live HUD still showed 3840x2160 in the window scene. One run per setting with a shared warm cache. AI-assisted with Codex.
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#2138
No description provided.