NVIDIA (RTX 5080): descriptor heap smaller than HEAP_VIEWS → overflow-warning stall crashes title at Game Init; ~2.4 s GPU submissions once past it #3851
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 mrstalk7-tech on 2026-11-29T16:43:20Z.
GPU: RTX 5080, driver 621.40
OS: Windows 11 (build 26200)
Commit: 63bcca4
Title: build Series 1.0.2.1, game version 930.048.020, console mode series-x (default)
Unit tests
victory-gpu (2 failures):
descriptor::host::tests::dynamic_slots_are_held_until_releasedassertion failed: heap.heap.GetDesc().NumDescriptors >= victory_shader::emit::HEAP_VIEWSmemory::tests::lists_share_a_table_and_copies_keep_their_viewspanicked: "past the dynamic slots"
victory-shader (run with
--test-threads=1):emit::memory_tests::heap_direct_texture_reads_mark_their_heap_indexSTATUS_ACCESS_VIOLATION(crashes the test process)emit::stride_tests::a_heap_buffer_read_by_element_takes_the_views_stridehardware: got
[101,104,107,...,131,0,0...], expected[200..231]emit::stride_tests::a_heap_buffer_read_where_no_buffer_view_is_reads_zeroshardware:
dispatch failed: The parameter is incorrect.emit::synthetic_tests::gathers_at_a_level_match_the_hardwarehardware: lane 0 got
[0,1,0,0], expected[0,0,0,0]All failures are on the hardware adapter; the WARP side of the same tests passes.
Everything else passes (298/301 shader, 229/231 gpu, all other crates).
Translate
translate --cache --pipelineson shaders.rpf + exe + XboxBvhBuilder.dll + amd_fidelityfx_upscaler_xbox.dll:runwithout--executebinds cleanly: 0 missing imports in the exe and all four title DLLs.Run 1: crash at Game Init (~34 s)
The log is flooded with:
count=934464= 1,000,000 − 65,536, so the host heap is NVIDIA's 1,000,000 shader-visible descriptor limit minus the dynamic slots. The title indexes past it (≥ 960k seen). Same root cause as theNumDescriptors >= HEAP_VIEWStest failure.The title then crashes itself: the title's own crash handler (Breakpad) fires with Game State: Game Init, Frame 0. The minidump shows a deliberate fatal (
mov dword ptr [0], 2EF1E94Bh) on a title thread.The other threads in the dump suggest the warning flood is what stalls init:
HostHeap::mirror(host.rs:735), blocked inNtWriteFilewriting the overflow warning to stderrdescriptor::mirror(descriptor.rs:134) viacreate_cbv→recordqueue::held(queue.rs:164) viacopy_page_mappingstitle-mainis waitingSo a warning per out-of-range slot, written synchronously while the descriptor lock is held, serializes title threads behind stderr. With stderr piped through PowerShell 5.1
Tee-Objectit's slow enough for the title's watchdog to fire.Workaround:
RUST_LOG=info,victory_gpu::descriptor::host=errorwith stderr redirected straight to a file. The title gets past Game Init. Suggest rate-limiting or coalescing that warning, or emitting it outside the lock.Run 2: past init, intro video at ~0.4 fps
With the warning silenced, the title runs into the intro but each frame takes seconds:
pump_ms≈ 0.14, no fence waits).00167d58cc5a78d7,26b8bbb2e7ae4dc6,89106710b9d623ca,1f69e52b2cb228b9,7ddd1b511732d145,4ceef06fab7b49dc,5b7af3b2c2cfe892,545138fdb1d94e1b,9381f54ec01b7adb,185f68f27ec763d6,5bb23d336331db1d,4c0ac499ad613809,36e010b53acffd77,af1bc518abc76643,a4b6503d37087340Other runtime warnings in the same run:
victory_gpu::pipeline::host: host pipeline refusedvictory_gpu::draw: a draw or dispatch droppedno dynamic slots for root viewsa dispatch without a hostvictory_gpu::object: method not implementedno host texture, 1 ×the host refuses castableThe window closed cleanly: lifecycle suspended, the title didn't finish suspending in time, and it was ended.
Happy to run builds or capture more (full logs, the minidump, PIX/Nsight captures) on NVIDIA if useful.
Imported from Marvisak/VIctory. Originally posted by MannA-001 on 2026-11-29T18:47:20Z.
The NVIDIA view-heap cap: the open PRs side by side, and a merge order
About 33 open issues trace back to one cause: NVIDIA (and Intel Arc) refuse a shader-visible CBV/SRV/UAV heap larger than 1,000,000 descriptors, while
mainsizes heaps and clamps shader indices forHEAP_VIEWS= 2^21. There are about 20 open PRs on it and none has been merged since 25 November. A large part of the blockage is that every one of them rewritesHostHeap::new. Each merges cleanly intomainalone, but any two of #2461, #3518 and #3512 conflict incrates/victory-gpu/src/descriptor/host.rs. So whatever is merged first forces the others to rebase. Below is what each one does, so a merge order can be picked.Two separate problems
count=1245184in #3518's Arc log). Onmain, every slot past about 934 k is dropped (title slot past the host heap). A clamp makes those reads return null; it does not bring the views back. Only remapping keeps them.The PRs
mainfailures passVICTORY_CAPPED_HEAP=1forces itmaintests stop assuming a 2^21 heap#2885 (FIND-11, raw views of structured buffers) also comes up in these threads but is a separate NVIDIA bug; it is a merge-candidate of its own and conflicts with #3518 in
host.rs,lower.rsandemit/mod.rs.Run here (an AMD host: no cap)
RX 7800 XT, Windows 11 26200, each PR's head as is. WARP on this Windows build takes a 2^21 heap too, so it cannot stand in for NVIDIA here.
victory-gpu --libvictory-shader --lib --features hostVICTORY_CAPPED_HEAP=1(its capped layout on this card)So none of them regresses an uncapped host, and #3518's remap passes the suites on hardware with the cap forced. #3518's red CI is
frame::tests::waits_end_on_ticks_and_count_frames, a timing test outside its change.A suggested order
The numbers above come from the PR threads, except for the AMD table. AI-assisted (Claude Code); the AMD runs are mine.
Imported from Marvisak/VIctory. Originally posted by MannA-001 on 2026-11-30T09:47:59Z.
Follow-up to the comparison above: #2461 and #3518 stacked and made into one mechanism, so they can go in together without either author rebasing. @lhnizdo @danielibabet, this is your work. Take any of it into your PRs, or tell me what's wrong with it.
Branch: MannA-001/VIctory
stack/heap-cap-2461-3518, at826d6c6. It ismain+ #2461 (6544a52) + #3518 (df88467) + one merge commit with the resolutions below.How the two fit together
MaxViewDescriptorHeapSize, else a trial heap.VICTORY_CAPPED_HEAP=1from #3518 now forces it there. #3518's own trial heap inHost::createis removed, andhost::capped_heap()reads the probe.PORTABLE_VIEWS(1,000,000) as its limit, whatever cap it reports, because #3518's direct, overflow and dynamic ranges are sized for that. Every capped device in these threads reports exactly 1,000,000. Soview_heap_limit()and #3518's per-shaderheap_viewsalways agree.NULL_BUFFER_VIEWgives way to #2461'snull_buffer_view().a_reported_view_heap_size_is_the_limitnow expects the layout's size on a capped host, reported or forced.Checks (RX 7800 XT, Windows 11;
VICTORY_CAPPED_HEAP=1puts the capped layout on this card):victory-gpu --libvictory-shader --lib --features hostVICTORY_CAPPED_HEAP=1cargo clippy -p victory-gpu -p victory-shader -p victory --all-targets -- -D warnings, with and withoutdiagnostics: clean.Not covered here: a real capped device. A run of this branch on an NVIDIA or Arc card (the two
mainfailures, then a world load) is what would show it holds.AI-assisted (Claude Code); the runs are mine.