Draft: reproduce RTX 5080 world-transition GPU hang on combined renderer patches #1520
No reviewers
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!1520
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1520/head"
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?
@alladeen321123 on GitHub · 2026-11-24 18:43 UTC · original
alladeen321123:test/rtx5080-world-transition→main· +5579 −340 · 37 files · 53 commits · closed without mergingThis draft shares the exact source used for a Windows RTX 5080 comparison against main at
ffe310e. It is an integration branch for cross-machine testing. The included work comes from #175, #994, #302, #193, #704, #309, #1067, #953, #1260, #1267, #1254 and #334. Their original commits are preserved. Local changes reconcile the branches, skip redundant COPY_SOURCE presentation barriers and add optional frame recording.Reproduce on Windows
cargo build --release -p victory --features diagnosticsandcargo xtask agility. Verify the matching runtime is undertarget\release\D3D12.$env:VICTORY_D3D12_DEBUG='1'and$env:VICTORY_D3D12_DRED='1'. Use the default hardware adapter. Start with the normal presentation path and no optional capture settings.target\release\victory.exe run "<path to title executable>" --execute, select Player and let the loading transition finish. For a separate debug geometry comparison, use the intermediate-target and debug pixel shader options documented indocs/linux-proton.md.RTX 5080 observations
Debug geometry stayed visible past loading. Adding #334 reduced the observed debug-layer ID 527 and ID 538 counts from 213 and 135 to zero in the matched debug-target runs. The normal-output run presented intro text. Both modes eventually reported DXGI_ERROR_DEVICE_HUNG. The only partially completed breadcrumb list in each showed 6/12, with DISPATCH next. The shader and cause remain unknown.
Please report your GPU, driver, operating system, commit, presentation mode and whether the run advances past loading. For a hang, include the device removal reason and a short breadcrumb summary. A text report is enough.
7374bfb) into shader/unknown-stride-view-kinds d5b23e13df8e79c80) into shader/unknown-stride-view-kinds dbda4caedff99b792) into shader/unknown-stride-view-kinds 42538cdec9Under Wine, D3DCompile is vkd3d-shader's HLSL compiler, which has no RWByteAddressBuffer methods ("Method 'Load' is not defined") and does not embed a [RootSignature] in the blob. The clamp did not build, so every indirect execution was dropped under Proton. The clamp now uses structured buffers of words (a root UAV takes either) and its root signature is built in code. Same behaviour on Windows. A new GPU test checks the clamped values, also with descriptor heaps bound. Co-Authored-By: Claude Opus 5.5 <[email protected]>Every s_endpgm (and the loop-limit abort) now branches to one shared ret block, as DXC's output always has. A loop left by both a break and a return could not be structured by dxil-spirv (vkd3d-proton): it emitted invalid SPIR-V ("exits the loop ... but not via a structured exit"), on which RADV segfaulted in vkCreateGraphicsPipelines (exit code 3). Co-Authored-By: Claude Opus 5.5 <[email protected]>Grand Theft Auto VI places its descriptor heaps in its own memory and copies whole slots there itself; no create or copy call reports those writes, so the host slot kept what it was mirrored from before. Slots a shader reads directly by index (not through a table) are only made from what was mirrored: in the world a mesh shader read a slot as a constant buffer while the host slot still held a texture view, whose upper half it took for a buffer at address 0 (a GPU page fault and a lost device; likely the "world's low-address page faults" noted at null_view). Before each submission, the 64 KiB blocks of every shader-visible heap written since the last one (watch::writes) are mirrored again; mirror() skips slots whose record did not change. Found with umr wave dumps under Proton (RX 9070 XT): the faulting waves held s[8:11] = {0, 0x00400000, 0x00248000, 0}, the second half of an image descriptor, loaded from heap slot ~1,061,522. Before, the world lost the device after 5-90 s; with this, 90 s, then a different fault (next commit). Co-Authored-By: Claude Opus 5.5 <[email protected]>@alladeen321123 on GitHub · 2026-11-24 18:59 UTC · original
RTX 5080 follow-up on the PR head with local command-list naming instrumentation. With DRED enabled and the D3D12 debug layer disabled, normal presentation still ended in DXGI_ERROR_DEVICE_HUNG. The partially completed list was run 21, breadcrumb 6/12. The next recorded operation maps to a 12x1x1 dispatch of compute shader
eeed82b877b44b5f. The preceding dispatch used the same shader and dimensions. With the debug layer enabled, the same list index and breadcrumb position were observed. This identifies where progress stopped; it does not establish whether the shader, its inputs, or earlier GPU work caused the hang. Reports from another GPU at this transition would help.@HenriqueSBueno on GitHub · 2026-11-24 19:29 UTC · original
Possibly related to the hang mechanism here: on our machine (RTX 3080), with #1388 applied and a counter added where it defers a list tail, command-list 64-bit memory waits held queue work back 32+ times in ~5 minutes of a Series S world run (queue-level fence waits: 0). Without #1388 those consumers run before their producers. A long-running world shader that loops on a bound its producer has not written yet would then never finish. We saw that pattern in a lighting pixel shader whose outer loop exits on an equality test. It may be worth trying this branch with #1388 to see whether the hang at run 21 / breadcrumb 6 moves or disappears. Notes in #1317 (H-6.7, H-6.14) and on #1388.
AI-assisted (Claude Code)
@Bullet18x on GitHub · 2026-11-24 19:34 UTC · original
RTX 5090 run of this branch, following the steps in the description. (Plain
mainon the same machine: #1586 .)Machine: RTX 5090 32 GB, driver 621.40 (32.0.16.2114), Ryzen 9 9950X3D, 64 GB, Windows 11 Pro 10.0.28000.
Build: head
2190efe,cargo build --release -p victory --features diagnostics,cargo xtask agility(1.620.2, files undertarget\release\D3D12).Run:
VICTORY_D3D12_DEBUG=1,VICTORY_D3D12_DRED=1, default adapter, normal presentation path,VICTORY_KEYS=8:Enter,20:Enter,35:Enter,victory.exe run <dump>\game_scarlett_master.exe --execute. Pipeline cache warm from an earliermainrun.Result: advances past loading, then DXGI_ERROR_DEVICE_HUNG.
device removed ... 0x887A0006. Breadcrumbs: that list stopped at 204/478.mainffe310ethe same machine hung after ~60 s in the world (a submission of 11 lists, 4,839 ms; list 1 at 222/710). So this branch ran ~40 s longer before the hang, on a warm cache; one run each, so not conclusive.In that first run the debug layer did not start (
0x887A002D): this Windows build's in-box D3D12 (10.0.28000.3365) is newer than 1.620.2, so the in-box runtime was used, and Graphics Tools was not installed.Rerun with the debug layer working (Graphics Tools installed):
DXGI_ERROR_DEVICE_HUNG(~45 s in the world). The debug layer reports the removal (id=232) but no validation error for the hung list, so it does not name a bad command: this looks like a GPU timeout, not invalid API use.CreateComputeShader: Shader wants wave lane count of 64 but maximum wave lane count for device is 32. On a 32-lane GPU these wave64 compute pipelines are refused (matches the ~118–135host pipeline refused ... 0x80070057per run), so their dispatches are dropped on NVIDIA.CreateDescriptorHeap: NumDescriptors 1572864and1376256,but the limit for shader visible view heaps is 1000000. Both runs also loghost view heap capped at 1000000 ... count=1245184, and this branch logs 376,256title slot past the host heapwarnings during boot;no dynamic slots for its tablesreacheddropped=262144. #1496 and #1508 hit the same limit.ID3D12PipelineLibrary::StorePipeline: A pipeline with name … already exists/Load*Pipeline: The pipeline state desc provided does not match the one used to create the PSO stored with name …/… does not have a pipeline stored with name …. Several different pipeline descs are stored under the same library name, so loads miss and stores fail (cache thrash; no wrong PSO is loaded since D3D12 refuses the mismatch).Not tested: the debug-geometry comparison from
docs/linux-proton.md, a cold cache on this branch, a wave64 emulation mode (not on this branch).No game data, title-content log lines or screenshots attached. AI use: Claude Code (Claude Opus 5.5) built, ran and summarised the logs; I checked it.
@adnanoos on GitHub · 2026-11-24 19:39 UTC · original
RTX 5060 Laptop GPU (Blackwell): no GPU hang in two runs; the world runs ~7.5 min, then the title's own breakpoint at
+0x63966f(#698)Setup. NVIDIA GeForce RTX 5060 Laptop GPU (32-lane waves), driver 32.0.16.2124, Intel Core 7 240H + Intel iGPU (dGPU forced with
GpuPreference=2), 32 GB, Windows 11 Pro 26200. This PR at2190efe,cargo build --release -p victory --features diagnostics,cargo xtask agility(1.620.2; the in-box runtime is newer here, so it is used, and the debug layer comes from Graphics Tools).VICTORY_D3D12_DEBUG=1,VICTORY_D3D12_DRED=1, default (normal) presentation, no capture options, Series X mode, title 1.0.2.1 (b99f876b…). Input:VICTORY_KEYSsending Enter every 5 s for 4 min.0x887A002D)0x80000003at+0x63966fafter ~7.5 min in the world (3 threads)The run 2 stop matches #698 (same address, NVIDIA, no device removal, ~6.7 min there). So on this machine the PR gets past loading, and nothing hangs the GPU for as long as the title keeps running.
Debug-layer messages (run 2), by ID:
CreateComputeShader: Shader wants wave lane count of 64 but maximum wave lane count for device is 32CreateDescriptorHeap: NumDescriptors 1572864(and1376256), limit for shader-visible view heaps 1000000So 527 and 538 are at zero here too, as in your #334 run. The ID 622 messages are the wave64 compute pipelines tracked in #71 (see my listing there). The ID 645 heap sizes go with the host heap capped at 868,928 descriptors; the title addresses slots up to 1,245,183 (
title slot past the host heap, about 376k of those lines, allfor_draw=false).Logs (390k lines, mostly the heap warning) are available if useful.
@adnanoos on GitHub · 2026-11-24 20:01 UTC · original
Follow-up: with the boot delay gone, this PR reproduces a
DEVICE_HUNGon the RTX 5060 Laptop GPU, stopped at a draw, not a dispatchMy runs above spent about two minutes at boot logging
title slot past the host heap. That comes from #994'sresync_title_writeswalking slots past NVIDIA's capped heap; I posted the cause and a fix on #994. With that warning muted (VICTORY_LOG=info,victory_gpu::descriptor::host=error), the same build (2190efe,--features diagnostics,VICTORY_D3D12_DRED=1, no debug layer, normal presentation) reached the world 1 min after launch and then:DXGI_ERROR_DEVICE_HUNG(0x887A0006) about 2m50s into the world, after a submission of 26 lists.draw 4x391 [vertex cb47fdb3b37b7880, pixel b335d5633b1ed53f]65511934598e485c/ pixel5e69b507ec27b789Your RTX 5080 run stopped at 6/12 with a DISPATCH next, so this may be a second stop rather than the same one. Neither hash appears in any issue or PR so far. A 3-minute run with the #994 fix applied (no muting) did not hang, but it only had about 1m20s in the world. The full DRED line is available if useful.
@alladeen321123 on GitHub · 2026-11-24 20:24 UTC · original
Follow-up RTX 5080 comparison is available at 0e900e5. Build and launch as in the PR description. This branch adds #984 and both heap-layout and guard commits described in #747 to the original PR head. With #984, two normal-output runs were manually closed without the prior device-hung report. In the debug geometry comparison, the #984-only run reported dropped work due to exhausted dynamic slots, while the combined run showed geometry and logged no such warning through manual close. Normal output remains largely dark. Workspace tests and both CI Clippy profiles passed. If comparing, please include the commit, adapter, presentation mode, any slot-exhaustion warnings, and whether you closed the run yourself.
@adnanoos on GitHub · 2026-11-24 20:30 UTC · original
Follow-up on the
DEVICE_HUNGat the draw of vertexcb47fdb3b37b7880/ pixelb335d5633b1ed53fabove: it reproduced (3m16s into the world, same command 197), and it does not happen with #452 merged (no device removal in 7m45s, longest submission 1.57 s) or withVICTORY_SHADER_LOOP_LIMIT=4096. So it is a translated loop running to the 2^20 limit. Details and the table are on #452. #452 merges into this branch with two keep-both conflicts inemit/lower.rs.Separately,
cargo test -p victory-shader --libdoes not compile on this branch (2190efe) by itself:sgpr_spill.rs:340calls the function atresource.rs:147with 3 arguments where it takes 4 (E0061). The release build is unaffected.@adnanoos on GitHub · 2026-11-24 20:47 UTC · original
One more for this branch (
2190efe):cargo test -p victory-gpu --libdoes not compile either.indirect.rs:326callstransitionandindirect.rs:335callsdone, and neither is in scope there (E0425). Together with thevictory-shaderone above, the unit tests of both crates need a fix before this branch's tests can run; the release build is fine.Also, on top of this branch with the #994 bound and #452, #1010 takes world frames on the RTX 5060 Laptop GPU from ~3.0 s to ~1.7 s, and the run outlasts the
+0x5149aecstop (details on #1010).@Marvisak on GitHub · 2026-11-25 00:41 UTC · original
Automated triage for the maintainers. Closing because this pull request re-packages other open pull requests. Each of those is reviewed on its own, so a bundle cannot be merged.
If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution.
Pull request closed