RTX 4060 Laptop: 435 runtime shader translation failures, then host device removed at world load #1579
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#1579
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?
@imrealynailong on GitHub · 2026-11-24 19:26 UTC · original
RTX 4060 Laptop: 435 runtime shader translation failures, then host device removed at world load
Environment
32.0.15.6607(Vulkan1.3.289,driverInfo 566.07)262001.98.1(pinned byrust-toolchain.toml), MSVC 19.43ffe310egame_scarlett_master.exeSHA-256e95020b2fa4a721db3df59fdecf75621730ac559d8835252f6c3b658d5a08993What works
The first-boot flow is solid: boot, accessibility/language/settings/legal pages, 30 fps / 33.3 ms/frame / 21 draws/frame, continuously for 628 s before the world-load failure. This matches #653 and #314 exactly, on a card neither of them tested.
What happens
Log tail:
Process exit code:
0x887A0005.Worth flagging: the process exits with
0x887A0005, while the host layer logs0x887A0004/0x887A0006, on the hardware adapter (noVICTORY_D3D12_WARP). #653 records0x887A0006for the real GPU and0x887A0005for WARP; this run got0x887A0005on hardware, so the outer code may not be a reliable WARP indicator.Runtime translation failures: 435
Every failing shader logs one
victory_gpu::pipelinewarning. Counting them in this run:By reason:
a select on an untracked maska lane mask holding lanes elsewhere read as dataa descriptor read only as dataa structured buffer of unknown stridean address in an SGPR that is no root parametera scalar memory read as dataan address not from a root parametera 64-bit image atomican address from a phia lane mask read as dataimage_gather4_la descriptor's address or format read as dataa lane-mask join of an untracked maska descriptor read from the first lane of computed VGPRsimage_sample_d_clThe top two (
untracked mask,lane mask holding lanes elsewhere) are 172 of 435 — the same two that lead #653's table (88 and 80 there). Everything else in my run is a smaller long tail than #653's, and notably the lane-mask pair is more dominant here (40%) than there (50% combined was 88+80 = 168 of ~375, similar).translatereports 100% on the same buildvictory translate <game> --listover the whole package:Zero failures, immediately before a run that fails 435. So
translatedoes not see the programs that actually break the world load. Perdocs/architecture.mdshaders are translated at pipeline creation from the bytes the title passes, wherever it loaded them from — these 435 are evidently not in any containertranslatewalks.This matters for users:
26148 of 26148 translatedlooks like a clean pre-flight and is not one. If the gap is by design, a line in thetranslatesummary saying how many containers/files it could not reach would stop it reading as a green light.Sample hashes and sites:
The submission that kills the device
11 lists, 2258 ms, first-using a batch of compute pipelines plus mesh+pixel pairs and a few vertex+pixel pairs:
Different shape from #653 (31–32 lists there, 11 here), same phase. The 2258 ms slow submission immediately precedes the removal — consistent with #1082's suggestion of logging the TDR settings.
Ruled out on this machine
--console series-s: identical failure.rpcrt4.dllrefused by the host policy: adding it toHostPolicy::default()silences the warning and changes nothing else; the world-load removal is unchanged. Reverted.appdata0.rpfplacement: this was the cause of an earlier0x80000003attitle+0x2237178(issue #12). Fixing it reached the menus; it is not related to this failure. Confirming #12's finding on a third machine.Ask
a descriptor read only as data(62 here, 62 = 14% of my failures) known/expected, or new relative to #653's table? It does not appear in that issue's top five.--features diagnosticsbuild withVICTORY_D3D12_DEBUG=1+VICTORY_D3D12_DRED=1identify the offending command? Happy to run it and paste the DRED breadcrumbs.VICTORY_SKIP_PIPELINES=<hash>,...over the compute pipelines in that submission to see whether the removal follows one in particular? If so, which subset is most useful — the 370 compute failures, or the 18 that were first-used in the killing submission?Getting to a 30 fps menu on a 4060 Laptop was already a great result — thanks.
@imrealynailong on GitHub · 2026-11-24 19:40 UTC · original
DRED update: the device is removed by
DXGI_ERROR_DEVICE_RESETafter 115 compute pipelines fail to create withE_INVALIDARGI ran the diagnostics build (
cargo build --profile diag -p victory --features diagnostics) withVICTORY_D3D12_DEBUG=1andVICTORY_D3D12_DRED=1. Same phase, same crash, but now the breadcrumbs name things. This substantially changes my reading of the failure in the original report.The removal itself
So on this run:
0x887A0005DXGI_ERROR_DEVICE_RESET, i.e. TDR)0x887A0007DXGI_ERROR_DEVICE_REMOVEDKernel memory failure. There might be a memory leak.breadcrumbs (done/count, list) []is empty — no command completed in the killing submission, so the fault is not attributable to one late command in it. Note the submission here is 34 lists, vs 11 in my release-build run and 31–32 in #653, so the batch size varies run to run.115 compute pipelines fail to create with
E_INVALIDARGThe far more interesting signal. The diagnostics run logs, all in
victory_gpu::pipeline::host:115 compute pipelines are refused with
E_INVALIDARGbefore the removal. Sample hashes:All 115 are
stage=computeand all are0x80070057. None of them appear in the 435 translation-failure list from the original report, so these are pipelines that translated fine and then failed at D3D12 pipeline-state creation.Also, earlier in the same run:
Null bindings in the command stream
The breadcrumbs for the lists in flight show descriptor slots that are
None/nullon live dispatches, e.g. fordf11dcd012cd7382:and
u4=0xa16a00 [heap 330576: null]/u5=... [heap 933852: null]on several dispatches. This looks like what #1522 ("clear descriptors for null constant buffers") and #336 ("dynamic descriptor exhaustion") are chasing, and it sits next to the heap being capped.Revised reading
The chain now looks like this rather than "a bad translated shader is submitted":
E_INVALIDARG, plus two 2560×1440 textures.Nonedescriptors), which is where the debug layer'sKernel memory failureand the eventual TDR come from.I am not claiming that chain is proven — step 3 is my inference from the NULLs in the breadcrumbs, not something the log states. But the 115
E_INVALIDARGPSO creations are concrete and reproducible, and they are a different lead than the translation failures I first reported.What I would like to know
E_INVALIDARGonCreateComputePipelineexpected to be rare, or is 115 in one world load a known condition? If it is the descriptor heap cap in step 1, does a larger host heap (or not capping) change it? I can test a raised cap locally if you point me at where it lives.VICTORY_SKIP_PIPELINESnow that I have a diagnostics build and can actually use it? I would like to know which of these two is the better target: the ~115E_INVALIDARGPSOs above, or the ~435 translation failures from the first report.Kernel memory failuredebug-layer message something you have seen before, and does #338's WARPE_OUTOFMEMORYshare a root with it?Full logs available on request (they are large; I would rather paste the sections you want than the whole file).
@antikohza on GitHub · 2026-11-24 19:58 UTC · original
@imrealynailong — regarding your hybrid laptop setup here (i7-13620H + RTX 4060 Laptop 8 GB, 15.6 GB RAM) hitting
0x887A0004after 11 lists:Two parts of what hits this hardware class (same laptop class profiled in #1226) are now fixed in PR #1296 (
a6f3ccb, Windows CI green):0x887A0004):D3D12CreateDevice(None, ...)defaults to the 128 MiB Intel iGPU on hybrid laptops unless overridden; #1296'sbest_adapter()probes FL 12.0 non-software adapters and creates the device directly on the discrete RTX GPU.VICTORY_TEXTURE_MIP_DROP=1on<= 8.5 GiBGPUs (verified saving ~1.1–1.2 GiB VRAM and eliminatingE_OUTOFMEMORYon 8 GB laptops in #1226 and #737).Note that your 435 runtime shader translation failures are still separate (#653 / Wave64 PRs), so you'd want those stacked too, but #1296 takes care of the adapter choice and 8 GB / 15.6 GB memory ceiling.
@imrealynailong on GitHub · 2026-11-24 20:32 UTC · original
Two experiments tried and backed out: neither fixes the world load, and one makes it worse
I tried two local patches against the world-load failure. Both are reverted; the tree is clean at
ffe310eagain. Recording them because the negative results are informative.Baseline with frame capture (clean
ffe310e, no patches)VICTORY_CAPTURE=<dir> VICTORY_DUMP_TARGETS=1, diagnostics build.Frames presented: 1,603; run: 142.9 s; exit
0xC0000005.The capture shows real content: frame 128 has 274 unique colours over a
#20202cbackground with white/grey UI text; frame 1024 has 1,051 colours (#ffffff4,906 px). So the menus and first-boot UI do render.This matters because it gives a reference point: a black capture is not the normal state on this machine.
The same run logs 115
host pipeline refused(0x80070057, allcompute) and 1host view heap capped at 1000000 ... count=1245184.The crash follows
slow host submission ms=351 lists=18, with the fault insidenvwgf2umx.dll(the NVIDIA D3D12 UMD), not in victory code. Nodevice removedline is logged on this path.Experiment 1: raise the descriptor heap cap
crates/victory-gpu/src/descriptor/host.rs:PORTABLE_VIEWS1,000,000 → 2,000,000, so a heap request of 1,245,184 is no longer truncated to 934,464.Result:
DXGI_ERROR_DEVICE_HUNG, 32 lists)So the cap change is real — it removes the truncation and the failure moves from a UMD access violation to
DEVICE_HUNG— but it does not get the world up.Experiment 2: 2M cap + skip the 113 refused compute pipelines
VICTORY_SKIP_PIPELINESwith all 113 hashes (this works in a--features diagnosticsbuild).#000000, 1 unique colourWorth noting: the skip list was taken from the 113 refusals of the 2M-cap run, and the skipped run then refused 3 different hashes (
0709e8356abd9082,e4576c6eca0f8ce3,9662515112a3f961) that were not in that list. So the set of 64-lane compute pipelines is not fixed per package — more appear as the world streams in. Any skip-list approach is chasing a moving target.This is the part I want to flag. With the skip,
VICTORY_CAPTUREover frames 1/2/4/.../2048 produced twelve 6,121-byte PNGs, each 1920×1080 with exactly one unique colour (000000). The baseline capture of the same frames had content from frame 128 on.So "skip the failing compute pipelines" does not fix the world: it removes the visible errors while the picture stays black. I think that is the worst of the three outcomes to report as an improvement, and I would not submit it as a patch.
It also means the "it ran 441 s instead of 142 s" framing is misleading — the extra time is spent presenting black frames, not making progress.
What I take away
Shader wants wave lane count of 64 but maximum wave lane count for device is 32), but they are not the only thing keeping the world from rendering, since skipping them all does not produce a picture.nvwgf2umx.dllright after a slow 18-list submission — different in character from theDEVICE_RESET/DEVICE_HUNGremovals in #653, and from the DREDKernel memory failureI reported earlier. Across my runs I have seen all three of these outcomes, which suggests the failure is timing- or order-dependent rather than one deterministic bad command.Questions
DEVICE_RESET,DEVICE_HUNG), is that expected on this build, or does it point at one latent bug with different symptoms?WaveSizehandling incrates/victory-shader/src/emit/shader.rs, which writes the attribute unconditionally at the lines around 525), or the descriptor/remapping path? I can dig into the former if it is useful, but I would rather not guess at which one you consider load-bearing.emit/shader.rswave-size path is the right target, is there a preferred way to tell the emitter the host'sWaveLaneCountMax? I did not find any existing query for it — the emitter appears to take the console's lane count only.I have capture directories and full logs for each run and can share whichever sections help.
@imrealynailong on GitHub · 2026-11-25 07:29 UTC · original
On
940d32f: the world load now fails at a named compute shader withDXGI_ERROR_INVALID_CALLI pulled 319 commits (
ffe310e→940d32f), rebuilt the diagnostics profile, and re-ran withVICTORY_CAPTUREon. The failure is earlier than onffe310e(38.5 s vs 142.9 s, 151 frames vs 1,603) but much more specific, so it may be worth a look.The sequence at failure
Three things stand out:
0x887A0001(DXGI_ERROR_INVALID_CALL) is the reason given for the removal, notDEVICE_RESETorDEVICE_HUNG. That is a different error class from the removals I reported before, and it says a call's parameters or an object's state were wrong, not that the GPU timed out.hash=4c0ac499ad613809is bound immediately before the failure. That is the same hash as in #1347 ("GPU device removed (0x887A0006) on compute shader 4c0ac499ad613809 during prologue intro") — same shader, different error code, different machine. Thea133bf0a24aff410bound just before it is also in play; I cannot tell from the log which of the two submissions carried the bad call.refused buffer view: no host copyfires twice around the failure (start=0x3789f290 len=64 element=32 count=2, thenstart=0x3789f1b0 len=96 element=32 count=3). Thed71c388guard is doing its job, but both refusals arrive after the device is already paused, so they are likely a symptom of the removal rather than its cause.Also of note, just before: the run creates a lot of depth-texture twins and copies several large shadow buffers to the host (
len=52428800,26214400,37748736,25165824×3), and pipeline creation is slow (ms=1625,980,1278,1056,1009for the rectangle-list graphics pipelines). The 38 s runtime is mostly this setup churn.Comparison across the three builds I have run
ffe310e0xC0000005insidenvwgf2umx.dll; capture shows UI (274 and 1,051 colours)ffe310e#000000;DEVICE_RESETthenDEVICE_HUNG940d32f0x887A0001invalid call, with4c0ac499ad613809boundSo
940d32fis a regression in terms of how far it gets on this machine, but it also fails with a much more legible reason. I do not know whether that is an intended trade (thed71c388guard turning a silent corruption into a clean removal) or something new; a maintainer's read would be worth more than mine.What I can do next
940d32fand report which frames have content before frame 151 (I have the directory; just have not analysed it yet).940d32fwithVICTORY_D3D12_DEBUG=1+VICTORY_D3D12_DRED=1to see whether the debug layer names the invalid call that triggers0x887A0001.4c0ac499ad613809alone (just that one hash, nothing else) and see whether the run gets past frame 151 — that would separate "this shader is the trigger" from "anything at this point would fail".Say which, if any, is useful and I will run it.
@Marvisak on GitHub · 2026-11-25 12:46 UTC · original
Automated triage for the maintainers.
Run report with the essentials (RTX 4060 Laptop and driver, Windows 11 build, commits
ffe310eand940d32f, how far it got, the removal lines), plus careful follow-up runs. Where each part is tracked:DEVICE_HUNG/DEVICE_RESETafter a slow multi-second submission onffe310e): tracked in #71, the oldest complete report.0x80070057("wants wave lane count of 64"):maindeclares the console's wave size for some compute programs (crates/victory-shader/src/emit/lower.rs,Lower::new), which a 32-lane NVIDIA host refuses; tracked in #71, with open PRs #1929, #1890 and #1922.PORTABLE_VIEWSincrates/victory-gpu/src/descriptor/host.rs(the fallback when the host refuses a larger shader-visible heap); the same cap and the slots past it are discussed in #1753.940d32f:0x887A0001(DXGI_ERROR_INVALID_CALL) after a one-list submission with compute4c0ac499ad613809bound: the same program as #1347. An invalid-call removal on NVIDIA was traced in #1753 to a typed UAV in a format the host cannot store (open PR #1763). Of the next steps you offered, the most useful is the940d32frun withVICTORY_D3D12_DEBUG=1andVICTORY_D3D12_DRED=1: the debug layer's message right beforeRemoveDevicenames the invalid call and settles whether it is the #1753 case. Please post it here.On
translatereporting 26148 of 26148: it covers the programs in the containers it walks, not programs the title builds or loads from elsewhere at run time. A note in its summary is a reasonable separate request.Generated by Claude Code