RTX 5070 Ti: menus at 30 fps, then TDR (DEVICE_HUNG); DRED output + 1M shader-visible heap cap on NVIDIA #16
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#16
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?
@MaurycyBartczak on GitHub · 2026-11-23 23:02 UTC · original
Setup
015d45b, built with the pinned toolchain (--locked);cargo test --workspace220 passed, 0 failedbuild unknown (b99f876b…), same as #5)victory.exe run <...>\game_scarlett_master.exe --execute. As far as I know this is the first NVIDIA report that reaches the menus: the title boots, shows its first screens at 30 fps, then the GPU hangs.What happens
Two runs, same result:
0x887A0006). The System log shows nvlddmkm events 153 and 13 at the same second.--profile diag --features diagnostics) withVICTORY_D3D12_DEBUG=1 VICTORY_D3D12_DRED=1: device removed after about 45 s. The debug layer reportsDXGI_ERROR_DEVICE_HUNG(TDR), not an invalid command.Both times the last warning before the hang is a
slow host submission(529 ms / 516 ms, 4 lists) with the same pipeline set, includingcompute 052a2316a03b9ba1and the pairsvertex d166c341988178de / pixel e370f602fa0db9b2,vertex 0602c2384acbb3b2 / pixel a78d088fa55aa495,vertex 571fe570756bc393 / pixel 02c6cf86ca283ce1,vertex 58d926085fca4999 / pixel edc1cad8ffb79bc9,vertex 6719e1bc1f82443a / pixel a1f23b1756077215,vertex d5b1bcfe40fd84b2 / pixel fb0b42420f99e5e7,vertex dfafaf385b2f94e8 / pixel 06295fb1d1aefb78.DRED (diagnostics build):
Possibly NVIDIA-specific (from the same diagnostics log)
host view heap capped at 1000000 error=0x80070057 count=1245184, and the debug layer:CreateDescriptorHeap: NumDescriptors 1310720, but the limit for shader visible view heaps is 1000000. NVIDIA's driver caps at 1M; AMD allows more, so this would not show on the RX 6700 XT. If the title (or the translated shaders) index past 1,000,000, reads would hit outside the heap — a plausible cause of a hang.CreateCommittedResourcewithALLOW_UNORDERED_ACCESSonB5G5R5A1_UNORMandALLOW_RENDER_TARGETonB4G4R4A4_UNORMfail;no host texturefor two 2560x1440 targets (formats 86 and 115).view the host does not allow unordered=true format=53 flags=2.method not implemented object="device"slots0x218and0x1c8;a host DLL outside the host policy: refused dll="rpcrt4.dll";buffer view not on an element of its host copy offset=4453008 element=32.Full diagnostics log available on request (~400 lines, engine/driver messages only).
AI-assisted (Claude Code); no game files attached.
@FIocker on GitHub · 2026-11-23 23:09 UTC · original
Same hang here on an RTX 5080 (driver 621.1), and I think it is the two refused textures you listed. With the patch below the title no longer hangs at the menus here.
Why. NVIDIA's D3D12 driver has no
TYPED_UNORDERED_ACCESS_VIEWsupport forB5G5R5A1_UNORM(86) and noRENDER_TARGETsupport forB4G4R4A4_UNORM(115); the title creates both at 2560x1440 (flags 0x5 and 0x1). Withno host texture, the descriptors that name them point at nothing, anddraw::State::set_targetsskips the slot withcontinue, so every render target after a missing one moves down a slot. The DRED trail then stops on the same 6-vertex quad as yours (vertex 0602c2384acbb3b2 / pixel a78d088fa55aa495, sampling the 3840x2160 R8G8B8A8 target). WARP, which accepts both formats, runs past that point. None of the shaders in that submission has a backward branch, DRED has no page fault and the debug layer reports nothing, as in your log.Fix (in the patch):
resource::host_texture: whenCreateCommittedResourcefails, askCheckFeatureSupport(FORMAT_SUPPORT)which of the RT/UAV uses the format lacks, and create the texture again without them (logged once per format and flags). Nothing changes for textures the host accepts.draw.rs: a render-target slot whose texture is missing or has no render-target use binds a null RTV (writes discarded) instead of being skipped, so later targets keep their slots.list.rs:ClearRenderTargetViewon such a texture is skipped. Views of it are already refused byfits, andlegal_foralready drops the RT state bit.Result on the RTX 5080 (release and diag builds, no input): first-boot screens and menus at 30 fps for about 2.5 min, loading-screen artwork renders, then the title loads into the world (about 500 draws per frame, mesh pipelines, 0.1-0.2 fps). It runs there until the device is lost on the first world mesh pass, which looks like the README's AMD world failure, not this one. Black frames still alternate with drawn ones in the menus.
On the 1,000,000 shader-visible heap cap you mention: I see the same
host view heap cappedline and have not ruled it out for the world failure yet.cargo test --workspacepasses with the patch (214 passed, 0 failed). It needs nothing else from my branch.Patch (git format-patch, against
e8f3b1c)AI-assisted (Claude Code). Own copy of the title; no game data in this comment.
@MaurycyBartczak on GitHub · 2026-11-23 23:20 UTC · original
Thanks @FIocker, I tried the patch on the RTX 5070 Ti (driver 621.24).
Applied cleanly on
d348b9a, release and diag builds,VICTORY_D3D12_DEBUG=1 VICTORY_D3D12_DRED=1.The texture part works here too:
But it still hangs, at a later point. First-boot screens run at 30 fps. The hang comes right after I accept the legal/privacy screen, about 59 s in (before the patch: about 45 s in the diag build, without input). It is still
DXGI_ERROR_DEVICE_HUNG(TDR). DRED has no page fault, and the debug layer reports nothing new before it.Notes:
compute 052a2316a03b9ba1is in the hung submission in all three of my hangs: the two before the patch and this one. It is bound from about frame 33 and runs fine for about a minute before that, so it may simply run every frame rather than being the cause.slow host submissionof about 500 ms.host view heap capped at 1000000(title wants 1,245,184 / 1,310,720) is still there.AI-assisted (Claude Code); no game files attached.
@regiumlepidi on GitHub · 2026-11-23 23:24 UTC · original
Measured what this issue (and @FIocker's patch) rests on, without the title: a small D3D12 program that asks each adapter of one PC about the formats and the heap size. Same CPU as the report (Ryzen 7 9800X3D), whose iGPU is an AMD RDNA2 part, so both vendors are on one machine.
Hardware: NVIDIA GeForce RTX 5070 Ti 16 GB, driver 617.42 (32.0.16.1742); AMD Radeon(TM) Graphics (9800X3D iGPU, RDNA2, 1002:13C0), driver 32.0.21030.2001; Windows 11 Pro. Both report resource binding tier 3.
TYPED_UNORDERED_ACCESS_VIEWRENDER_TARGETRENDER_TARGETTYPED_UNORDERED_ACCESS_VIEWALLOW_UNORDERED_ACCESS0x80070057ALLOW_RENDER_TARGET0x80070057ALLOW_UNORDERED_ACCESS0x800700570x80070057DYNAMIC)0x800700570x80070057(B5G6R5_UNORM behaves like B5G5R5A1 on both: render target yes, typed UAV only on AMD.)
So on this driver:
CheckFeatureSupport(FORMAT_SUPPORT)predicts exactly which committed textures fail, which is whatunsupported_usesin the patch relies on.HostHeap::newfalls back toPORTABLE_VIEWSand keeps 934,464 title slots (1,000,000 −DYNAMIC), so views 934,464..1,245,183 are left out on NVIDIA only. That is still there onmain(descriptor/host.rs,8c26061); I have not checked whether the title reaches those slots.The patch on current
main: it applies cleanly to8c26061("GPU: the world stays up…"), not only toe8f3b1c.cargo test --workspace(pinned 1.98.1, debug) on the RTX 5070 Ti: 222 passed, 0 failed, 3 ignored with the patch, the same as8c26061without it. Those tests do not reachhost_texture's fallback, and the GPU diff tests skip here (noVICTORY_CONSOLE_DXC).Not tested: the title (I have no dump), so nothing about whether the patch removes the hang on this card; the debug layer's view of a null RTV whose format differs from the pipeline's
RTVFormats.The probe (Rust, windows 0.62.2)
AI-assisted (Claude Code, Claude Opus 5.5): wrote and ran the probe and the tests, and this comment. No game data.
@artor410 on GitHub · 2026-11-23 23:13 UTC · original · edited 2026-11-23 23:25 UTC
Update: #21 already covers the heap-cap part (tables past the capped host heap are made afresh, tested on an RTX 3080), so I'm not opening a duplicate. A page-remap alternative (title pages mapped into the 1M host heap, no per-frame dynamic slots) is on artor410/VIctory branch
descriptor-page-remapin case the dynamic slots run short in the world. (AI-assisted, Claude Code.)@Nostyxx on GitHub · 2026-11-23 23:28 UTC · original
Tested @FIocker's texture patch on an RTX 3080 (driver 32.0.16.2114, Windows 11, title 1.0.2.1), on top of
e8f3b1c. For the heap cap I used #21, not anything else from FIocker's branch: the build ise8f3b1c+ only the texture patch from this issue, then the same with #21 merged in.diag build,
VICTORY_D3D12_DEBUG=1 VICTORY_D3D12_DRED=1, clicking through the screens by hand.no host texture(86 / 115)made without themDXGI_ERROR_DEVICE_HUNG)So the texture part works here too, and the hang that is left with it alone looks like the heap cap: the patch-only run still logs
NumDescriptors 1310720, but the limit for shader visible view heaps is 1000000, and its DRED trail stops on the samedraw 6x1 [vertex 0602c2384acbb3b2, pixel a78d088fa55aa495]as before. That may also be the later hang @MaurycyBartczak saw with the patch.On the open question from @regiumlepidi: the debug layer printed nothing about null render target views in either run (I did not log how often one was bound).
Something else in the world on NVIDIA, separate from both fixes: the combined run logs 73
host pipeline refusedfor compute shaders, with the debug layer sayingShader wants wave lane count of 64(NVIDIA has 32). In the world the title then stops responding and the sound stutters.cargo test --workspacepasses with the patch.AI-assisted (Claude Code). Own copy of the title; no game data in this comment.
@kleinerleuge-eng on GitHub · 2026-11-23 23:29 UTC · original
Another RTX 5070 Ti, this time on current
main(8c26061release,1dd7afddiag) without the format/RTV patch from this thread. On this machine the hang now happens in the world, not in the menus.Setup: RTX 5070 Ti, driver 621.01 (32.0.16.2101); Ryzen 7 9800X3D, 32 GB; Windows 11 Pro 26200 (German locale). Xbox Series 1.0.2.1,
build unknown (b99f876b…)as in #5.victory.exe run <...>\game_scarlett_master.exe --execute, no input.What happens (two runs, same result):
0x887A0006(DEVICE_HUNG) about 85 s (release) and 60 s (diag) after the last 30 fps frame. Both times oneslow host submissionof about 4830 ms comes right before it (14 lists in release, 28 in diag). So this is the TDR, not a fault.host view heap capped at 1000000and twono host texture(0x80070057).015d45bthis machine hung in two of three runs with the pipeline set from the issue body (compute 052a2316a03b9ba1plus the vertex/pixel pairs). The slow submissions there were 6663 ms and 4850 ms, with 4 lists each. That set no longer shows up in the hung submission on8c26061.DRED (diag build,
VICTORY_D3D12_DRED=1), summarised:1921f28ef78e3a4b / 80b3065a4477c8c4pair. I have not verified that.null, which are the new typed null descriptors from8c26061.9146291b38ea9ce1(in every hang on8c26061),362753554f3ad60b,9938c251a313fe28,6b48bef1005f4f2f,81e79f687ae84943,f7f9f22551967b84,98888f39b68dbfde,6a62009bc6a4146e. Mesh/pixel pairse59d263ea2af2987/c100f3c699648196,dbbc6ccc56963935/74d016634e50b80e,dbbc6ccc56963935/fb93cb23cbe58dc0,99daf52a34e3b6a4/4479187af47f2660,e70dcdec3cdcb398/24453153db030f99.I can run patched builds here if that helps. The full DRED report is available on request.
AI-assisted (Claude Code); no game files attached.
@MaurycyBartczak on GitHub · 2026-11-23 23:41 UTC · original
Update on the RTX 5070 Ti (driver 621.24): with #21 merged (
97c78d1), and without FIocker's texture patch, the title gets past the legal screen and loads into the world, both in the release and in the diag build. The picture is black and sound plays: the known world state. So on this card #21 alone is enough to get past the menu hang. I haven't retested it together with the texture patch on97c78d1yet.The device is then lost in the world, about 30 s after it starts drawing the world (
DXGI_ERROR_DEVICE_HUNG). This is the diag build withVICTORY_D3D12_DEBUG=1 VICTORY_D3D12_DRED=1:Also logged in the world, as Nostyxx saw on the 3080:
host pipeline refused, compute, debug layerShader wants wave lane count of 64 but maximum wave lane count for device is 32an address in an SGPR that is no root parameter64-bit image atomic(2),lane-mask join of an untracked mask(2),a descriptor read only as data(1),barycentrics read directly(1)indirect execution dropped(first time per signature)AI-assisted (Claude Code); no game files attached.
@kleinerleuge-eng on GitHub · 2026-11-23 23:43 UTC · original
Follow-up on the same RTX 5070 Ti (driver 621.01), now on
97c78d1with #21 merged, release build:slow host submission ms=5990 lists=27, then0x887A0006(DEVICE_HUNG). This matches the DRED run above, where no view-heap index in the stuck lists was past the cap, so #21 was not expected to change it.Across four runs (
8c26061→97c78d1) the world hang hit three different submissions: mesh passes (DRED: op 42 between barriers 107..175), a compute-only list of 1, and a mixed list of 27. In every run it is a single submission of about 4.8–6.6 s, i.e. a TDR. The time to the hang shrank from about 85 s to about 20 s, probably because the shader cache warms up and the world is reached sooner.AI-assisted (Claude Code); no game files attached.