[NVIDIA GPU] Host view heap capped at 1,000,000 (0x80070057) + black screen / host texture & PSO refusals #1627
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#1627
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?
@mikebigboots-web on GitHub · 2026-11-24 19:57 UTC · original
Environment
7952987A(Xbox Series X)diagprofile (b99f876b74d4a77f03af5f878223b27bd647b5c35a79d5decd9f716504239e93)Summary of Behavior
story000work without crashing or causing a TDR/driver reset on NVIDIA (~0.3–1.4 FPS in world).HDR mode: disabled (SDR presentation)).Key NVIDIA / D3D12 Issues Found in Logs
1. CBV/SRV/UAV Descriptor Heap Limit (NVIDIA 1,000,000 Tier 1/2 limit)
NVIDIA drivers cap shader-visible
CBV_SRV_UAVheaps at 1,000,000 descriptors:Once world rendering starts (frame 1756+), this leads to descriptor exhaustion and thousands of dropped draws:
2. Host Texture & View Creation Failures (
0x80070057)3. Compute Pipelines Refused by NVIDIA Driver (
0x80070057)Multiple translated compute shaders are refused at PSO creation on NVIDIA (
13dfdd3b1136e407,88994c3496045f51,02384a60fda6f2d0,339d476c267c03c7,42683eebec081520,82849f7a614208eb,9afd549c4f530901,2fa2f94f560faf39,a25ed0e3d4d521ba,fa0c0819dc86ca60,9e096a1111c6faaa,00bcbbf278ee3d9d,d3e5b737ea7cc150,6336cb3769fc53d7,5b2ce592c3a5dd09,0e90505eff274aa4,1f1fbd86759b3da2,e4a9f58e3acfcf7b,b96880482a17f632,c4183d3cbee28e8e,2f03a2df10503cef,369cbe906ea72764,196bf6114ff3a131,660814153af43185,df3cf10a274e26ca,f8f50ab85e7b10bb,c9da71da40af2e28,a1f6cdf8874960a9,ce2378e5e8711aad,754e38ca2378a43e).(Note: Windows Graphics Tools / D3D12 debug layer wasn't installed during this run (
0x887A002D); I can install it and capture exact D3D12 debug validation messages for these0x80070057errors if helpful!)@mikebigboots-web on GitHub · 2026-11-24 20:03 UTC · original
Update: Exact GPU Hang (
0x887A0006) Breadcrumb & Command DumpI captured a follow-up run on the NVIDIA GPU that reproduced an actual GPU device removal/hang (
0x887A0006) at frame 1769 when rendering the world (story000).Failure Summary
host GPU device removed after a submission of 32 lists—The GPU will not respond to more commands, most likely because of an invalid command passed by the calling application. (0x887A0006)12of32, command 265 of 267 (op 42), between barriers264..266.mesh 4 [mesh 04b9be3756e8f41c, pixel 1af4a50c7fb40c97]CBV_SRV_UAVheap cap (host view heap capped at 1000000), dynamic descriptor slots run out (no free dynamic descriptor slots: a table is not made n=254), leavingu8,u9, andu10pointing tonullheap entries right before executing the mesh draw.Exact Breadcrumb & Command State
Additional Shader Translation Warnings Observed in World (Frame 1766–1769)
image_gather4_l is not supported(fc5e66f8f873d3bb,0452fc2d2e2fc4c3,4fb416369fc50b6e,9f017d9011377efa,87bf9e3f2bf2f052,764ca63daec9c616)image_sample_d_cl is not supported(ee41ebc3eb3fbbdc,2deec721a63fe8a5,7bdefdfde461f6e3)barycentrics read directly is not supported(2d0cace65bc05bb2,98bd9f9ae5f9c7e3)a packed input half no element holds is not supported(a223e485dd8247a3)an address in an SGPR that is no root parameter is not supported(several compute shaders including3cea4534bbc15632,f6e47efa50226beb,3b90165a77d95cdf, etc.)@EduAzevedo on GitHub · 2026-11-24 21:12 UTC · original
The same NVIDIA symptoms show up here: RTX 2070 SUPER (Turing), driver 610.88, Windows 11, retail 1.0.2.1 dump. Some of them already have open PRs:
VICTORY_CAPPED_DYNAMIC=262144.VICTORY_SHADER_LOOP_LIMIT=32. In today's run with that combination there was no device removal.victory translate --listover the 26,148 programs of my dump, mainffe310egives this refusal for 247 programs: 195 geometry and 52 compute, most of them inXboxBvhBuilder.dll. #489 (which carries #302, spill-table arguments) clears 50 of the 52 compute ones. They then stop at later refusals, so none is emitted yet. In my own run into the world on main + #493 + #189 + #206, 34 of the 639 shaders refused in game had this reason, all compute.ffe310e+ #493 + #189 + #206 + the 2^18 reserve,VICTORY_SHADER_LOOP_LIMIT=32, about 4 minutes, 38 one-second samples):host.rs), so it is CPU time copying shader writes back, not GPU time.no dynamic slotsand noa table is not made.0x80070057texture error, reproduced: I hit it twice, both on 2560x1440 textures (dimension 3, formats 86 and 115).If you can run those four PRs merged on top of main, it would help to know whether your
0x80070057PSO refusals for about 30 compute pipelines remain. That's the one part I have no measurement for.AI-assisted write-up; the numbers are from my own runs.
@BaggyALPHA on GitHub · 2026-11-24 22:23 UTC · original
Independent startup check on an RTX 3080 12 GiB, driver 621.24, on main at the mesh-cache update, with #1702 for scripted input. The Series S test also used #211 for its UI plane. Four runs spanning Series X and Series S and cold and warm VIctory caches ended in early device removal, about 41–43 seconds after the first trace event. They reached at most two draws per frame in the reported samples, before the world workload.
All four logged the shader-visible view-heap cap and 310,720 “title slot past the host heap” warnings during startup. In a fifth run, I kept Series X and a cold cache and suppressed only the descriptor warning target. The device was still removed, about nine seconds into the trace. This rules out warning output as a necessary condition for the failure on this setup. It does not isolate which GPU operation caused removal.
AI-assisted (Codex). Aggregate observations only.
@Marvisak on GitHub · 2026-11-25 12:50 UTC · original · edited 2026-11-26 06:44 UTC
Automated triage for the maintainers.
Same setup and symptoms as #1620, with a DRED stop added: at frame 1769 a mesh draw with
u8–u10on null heap entries ends in0x887A0006. Where each part is tracked:host view heap capped at 1000000 ... count=1245184): #1760, the oldest complete report, also seen in #1808 and #1851.main(63bcca4) still falls back inHostHeap::new(crates/victory-gpu/src/descriptor/host.rs) to 1,000,000 descriptors, of which 934,464 hold title views; the 310,720 title slots above that are never mirrored and read as null. An RTX 3080 run confirms the title indexes every one of them during start-up.main63bcca4): #1751 leaves the partition exactly asmain(310,720 slots outside the heap), so it does not address this report. #2628 keeps the full dynamic range and clamps the 507,331 slots it leaves out, so the access is defined but fewer title slots fit. #2121 pages all 1,245,184 title slots into the 1,000,000 the host allows, so none falls outside. Whether any of them draws correctly was not measured, and no run reached the world. #2937 only makes the twovictory-gpuheap tests skip on a capped host. The two-heap split proposed earlier belongs on #1760, where the alternatives are compared.0x80070057: wave64 programs on a 32-lane host, tracked in #2220 and #71.@mikebigboots-web, your own GPU model, driver, Windows build and VIctory commit are still welcome, but they are no longer needed to place this report.
Generated by Claude Code
@BaggyALPHA on GitHub · 2026-11-26 03:28 UTC · original
Measured the open pull requests for this on a host that reproduces it: three reach an identical heap on this card, and they are 1, 9 and 14 files. The two red tests are a poor way to tell them apart, because every green row changes them.
FIND-9 in the coordination thread asked for someone with such a GPU to check. RTX 3080 (Ampere) / Windows 11, every row merged onto the same
main63bcca4, each built in a build cache of its own,cargo test -p victory-gpu --lib --no-fail-fast. Every row run twice with identical results. Alongside the suite I probed what heap the host actually ends up with, by printingNumDescriptorsandHostHeap::dynamicfrom a temporary test (reverted afterwards), because that is the thing these pull requests change and the suite does not report it.victory-gpu --libmain63bcca4mainDYNAMICis 262,144,MIN_DYNAMIC65,536 andPORTABLE_VIEWS1,000,000, so the baseline's 65,540 iscount + MIN_DYNAMIC: on this cardmainfalls past both heap attempts to the smallest range. #1751's added tier asks formax(count + DYNAMIC, PORTABLE_VIEWS)= 1,000,000, which is exactly this driver's cap, so it is granted and the full dynamic range comes back. The reason for wanting that range is #1751's own, not mine: its comment cites #59 for the smaller one running out in the world. I did not reproduce that — #59 discusses a dynamic-slot overrun on an RX 9070 XT with a differentDYNAMICthanmainhas today — so treat the motivation as that pull request's claim and the heap numbers below as mine.The part I nearly got wrong, and the reason the test counts above should not decide this. Every row that is green is green partly because it changed the two tests. #1751 makes the old assertion conditional on the device actually accepting a
HEAP_VIEWSheap and addsassert_eq!(heap.dynamic, DYNAMIC); #2628 drops that assertion and re-expresses "past the dynamic slots" againstviews.pairs_start(); #2121 relaxes it to a disjunction; #2937 skips both with a line naming the cap. That is not evasion in any of them — the tests encode a premise ("the host took a heap ofHEAP_VIEWS") that is simply false on this hardware, so anything that makes them meaningful here must touch them. It does mean "makes the tests pass" is nearly uninformative, and I would have published a misleading table if I had stopped at the counts.What the probe does separate: #1751, #2628 and #2121 produce the same heap and the same dynamic range on this card, while #2937 and #2896 leave it at the floor. So on the measurable outcome the one-file change matches the two large ones.
What this does not say. Nothing about the black screen in this issue, the world, or the framerate — these are synthetic unit tests and no title was run. The larger pull requests also do things this cannot evaluate: #2628 clamps shader heap indices from the first shader and gives
lowera limit, #2121 pages the heap. A shader indexing past 1,000,000 is still the documented shortcut inHostHeap::newon all three, so if that case occurs in the world, the extra work in the larger two is the part that would matter and the heap numbers above would not show it. #2896 targets #2894 (a list binding no view heap) and is not a candidate for these two tests at all; its two failures are the baseline's, not a regression. #2937 is explicit that it fixes the red CI and not the limitation, and it is the only row that is honest about changing nothing else — it is complementary to a real fix rather than competing with it.Method notes: counts, descriptor numbers and test names only; no game files, no world run. The probe was a temporary test, and the worktree was left clean.
AI-assisted (Claude Code); every figure is from the runs described on this host.
@BaggyALPHA on GitHub · 2026-11-26 03:44 UTC · original
Correcting my comment above: I measured the heap at the unit tests' count of 4, and at the count the title actually asks for, #1751 does nothing. The conclusion I drew from that table — that the one-file change matches the two large ones — is wrong.
HostHeap::newtakes the count the title requested (descriptor.rs:100,self.desc.count), and its branches depend on it. My probe used the value the two tests use, 4. Sweeping the count instead, on the samemain63bcca4and the same card:mainviews / dynamicThe step is at
PORTABLE_VIEWS - DYNAMIC + 1= 737,857: #1751's added tier asks formax(count + DYNAMIC, PORTABLE_VIEWS), which above that count exceeds the cap, fails, and falls through to the same armmainalready takes. So the improvement exists only for counts below ~737,856.What the title asks for here. A short run of about 100 seconds was enough — this happens during start-up, no world needed — with
VICTORY_LOG=info,victory_gpu::descriptor::host=debugon a release build ofmain63bcca4:1,245,184 — the same figure the RX 9070 XT report on #59 gives, so it looks like the title's own number rather than a host's. That is above the step, so on this card the run takes the
PORTABLE_VIEWSarm: a heap of 1,000,000, the title's count truncated toPORTABLE_VIEWS - MIN_DYNAMIC= 934,464, and the smaller 65,536 dynamic range. 310,720 of the title's slots are left out, onmainand with #1751 alike.And the dropped descriptors are not hypothetical: the title indexes every one of them. The same run logs, starting 1.9 seconds in and over the next 1.5 seconds:
310,720 of them — exactly
1,245,184 - 934,464, one for every slot the cap left out, from the first missing index to the last. So on this card the title walks the whole truncated tail during start-up, before anything in the world is drawn.So the table above should be read the other way round. The condition that actually occurs in the title is a count past the cap, where descriptors are dropped and a shader indexing into them hits the documented shortcut. That is the case #2628 (clamping indices from the first shader) and #2121 (paging the heap) are built for, and it is the one my first comment said they addressed but that nothing here could evaluate. They are not equivalent to the one-file change; at the count that matters, #1751 is a no-op and they are not. Whether either of them is correct is still beyond what I measured — I have shown which ones can act at this count, not that their output is right.
Unchanged from the first comment: the suite results for each row (no regressions), #2937 skipping both tests on a capped host by design rather than changing behaviour, #2896 being a different problem with the baseline's two failures, and #1779 / #2185 / #2475 not merging with
main.My mistake was taking the number a unit test hardcodes as the operating point and reporting a per-row heap figure from it. The sweep and the start-up log are what should have been in the first comment.
How that run ended, for completeness, since it bounds what I saw: a device hang rather than anything to do with the heap —
0x887A0006after a 7.4 s compute submission of 26 lists, which is the hang already described on #71 and #1968 and not something this measurement bears on. Peak card use was 7,518 MB of a 9,681 MB budget with noE_OUTOFMEMORYanywhere, so it was not memory on the card either. Everything above was logged in the first few seconds, well before it.Counts and log lines only — no game files, no shader names, hashes or paths, and nothing from the title's data. AI-assisted (Claude Code); figures from the runs described on this host (RTX 3080 / Windows 11).
@BaggyALPHA on GitHub · 2026-11-26 04:03 UTC · original
In-game measurement of the same pull requests, which is what my earlier comments should have led with. #1751's no-op is now measured rather than inferred, and only #2121 removes the condition entirely.
Four short start-up runs, each 45 s, on
main63bcca4with the pull request merged, release build with diagnostics,VICTORY_LOG=info,victory_gpu::descriptor::host=debug. The whole truncated-slot burst lands in the first ~3.5 s, so 45 s captures it and stops well short of the ~90 s device hang; no run was removed, and no title process survived any of them. The metric is the heap partition the layer ends up with and how many of the title's 1,245,184 requested slots fall outside it.main63bcca4PORTABLE_VIEWS - MIN_DYNAMICmainat this countview heap paged: ... slots=1245184 host_slots=1000000 pages=3906 fixed=1026#1751 is confirmed a no-op here. Byte-identical partition and warning count to
main, in the title, not deduced from a count sweep. That settles the thing my first comment got backwards.More warnings is not worse, and #2628 should not be read that way. Its 507,331 is arithmetic: it keeps the full 262,144 dynamic range instead of
MIN_DYNAMIC, so 1,000,000 − 262,144 − 3 = 737,853 slots are left for the title and the rest of the 1,245,184 fall outside. What changes is not the count but what happens on access — it clamps those indices, wheremaintakes the documented shortcut. So it trades title slots for a defined access and the larger dynamic range that #59 wants. Whether that trade is right is a design question this measurement cannot settle; the count alone would make it look like a regression, and it is not one.#2121 is the only row where no title slot is outside the heap. It places all 1,245,184 by page inside the 1,000,000 the host allows, so the condition does not arise rather than being clamped or truncated. It is also the largest change here (+1688/−75 across 14 files) and nothing above says its output is correct — only that the truncation is gone.
So the three are not variations of one fix: at the count the title actually uses, one does nothing, one re-partitions and defines the access, and one removes the shortage. My earlier table, measured at the unit tests' count of 4, showed all three as equivalent.
Not covered. No run reached the world — all four stopped at 45 s by design — so nothing here speaks to the black screen in this issue, the framerate, or whether any of these draws correctly. #2896 and #2937 were not re-run in the game: #2896 targets #2894, and #2937 changes only what the two tests report, so neither alters the partition. #1779, #2185 and #2475 still do not merge with
main.Counts and log lines only; no game files, no shader names, hashes or paths. AI-assisted (Claude Code); all four rows from the runs described on this host (RTX 3080 / Windows 11).
github-bot referenced this issue2026-11-26 08:11:26 +00:00