[NVIDIA GPU] Host view heap capped at 1,000,000 (0x80070057) + black screen / host texture & PSO refusals #1626
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?
Imported from Marvisak/VIctory. Originally posted by mikebigboots-web on 2026-11-24T19:57:31Z.
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!)Imported from Marvisak/VIctory. Originally posted by mikebigboots-web on 2026-11-24T20:03:07Z.
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.)Imported from Marvisak/VIctory. Originally posted by EduAzevedo on 2026-11-24T21:12:42Z.
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.
Imported from Marvisak/VIctory. Originally posted by BaggyALPHA on 2026-11-24T22:23:33Z.
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.
Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T12:50:48Z.
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
Imported from Marvisak/VIctory. Originally posted by bittertea0323 on 2026-11-25T12:58:34Z.
The black screen is the view heap cap, and here is the shape of a fix
Cross-posting what we measured on our tree today, because #1627 is the right issue for it and we now have numbers plus a concrete direction rather than a guess.
What we see
With
main940d32fplus six lowering fixes and the Agility opt-in (that part is in #2376: without it every heap-indexed root signature is refused on Windows 10 and the title dies in two seconds), the title runs and presents:The window is there, the frame rate is real, and the picture is completely black — same symptom #1627 reports. Presenting works, so this is not a missing swapchain or a lost device.
The cap, with the exact numbers
HEAP_VIEWSis1 << 21(2,097,152) — what the generated shaders clamp their indices below.PORTABLE_VIEWSis 1,000,000 — what an NVIDIA CBV/SRV/UAV heap accepts.HostHeap::newtherefore falls back:so the heap holds 1,000,000 descriptors and
countbecomes 934,464 (1,000,000 −MIN_DYNAMIC). The title keeps making views past that:310,720 such lines in a 90-second run, and the highest index we saw is 1,029,688 — the title needs about 95,000 slots more than the fallback gives it, and about 30,000 more than the driver's hard cap allows in one heap.
mirror()returnsNonefor those, so the slots stay null and whatever samples them is black. That is the visible symptom.Two things that do not fix it (we tried them)
Raising the shader's clamp does not help. We set
HEAP_VIEWSto 1,000,000 and then to 934,464 to line it up with the host, retranslating the whole corpus each time: thepast the host heapcount stayed at exactly 310,720. Those warnings come frommirror()on the CPU side, checking the title's own descriptor index againstcount— they are not about what the shader indexes at runtime. So the clamp is not the lever.Lowering
MIN_DYNAMICalone cannot close the gap either: even at zero the heap tops out at 1,000,000, and the title wants 1,029,688.The direction we think works
Two shader-visible heaps instead of one, with the title's linear index split across them:
0 .. A_CAP(up to the driver cap), heap B holds the rest;heap_handlebecomesidx < A_CAP ? createHandleFromHeap(t1, idx) : createHandleFromHeap(t2, idx - A_CAP), and the clamp becomes the sum of both capacities;mirror()mapsindexto(heap, slot)instead of one flat arena.The cost is in
descriptor/host.rs(two heaps, the mapping),pipeline/host.rs(one more root descriptor, the secondSetDescriptorHeapsentry),emit/shader.rs(heap_handleplus the constant), and a full retranslation of the 26,503 containers. That is why we did not attempt it tonight — it is a cross-layer change where a mistake shows up as a new black screen or a new removal, and hard to bisect.Not measured
1,029,688is the title's true maximum or just the highest we reached in 90 seconds; a longer run would tell.createHandleFromHeap's dynamic indexing non-uniform across heaps (HLSL'sResourceDescriptorHeapis documented as one heap, which is why we would add an explicit second descriptor rather than tryNonUniformResourceIndexover two).If a maintainer has a better shape for the split — or knows that the title's highest descriptor index is bounded well below 934,464 on a full run — that would save the retranslation round-trip.
Imported from Marvisak/VIctory. Originally posted by bittertea0323 on 2026-11-25T13:00:25Z.
Environment, as asked, all from this machine:
940d32fplus seven commits (the Agility opt-in among them — without it this title does not get past init on Windows 10, see #2376)The debug-layer messages I cannot give you, and that is itself a data point: with d3d12SDKLayers.dll from Microsoft.Direct3D.D3D12 1.620.2 placed both in D3D12\ beside ictory.exe and directly beside it, D3D12GetDebugInterface returns
Imported from Marvisak/VIctory. Originally posted by bittertea0323 on 2026-11-25T13:17:01Z.
Correction to the number I gave above: the title's highest descriptor index is 1,245,183, not 1,029,688. The earlier figure came from a 60-second run that had not finished growing; at 90 seconds it settles, and it is stable across runs:
And the arithmetic closes exactly:
1,245,183 - 934,464 = 310,719, against 310,720 hits — one per index in the range, so the title walks its descriptors sequentially from 0 upward and simply runs past where the heap stops. Nothing is sparse or scattered.That makes the sharding estimate concrete: the second heap has to hold 310,720 slots, comfortably under the 1,000,000 cap, so a two-segment split covers the whole range with room to spare. The mapping is a single comparison on the generated shader's side, not a remapping table.
Still unmeasured: whether the index keeps growing past 1,245,183 on a much longer run (90 seconds is where we stopped, and the count was identical in every run at that length), and whether the growth is per-level or per-session — if a second run in the same process pushed further, the second heap's size would need headroom rather than exactly 310,720.
Imported from Marvisak/VIctory. Originally posted by bittertea0323 on 2026-11-25T13:25:32Z.
The number that settles it — the title asks for 1,245,184 descriptors, and that is its own declaration, not an observed maximum:
So the chain is:
This also explains why MIN_DYNAMIC looked like the lever and is not: view heap aside, even the MIN_DYNAMIC variant asks the driver for 1,310,720 in one heap, which it will never grant. No arrangement of a single heap reaches 1,245,184 on this GPU. The cap is on the heap, not on our arithmetic.
The sharding parameters are therefore concrete rather than estimated: heap A up to 1,000,000, heap B for the remaining 245,184 — 24% of the cap, no pressure at all. The split point can even be the current 934,464 so the existing fallback path keeps working for everything below it.
Worth noting for anyone reading the log: count=934464 and count=1245184 in the two warnings are not contradictory — the first is what the host ended up with, the second is what the title asked for. The 310,720 hits are the difference between the title's index walk and the host's capacity; the 245,184 is the difference between the title's declaration and the driver's cap.
Imported from Marvisak/VIctory. Originally posted by BaggyALPHA on 2026-11-26T03:28:42Z.
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.
Imported from Marvisak/VIctory. Originally posted by BaggyALPHA on 2026-11-26T03:44:53Z.
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).
Imported from Marvisak/VIctory. Originally posted by BaggyALPHA on 2026-11-26T04:03:24Z.
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).