Linux/Wine (Proton 11.0, NVIDIA): frame 1 presents, then null deref at libvkd3d-1.dll+0x3e7b0 right after device slots 0x1c8/0x218 E_NOTIMPL #829
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#829
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?
@cobrajet302gt on GitHub · 2026-11-24 11:45 UTC · original
Hardware / host
victory.exebuilt on Linux,--target x86_64-pc-windows-gnu, rustc 1.99.1, HEADffe310e— cross-build was clean; useful data point for #232's interim Linux CIVICTORY_D3D12_WARP=1and native-adapter runs both testedResult
Boot is far along:
imports bound ... 0 missing(88 hle + 427 host + 72 title), all four title DLLs mapped incl. Bink,D3D12.X device version=0x20004,host D3D12 device ready, DirectStorage queues created, frame 1 presented, the title's own Breakpad handler installed (Victory correctly blocks its telemetry phoning-home).Then, every run, both WARP and native:
Same fault offset across WARP and native adapter runs (3/3 repro, current HEAD). This matches the mechanism discussed in #518 (closed):
E_NOTIMPLleaves the title's out-parameter uninitialized; the title hands it to vkd3d, which dereferences null. #417/#29 show AMD/MS-D3D12 users get past this point to menus — suggesting either the slots behave differently on MS D3D12 or vkd3d-proton hits the null where MS's runtime tolerates it.Asks
0x1c8/0x218(indices 57/67) — D3D12X-proprietary beyond theID3D12Devicesurface?missingfallback zero-fill out-parameters alongsideE_NOTIMPL, to contain this class of downstream crash regardless of which side fixes the slots?victoryINFO traces, both adapter modes) available.Caveat per #778: NVIDIA subgroups are 32-wide, so wave64 behaviour here is emulated — but the crash precedes any wave64-heavy work (first frame).
@desplmfao on GitHub · 2026-11-24 11:51 UTC · original
libvkd3d-1.dllis Wine's own D3D12 implementation (upstream vkd3d, the builtind3d12.dllinfiles/lib/wine/x86_64-windows/), not vkd3d-proton. Under Proton on Linux (CachyOS, RTX 5080, proton-cachyos 11.0) I don't hit this crash, and the difference is which D3D12victory.exeloads:d3d12.dllandd3d12core.dll(3.2.0, from Steam'sProton - Experimental/files/lib/wine/vkd3d-proton/x86_64-windows/) next tovictory.exe. The ones infiles/lib/wine/x86_64-windows/are Wine's builtins, the ones you're getting now.WINEDLLOVERRIDES="d3d12,d3d12core,dxgi,d3d11,d3d10core=n,b", so those native copies win over Wine's builtins.VKD3D_FILTER_DEVICE_NAME="RTX 6000"(or a substring of the adapter name) pins the adapter when two GPUs are in the box.With that, the log should show
vkd3d-protonlines (e.g.vkd3d_instance_init: vkd3d-proton - build: …) instead oflibvkd3d-1.dllin the fault. The bundled vkd3d-proton in older proton-cachyos builds produced bad SPIR-V for a few title shaders on NVIDIA here, which is why I use 3.2.0. The rest of the Linux setup, including awineserverpatch that makes it about 4× faster, is in #340. I build withx86_64-pc-windows-msvcvia xwin, so I can't say whether thegnutarget changes anything here.AI-assisted (Claude Code).
@cobrajet302gt on GitHub · 2026-11-24 12:27 UTC · original
Follow-up — A/B on vkd3d-proton build (single-variable experiment), to preempt "try a newer vkd3d":
Same driver stack (Proton 11.0 wine + prefix), same victory HEAD, one variable: swapped prefix
d3d12/d3d12core/libvkd3d*from Proton 11.0's build (libvkd3d-1.dllsha256f6e09a14…) to Proton-Experimental's newer bundled build (a0ffb5d2…).Result: identical failure class, relocated — first frame presents, then
0xc0000005reading0xffffffffffffffffatlibvkd3d-1.dll+0x3fbd0(vs0x0at+0x3e7b0on the older build). Same site, recompiled; the null/-1pointer reaching that deref is still produced on the late-October vkd3d-proton build.So: not a build gap on our side, and "upgrade Proton" won't cross it. Reinforces ask 2 in the body — zero-filling out-parameters on
E_NOTIMPLwould contain this upstream of vkd3d regardless of which side ultimately implements slots0x1c8/0x218. Happy to re-run any probe against either vkd3d build; both are pinned here.@fiestorra on GitHub · 2026-11-24 13:34 UTC · original
The two call sites in the title are described in #417 (same build id). Short version for this thread: both are called with three arguments, the last one an out parameter on the stack, both read the object pointer from the same writable global in the title's image, and both pass the
E_NOTIMPLto the same subroutine before branching on its sign — on Windows the title reports it and continues, which is why the WARN lines are non-fatal there. What a run here cannot tell is which method the offsets are; the argument values at the moment of the call would say that.Written with an AI assistant.
@cobrajet302gt on GitHub · 2026-11-24 13:41 UTC · original
Two additions: a third-platform confirmation, and the argument values — measured on Linux (Proton 11.0, vkd3d-proton, NVIDIA RTX 6000 Ada), same build (
b99f876b…), with a ten-line local patch to themissingstub loggingrcx/rdx/r8/r9, which is the whole ask and worth upstreaming.Platform three. Our runs log exactly
0x1c8and0x218as missing and no others — same caller offsets+0x247757e/+0x24800db. Three platforms now agree on these two coordinates (Windows/AMD per #417, and vkd3d-proton on Linux/NVIDIA here).Measured arguments (win64: a1=rcx receiver, a2=rdx, a3=r8, a4=r9):
a1 identical in both (the receiver from the writable global — here it is the host device proxy, not a title address); a3 identical in both — a static operand inside the mapped title image; a4 is a stack address each time. That confirms the static reading byte-for-byte on a second machine.
Ground truth for the static region, scanned in our copy of the exe. The two GUIDs sit back-to-back in
.rdataat exactly RVA+0x61e0668(c3827890-4024-474c-98cf-645b51dc4874) and+0x61e0678(c36a797c-ec80-4f0a-8985-a7b2475082d1); the shared operand is 0x30 bytes past the second one, and the neighbourhood is a table of image-relative pointers, which likely explains the byte range and the 0x100 period. (Runtime note: ourr8reads as module-relative+0x61c06b8— exactly 0x200000 lower than the file RVA — because the title runs from a re-backed copy the loader maps from the converted image; same operand, different backing.)What the pair names. Cross-checking public sources from the same build:
c3827890-4024-…-645b51dc4874is the consoleID3D12GraphicsCommandList6IID (XCL's handoff notes; palmetto'sd3d12_xs_device.cppcalls it "the console command-list IID the retail 1.0.2.1 exe asks for at CreateCommandList"; AnyXboxX's first-boot table measures it asriidat device slot 73, PCID3D12GraphicsCommandList6beingc3827890-e548-4cfa-…), andc36a797c-…is the plain publicID3D12CommandSignatureIID (vkd3d's own idl). So the blob both calls carry sits in a console-GCL6 / command-signature context, and site A's shape — range object, 16 MiB granularity, 4 GiB constant, signature-shaped static record, out param, then a 128-byte walk — reads like a console command-signature/indirect-arguments creation path; site B's returned out value reads like a lookup on the same family. That is hypothesis, not naming — the SCARAB catalogue's own rule (log slot + raw args, refuse, confirm by trace) is the honest way, and #178's indirect-argument-clamp work suggests the title's indirect machinery really does come through this neighborhood.Patch offer: the four-register logging is
object.rs'smissingtaking(usize, usize, usize, usize)and adding one field to the existingwarn!— happy to PR it against current HEAD if useful; every future slot mystery gets named faster with it.Written with an AI assistant.
@cobrajet302gt on GitHub · 2026-11-24 14:32 UTC · original
Cross-confirmation from our side, plus a correction to my last comment.
@JFIREonFIRE's naming (both slots = console pipeline-state pre-creation,
riid = IID_ID3D12PipelineState) is confirmed independently — at file level — by the static operand we measured an hour before their comment landed. Ourr8was0x6ffff8c006b8with the title image mapped at0x6ffff2a40000, i.e. module-relative+0x61c06b8, which is+0x61e06b8in the file image. Hexdumping that exact address in our copy of the exe gives, at offset 0:— the
ID3D12PipelineStateIID itself. So the shared operand both calls carry is a pointer to that GUID:(device, desc, &IID_ID3D12PipelineState, ppv), exactly the shape described. My earlier "command-signature family" reading was wrong — the neighbouring GUIDs (c3827890-…at+0x61e0668,c36a797c-…at+0x61e0678) are nearby constants, not the argument. Third machine (Linux, Proton 11.0, RTX 6000 Ada), same buildb99f876b…: consistent.One consequence for this issue: if
E_NOTIMPLon these two slots is the designed fallback (title pre-creates ~28k PSOs, fails, re-creates on first use) and that path is non-fatal on machines that get to menus — then the deterministiclibvkd3dnull-deref we logged immediately after the pair is more likely downstream of the fallback (on-first-use PSO creation through the host device) than of the two slots themselves. The crash coordinates (0xc0000005reading0x0/0xffffffffffffffffinsidelibvkd3d-1.dllafterframe=1) and both DLL builds' behaviour are pinned in the comments above; happy to run any instrumented build against it, and the four-register logging patch from my last comment is still on offer.Written with an AI assistant.
@cobrajet302gt on GitHub · 2026-11-24 15:04 UTC · original
Root fault, symbolized — it is not the two slots. A first-chance
0xc0000005fires inside the host swap-chain path on the present thread; the title's own crash handler then faults while unwinding it inside Wine'sdbghelp.dll(dbghelp+0x1fe75,movq (%rcx),%rax,rcx=0xffffffffffffffff), which is why reports showdbghelpon top. The real chain, from the exception record + Wine's SEH unwind:Faulting registers:
rax=rcx=0xfe976f3ffd9f0caa rdx=0xfffffffb r8=r9=0(bundled build:rcx=0 rdx=0xfffffffb). Sequence each run: device ready → HDR/SDR →frame presented frame=1 draws=0→ (second)CreateSwapChainForHwndfrompresenter→ fault. Pipeline-creation traces from other threads fill the log concurrently — unrelated noise.So on vkd3d(-proton) hosts the death is in the swap-chain create path reaching into vkd3d with something null/sentinel, right after the first present; the slot pair is non-fatal exactly as argued above (and matches the RTX 3090 report in this thread — worth checking whether that crash's top frame is also
present → CreateSwapChainForHwnd).Two things that would help from your side: (1) the function containing
+0x3fbd0in the vkd3d-proton build pinned to your Proton (the DLLs are stripped here; both bundled and Proton-Experimental builds fault, at different offsets, same register signature); (2) whetherpresenterre-creates the swap chain on a trigger the first present sets (mode change? second queue?) — the first present succeeds, the second create dies.Caveat we can't rule out from headless runs: our host is Xvfb 1920x1080x24 with no real display behind it. A GUI X/Wayland run — or Windows, where DXGI sees a monitor — that does not fault would localize this to display enumeration; the 3090 report suggests it's not display-specific, but it's worth eliminating. Happy to run any instrumented build again on our side; repro is now 100% (5/5 across two vkd3d builds, WARP and native GPU).
Written with an AI assistant.
@cobrajet302gt on GitHub · 2026-11-24 16:33 UTC · original
Resolved on our machine — and our earlier chain was misread; the correction is useful. Two layers hid the real one:
files/bin/wine(bypassing the Proton launcher) loses the DXVK DLL search-path, sodxgi.dllresolved to Wine's builtin — and the builtin's D3D12 backend is upstream vkd3d (libvkd3d-1.dllnext towined3d.dll). So ourlibvkd3d-1.dll+0x3e7b0/+0x3fbd0faults were never vkd3d-proton at all — @desplmfao's early comment in this thread was exactly right, and my "both vkd3d-proton builds fault" framing was wrong: withWINEDLLOVERRIDES=d3d12,d3d12core=n,balone, the present path still went through builtin dxgi → wined3d → upstream vkd3d.dxgi.dllfrom Proton 11.0's own tree moved the fault todxgi.dll+0x1c7ccas0xc0000094(integer divide-by-zero) on the secondCreateSwapChainForHwnd— that reproduces on any display Xvfb can be configured for (Xvfb reports0.00 Hzmodes and rejectsxrandr --newmode, so mode-list math divides by zero regardless ofdxgi.forceRefreshRate).What works: stock DXVK 3.1.1
dxgi.dll(sha256e3c1178eb7f0dd59…, the same build another Linux reporter in #841 runs). With it, on this rig (Proton 11.0 wine + self-built vkd3d-proton masterd3d12/d3d12core+ stock 3.1.1 dxgi +VICTORY_PRESENT_1440P=1):— a full 240 s run, zero exceptions, 30.0 fps steady, first-boot screens/voice-over territory, i.e. matching the Windows reporters' depth. Remaining WARNs are the known tail (view heap capped at 1,000,000 wants 1,245,184; unordered-view refusals;
no host texture … width: 2560, height: 1440, format: 86, which is the same scene-target refusal the black-frame thread in #841 discusses).Actionable for anyone on Linux/Proton: do not trust the bundled/Valve-fork
dxgi.dllfor this title yet — drop in stock DXVK 3.1.1's (hash above) — and if launching wine directly, overridedxginative too (d3d12,d3d12core,dxgi=n,b), otherwise the builtin silently carries the present path and every report looks like a vkd3d bug. The Proton-fork div-zero at+0x1c7ccmay deserve its own report against the Valve fork (swap-chain desc with zero refresh on a 0 Hz mode source).Apologies to the thread for the vkd3d-proton misdirection — the register signature was real, the module attribution was a Russian-doll of DLL resolution. Written with an AI assistant.
@Machad3x on GitHub · 2026-11-24 17:09 UTC · original
Finding on an RTX 3080 Ti (fork Machad3x/VIctory, branch claude/gta6-shader-translation-crashes-705550): the ~4800 draws+dispatches per world frame that are dropped 'without a host pipeline' (about 60% of everything the title submits) are compute dispatches of pipelines created through device slot 0x218 (DeserializeComputePipelineStateX, create_compute_native), and the caller is the TITLE's own job threads, not amd_fidelityfx_* or bink2scarlett: the game creates its compute shaders as native RDNA programs. Counted per creating method over 100 s: 2048+ calls through slot 0x218, none through plain compute, graphics or stream creation. Each description (Leonida docs/fspx.md layout: +0x00 root signature, +0x08/+0x10 kind 0 dispatch state 28 B, +0x28/+0x30 kind 6 program 384 B to 13.7 KB, +0x38/+0x40 kind 7 records with the 0x43 digest) is answered with a pipeline with no shaders, so every dispatch of it is dropped; none of the digests' DXBC containers was ever seen by CreateComputePipelineState. A 200 s run dumped 2680 distinct native programs (120 MB). So these are the culling, visibility and lighting passes the 3D shots need, and translating FSPX/native programs (NativeProgram from kind 0 words 3/4/5/6, kind 6 after the 36-byte prologue, the layout from the serialized root signature) looks like the biggest remaining item; nothing in the open PRs covers it (searched FSPX, native compute, DeserializeComputePipelineStateX, 0x218). Also related: the final 3840x2160 target is the FSR output and stays black; #730 plus a bilinear fallback is on the fork.
@pablogonz12 on GitHub · 2026-11-24 23:12 UTC · original
The ask both of you made here — log the argument registers of the stub behind an unimplemented slot — is up as #1839 (crates/victory-gpu/src/object.rs). It takes the receiver and rdx/r8/r9 and adds them to the existing once-per-slot line, so a report can tell a GUID pointer or a module address from flags, a count or an out pointer without a local patch.
method not implemented object="device" slot=0x218 caller="+0x24800db" args=...
Verified on Linux/Wine 11.0 (vkd3d-proton, RADV, RX 9070 XT): victory-gpu lib tests 79 passed / 0 failed / 1 ignored, clippy clean both feature sets. It does not touch the crash itself, which the follow-ups here traced to the builtin dxgi.
AI-assisted (Claude); numbers from this machine.
@Marvisak on GitHub · 2026-11-25 03:48 UTC · original
Automated triage for the maintainers. Per the reporter's follow-up, the fault was in the Wine/Proton present path, not in VIctory. Wine's builtin
dxgi.dll(upstream vkd3d) or Proton 11.0's DXVKdxgi(divide by zero on a 0 Hz mode) faulted inCreateSwapChainForHwnd, called frompresenterincrates/victory-gpu/src/host.rs. With stock DXVK 3.1.1dxgithe run reached frame 4096 with no exceptions. Wine/Proton setups are collected in #340.On the asks:
0x1c8/0x218are still not written onmainand go toobject::missing, which logs once and returnsE_NOTIMPL(see #417).Some comments here quote bytes and constants read from the title's executable, and describe its internal program formats. Material from the game or the console SDK must not be posted in this repository; please describe programs by shader hash and slot only.
Generated by Claude Code