NVIDIA RTX 5070 Ti Laptop: device hung entering world (vertex buffer left in UAV state) + wave64 shaders refused #264
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#264
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?
@Bernie-Andrews on GitHub · 2026-11-24 01:54 UTC · original
diag1.log
crashes.log
Hardware: NVIDIA GeForce RTX 5070 Ti Laptop GPU (driver 32.0.16.2124); AMD Radeon 880M iGPU present but not used
OS: Windows 11 x64
Build: master as of 2026-11-23, release + diag (
--profile diag --features diagnostics),VICTORY_D3D12_DEBUG=1Summary
Boot, intro, menus and the first cutscene run at a steady 30 fps with audio and subtitles. Once the world starts loading, fps drops to ~0.7–4 and after about 2 minutes the device is removed (
DXGI_ERROR_DEVICE_HUNG/ TDR). Reproduced 3 times.Debug layer findings (diag run)
DrawIndexedInstancedwith a vertex buffer inD3D12_RESOURCE_STATE_UNORDERED_ACCESS(id=538). The same resource every time (115 occurrences), along with 131 barrier "before state" mismatches (id=527) on that resource (UAV vsVERTEX_AND_CONSTANT_BUFFER).CreateComputeShader: "Shader wants wave lane count of 64 but maximum wave lane count for device is 32" (id=622). These match thehost pipeline refused (0x80070057)warnings in the release run (46 refused).no host texturefor 2560x1440 format 86 flags=5 (E_INVALIDARG), andview the host does not allow unordered=true format=53.Separate crash (crashes.log)
Probably when closing the window during the cutscene.
Logs: diag1.log and crashes.log attached.
@r4tedx on GitHub · 2026-11-24 04:30 UTC · original
Two of your debug-layer findings have open PRs, and you have something most testers here do not: the debug layer installed.
UNORDERED_ACCESS(ids 538 / 527). #334 tracks the state of host copies of title buffers between shader writes and reads. Its in-title runs still end in the hang, so it is a fix for these messages, not shown to be one for the device removal.Both are in the
integration/testerstree (what is in it). Nobody has run that tree with the debug layer, so the same diag run there would be new information: how many id 538 / 527 and id 622 messages are left (you had 115 / 131 and 26), and what the debug layer says last before the hang.A second thing only a machine with the debug layer can answer, without the title: #159 (occlusion, statistics and timestamp queries on the host) was written on a machine where
d3d12SDKLayers.dllis not installed, so its resolve path has never been validated.cargo test -p victory-gpu querywithVICTORY_D3D12_DEBUG=1on that branch (gpu/host-queriesat r4tedx/VIctory), and whether the layer prints anything, would settle it.I have no copy of the title. AI-assisted.
@liang-kai-shui on GitHub · 2026-11-24 06:56 UTC · original
Same laptop GPU: world load escalated to a full system reboot (BugCheck 0x119 VIDEO_SCHEDULER_INTERNAL_ERROR), and the GPU was not enumerated for ~1 min after boot
maind2a4bae, release build (cargo build --release -p victory), Rust 1.98.1, VS Build Tools 2022 17.14, Windows SDK 10.0.26100build unknown (b99f876b74d4a77f…)What happened
0x887A0004/0x887A0006after a submission of 28 lists), many compute shaders fail to translate and their draws are dropped (structured buffer of unknown stride,select on an untracked mask,descriptor's address or format read as data).nvidia-sminow reports driver 621.24, 50.97 °C, normal operation. A second PnP entry for the same GPU (SUBSYS_60421D05) is stillUnknown, the active one (SUBSYS_605A1D05) is OK/problem 0.Evidence from Windows
Kernel-Power 41: "Windows rebooted without cleanly shutting down first" (2026-11-24 14:52:05)EventLog 6008: previous shutdown at 14:26:53 was unexpectedBugCheck 1001:0x00000119(VIDEO_SCHEDULER_INTERNAL_ERROR), parameters(0x2, 0xffffffffc000000d, …), dumpC:\WINDOWS\Minidump\112426-7562-01.dmpnvlddmkmEvent ID 153 ×12 at boot (14:51:04) and ID 14 ×2 at 14:52:51/53crashes.logafter the reboot (the host lost the process state)So on this laptop the known world/device-removal failure can escalate from TDR to a video-scheduler bugcheck and an unexpected reboot. I would suggest a stronger warning in the README for world entry on real GPUs (beyond the current "driver reset, monitors go black"), and limiting testers to WARP for world runs.
The minidump is local; I have not attached it because it may contain game memory/title data. I can provide event-log exports or a sanitized summary if useful. Full first report is in #49 (comment link). AI-assisted report.
@colehammond65 on GitHub · 2026-11-24 06:58 UTC · original
RTX 4080 / PR #334 check. The buffer-state unit test passed; the debug-layer child test skipped because the debug layer is unavailable here. The runtime hang remained, and each run still had 64–106 unique refused shader pipelines before failure. This does not verify the UAV/vertex-state fix, but it shows #334 alone does not prevent device removal on this setup. Full report: #334
AI-assisted test report.
@LooperSalty on GitHub · 2026-11-24 08:39 UTC · original
Same pattern on a desktop RTX 4070 SUPER (driver 610.88) with an Intel i7-13700KF, Windows 11, diag build of main
58fed37+ #89,VICTORY_D3D12_DEBUG=1 VICTORY_D3D12_DRED=1:DXGI_ERROR_DEVICE_HUNGabout 2 minutes later, after a 4.9 s submission of 25 lists.Next I will try #223 + #233 + #334 on this machine and report whether the refusals and the hang change.
🤖 Generated with Claude Code
@LooperSalty on GitHub · 2026-11-24 08:56 UTC · original
Follow-up on the RTX 4070 SUPER + i7-13700KF: with main
58fed37+ #89 #493 #189 #206 #469 #459 #454 #688 #464 #490 #497 #346 #483 #638 #579 #302 #489 (two small local adaptations: #493's root SRV slot now comes from #688'stake_dynamic, and #483's guard slot sits after main's variable dynamic range):DXGI_ERROR_DEVICE_HUNGabout 2 minutes in, on a DispatchMesh), default loop limit,VICTORY_D3D12_DRED=1.v_readfirstlanein divergent control flow (81), lane mask holding lanes elsewhere read as data (75), descriptor read only as data (60), cross-lane wave operation in divergent control flow (51), structured buffer of unknown stride (41).no dynamic slots for its tablesa few times.🤖 Generated with Claude Code
@LooperSalty on GitHub · 2026-11-24 11:01 UTC · original
Cause of the world-entry hang found on our RTX 4070 SUPER (diag build of main
58fed37+ the stack listed above, plus #294 root UAVs, #709, #571, #452, #581):XboxBvhBuilder/ResetToIndexBufferdebug path, and it is dispatched fromXboxBvhBuilder.dll's build path (BuildRaytracingAccelerationStructure). It only writes a table of consecutive indices (0..6143 here); the builder's later passes (e.g. a split-instances pass reading that table through a root UAV) are partly translated, partly dropped, so the passes that do run wait on data that never comes and the list exceeds the 2 s TDR.XboxBvhBuilder(35 programs here) removes the hang: more than 3 minutes past that point with no device removal, the other root-UAV programs still running. Ray tracing is lost, which the black scene does not show yet.So on NVIDIA, until the whole builder translates, it may be safer to drop it as a unit than to run part of it. Our local switch is
VICTORY_SKIP_BVH_BUILDER=1(it matches the marker in the raw container); happy to open a PR if useful.🤖 Generated with Claude Code
@Revens2 on GitHub · 2026-11-24 12:11 UTC · original
status: victory-lead
Same GPU family here (RTX 5070 desktop, Windows 11, title build 1.0.2.1), upstream
mainatffe310e, release +--features diagnostics, debug layer on.The debug layer names the mechanism: it is a TDR, not an invalid command
The 0x887A0004 in the engine's own line is just the first HRESULT of the chain.
The pipeline library is not the cause
Cold library (1173 pipelines built, 55 MB): device removed after 30 lists. Warm library (770 loaded, 382 built): after 12 lists, with 39 slow submissions. Same failure. Discarding a stale
pipelines/does remove the 117LoadPipeline: the pipeline state desc ... does not matchwarnings quoted above, so that part is a stale-cache artifact and not a hint about the hang.The capped-heap drops are a second, separate bug
The title's view heap has 1,245,184 slots against the host's 1,000,000, so the capped path in
HostHeap::newkeeps onlyMIN_DYNAMIC(2^16). Measured here: 14 noAI-assisted (victory-ops harness)
@xFIR3x on GitHub · 2026-11-24 17:45 UTC · original
Desktop RTX 5070 Ti: hang at first 3D draw on upstream main; the anyxboxx/stable fork with VICTORY_CAPPED_DYNAMIC=262144 got past it
Upstream main
ffe310e: the intro video plays, then the GPU device is removed (0x887A0006). With DRED: host view heap capped at 1000000, then the hang at command 3 of 88, a DispatchMesh with mesh 4adfa13bea1c556a, whose u8/u9 resolve to null heap slots (log excerpt included).LooperSalty/victory anyxboxx/stable 9a9eab0 + VICTORY_CAPPED_DYNAMIC=262144: no device removal. It reached the first cutscene (credits visible, scene black, about 1 fps, ~2,420 draws/frame) and ran about 13 minutes until I closed it.
I didn't test CAPPED_DYNAMIC alone on main, so I can't separate it from the fork's other PRs.
AI-assisted test report (Claude Code, Claude Opus 5.5)…
@Marvisak on GitHub · 2026-11-25 01:46 UTC · original
Automated triage for the maintainers.
UNORDERED_ACCESS(debug layer ids 538 / 527) beforeDXGI_ERROR_DEVICE_HUNGon world entry: same failure as #199, where it is tracked. It is still present inmain: incrates/victory-gpu/src/indirect.rsthe argument buffer is movedUNORDERED_ACCESS -> INDIRECT_ARGUMENTbefore an indirect execution, anddone()moves it back toUNORDERED_ACCESS. The host copies of title buffers are otherwise never transitioned, so vertices in the same heap are left in the UAV state. Open PR #334 addresses this. It needs a rebase, and runs in this thread show it does not prevent the hang on its own.+0x23cf683write-to-null crash on closing the window is a separate failure.A re-run on current
mainwith the commit hash (git rev-parse HEAD) and the Windows build number would help #199.Generated by Claude Code