NVIDIA: title asks for 1,245,184 view slots, host heap caps at 1,000,000 -> device removed at start (0x887A0004 / 0x887A0001) #2138
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory#2138
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@CQ187901 on GitHub · 2026-11-25 05:50 UTC · original
Setup
940d32f(main as of 2026-11-25, zipball), release build; toolchain: pinned1.98.1not installed here, built withRUSTUP_TOOLCHAIN=stable(1.100.0)10.0.26300, i7-13700KF (16C/24T), 31.8 GB RAM, NVIDIA RTX 4070 12 GB, driver 32.0.16.2124 (621.24)game_scarlett_master.exe, run withvictory.exe run <exe> --execute,VICTORY_WINDOW_MAX=1920x1080, page file 64 GBvictory.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: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 forcount = 1,245,184views, the heap creation fails, the fallback caps it atPORTABLE_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 pastcount = 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
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.
@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: 115isDXGI_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 inresource.rs(target_format). On an RTX 2080 there, the log shows it taking effect for both formats: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:So for your 4070, #89 is what to try first for the removal, then #2121 for the slots past the cap.
@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.
940d32f: the window opens, but the view heap request (1,245,184 entries) exceeds the host heap and startup stops at0x80000003after two black presents.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), then0x887A0004/0x887A0001.fxceless/victory-fork0b0074e: 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.
@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):crates/victory-gpu/src/descriptor/host.rs(the heap creation fallback aroundPORTABLE_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.pc_formatincrates/victory-gpu/src/resource.rspasses 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
@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.