Test report: RTX 4060 Laptop (8 GB), the world hangs the GPU, and VRAM is full #1508
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#1508
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?
@Bladureau on GitHub · 2026-11-24 18:36 UTC · original
Setup
ffe310e(and #1507 for the indirect state fix)The laptop also has an Intel UHD iGPU.
victory.exeneeded the"high performance" GPU preference, or the default adapter would have been
the iGPU (
host.rscreates the device on the default adapter).Summary
DXGI_ERROR_DEVICE_HUNG)I ran it 7 times: release, diagnostics, debug layer, loop limit and GPU
timing. Every run that reached the world ended in a device removal.
1. Video memory is full in the world
I sampled
\GPU Process Memory(pid_*)\Dedicated Usageonce per second(run 7):
that, 51 did.
VICTORY_GPU_TIMING=1, the slowest lists spend almost all their timeoutside their commands. The list in flight at the hang took 5,910 ms
for 173 commands. Another took 6,772 ms for 246 commands, and its six
slowest commands took ≤ 0.1 ms each.
Time a list spends outside its commands is what paging under
oversubscription looks like. One caveat: VRAM fills at the same moment the
world's work starts, so this run alone does not separate the two. A
comparison on a card with more memory (12 GB+) would settle it.
2. 134 pipelines refused: wave64 compute shaders on a wave32 GPU
host pipeline refused error=Paramètre incorrect. (0x80070057)comes up 116to 134 times per run. The debug layer gives the reason:
This is the README's "some compute programs need a GPU with 64-lane
waves". Here is the count on NVIDIA, where all of them are lost.
3. The shader-visible view heap is capped at 1,000,000
After this cap, I see
a draw or dispatch dropped: no dynamic slots for its tables(15 in one run) andno free dynamic descriptor slots.4. Slow indirect compute dispatches
These are from
VICTORY_GPU_TIMING=1(run 6), by total time:c7feccae4e01e454(indirect)84eafa50504bc9ef(indirect)8bbcbda6008eaa37(indirect)5a801f1f568c7abd5. Ruled out
VICTORY_SHADER_LOOP_LIMIT=4096the hang stays. Themedian slow submission drops (≈430 → 267 ms), but the peaks do not
(5.8 s).
2ee026ab4e20bbd5,857b2e13c9cc107f,d62bc405f614313a,5d6f6107c4638db6, vertexe38865315b050ed9), at a different timeeach run. The removal is always
DXGI_ERROR_DEVICE_HUNG(0x887A0006), andno DRED report has a GPU page fault in it. That fits a timeout, not one
bad command.
sooner.
Other warnings seen
method not implemented object="device", slots0x218and0x1c8texture to buffer copies not implementedview the host does not allow unordered=true format=53ClearRenderTargetView: The clear values do not match those passed to resource creation[id=820]@Bladureau on GitHub · 2026-11-24 19:05 UTC · original
Correction, and descriptor heap measurements (NVIDIA cap)
Correction to section 3 above. I wrote "15 dropped draws in one run".
That was the number of log lines. The
dropped=counter is only logged atpowers of two, so 15 lines mean ≥ 16,384 dropped draws. Across 9 runs, the
highest logged value was between 512 and 65,536 per run. Each run reaches
no free dynamic descriptor slotsin the world.I added diagnostics-only counters to
descriptor::hostanddraw.rs(localbranch, not proposed) and ran into the first mission's intro twice more on
the RTX 4060 Laptop. The host keeps 934,464 of the title's 1,245,184 view
slots (1,000,000 − 2^16 dynamic).
What takes the dynamic slots
index >= host.count())The title does reach past the cap, but only through tables, which
tables()makes afresh. That is whytitle slot past the host heap(
mirror) never fired. Constant buffer tables take almost all the slots.How many dynamic slots one frame needs
when they happen.
with 5,162 free, but the longest free run was 46.
enough in this run.
The title's own slots
are sparse, but tables read up to 934,156.
Experiment: dynamic slots in the unused buckets
VICTORY_DYNAMIC_HOLE=147456,180224moves a capped heap's dynamic rangeinto title slots 147,456 – 327,679, and counts any title slot written or
read there. The result: 0 conflicts, 0 failures, 0 dropped draws. The
scene still stays black. The world's GPU hang is unchanged: it still comes
during the intro, with the same slow submissions (median ≈ 450 ms, max ≈
6 s). So the exhaustion costs draws but is not what hangs this GPU, nor
what keeps the scene black here. VRAM (above) is still the main suspect.
Options
A. As in the experiment, a dynamic range in title slots the title does
not use. It is not safe as it stands: the title's low region grows towards
it, so this needs conflict detection and moving slots out.
B. More reuse of identical tables. It already saves about a quarter of
constant buffer tables.
C. Release dynamic slots when the list that took them has run, not
when the submission has. Peaks are per submission today.
D. Remap the title's sparse slots. This means translating indices in
the shaders.
Which direction would you take? I can write it and test it here, since this
path only runs on capped (NVIDIA) heaps.
@Bladureau on GitHub · 2026-11-24 19:48 UTC · original
Correction: VRAM is not the cause of the hang, wave64 programs are
In section 1 of this report, I named full video memory as the most likely cause of the world's GPU hang on this card. A test of #578 shows that is wrong. With #578 merged onto
mainffe310e, the title ran 579 s in the world without a device removal, and I closed it. For 360 s of that run, the title used 7.0–7.2 GB of dedicated memory, as it did before. Without #578, all 10 earlier world runs ended in a device removal, the plain-mainones 38–217 s in. Details are on #578.So the hang here is the one in #778: wave64 programs running on 32-lane waves. That also fits the DRED reports in this issue, which always stopped in mesh draws.
I also missed several open reports and PRs that cover this one:
UNORDERED_ACCESSbyindirect.rs(debug layer ids 527 and 538). #334 is a more complete fix than my #1507 and #1527.The measurements above (wave64 pipelines refused, descriptor slot use) still hold. I will test the related PRs on this card rather than open new ones.
@Marvisak on GitHub · 2026-11-25 10:23 UTC · original
Automated triage for the maintainers.
Complete run report (RTX 4060 Laptop 8 GB, driver 617.14, Windows 11 26300,
ffe310e): world entry works, the first mission's scene stays black, thenDXGI_ERROR_DEVICE_HUNGin mesh draws. Thanks for the corrections and the A/B.Lower::newincrates/victory-shader/src/emit/lower.rsdeclaresWaveSize(64)for wave64 programs that depend on the lane layout, and a 32-lane GPU refuses them. Open PRs: #189, #1929, #1922, #1960.HostHeap::newincrates/victory-gpu/src/descriptor/host.rstakes 2^16 dynamic slots on a capped heap. Tracked in #747 (PRs #1349, #1548). That is the place to discuss the remap options.host.rscreates the device on the default adapter (D3D12CreateDevice(None, ...)). Open PRs #2146 and #1630 add adapter choice.Generated by Claude Code
@potatoe0100 on GitHub · 2026-11-26 14:11 UTC · original
#2143, the VRAM PR linked above, has merged as
e04c078. It stops programs' constant tables covering their whole code, which was costing GBs of NVIDIA video memory. It was measured under vkd3d-proton on an RTX 5080, so whether it changes native D3D12 usage on an 8 GB card is still open.AI-assisted (Claude)