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

Open
opened 2026-11-26 04:14:01 +00:00 by github-bot · 10 comments
Owner

@⁠cobrajet302gt on GitHub · 2026-11-24 11:45 UTC · original

Hardware / host

  • Linux (CachyOS, kernel 7.2), NVIDIA RTX 6000 Ada + RTX 5080 (run used the Ada; wave64 noted below)
  • Proton 11.0 standalone (wine-11.0, prefix 11.0-100, ntsync active), bundled vkd3d-proton
  • victory.exe built on Linux, --target x86_64-pc-windows-gnu, rustc 1.99.1, HEAD ffe310e — cross-build was clean; useful data point for #232's interim Linux CI
  • Xbox Series X profile; own verified user-supplied 1.0.2.1 copy; VICTORY_D3D12_WARP=1 and native-adapter runs both tested

Result

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:

WARN victory_gpu::object: method not implemented object="device" slot=0x218 caller="+0x24800db"
WARN victory_gpu::object: method not implemented object="device" slot=0x1c8 caller="+0x247757e"
INFO victory_gpu::queue: frame presented ... frame=1 draws=0
VIctory: unhandled exception 0xc0000005 at libvkd3d-1.dll+0x3e7b0 (read 0x0: nothing mapped there)
  rax 0x0 rbx 0x2c5fdb70 rcx 0x0 rdx 0xfffffffb ...

Same fault offset across WARP and native adapter runs (3/3 repro, current HEAD). This matches the mechanism discussed in #518 (closed): E_NOTIMPL leaves 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

  1. Any plan for device slots 0x1c8/0x218 (indices 57/67) — D3D12X-proprietary beyond the ID3D12Device surface?
  2. Could the missing fallback zero-fill out-parameters alongside E_NOTIMPL, to contain this class of downstream crash regardless of which side fixes the slots?
  3. For #340 compat docs: happy to run any probe build; logs (full victory INFO 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).

**@⁠cobrajet302gt** on GitHub · 2026-11-24 11:45 UTC · [original](https://github.com/Marvisak/VIctory/issues/829) ### Hardware / host - Linux (CachyOS, kernel 7.2), NVIDIA RTX 6000 Ada + RTX 5080 (run used the Ada; wave64 noted below) - Proton 11.0 standalone (wine-11.0, prefix 11.0-100, ntsync active), bundled vkd3d-proton - `victory.exe` built on Linux, `--target x86_64-pc-windows-gnu`, rustc 1.99.1, HEAD `ffe310e` — cross-build was clean; useful data point for #232's interim Linux CI - Xbox Series X profile; own verified user-supplied 1.0.2.1 copy; `VICTORY_D3D12_WARP=1` and native-adapter runs both tested ### Result 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: ``` WARN victory_gpu::object: method not implemented object="device" slot=0x218 caller="+0x24800db" WARN victory_gpu::object: method not implemented object="device" slot=0x1c8 caller="+0x247757e" INFO victory_gpu::queue: frame presented ... frame=1 draws=0 VIctory: unhandled exception 0xc0000005 at libvkd3d-1.dll+0x3e7b0 (read 0x0: nothing mapped there) rax 0x0 rbx 0x2c5fdb70 rcx 0x0 rdx 0xfffffffb ... ``` Same fault offset across WARP and native adapter runs (3/3 repro, current HEAD). This matches the mechanism discussed in #518 (closed): `E_NOTIMPL` leaves 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 1. Any plan for device slots `0x1c8`/`0x218` (indices 57/67) — D3D12X-proprietary beyond the `ID3D12Device` surface? 2. Could the `missing` fallback zero-fill out-parameters alongside `E_NOTIMPL`, to contain this class of downstream crash regardless of which side fixes the slots? 3. For #340 compat docs: happy to run any probe build; logs (full `victory` INFO 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).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:14:02 +00:00
Author
Owner

@⁠desplmfao on GitHub · 2026-11-24 11:51 UTC · original

libvkd3d-1.dll is Wine's own D3D12 implementation (upstream vkd3d, the builtin d3d12.dll in files/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 D3D12 victory.exe loads:

  • I copy vkd3d-proton's d3d12.dll and d3d12core.dll (3.2.0, from Steam's Proton - Experimental/files/lib/wine/vkd3d-proton/x86_64-windows/) next to victory.exe. The ones in files/lib/wine/x86_64-windows/ are Wine's builtins, the ones you're getting now.
  • I run with 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-proton lines (e.g. vkd3d_instance_init: vkd3d-proton - build: …) instead of libvkd3d-1.dll in 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 a wineserver patch that makes it about 4× faster, is in #340. I build with x86_64-pc-windows-msvc via xwin, so I can't say whether the gnu target changes anything here.

AI-assisted (Claude Code).

**@⁠desplmfao** on GitHub · 2026-11-24 11:51 UTC · [original](https://github.com/Marvisak/VIctory/issues/829#issuecomment-7130633066) `libvkd3d-1.dll` is Wine's own D3D12 implementation (upstream vkd3d, the builtin `d3d12.dll` in `files/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 D3D12 `victory.exe` loads: - I copy vkd3d-proton's `d3d12.dll` and `d3d12core.dll` (3.2.0, from Steam's `Proton - Experimental/files/lib/wine/vkd3d-proton/x86_64-windows/`) next to `victory.exe`. The ones in `files/lib/wine/x86_64-windows/` are Wine's builtins, the ones you're getting now. - I run with `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-proton` lines (e.g. `vkd3d_instance_init: vkd3d-proton - build: …`) instead of `libvkd3d-1.dll` in 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 a `wineserver` patch that makes it about 4× faster, is in #340. I build with `x86_64-pc-windows-msvc` via xwin, so I can't say whether the `gnu` target changes anything here. AI-assisted (Claude Code).
Author
Owner

@⁠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.dll sha256 f6e09a14…) to Proton-Experimental's newer bundled build (a0ffb5d2…).

Result: identical failure class, relocated — first frame presents, then 0xc0000005 reading 0xffffffffffffffff at libvkd3d-1.dll+0x3fbd0 (vs 0x0 at +0x3e7b0 on the older build). Same site, recompiled; the null/-1 pointer 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_NOTIMPL would contain this upstream of vkd3d regardless of which side ultimately implements slots 0x1c8/0x218. Happy to re-run any probe against either vkd3d build; both are pinned here.

**@⁠cobrajet302gt** on GitHub · 2026-11-24 12:27 UTC · [original](https://github.com/Marvisak/VIctory/issues/829#issuecomment-7131475288) 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.dll` sha256 `f6e09a14…`) to Proton-Experimental's newer bundled build (`a0ffb5d2…`). Result: identical failure class, relocated — first frame presents, then `0xc0000005` reading `0xffffffffffffffff` at `libvkd3d-1.dll+0x3fbd0` (vs `0x0` at `+0x3e7b0` on the older build). Same site, recompiled; the null/`-1` pointer 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_NOTIMPL` would contain this upstream of vkd3d regardless of which side ultimately implements slots `0x1c8`/`0x218`. Happy to re-run any probe against either vkd3d build; both are pinned here.
Author
Owner

@⁠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_NOTIMPL to 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.

**@⁠fiestorra** on GitHub · 2026-11-24 13:34 UTC · [original](https://github.com/Marvisak/VIctory/issues/829#issuecomment-7133023305) The two call sites in the title are described in https://git.gtahub.st/github/Marvisak--VIctory/issues/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_NOTIMPL` to 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.
Author
Owner

@⁠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 the missing stub logging rcx/rdx/r8/r9, which is the whole ask and worth upstreaming.

Platform three. Our runs log exactly 0x1c8 and 0x218 as 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):

slot=0x218 caller=+0x24800db args=(0x14061ab00, 0xd469b46b8, 0x6ffff8c006b8, 0xffbdcc8)
slot=0x1c8 caller=+0x247757e args=(0x14061ab00, 0xd4733bbc0, 0x6ffff8c006b8, 0xffefd68)

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 .rdata at 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: our r8 reads 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-…-645b51dc4874 is the console ID3D12GraphicsCommandList6 IID (XCL's handoff notes; palmetto's d3d12_xs_device.cpp calls it "the console command-list IID the retail 1.0.2.1 exe asks for at CreateCommandList"; AnyXboxX's first-boot table measures it as riid at device slot 73, PC ID3D12GraphicsCommandList6 being c3827890-e548-4cfa-…), and c36a797c-… is the plain public ID3D12CommandSignature IID (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's missing taking (usize, usize, usize, usize) and adding one field to the existing warn! — 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 13:41 UTC · [original](https://github.com/Marvisak/VIctory/issues/829#issuecomment-7133194017) 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 the `missing` stub logging `rcx/rdx/r8/r9`, which is the whole ask and worth upstreaming. **Platform three.** Our runs log exactly `0x1c8` and `0x218` as 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):** ``` slot=0x218 caller=+0x24800db args=(0x14061ab00, 0xd469b46b8, 0x6ffff8c006b8, 0xffbdcc8) slot=0x1c8 caller=+0x247757e args=(0x14061ab00, 0xd4733bbc0, 0x6ffff8c006b8, 0xffefd68) ``` 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 `.rdata` at 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: our `r8` reads 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-…-645b51dc4874` is the console `ID3D12GraphicsCommandList6` IID (XCL's handoff notes; palmetto's `d3d12_xs_device.cpp` calls it "the console command-list IID the retail 1.0.2.1 exe asks for at CreateCommandList"; AnyXboxX's first-boot table measures it as `riid` at device slot 73, PC `ID3D12GraphicsCommandList6` being `c3827890-e548-4cfa-…`), and `c36a797c-…` is the plain public `ID3D12CommandSignature` IID (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`'s `missing` taking `(usize, usize, usize, usize)` and adding one field to the existing `warn!` — happy to PR it against current HEAD if useful; every future slot mystery gets named faster with it. Written with an AI assistant.
Author
Owner

@⁠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. Our r8 was 0x6ffff8c006b8 with the title image mapped at 0x6ffff2a40000, i.e. module-relative +0x61c06b8, which is +0x61e06b8 in the file image. Hexdumping that exact address in our copy of the exe gives, at offset 0:

f3 30 5a 76 24 f6 6f 4c a8 28 ac e9 48 62 24 45   =  765a30f3-f624-4c6f-a828-ace948622445

— the ID3D12PipelineState IID 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 build b99f876b…: consistent.

One consequence for this issue: if E_NOTIMPL on 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 deterministic libvkd3d null-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 (0xc0000005 reading 0x0/0xffffffffffffffff inside libvkd3d-1.dll after frame=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 14:32 UTC · [original](https://github.com/Marvisak/VIctory/issues/829#issuecomment-7134546807) 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. Our `r8` was `0x6ffff8c006b8` with the title image mapped at `0x6ffff2a40000`, i.e. module-relative `+0x61c06b8`, which is `+0x61e06b8` in the file image. Hexdumping that exact address in our copy of the exe gives, at offset 0: ``` f3 30 5a 76 24 f6 6f 4c a8 28 ac e9 48 62 24 45 = 765a30f3-f624-4c6f-a828-ace948622445 ``` — the `ID3D12PipelineState` IID 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 build `b99f876b…`: consistent. One consequence for this issue: if `E_NOTIMPL` on 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 deterministic `libvkd3d` null-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 (`0xc0000005` reading `0x0`/`0xffffffffffffffff` inside `libvkd3d-1.dll` after `frame=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.
Author
Owner

@⁠cobrajet302gt on GitHub · 2026-11-24 15:04 UTC · original

Root fault, symbolized — it is not the two slots. A first-chance 0xc0000005 fires inside the host swap-chain path on the present thread; the title's own crash handler then faults while unwinding it inside Wine's dbghelp.dll (dbghelp+0x1fe75, movq (%rcx),%rax, rcx=0xffffffffffffffff), which is why reports show dbghelp on top. The real chain, from the exception record + Wine's SEH unwind:

#0 libvkd3d-1.dll+0x3fbd0    (read 0xffffffffffffffff; Proton-11.0's bundled build faults at +0x3e7b0 reading 0x0)
#1 dxgi.dll+0x6e6a
#2 dxgi.dll+0xe5ac
#3 victory.exe+0x17d42c  →  windows::Win32::Graphics::Dxgi::IDXGIFactory6::CreateSwapChainForHwnd
                            (victory-gpu/src/host.rs:1699 `presenter`, inlined through windows-0.62.2 dxgi/mod.rs:2882)
#4 victory.exe+0x1b12d2  →  <victory_gpu::host::Host>::present (victory-gpu/src/host.rs:1600)
#5 title+0x24824c7   (same function family as the 0x218 call site at +0x24800d5)
#6 title+0x2215eca → kernel32 → ntdll   (thread entry)

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) CreateSwapChainForHwnd from presenter → 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 +0x3fbd0 in 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) whether presenter re-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 15:04 UTC · [original](https://github.com/Marvisak/VIctory/issues/829#issuecomment-7135404931) Root fault, symbolized — it is **not the two slots**. A first-chance `0xc0000005` fires inside the host swap-chain path on the present thread; the title's own crash handler then faults while unwinding it inside Wine's `dbghelp.dll` (`dbghelp+0x1fe75`, `movq (%rcx),%rax`, `rcx=0xffffffffffffffff`), which is why reports show `dbghelp` on top. The real chain, from the exception record + Wine's SEH unwind: ``` #0 libvkd3d-1.dll+0x3fbd0 (read 0xffffffffffffffff; Proton-11.0's bundled build faults at +0x3e7b0 reading 0x0) #1 dxgi.dll+0x6e6a #2 dxgi.dll+0xe5ac #3 victory.exe+0x17d42c → windows::Win32::Graphics::Dxgi::IDXGIFactory6::CreateSwapChainForHwnd (victory-gpu/src/host.rs:1699 `presenter`, inlined through windows-0.62.2 dxgi/mod.rs:2882) #4 victory.exe+0x1b12d2 → <victory_gpu::host::Host>::present (victory-gpu/src/host.rs:1600) #5 title+0x24824c7 (same function family as the 0x218 call site at +0x24800d5) #6 title+0x2215eca → kernel32 → ntdll (thread entry) ``` 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) `CreateSwapChainForHwnd` from `presenter` → 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 `+0x3fbd0` in 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) whether `presenter` re-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.
Author
Owner

@⁠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:

  1. A directly-invoked files/bin/wine (bypassing the Proton launcher) loses the DXVK DLL search-path, so dxgi.dll resolved to Wine's builtin — and the builtin's D3D12 backend is upstream vkd3d (libvkd3d-1.dll next to wined3d.dll). So our libvkd3d-1.dll+0x3e7b0/+0x3fbd0 faults 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: with WINEDLLOVERRIDES=d3d12,d3d12core=n,b alone, the present path still went through builtin dxgi → wined3d → upstream vkd3d.
  2. Adding DXVK's dxgi.dll from Proton 11.0's own tree moved the fault to dxgi.dll+0x1c7cc as 0xc0000094 (integer divide-by-zero) on the second CreateSwapChainForHwnd — that reproduces on any display Xvfb can be configured for (Xvfb reports 0.00 Hz modes and rejects xrandr --newmode, so mode-list math divides by zero regardless of dxgi.forceRefreshRate).

What works: stock DXVK 3.1.1 dxgi.dll (sha256 e3c1178eb7f0dd59…, the same build another Linux reporter in #841 runs). With it, on this rig (Proton 11.0 wine + self-built vkd3d-proton master d3d12/d3d12core + stock 3.1.1 dxgi + VICTORY_PRESENT_1440P=1):

frame presented … frame=4096 draws=43008 drawn=43008 dispatches=2048 dispatched=2048

— 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.dll for this title yet — drop in stock DXVK 3.1.1's (hash above) — and if launching wine directly, override dxgi native 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 +0x1c7cc may 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.

**@⁠cobrajet302gt** on GitHub · 2026-11-24 16:33 UTC · [original](https://github.com/Marvisak/VIctory/issues/829#issuecomment-7137858696) **Resolved on our machine — and our earlier chain was misread; the correction is useful.** Two layers hid the real one: 1. A directly-invoked `files/bin/wine` (bypassing the Proton launcher) loses the DXVK DLL search-path, so `dxgi.dll` resolved to **Wine's builtin** — and the builtin's D3D12 backend is **upstream vkd3d** (`libvkd3d-1.dll` next to `wined3d.dll`). So our `libvkd3d-1.dll+0x3e7b0/+0x3fbd0` faults 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: with `WINEDLLOVERRIDES=d3d12,d3d12core=n,b` alone, the *present path* still went through builtin dxgi → wined3d → upstream vkd3d. 2. Adding DXVK's `dxgi.dll` from **Proton 11.0's own tree** moved the fault to `dxgi.dll+0x1c7cc` as `0xc0000094` (integer divide-by-zero) on the second `CreateSwapChainForHwnd` — that reproduces on any display Xvfb can be configured for (Xvfb reports `0.00 Hz` modes and rejects `xrandr --newmode`, so mode-list math divides by zero regardless of `dxgi.forceRefreshRate`). **What works:** stock **DXVK 3.1.1** `dxgi.dll` (sha256 `e3c1178eb7f0dd59…`, the same build another Linux reporter in #841 runs). With it, on this rig (Proton 11.0 wine + self-built vkd3d-proton master `d3d12/d3d12core` + stock 3.1.1 dxgi + `VICTORY_PRESENT_1440P=1`): ``` frame presented … frame=4096 draws=43008 drawn=43008 dispatches=2048 dispatched=2048 ``` — 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.dll` for this title yet — drop in stock DXVK 3.1.1's (hash above) — and if launching wine directly, override `dxgi` native 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 `+0x1c7cc` may 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.
Author
Owner

@⁠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.

**@⁠Machad3x** on GitHub · 2026-11-24 17:09 UTC · [original](https://github.com/Marvisak/VIctory/issues/829#issuecomment-7138766195) 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.
Author
Owner

@⁠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.

**@⁠pablogonz12** on GitHub · 2026-11-24 23:12 UTC · [original](https://github.com/Marvisak/VIctory/issues/829#issuecomment-7147134838) 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.
Author
Owner

@⁠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 DXVK dxgi (divide by zero on a 0 Hz mode) faulted in CreateSwapChainForHwnd, called from presenter in crates/victory-gpu/src/host.rs. With stock DXVK 3.1.1 dxgi the run reached frame 4096 with no exceptions. Wine/Proton setups are collected in #340.

On the asks:

  • Device slots 0x1c8 / 0x218 are still not written on main and go to object::missing, which logs once and returns E_NOTIMPL (see #417).
  • The stub takes no arguments, so it cannot zero an out parameter without knowing the method.
  • Open PR #1839 adds the argument registers to that log line.

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

**@⁠Marvisak** on GitHub · 2026-11-25 03:48 UTC · [original](https://github.com/Marvisak/VIctory/issues/829#issuecomment-7152266215) <!-- victory-issue-triage v1 verdict=tracked seen=2026-11-24T23:12:20Z at=2026-11-25T03:48:54Z --> 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 DXVK `dxgi` (divide by zero on a 0 Hz mode) faulted in `CreateSwapChainForHwnd`, called from `presenter` in `crates/victory-gpu/src/host.rs`. With stock DXVK 3.1.1 `dxgi` the run reached frame 4096 with no exceptions. Wine/Proton setups are collected in #340. On the asks: - Device slots `0x1c8` / `0x218` are still not written on `main` and go to `object::missing`, which logs once and returns `E_NOTIMPL` (see #417). - The stub takes no arguments, so it cannot zero an out parameter without knowing the method. - Open PR #1839 adds the argument registers to that log line. 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](https://claude.ai/code)_
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/Marvisak--VIctory#829
No description provided.