Linux / GE-Proton11-14 (RTX 5090): title watchdog stops the intro prestream (Unsignaled CrossQueueBarrier) #221

Open
opened 2026-11-27 10:57:19 +00:00 by zmelumian972 · 39 comments
zmelumian972 commented 2026-11-27 10:57:19 +00:00 (Migrated from github.com)
Contributor

Imported from TaynanGT/Vice-Tay. Originally posted by zmelumian972 on 2026-11-27T10:57:19Z.


On Linux with GE-Proton11-14, the title reaches the account picker and the loading screen at a steady 30 fps. About 50 s after A is pressed at the picker, while the opening cutscene is prestreaming, the title's own watchdog stops it. This happens on every run and with every setting below.

Setup

OS CachyOS, kernel 7.3.6
CPU / RAM Ryzen 7 9800X3D, 62 GiB
GPU RTX 5090 32 GB, driver 620.73.04
Proton GE-Proton11-14 (CachyOS proton-ge-custom-bin, vkd3d-proton 1.1-5769-gcae8353ed), with the linux/wineserver view-tree server
Prefix Microsoft d3dcompiler_47 (winetricks)
Build 99a7f9b diag, cross-compiled with cargo xwin, plus the composer change in the linked PR
Launch linux/play.sh series-s (play.ps1's NVIDIA settings), input through VICTORY_KEYS_FILE (Enter 0.3 at the picker)

What happens

  • The picker shows ACCOUNT PICKER (Y) PLAYER (A) over a black screen (11 draws/frame). After A, the loading art appears.

  • About 50 s later our crash hook logs the title writing to address 0, its deliberate fatal:

    unhandled exception 0xc0000005 at victory-image-b99f876b74d4a77f.dll+0x23cf683 (write 0x0: nothing mapped there)
      #0  victory-image-b99f876b74d4a77f.dll+0x23cf683
      #1  victory-image-b99f876b74d4a77f.dll+0x2215c35
      #2  victory-image-b99f876b74d4a77f.dll+0x2215eca
      #3  kernel32.dll+0x11739
    

    +0x23cf683 is mov dword ptr [0], 0x4d8bd421 after an obfuscated message. +0x2215950 is a thread that sleeps 1000 ms per pass, goes over 64 entries, and compares each one's elapsed time with a tunable (hash 0x89aee1d6). It looks like a GPU or queue watchdog.

  • Breakpad then writes T:\victory-*.crash.log. Every run's log has the same lines:

    Game State: Game Running
    Frame: 1266
    Unsignaled CrossQueueBarrier: 779747d8
    Current SRL Name: fbk_stry000_FBK_STRY000_INTRO_min
    Current SRL State: Prestream
    

    Only the frame (806 to 1301) and the barrier value change from run to run.

  • Vice-Tay's log has no error before it. Queue stats show nothing held or forced, and the card is about 4% busy.

Tried, all with the same crash

Change Last frame
baseline 1266
Wine's builtin d3dcompiler_47 1301
-Safe settings 1298
VICTORY_UPSCALER=6 1296
series-x 1226
VKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chains (from #33) 1253
loopback up in the network namespace 1299
build f1b245a (before #203) 1290
build fab5286 (when #33 was filed) 1247

An older build crashes the same way, so this does not look like a regression. #33's RTX 5080 on the same distribution and driver reached the open world, but slower, at about 3.6 fps. A setting I don't have, or the lower speed, may have kept that run under the watchdog's limit.

Also seen on Proton (fixed or worked around)

  • GE-Proton11-6's dxil-spirv produced invalid SPIR-V for compute 4e296b1885c37b29: a merge block without a terminator. The NVIDIA driver crashed in vkCreateComputePipelines. GE-Proton11-14 is fine.
  • With Wine's builtin d3dcompiler_47, the runtime HLSL fails: the composer (0x80004005), and the argument clamp (Method 'InterlockedOr' is not defined on type 'RWByteAddressBuffer'), which drops indirect execution.
  • proton run victory.exe ... exits 1 with no output. Running GE-Proton's files/bin/wine directly in the prefix works.

Is there a way to see which queue the title is waiting on, or a known reason a cross-queue barrier would stay unsignaled through the intro prestream? I can run a diagnostics build with whatever switches would help.

Investigated with Claude Code on my own copy of the title.

<!-- greyfinch-sync:TaynanGT/Vice-Tay:issue:6645053282 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/issues/221). Originally posted by [zmelumian972](https://github.com/zmelumian972) on 2026-11-27T10:57:19Z. --- On Linux with GE-Proton11-14, the title reaches the account picker and the loading screen at a steady 30 fps. About 50 s after A is pressed at the picker, while the opening cutscene is prestreaming, the title's own watchdog stops it. This happens on every run and with every setting below. ## Setup | | | | --- | --- | | OS | CachyOS, kernel 7.3.6 | | CPU / RAM | Ryzen 7 9800X3D, 62 GiB | | GPU | RTX 5090 32 GB, driver 620.73.04 | | Proton | GE-Proton11-14 (CachyOS `proton-ge-custom-bin`, vkd3d-proton `1.1-5769-gcae8353ed`), with the `linux/wineserver` view-tree server | | Prefix | Microsoft `d3dcompiler_47` (winetricks) | | Build | `99a7f9b` diag, cross-compiled with `cargo xwin`, plus the composer change in the linked PR | | Launch | `linux/play.sh series-s` (play.ps1's NVIDIA settings), input through `VICTORY_KEYS_FILE` (`Enter 0.3` at the picker) | ## What happens - The picker shows `ACCOUNT PICKER (Y) PLAYER (A)` over a black screen (11 draws/frame). After A, the loading art appears. - About 50 s later our crash hook logs the title writing to address 0, its deliberate fatal: ``` unhandled exception 0xc0000005 at victory-image-b99f876b74d4a77f.dll+0x23cf683 (write 0x0: nothing mapped there) #0 victory-image-b99f876b74d4a77f.dll+0x23cf683 #1 victory-image-b99f876b74d4a77f.dll+0x2215c35 #2 victory-image-b99f876b74d4a77f.dll+0x2215eca #3 kernel32.dll+0x11739 ``` `+0x23cf683` is `mov dword ptr [0], 0x4d8bd421` after an obfuscated message. `+0x2215950` is a thread that sleeps 1000 ms per pass, goes over 64 entries, and compares each one's elapsed time with a tunable (hash `0x89aee1d6`). It looks like a GPU or queue watchdog. - Breakpad then writes `T:\victory-*.crash.log`. Every run's log has the same lines: ``` Game State: Game Running Frame: 1266 Unsignaled CrossQueueBarrier: 779747d8 Current SRL Name: fbk_stry000_FBK_STRY000_INTRO_min Current SRL State: Prestream ``` Only the frame (806 to 1301) and the barrier value change from run to run. - Vice-Tay's log has no error before it. Queue stats show nothing held or forced, and the card is about 4% busy. ## Tried, all with the same crash | Change | Last frame | | --- | --- | | baseline | 1266 | | Wine's builtin `d3dcompiler_47` | 1301 | | `-Safe` settings | 1298 | | `VICTORY_UPSCALER=6` | 1296 | | `series-x` | 1226 | | `VKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chains` (from #33) | 1253 | | loopback up in the network namespace | 1299 | | build `f1b245a` (before #203) | 1290 | | build `fab5286` (when #33 was filed) | 1247 | An older build crashes the same way, so this does not look like a regression. #33's RTX 5080 on the same distribution and driver reached the open world, but slower, at about 3.6 fps. A setting I don't have, or the lower speed, may have kept that run under the watchdog's limit. ## Also seen on Proton (fixed or worked around) - GE-Proton11-6's dxil-spirv produced invalid SPIR-V for compute `4e296b1885c37b29`: a merge block without a terminator. The NVIDIA driver crashed in `vkCreateComputePipelines`. GE-Proton11-14 is fine. - With Wine's builtin `d3dcompiler_47`, the runtime HLSL fails: the composer (`0x80004005`), and the argument clamp (`Method 'InterlockedOr' is not defined on type 'RWByteAddressBuffer'`), which drops indirect execution. - `proton run victory.exe ...` exits 1 with no output. Running GE-Proton's `files/bin/wine` directly in the prefix works. Is there a way to see which queue the title is waiting on, or a known reason a cross-queue barrier would stay unsignaled through the intro prestream? I can run a diagnostics build with whatever switches would help. *Investigated with Claude Code on my own copy of the title.*
TaynanGT commented 2026-11-27 11:08:26 +00:00 (Migrated from github.com)
Author
Contributor

Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-27T11:08:26Z.


@zmelumian972 A diagnostics build can show the queue that waits. Set VICTORY_CAPTURE to a local directory outside the checkout and use VICTORY_CAPTURE_FRAMES for a few frames in the prestream interval. The operation file for a listed frame records WAIT queue kind with the requested and current fence values. The queue's normal INFO logging only samples the early waits. Keep the captures local and share any queue kind and requested/current pair that repeats near the stall. That will give us a starting point for the missing signal.

<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7216725883 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/issues/221#issuecomment-7216725883). Originally posted by [TaynanGT](https://github.com/TaynanGT) on 2026-11-27T11:08:26Z. --- @zmelumian972 A diagnostics build can show the queue that waits. Set `VICTORY_CAPTURE` to a local directory outside the checkout and use `VICTORY_CAPTURE_FRAMES` for a few frames in the prestream interval. The operation file for a listed frame records `WAIT queue kind` with the requested and current fence values. The queue's normal INFO logging only samples the early waits. Keep the captures local and share any queue kind and requested/current pair that repeats near the stall. That will give us a starting point for the missing signal.
zmelumian972 commented 2026-11-27 13:01:36 +00:00 (Migrated from github.com)
Author
Contributor

Imported from TaynanGT/Vice-Tay. Originally posted by zmelumian972 on 2026-11-27T13:01:36Z.


Follow-up with captures from current main (5b2dc68, diagnostics build), GE-Proton11-14 + viewtree wineserver, RTX 5090 / driver 620.73.04, series-s, windowed. Same fatal at image+0x23cf683 in FBK_STRY000_INTRO Prestream every run.

No queue-level waits near the stall. With VICTORY_CAPTURE_FRAMES covering every frame from 1151 to 1300, no ops file contains a WAIT queue kind line. The last frame written is 1178, the first world frame (109,097 ops). No frame 1179 follows, and the watchdog fires about 31 s later.

Frame 1178 has 68 list-level WAIT VALUE ops, 67 of them met false at record time. They all wait for 0x49c/0x49d (comparison 7, wide) at 0x14577f980–0x14577fc00. Every one of those waits has a WRITE VALUE of at least the reference value somewhere in the same frame. However, many of the writing lists were not submitted before the capture was written. For example, host list 0x416fe2f0 writes 0x49d to 0x14577fae8…0x14577fbf8, which about 20 other lists wait on, and it appears in no SUBMIT op of that frame. That frame has only 20 SUBMIT ops: 4 on queue kind 0 and 16 on kind 2. It looks like a wait that holds back the submissions whose writes would release it, before the present can force it.

Runs:

Run Setting Last game frame (crash log)
cold pipeline cache (1,100–2,100 dropped draws/frame, ~3.5 fps) defaults 1377 (cutscene was rendering)
warm shader cache defaults 1154
VICTORY_PIPELINE_BOOK=1 + dense captures defaults 1178 (ops)
after victory warm --used (1,492 pipelines prebuilt) defaults 1154
VICTORY_CUT_WAITS=0 1056 (no CrossQueueBarrier line in the crash log)
VICTORY_SPLIT_WAITS=0 656

The slow cold-cache run got furthest, so this looks timing dependent. The default cut mode gets furthest of the three wait modes.

I can share the frame-1178-ops.txt excerpts for the waits and writes on 0x14577f9xx–fcxx, plus the matching SUBMIT lines, or run with other switches if that would help.

<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7218965852 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/issues/221#issuecomment-7218965852). Originally posted by [zmelumian972](https://github.com/zmelumian972) on 2026-11-27T13:01:36Z. --- Follow-up with captures from current `main` (`5b2dc68`, diagnostics build), GE-Proton11-14 + viewtree wineserver, RTX 5090 / driver 620.73.04, `series-s`, windowed. Same fatal at `image+0x23cf683` in `FBK_STRY000_INTRO` Prestream every run. **No queue-level waits near the stall.** With `VICTORY_CAPTURE_FRAMES` covering every frame from 1151 to 1300, no ops file contains a `WAIT queue kind` line. The last frame written is **1178**, the first world frame (109,097 ops). No frame 1179 follows, and the watchdog fires about 31 s later. **Frame 1178 has 68 list-level `WAIT VALUE` ops, 67 of them `met false` at record time.** They all wait for `0x49c`/`0x49d` (comparison 7, wide) at `0x14577f980`–`0x14577fc00`. Every one of those waits has a `WRITE VALUE` of at least the reference value somewhere in the same frame. However, many of the writing lists were not submitted before the capture was written. For example, host list `0x416fe2f0` writes `0x49d` to `0x14577fae8`…`0x14577fbf8`, which about 20 other lists wait on, and it appears in no `SUBMIT` op of that frame. That frame has only 20 `SUBMIT` ops: 4 on queue kind 0 and 16 on kind 2. It looks like a wait that holds back the submissions whose writes would release it, before the present can force it. **Runs:** | Run | Setting | Last game frame (crash log) | |---|---|---| | cold pipeline cache (1,100–2,100 dropped draws/frame, ~3.5 fps) | defaults | 1377 (cutscene was rendering) | | warm shader cache | defaults | 1154 | | `VICTORY_PIPELINE_BOOK=1` + dense captures | defaults | 1178 (ops) | | after `victory warm --used` (1,492 pipelines prebuilt) | defaults | 1154 | | | `VICTORY_CUT_WAITS=0` | 1056 (no CrossQueueBarrier line in the crash log) | | | `VICTORY_SPLIT_WAITS=0` | 656 | The slow cold-cache run got furthest, so this looks timing dependent. The default cut mode gets furthest of the three wait modes. I can share the `frame-1178-ops.txt` excerpts for the waits and writes on `0x14577f9xx`–`fcxx`, plus the matching `SUBMIT` lines, or run with other switches if that would help.
TaynanGT commented 2026-11-27 13:09:03 +00:00 (Migrated from github.com)
Author
Contributor

Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-27T13:09:03Z.


@zmelumian972 The 68 list-level waits and the producer absent from the submitted lists narrow this to work within frame 1178. A minimal wait/write/submission sequence would be useful: which list writes the value, whether it was queued, and how the waiting list arrives before it. The lack of queue-level waits is part of the evidence.

<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7219120644 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/issues/221#issuecomment-7219120644). Originally posted by [TaynanGT](https://github.com/TaynanGT) on 2026-11-27T13:09:03Z. --- @zmelumian972 The 68 list-level waits and the producer absent from the submitted lists narrow this to work within frame 1178. A minimal wait/write/submission sequence would be useful: which list writes the value, whether it was queued, and how the waiting list arrives before it. The lack of queue-level waits is part of the evidence.
Melanpan commented 2026-11-27 14:48:46 +00:00 (Migrated from github.com)
Author
Contributor

Imported from TaynanGT/Vice-Tay. Originally posted by Melanpan on 2026-11-27T14:48:46Z.


✨ Update: Claude-sama dug further! ✨

Short version: it's a shader writing through an address that was never valid (not an overrun of a buffer of ours). It's not a regression (c4170ce faults the same way), and the suspects below are ruled out. The first faulting dispatch is still unknown. That's next.

What the fault is

VKD3D_CONFIG=fault (VK_EXT_device_fault) reports it once the loss is detected (with VICTORY_WAIT_RESIDENT=0, which turns the same Xid 13 into a device loss straight away):

d3d12_device_poll_device_faults: Address [1]: [000000012f36b000, 000000012f36bfff], type WriteInvalid
vkd3d_address_binding_tracker_check_va: Found no candidate VA entries. Page fault was likely caused by accessing never used memory or out of bounds access.
Run Faulting write Offset in its 4 MiB block
6 0xab9a3000 0x1a3000
7 0x12d17f000 0x17f000
8 0x12db7f000 0x37f000
9 0x12f36b000 0x36b000
10 0x131d7f000 0x17f000
11 0x180e5f000 0x25f000

The addresses always fall in a gap between our 4 MiB windows of title memory, often at +0x17f000/+0x37f000 from a 2 MiB-aligned base, so a fixed offset from a bad base is more likely than a run past an end. I wrote the book (crate::book: every buffer, texture and block of ours with its address, alive and freed, plus recent root views) to a file whenever presents stop for 5 s. Nothing of ours was ever alive or freed within 4 MiB of either fault looked up (runs 9 and 10), and vkd3d-proton's address tracker says the same about its own allocations.

In run 7, vkd3d-proton saw the loss (d3d12_command_queue_execute: Failed to submit queue(s), vr -4), and we still hung exactly as before (the line stopped, the watchdog fired 30 s later). So the mapping-fence fix you mention covers the detected case too.

Ruled out (each still faults with the change)

Suspect Test
Word sends (#286) VICTORY_SEND_OWN=0
VK_EXT_descriptor_heap (new in this vkd3d-proton) VKD3D_DISABLE_EXTENSIONS=VK_EXT_descriptor_heap: vkd3d falls back to VK_EXT_descriptor_buffer and the fault moves (run 11)
Title memory by address (memory.rs) first used 4 s after the fault in run 9, never used in runs 2, 3, 5 and 8
Root views past their window only root CBVs are bound as roots here (40 in the book, read-only). Root SRVs are bounded tables by default and there are no root UAVs
Descriptor-table buffer views past their copy buffer_view_ok refuses any view past the copy's width
A regression from today's merges c4170ce (before #286, #277, #198 …): Xid 13 about 30 s in, watchdog at the same place

Next

The first faulting dispatch, from a VICTORY_RECORD capture of the frame that faults, replayed without the title and run in halves until one faults. vkd3d-proton gives no breadcrumbs on this NVIDIA setup, and D3D12 DRED is stubbed (SetAutoBreadcrumbsEnablement … stub!), so there's nothing on the live run that names the dispatch.


✨ Claude-sama has done this! ✨ A second RTX 5090 reproduces this, and the cause looks like a GPU page fault in a shader. The queues and waits only stop because of it. The unsignaled barrier is what's left about 30 s later.

Setup

OS Fedora, kernel 7.3.4
GPU RTX 5090, driver 620.73.04
Proton GE-Proton11-14 + linux/wineserver view-tree server
Build e45051a diag, cross-compiled (lld-link + xwin SDK), plus a local diagnostics patch (below)
Launch linux/play.sh series-s, windowed, Enter 0.3 every 3 s through VICTORY_KEYS_FILE

1. The GPU faults about 30 s before every crash

NVIDIA's kernel driver logs Xid 13 (Graphics SM Warp Exception … MMU Fault) on many SMs at once, in the same second as a one-second spike to 100 % GPU use:

NVRM: Xid (PCI:0000:01:00): 13, pid=…, name=title-main, Graphics SM Warp Exception on (GPC 3, TPC 1, SM 0): MMU Fault
NVRM: Xid (PCI:0000:01:00): 13, pid=…, name=title-main, Graphics SM Global Exception on (GPC 3, TPC 1, SM 0): Multiple Warp Errors
NVRM: Xid (PCI:0000:01:00): 13, pid=…, name=title-main, Graphics Exception: ESR 0x51a730=0x8020017 0x51a734=0x4 0x51a728=0x1c813b60 0x51a72c=0x1104
…
NVRM: Xid (PCI:0000:01:00): 13, pid=…, name=title-main, Graphics Exception: channel 0x0000003e, Class 0000ce97, Offset 00000000, Data 00000000
Run Xid 13 Then
1 15:20:52 +0x23cf683 watchdog at 15:21:22
2 15:25:01 watchdog at 15:25:32
3 15:28:11 watchdog at 15:28:41
4 (VICTORY_WAIT_RESIDENT=0) 15:43:05 reported straight away: device removed: 0x887A0005
5 15:43:59 watchdog ~30 s later

An earlier session on a build from before today's merges logged no Xid and exited normally after about 95 s, but it may not have reached the intro.

After the fault, the GPU sits at 1–3 % until the watchdog fires. Neither vkd3d-proton nor Vice-Tay ever sees a device loss, except in run 4.

2. Why nothing moves afterwards: a thread of ours waits forever on the dead channel

A diagnostics patch logs the submission line (queue::behind) when it has done nothing for 5 s, then prints every thread's stack (victory_loader::dump_stacks). From run 3 (symbolized with the PDB):

  • victory-aside holds ASIDE in host::mapped (host.rs:271). Inside it, it waits with INFINITE in mapping_fence::confirm for the 16-byte copy on its own copy queue, which never completes:
    mapped::closure$3 ← Progress::run ← mapped ← Host::shared_buffer ← shadow::loose ← shadow::lookup ← descriptor::host::buffer_srv ← make_twinned ← HostHeap::mirror ← draw::heap_buffer_pass
  • victory-submit is in Mutex::lock_contended ← host::mapped ← Host::uav_buffer ← take_steps ← Host::submit ← send_late ← execute_parts ← behind::go
  • victory-list-0/1/2/5…11 and victory-views-* are in lock_contended ← host::mapped ← shared_buffer (from HostList::budget / shadow::loose).
  • victory-list-3/4 are in aside::Coming::wait ← HostList::take_coming ← HostList::close, waiting for the aside thread.
  • The four vkd3d_queue submission threads are idle. Two vkd3d_fence threads are in vkWaitSemaphores.

The line dump at that point (running=Some(<compute queue>), nothing done for 25 s): the head of every other queue is a RUN or a finished translation. The only memory-value wait there reads met true. The SIGNALs the title waits for sit right behind them:

queue kind 2: #4193 VALUE ValueWait { …, comparison: 7, reference: 838, wide: true } now 0x346 met true | #4193 RUN 1 lists | #4194 SIGNAL fence … 1 (now 0) | #4201 LISTS 1 being translated (1 done) | …
queue kind 0: #4221 RUN 32 lists | #4222 SIGNAL fence … 1680 (now 1679) | #4229 LISTS 31 being translated (28 done) | …

So no wait cycle is involved here, and the title isn't failing to submit work. With VICTORY_THIN=1, a submission gets its SUBMIT capture line only when the lane processes it, which is why the producer lists in the earlier capture showed up in no SUBMIT: they were already queued, behind a stuck thread.

The timing dependence you saw (slower runs get further) also fits a shader fault that depends on timing better than it fits an ordering bug.

What we couldn't get

  • The faulting shader and address. vkd3d-proton only stubs the DRED calls (SetAutoBreadcrumbsEnablement … stub!, SetPageFaultEnablement … stub!), so VICTORY_D3D12_DRED reports nothing here. Next would be VKD3D_CONFIG=breadcrumbs,fault, but that may only report once a device loss is detected, which doesn't happen in the hanging case.
  • VICTORY_WAIT_RESIDENT=0 is not a workaround: the same fault becomes an immediate device loss.

Possible changes

  1. mapping_fence::confirm (and probably the other INFINITE waits on our own fences) could wait with a timeout and check GetDeviceRemovedReason, or go to host::fail after a few seconds. Then this shows up as a GPU fault straight away, not as a title watchdog 30 s later.
  2. The diagnostics patch: a line-stopped dump (VICTORY_LINE_STOPPED=<s>, default 5, 0 off), a describe() for each Job, the title's blocking fence waits, and a stack dump through an on_line_stopped hook. It's local for now. I can open it as a PR if it would help.

Investigated with Claude Code on my own copy of the title.

<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7221259443 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/issues/221#issuecomment-7221259443). Originally posted by [Melanpan](https://github.com/Melanpan) on 2026-11-27T14:48:46Z. --- ## ✨ Update: Claude-sama dug further! ✨ Short version: it's **a shader writing through an address that was never valid** (not an overrun of a buffer of ours). It's **not a regression** (`c4170ce` faults the same way), and the suspects below are ruled out. The first faulting dispatch is still unknown. That's next. ### What the fault is `VKD3D_CONFIG=fault` (`VK_EXT_device_fault`) reports it once the loss is detected (with `VICTORY_WAIT_RESIDENT=0`, which turns the same Xid 13 into a device loss straight away): ``` d3d12_device_poll_device_faults: Address [1]: [000000012f36b000, 000000012f36bfff], type WriteInvalid vkd3d_address_binding_tracker_check_va: Found no candidate VA entries. Page fault was likely caused by accessing never used memory or out of bounds access. ``` | Run | Faulting write | Offset in its 4 MiB block | | --- | --- | --- | | 6 | `0xab9a3000` | `0x1a3000` | | 7 | `0x12d17f000` | `0x17f000` | | 8 | `0x12db7f000` | `0x37f000` | | 9 | `0x12f36b000` | `0x36b000` | | 10 | `0x131d7f000` | `0x17f000` | | 11 | `0x180e5f000` | `0x25f000` | The addresses always fall in a gap between our 4 MiB windows of title memory, often at `+0x17f000`/`+0x37f000` from a 2 MiB-aligned base, so a fixed offset from a bad base is more likely than a run past an end. I wrote the book (`crate::book`: every buffer, texture and block of ours with its address, alive and freed, plus recent root views) to a file whenever presents stop for 5 s. **Nothing of ours was ever alive or freed within 4 MiB of either fault looked up** (runs 9 and 10), and vkd3d-proton's address tracker says the same about its own allocations. In run 7, vkd3d-proton saw the loss (`d3d12_command_queue_execute: Failed to submit queue(s), vr -4`), and we still hung exactly as before (the line stopped, the watchdog fired 30 s later). So the mapping-fence fix you mention covers the detected case too. ### Ruled out (each still faults with the change) | Suspect | Test | | --- | --- | | Word sends (#286) | `VICTORY_SEND_OWN=0` | | `VK_EXT_descriptor_heap` (new in this vkd3d-proton) | `VKD3D_DISABLE_EXTENSIONS=VK_EXT_descriptor_heap`: vkd3d falls back to `VK_EXT_descriptor_buffer` and the fault moves (run 11) | | Title memory by address (`memory.rs`) | first used 4 s *after* the fault in run 9, never used in runs 2, 3, 5 and 8 | | Root views past their window | only root CBVs are bound as roots here (40 in the book, read-only). Root SRVs are bounded tables by default and there are no root UAVs | | Descriptor-table buffer views past their copy | `buffer_view_ok` refuses any view past the copy's width | | A regression from today's merges | `c4170ce` (before #286, #277, #198 …): Xid 13 about 30 s in, watchdog at the same place | ### Next The first faulting dispatch, from a `VICTORY_RECORD` capture of the frame that faults, replayed without the title and run in halves until one faults. vkd3d-proton gives no breadcrumbs on this NVIDIA setup, and D3D12 DRED is stubbed (`SetAutoBreadcrumbsEnablement … stub!`), so there's nothing on the live run that names the dispatch. --- ✨ **Claude-sama has done this!** ✨ A second RTX 5090 reproduces this, and the cause looks like a **GPU page fault in a shader**. The queues and waits only stop because of it. The unsignaled barrier is what's left about 30 s later. ## Setup | | | | --- | --- | | OS | Fedora, kernel 7.3.4 | | GPU | RTX 5090, driver 620.73.04 | | Proton | GE-Proton11-14 + `linux/wineserver` view-tree server | | Build | `e45051a` diag, cross-compiled (lld-link + xwin SDK), plus a local diagnostics patch (below) | | Launch | `linux/play.sh series-s`, windowed, `Enter 0.3` every 3 s through `VICTORY_KEYS_FILE` | ## 1. The GPU faults about 30 s before every crash NVIDIA's kernel driver logs Xid 13 (`Graphics SM Warp Exception … MMU Fault`) on many SMs at once, in the same second as a one-second spike to 100 % GPU use: ``` NVRM: Xid (PCI:0000:01:00): 13, pid=…, name=title-main, Graphics SM Warp Exception on (GPC 3, TPC 1, SM 0): MMU Fault NVRM: Xid (PCI:0000:01:00): 13, pid=…, name=title-main, Graphics SM Global Exception on (GPC 3, TPC 1, SM 0): Multiple Warp Errors NVRM: Xid (PCI:0000:01:00): 13, pid=…, name=title-main, Graphics Exception: ESR 0x51a730=0x8020017 0x51a734=0x4 0x51a728=0x1c813b60 0x51a72c=0x1104 … NVRM: Xid (PCI:0000:01:00): 13, pid=…, name=title-main, Graphics Exception: channel 0x0000003e, Class 0000ce97, Offset 00000000, Data 00000000 ``` | Run | Xid 13 | Then | | --- | --- | --- | | 1 | 15:20:52 | `+0x23cf683` watchdog at 15:21:22 | | 2 | 15:25:01 | watchdog at 15:25:32 | | 3 | 15:28:11 | watchdog at 15:28:41 | | 4 (`VICTORY_WAIT_RESIDENT=0`) | 15:43:05 | reported straight away: `device removed: 0x887A0005` | | 5 | 15:43:59 | watchdog ~30 s later | An earlier session on a build from before today's merges logged no Xid and exited normally after about 95 s, but it may not have reached the intro. After the fault, the GPU sits at 1–3 % until the watchdog fires. Neither vkd3d-proton nor Vice-Tay ever sees a device loss, except in run 4. ## 2. Why nothing moves afterwards: a thread of ours waits forever on the dead channel A diagnostics patch logs the submission line (`queue::behind`) when it has done nothing for 5 s, then prints every thread's stack (`victory_loader::dump_stacks`). From run 3 (symbolized with the PDB): - **`victory-aside`** holds `ASIDE` in `host::mapped` (`host.rs:271`). Inside it, it waits with `INFINITE` in `mapping_fence::confirm` for the 16-byte copy on its own copy queue, which never completes: `mapped::closure$3 ← Progress::run ← mapped ← Host::shared_buffer ← shadow::loose ← shadow::lookup ← descriptor::host::buffer_srv ← make_twinned ← HostHeap::mirror ← draw::heap_buffer_pass` - **`victory-submit`** is in `Mutex::lock_contended ← host::mapped ← Host::uav_buffer ← take_steps ← Host::submit ← send_late ← execute_parts ← behind::go` - **`victory-list-0/1/2/5…11`** and **`victory-views-*`** are in `lock_contended ← host::mapped ← shared_buffer` (from `HostList::budget` / `shadow::loose`). - **`victory-list-3/4`** are in `aside::Coming::wait ← HostList::take_coming ← HostList::close`, waiting for the aside thread. - The four `vkd3d_queue` submission threads are idle. Two `vkd3d_fence` threads are in `vkWaitSemaphores`. The line dump at that point (`running=Some(<compute queue>)`, nothing done for 25 s): the head of every other queue is a `RUN` or a finished translation. The only memory-value wait there reads `met true`. The `SIGNAL`s the title waits for sit right behind them: ``` queue kind 2: #4193 VALUE ValueWait { …, comparison: 7, reference: 838, wide: true } now 0x346 met true | #4193 RUN 1 lists | #4194 SIGNAL fence … 1 (now 0) | #4201 LISTS 1 being translated (1 done) | … queue kind 0: #4221 RUN 32 lists | #4222 SIGNAL fence … 1680 (now 1679) | #4229 LISTS 31 being translated (28 done) | … ``` So no wait cycle is involved here, and the title isn't failing to submit work. With `VICTORY_THIN=1`, a submission gets its `SUBMIT` capture line only when the lane processes it, which is why the producer lists in the earlier capture showed up in no `SUBMIT`: they were already queued, behind a stuck thread. The timing dependence you saw (slower runs get further) also fits a shader fault that depends on timing better than it fits an ordering bug. ## What we couldn't get - **The faulting shader and address.** vkd3d-proton only stubs the DRED calls (`SetAutoBreadcrumbsEnablement … stub!`, `SetPageFaultEnablement … stub!`), so `VICTORY_D3D12_DRED` reports nothing here. Next would be `VKD3D_CONFIG=breadcrumbs,fault`, but that may only report once a device loss is detected, which doesn't happen in the hanging case. - `VICTORY_WAIT_RESIDENT=0` is not a workaround: the same fault becomes an immediate device loss. ## Possible changes 1. `mapping_fence::confirm` (and probably the other `INFINITE` waits on our own fences) could wait with a timeout and check `GetDeviceRemovedReason`, or go to `host::fail` after a few seconds. Then this shows up as a GPU fault straight away, not as a title watchdog 30 s later. 2. The diagnostics patch: a line-stopped dump (`VICTORY_LINE_STOPPED=<s>`, default 5, 0 off), a `describe()` for each `Job`, the title's blocking fence waits, and a stack dump through an `on_line_stopped` hook. It's local for now. I can open it as a PR if it would help. *Investigated with Claude Code on my own copy of the title.*
TaynanGT commented 2026-11-27 14:57:01 +00:00 (Migrated from github.com)
Author
Contributor

Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-27T14:57:01Z.


@Melanpan The timestamps put the graphics fault about 30 seconds ahead of the watchdog. That gives us a concrete place to fix the aftermath: the mapping fence wait needs a way to report failure while retaining work whose completion is still unknown. The hang stacks describe the blocked wait. The first faulty dispatch still needs evidence.

<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7221434910 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/issues/221#issuecomment-7221434910). Originally posted by [TaynanGT](https://github.com/TaynanGT) on 2026-11-27T14:57:01Z. --- @Melanpan The timestamps put the graphics fault about 30 seconds ahead of the watchdog. That gives us a concrete place to fix the aftermath: the mapping fence wait needs a way to report failure while retaining work whose completion is still unknown. The hang stacks describe the blocked wait. The first faulty dispatch still needs evidence.
Melanpan commented 2026-11-27 16:11:16 +00:00 (Migrated from github.com)
Author
Contributor

Imported from TaynanGT/Vice-Tay. Originally posted by Melanpan on 2026-11-27T16:11:16Z.


✨ Claude-sama found the dispatch! ✨ The first faulting dispatch is compute fdd56d97a806bcca, dispatch 87x1x1. Two runs named it from breadcrumbs, and in 8 more runs it first ran 0.8–2.3 s before the fault.

How

vkd3d-proton gives no breadcrumbs on this NVIDIA setup, so I added our own (local diagnostics patch, VICTORY_GPU_CRUMBS=1). Before each command a host list notes (HostList::note), WriteBufferImmediate writes two words into a readback buffer per list: "reached" (MARKER_IN) and "done" (MARKER_OUT). Close writes "done" for the whole list. When presents stop for 3 s, the lists whose "reached" is ahead of "done" are logged with their noted op texts. With VICTORY_GPU_TIMING=1, each group of lists is sent and waited for alone, so exactly one is in flight.

Run 16 and run 17 (same setup as before, series-s, e45051a + diagnostics):

our own breadcrumbs: the last group sent alone: Title(0) (host list 0x725e6a80) group 2 of 3, 1 lists
our own breadcrumbs: stopped among #8 dispatch 87x1x1 [compute fdd56d97a806bcca] … commands=13 done_before=8 done_known=true reached=9

Every command before #8 was confirmed done, and #8 never finished. vkd3d-proton (VKD3D_CONFIG=fault) reports a WriteInvalid at 0x100a44000, in memory never bound.

First run of fdd56d97a806bcca against Xid 13 in the earlier runs (UTC):

Run First bind Xid 13
2 14:24:59.54 14:25:01
3 14:28:10.23 14:28:11
9 15:03:52.50 15:03:53.31
10 15:08:40.28 15:08:42.57
12 15:12:52.31 15:12:54.57
13 15:22:58.74 15:22:59.74
15 15:43:33.00 15:43:33.94
16 15:46:04.71 15:46:05.67

Runs 5, 11 and 14 faulted without it. Run 14's breadcrumbs stopped at the first draw of a list (pixel fcee612943c008e0, five 2048×2048 targets), but I can't tell yet whether that draw or earlier work on that queue faulted. So there may be another shader with the same problem.

What it binds

Srv s0+688:  placed, 182452224 bytes at title 0xcef0000
Uav s0+1480: buffer (216989696, 182452224)
Srv s1+0:    placed, 348 bytes at 0x129e3b80
Uav s1+8:    placed, 32 bytes at 0xf932000
Uav s1+16:   placed, 524288 bytes at 0xf892000
Uav s1+24:   placed, 5800 bytes at 0xf932080

What it writes (translated DXIL, dxc -dumpbin)

A wave-level compaction kernel (64 threads, WaveSize=32, wave prefix/active ops, an LDS counter). Its only static bindings are cb0 and the read-only t255,space1. Every write goes through a heap handle whose index comes from the constant buffer, clamped to 999999. They're exactly the four UAVs above (the report's s…+n are dwords):

Handle Heap index View Writes
%778 (cb[1].x + 5920) >> 5 s0+1480 (174 MB) 56 atomicBinOp + 14 rawBufferStore
%783 (cb[1].y + 32) >> 5 s1+8 (32 B) 28 atomicBinOp
%787 (cb[1].y + 64) >> 5 s1+16 (512 KiB) 112 rawBufferStore
%791 (cb[1].y + 96) >> 5 s1+24 (5,800 B) 28 atomicBinOp

The byte offsets of those writes are computed from data the kernel reads (counts and indices out of the 174 MB buffer). buffer_view_ok keeps each host view inside its copy, and the book shows the 174 MB copy as one contiguous allocation (title buffer …+0xae00000 and its card copy). So the likely fault is a raw store or atomic past the end of one of these views that the host does not drop. D3D12 discards out-of-bounds UAV writes, and that would explain why this only faults under vkd3d-proton on NVIDIA. I haven't confirmed whether vkd3d-proton's path for raw buffers through VK_EXT_descriptor_heap (or VK_EXT_descriptor_buffer: disabling the first still faults) bounds-checks these writes here. That's the next experiment: a small out-of-bounds RWByteAddressBuffer store test under the same Proton, and logging the offsets this dispatch writes at.

The breadcrumbs patch (host/crumbs.rs, hooks in HostList::note/close/reset, and the group being sent in the timed path) is local. I can open it as a PR if you want it.

Investigated with Claude Code on my own copy of the title.

<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7222960751 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/issues/221#issuecomment-7222960751). Originally posted by [Melanpan](https://github.com/Melanpan) on 2026-11-27T16:11:16Z. --- ✨ **Claude-sama found the dispatch!** ✨ The first faulting dispatch is compute **`fdd56d97a806bcca`**, `dispatch 87x1x1`. Two runs named it from breadcrumbs, and in 8 more runs it first ran 0.8–2.3 s before the fault. ### How vkd3d-proton gives no breadcrumbs on this NVIDIA setup, so I added our own (local diagnostics patch, `VICTORY_GPU_CRUMBS=1`). Before each command a host list notes (`HostList::note`), `WriteBufferImmediate` writes two words into a readback buffer per list: "reached" (`MARKER_IN`) and "done" (`MARKER_OUT`). Close writes "done" for the whole list. When presents stop for 3 s, the lists whose "reached" is ahead of "done" are logged with their noted op texts. With `VICTORY_GPU_TIMING=1`, each group of lists is sent and waited for alone, so exactly one is in flight. Run 16 and run 17 (same setup as before, `series-s`, `e45051a` + diagnostics): ``` our own breadcrumbs: the last group sent alone: Title(0) (host list 0x725e6a80) group 2 of 3, 1 lists our own breadcrumbs: stopped among #8 dispatch 87x1x1 [compute fdd56d97a806bcca] … commands=13 done_before=8 done_known=true reached=9 ``` Every command before #8 was confirmed done, and #8 never finished. vkd3d-proton (`VKD3D_CONFIG=fault`) reports a `WriteInvalid` at `0x100a44000`, in memory never bound. First run of `fdd56d97a806bcca` against Xid 13 in the earlier runs (UTC): | Run | First bind | Xid 13 | | --- | --- | --- | | 2 | 14:24:59.54 | 14:25:01 | | 3 | 14:28:10.23 | 14:28:11 | | 9 | 15:03:52.50 | 15:03:53.31 | | 10 | 15:08:40.28 | 15:08:42.57 | | 12 | 15:12:52.31 | 15:12:54.57 | | 13 | 15:22:58.74 | 15:22:59.74 | | 15 | 15:43:33.00 | 15:43:33.94 | | 16 | 15:46:04.71 | 15:46:05.67 | Runs 5, 11 and 14 faulted without it. Run 14's breadcrumbs stopped at the first draw of a list (pixel `fcee612943c008e0`, five 2048×2048 targets), but I can't tell yet whether that draw or earlier work on that queue faulted. So there may be another shader with the same problem. ### What it binds ``` Srv s0+688: placed, 182452224 bytes at title 0xcef0000 Uav s0+1480: buffer (216989696, 182452224) Srv s1+0: placed, 348 bytes at 0x129e3b80 Uav s1+8: placed, 32 bytes at 0xf932000 Uav s1+16: placed, 524288 bytes at 0xf892000 Uav s1+24: placed, 5800 bytes at 0xf932080 ``` ### What it writes (translated DXIL, `dxc -dumpbin`) A wave-level compaction kernel (64 threads, `WaveSize=32`, wave prefix/active ops, an LDS counter). Its only static bindings are `cb0` and the read-only `t255,space1`. Every write goes through a heap handle whose index comes from the constant buffer, clamped to `999999`. They're exactly the four UAVs above (the report's `s…+n` are dwords): | Handle | Heap index | View | Writes | | --- | --- | --- | --- | | `%778` | `(cb[1].x + 5920) >> 5` | `s0+1480` (174 MB) | 56 `atomicBinOp` + 14 `rawBufferStore` | | `%783` | `(cb[1].y + 32) >> 5` | `s1+8` (32 B) | 28 `atomicBinOp` | | `%787` | `(cb[1].y + 64) >> 5` | `s1+16` (512 KiB) | 112 `rawBufferStore` | | `%791` | `(cb[1].y + 96) >> 5` | `s1+24` (5,800 B) | 28 `atomicBinOp` | The byte offsets of those writes are computed from data the kernel reads (counts and indices out of the 174 MB buffer). `buffer_view_ok` keeps each host view inside its copy, and the book shows the 174 MB copy as one contiguous allocation (`title buffer …+0xae00000` and its card copy). So the likely fault is **a raw store or atomic past the end of one of these views that the host does not drop**. D3D12 discards out-of-bounds UAV writes, and that would explain why this only faults under vkd3d-proton on NVIDIA. I haven't confirmed whether vkd3d-proton's path for raw buffers through `VK_EXT_descriptor_heap` (or `VK_EXT_descriptor_buffer`: disabling the first still faults) bounds-checks these writes here. That's the next experiment: a small out-of-bounds `RWByteAddressBuffer` store test under the same Proton, and logging the offsets this dispatch writes at. The breadcrumbs patch (`host/crumbs.rs`, hooks in `HostList::note`/`close`/`reset`, and the group being sent in the timed path) is local. I can open it as a PR if you want it. *Investigated with Claude Code on my own copy of the title.*
TaynanGT commented 2026-11-27 16:17:22 +00:00 (Migrated from github.com)
Author
Contributor

Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-27T16:17:22Z.


@Melanpan The two runs with the command markers give us a concrete dispatch to investigate. The other runs still leave room for a second path. Please open the breadcrumbs as a diagnostics-only PR with the switch off by default. The dispatch and its view state are a useful starting point before changing how memory is handled.

<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7223082508 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/issues/221#issuecomment-7223082508). Originally posted by [TaynanGT](https://github.com/TaynanGT) on 2026-11-27T16:17:22Z. --- @Melanpan The two runs with the command markers give us a concrete dispatch to investigate. The other runs still leave room for a second path. Please open the breadcrumbs as a diagnostics-only PR with the switch off by default. The dispatch and its view state are a useful starting point before changing how memory is handled.
zmelumian972 commented 2026-11-27 16:35:46 +00:00 (Migrated from github.com)
Author
Contributor

Imported from TaynanGT/Vice-Tay. Originally posted by zmelumian972 on 2026-11-27T16:35:46Z.


Correction to my earlier comment: the unmet list-level waits are a symptom, not the cause. Melanpan's GPU fault reproduces here too (RTX 5090, driver 620.73.04, GE-Proton11-14 + viewtree). The kernel log shows NVRM: Xid 13 … Graphics SM Warp Exception … MMU Fault (name=title-main) in all six of my runs, about 30 s before each watchdog crash. In the run with dense captures, the Xid came in the same second as frame 1178's ops file (14:47:20 local), so the stall I described starts with the fault.

Next I'm testing f948c70, which includes #315 (scalar operand/SCC fixes), and I'll report whether the Xid 13 still occurs.

<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7223444507 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/issues/221#issuecomment-7223444507). Originally posted by [zmelumian972](https://github.com/zmelumian972) on 2026-11-27T16:35:46Z. --- Correction to my earlier comment: the unmet list-level waits are a symptom, not the cause. Melanpan's GPU fault reproduces here too (RTX 5090, driver 620.73.04, GE-Proton11-14 + viewtree). The kernel log shows `NVRM: Xid 13 … Graphics SM Warp Exception … MMU Fault` (`name=title-main`) in all six of my runs, about 30 s before each watchdog crash. In the run with dense captures, the Xid came in the same second as frame 1178's ops file (14:47:20 local), so the stall I described starts with the fault. Next I'm testing `f948c70`, which includes #315 (scalar operand/SCC fixes), and I'll report whether the Xid 13 still occurs.
zmelumian972 commented 2026-11-27 16:40:25 +00:00 (Migrated from github.com)
Author
Contributor

Imported from TaynanGT/Vice-Tay. Originally posted by zmelumian972 on 2026-11-27T16:40:25Z.


Retested on f948c70 (#315 included). I re-translated the shaders and re-warmed 1,492 pipelines with 0 failures. Same result: Xid 13 … MMU Fault (name=title-main) about 46 s after launch, at the first world frame. The watchdog +0x23cf683 followed, with Unsignaled CrossQueueBarrier, at game frame 1118 in FBK_STRY000_INTRO Prestream. So #315 does not fix it here.

<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7223537058 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/issues/221#issuecomment-7223537058). Originally posted by [zmelumian972](https://github.com/zmelumian972) on 2026-11-27T16:40:25Z. --- Retested on `f948c70` (#315 included). I re-translated the shaders and re-warmed 1,492 pipelines with 0 failures. Same result: `Xid 13 … MMU Fault` (`name=title-main`) about 46 s after launch, at the first world frame. The watchdog `+0x23cf683` followed, with `Unsignaled CrossQueueBarrier`, at game frame 1118 in `FBK_STRY000_INTRO` Prestream. So #315 does not fix it here.
zmelumian972 commented 2026-11-27 16:48:55 +00:00 (Migrated from github.com)
Author
Contributor

Imported from TaynanGT/Vice-Tay. Originally posted by zmelumian972 on 2026-11-27T16:48:55Z.


More data from f948c70 (RTX 5090, 620.73.04, GE-Proton11-14 + viewtree, series-s):

  • When fdd56d97a806bcca is bound, its first bind comes 1–2 s before the Xid 13, as in @Melanpan's runs: 18:39:38.16 → Xid 18:39:40, and 15:00:45.95 → Xid 15:00:47. One run (VICTORY_CUT_WAITS=0) faulted without it.
  • VICTORY_SKIP_PIPELINES=fdd56d97a806bcca: the shader is never translated or bound, and Xid 13 still occurs 42 s in (game frame 1068).
  • Skipping it together with 4e296b1885c37b29, 88994c3496045f51 and ba2ea928faffd2b0 (the compute shaders first bound within ~3 s before the Xid in both of those runs): still Xid 13, 39 s in (game frame 1038).

So on this machine, skipping fdd56d97a806bcca alone does not avoid the fault. Either another kernel writes out of bounds the same way, or the bad addresses come from shared state such as view or heap contents, not from one shader. The breadcrumbs PR would help find the next dispatch.

<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7223701139 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/issues/221#issuecomment-7223701139). Originally posted by [zmelumian972](https://github.com/zmelumian972) on 2026-11-27T16:48:55Z. --- More data from `f948c70` (RTX 5090, 620.73.04, GE-Proton11-14 + viewtree, `series-s`): - When `fdd56d97a806bcca` is bound, its first bind comes 1–2 s before the Xid 13, as in @Melanpan's runs: 18:39:38.16 → Xid 18:39:40, and 15:00:45.95 → Xid 15:00:47. One run (`VICTORY_CUT_WAITS=0`) faulted without it. - `VICTORY_SKIP_PIPELINES=fdd56d97a806bcca`: the shader is never translated or bound, and Xid 13 still occurs 42 s in (game frame 1068). - Skipping it together with `4e296b1885c37b29`, `88994c3496045f51` and `ba2ea928faffd2b0` (the compute shaders first bound within ~3 s before the Xid in both of those runs): still Xid 13, 39 s in (game frame 1038). So on this machine, skipping `fdd56d97a806bcca` alone does not avoid the fault. Either another kernel writes out of bounds the same way, or the bad addresses come from shared state such as view or heap contents, not from one shader. The breadcrumbs PR would help find the next dispatch.
TaynanGT commented 2026-11-27 16:58:35 +00:00 (Migrated from github.com)
Author
Contributor

Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-27T16:58:35Z.


@zmelumian972 Those runs put the first GPU fault ahead of the watchdog even after a clean warm-up on f948c70. The same failure with the leading dispatches absent broadens what we need to check. The diagnostic breadcrumbs are the next useful step: compare the first queue and error marker across the runs before changing the submission path.

<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7223884359 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/issues/221#issuecomment-7223884359). Originally posted by [TaynanGT](https://github.com/TaynanGT) on 2026-11-27T16:58:35Z. --- @zmelumian972 Those runs put the first GPU fault ahead of the watchdog even after a clean warm-up on `f948c70`. The same failure with the leading dispatches absent broadens what we need to check. The diagnostic breadcrumbs are the next useful step: compare the first queue and error marker across the runs before changing the submission path.
zmelumian972 commented 2026-11-27 17:51:01 +00:00 (Migrated from github.com)
Author
Contributor

Imported from TaynanGT/Vice-Tay. Originally posted by zmelumian972 on 2026-11-27T17:51:01Z.


Breadcrumbs from a second RTX 5090 (driver 620.73.04, GE-Proton11-14 + viewtree, series-s, windowed). The build is 00a8d44 + #332 merged locally, with translator v15, freshly re-translated shaders and 1,493 re-warmed pipelines (0 failed). Runs used VICTORY_GPU_TIMING=1 VICTORY_GPU_CRUMBS=1 VKD3D_CONFIG=fault. Every run had a single list stopped=1:

Run Xid 13 (local) Command in flight vkd3d WriteInvalid Game frame
1 19:45:51 #37 draw 3x1 [vertex 88dc833624e2c5ec, pixel a7cfe758751c20aa] into a 128×128 f10 target (113 lists, 109 not begun) 0x136317000 1099
2 19:46:55 #3 dispatch 9x1x1 [compute 55679a0547649d0b] (93 lists, 87 not begun) 0x12ddd7000 735
3 19:47:57 #3 dispatch 9x1x1 [compute 55679a0547649d0b] (89 lists, 85 not begun) 0x12534c000 698
4 19:49:00 #8 dispatch 87x1x1 [compute fdd56d97a806bcca] (34 lists, 31 not begun) 0x10f5f7000 772

Every fault is followed by Xid 109 4 s later and Xid 31 at teardown.

  • Run 1 is exactly @Melanpan's run-20 draw, so the second path reproduces here.
  • 55679a0547649d0b is new: 2 of 4 runs.
  • 55679a0547649d0b and fdd56d97a806bcca bind the same 174 MB buffer as a UAV: Uav s0+1480: buffer (185532416, 182452224), with the same buffer as Srv s0+688 (182452224x1 at 0xb0f0000). Both also bind u4=0xa00000 [heap 327680 …] title 0x1cd661460+0x10000. That fits the bad addresses coming from what is in that buffer (indices and counts read from it), not from one kernel. It would also explain why skipping fdd56d97a806bcca alone did not help.
  • In every run, the list sent alone before the report was either a texture upload (run 1: 2048x2048 f71 uploads) or noted no command (runs 2–4).

Full logs are kept locally. I can share the complete stopped among lines (all tables) for each run.

<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7224852308 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/issues/221#issuecomment-7224852308). Originally posted by [zmelumian972](https://github.com/zmelumian972) on 2026-11-27T17:51:01Z. --- Breadcrumbs from a second RTX 5090 (driver 620.73.04, GE-Proton11-14 + viewtree, `series-s`, windowed). The build is `00a8d44` + #332 merged locally, with translator v15, freshly re-translated shaders and 1,493 re-warmed pipelines (0 failed). Runs used `VICTORY_GPU_TIMING=1 VICTORY_GPU_CRUMBS=1 VKD3D_CONFIG=fault`. Every run had a single list `stopped=1`: | Run | Xid 13 (local) | Command in flight | vkd3d `WriteInvalid` | Game frame | |---|---|---|---|---| | 1 | 19:45:51 | `#37 draw 3x1 [vertex 88dc833624e2c5ec, pixel a7cfe758751c20aa]` into a 128×128 `f10` target (113 lists, 109 not begun) | `0x136317000` | 1099 | | 2 | 19:46:55 | `#3 dispatch 9x1x1 [compute 55679a0547649d0b]` (93 lists, 87 not begun) | `0x12ddd7000` | 735 | | 3 | 19:47:57 | `#3 dispatch 9x1x1 [compute 55679a0547649d0b]` (89 lists, 85 not begun) | `0x12534c000` | 698 | | 4 | 19:49:00 | `#8 dispatch 87x1x1 [compute fdd56d97a806bcca]` (34 lists, 31 not begun) | `0x10f5f7000` | 772 | Every fault is followed by Xid 109 4 s later and Xid 31 at teardown. - Run 1 is exactly @Melanpan's run-20 draw, so the second path reproduces here. - `55679a0547649d0b` is new: 2 of 4 runs. - **`55679a0547649d0b` and `fdd56d97a806bcca` bind the same 174 MB buffer as a UAV:** `Uav s0+1480: buffer (185532416, 182452224)`, with the same buffer as `Srv s0+688` (`182452224x1 at 0xb0f0000`). Both also bind `u4=0xa00000 [heap 327680 …] title 0x1cd661460+0x10000`. That fits the bad addresses coming from what is in that buffer (indices and counts read from it), not from one kernel. It would also explain why skipping `fdd56d97a806bcca` alone did not help. - In every run, the list sent alone before the report was either a texture upload (run 1: `2048x2048 f71` uploads) or noted no command (runs 2–4). Full logs are kept locally. I can share the complete `stopped among` lines (all tables) for each run.
TaynanGT commented 2026-11-27 17:58:02 +00:00 (Migrated from github.com)
Author
Contributor

Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-27T17:58:02Z.


@zmelumian972 The second RTX 5090 confirms the GPU error comes before the watchdog. It appeared with several different kinds of work in flight, so the underlying cause is still open. The timing and the error category are enough for the issue. Please keep the full diagnostic logs local.

<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7224975979 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/issues/221#issuecomment-7224975979). Originally posted by [TaynanGT](https://github.com/TaynanGT) on 2026-11-27T17:58:02Z. --- @zmelumian972 The second RTX 5090 confirms the GPU error comes before the watchdog. It appeared with several different kinds of work in flight, so the underlying cause is still open. The timing and the error category are enough for the issue. Please keep the full diagnostic logs local.
zmelumian972 commented 2026-11-27 18:00:36 +00:00 (Migrated from github.com)
Author
Contributor

Imported from TaynanGT/Vice-Tay. Originally posted by zmelumian972 on 2026-11-27T18:00:36Z.


Got it

<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7225020980 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/issues/221#issuecomment-7225020980). Originally posted by [zmelumian972](https://github.com/zmelumian972) on 2026-11-27T18:00:36Z. --- Got it
zmelumian972 commented 2026-11-27 18:04:42 +00:00 (Migrated from github.com)
Author
Contributor

Imported from TaynanGT/Vice-Tay. Originally posted by zmelumian972 on 2026-11-27T18:04:42Z.


@TaynanGT maybe our agents missed an unconverted console address?

<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7225098297 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/issues/221#issuecomment-7225098297). Originally posted by [zmelumian972](https://github.com/zmelumian972) on 2026-11-27T18:04:42Z. --- @TaynanGT maybe our agents missed an unconverted console address?
zmelumian972 commented 2026-11-27 18:06:11 +00:00 (Migrated from github.com)
Author
Contributor

Imported from TaynanGT/Vice-Tay. Originally posted by zmelumian972 on 2026-11-27T18:06:11Z.


Let me run that theory with my agent

<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7225126384 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/issues/221#issuecomment-7225126384). Originally posted by [zmelumian972](https://github.com/zmelumian972) on 2026-11-27T18:06:11Z. --- Let me run that theory with my agent
TaynanGT commented 2026-11-27 18:09:27 +00:00 (Migrated from github.com)
Author
Contributor

Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-27T18:09:27Z.


@zmelumian972 Address translation and resource lifetime are both open possibilities from the report. A unit test with generated inputs for valid address mappings can check the translation idea independently. The issue already has the timing of the first GPU error and the watchdog.

<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7225187160 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/issues/221#issuecomment-7225187160). Originally posted by [TaynanGT](https://github.com/TaynanGT) on 2026-11-27T18:09:27Z. --- @zmelumian972 Address translation and resource lifetime are both open possibilities from the report. A unit test with generated inputs for valid address mappings can check the translation idea independently. The issue already has the timing of the first GPU error and the watchdog.
zmelumian972 commented 2026-11-27 18:36:42 +00:00 (Migrated from github.com)
Author
Contributor

Imported from TaynanGT/Vice-Tay. Originally posted by zmelumian972 on 2026-11-27T18:36:42Z.


Fair enough, apologies for bothering you

I will leave this one to you

<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7225673474 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/issues/221#issuecomment-7225673474). Originally posted by [zmelumian972](https://github.com/zmelumian972) on 2026-11-27T18:36:42Z. --- Fair enough, apologies for bothering you I will leave this one to you
TaynanGT commented 2026-11-27 18:39:52 +00:00 (Migrated from github.com)
Author
Contributor

Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-27T18:39:52Z.


@zmelumian972 No worries. I’ve got the driver details and the timeline of the first error. I’ll post an update here when there’s a verified change.

<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7225732397 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/issues/221#issuecomment-7225732397). Originally posted by [TaynanGT](https://github.com/TaynanGT) on 2026-11-27T18:39:52Z. --- @zmelumian972 No worries. I’ve got the driver details and the timeline of the first error. I’ll post an update here when there’s a verified change.
craftycorvid commented 2026-11-28 11:01:09 +00:00 (Migrated from github.com)
Author
Contributor

Imported from TaynanGT/Vice-Tay. Originally posted by craftycorvid on 2026-11-28T11:01:09Z.


Same fault reproduced on a third RTX 5090, with a list of what does not avoid it.

Setup: RTX 5090 32 GB, driver 620.73.04 (open kernel module), Ryzen 7 9800X3D, CachyOS kernel 7.3.6, GE-Proton11-14 with the linux/wineserver view-tree server (vkd3d-proton v3.1-83-gcae8353ed), Microsoft d3dcompiler_47, series-s, diag builds cross-compiled with cargo xwin, Wine called directly as in linux/play.sh.

What happens: every run reaches the account picker and the loading screen at 30 fps. About 45–50 s after launch (the first world frame) the kernel logs NVRM: Xid 13 … Graphics SM Warp Exception … MMU Fault (name=title-main), Vice-Tay reports host GPU device removed … 0x887A0005, and the title's watchdog follows at image+0x23cf683. 11 recorded runs, all the same.

Tried, all with the same Xid 13:

Change Build
linux/play.sh NVIDIA settings fe7c6e5 (main)
SAFE=1 fe7c6e5
A community launch line (-Machine 4070-style memory values, MAP_THREADS=1, PLACED_FILL_REDIRECT=1, DLSS Quality, NO_WATCHDOG=1) fe7c6e5
VKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chains fe7c6e5
VKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chains,VK_EXT_descriptor_heap (vkd3d-proton's descriptor-buffer path instead) fe7c6e5
VICTORY_WAVE_WIDE_ONLY=a10179ab7eda0dc3 fe7c6e5
VICTORY_WAVE_PAIRS=1 (every wave64 program paired) fe7c6e5
Before the BCPack tables became external (BCPack decodes, no warning) 877a40e
A guard (local patch): a raw access to a buffer picked from the view heap at a computed index reads a null raw view where the stride table has no buffer view there fe7c6e5 + patch

Also checked: the runtime sees the card as NVIDIA (vendor=0x10de), and the view heap is capped and clamped as expected (host view heaps hold 1000000 views). Root SRVs/UAVs are already bound as bounded one-view tables by default, so unbounded root descriptors are not the path.

A control on the same machine: a build of another VIctory fork (linux-nvidia: upstream main plus upstream PRs #233/#223, #320 and #439, "console flow" for wave64 on 32-lane hosts, among others) played 2–8 minutes in the world on this PC, same driver and Proton, with no Xid at all. Vice-Tay has none of that console-flow translator work. The common ancestor of the two trees (ffe310e) does not run under Proton at all (pipelines refused), so the two can't be bisected against each other directly. Next I'm going after the exact faulting dispatch with VKD3D_CONFIG=fault.

Recordings and logs are kept locally.

AI use: Claude Code (Claude Opus 5.5) ran the builds and the recorded runs and wrote this comment.

<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7238271298 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/issues/221#issuecomment-7238271298). Originally posted by [craftycorvid](https://github.com/craftycorvid) on 2026-11-28T11:01:09Z. --- Same fault reproduced on a third RTX 5090, with a list of what does not avoid it. **Setup:** RTX 5090 32 GB, driver 620.73.04 (open kernel module), Ryzen 7 9800X3D, CachyOS kernel 7.3.6, GE-Proton11-14 with the `linux/wineserver` view-tree server (vkd3d-proton `v3.1-83-gcae8353ed`), Microsoft `d3dcompiler_47`, `series-s`, diag builds cross-compiled with `cargo xwin`, Wine called directly as in `linux/play.sh`. **What happens:** every run reaches the account picker and the loading screen at 30 fps. About 45–50 s after launch (the first world frame) the kernel logs `NVRM: Xid 13 … Graphics SM Warp Exception … MMU Fault` (`name=title-main`), Vice-Tay reports `host GPU device removed … 0x887A0005`, and the title's watchdog follows at `image+0x23cf683`. 11 recorded runs, all the same. **Tried, all with the same Xid 13:** | Change | Build | | --- | --- | | `linux/play.sh` NVIDIA settings | `fe7c6e5` (main) | | `SAFE=1` | `fe7c6e5` | | A community launch line (`-Machine 4070`-style memory values, `MAP_THREADS=1`, `PLACED_FILL_REDIRECT=1`, DLSS Quality, `NO_WATCHDOG=1`) | `fe7c6e5` | | `VKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chains` | `fe7c6e5` | | `VKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chains,VK_EXT_descriptor_heap` (vkd3d-proton's descriptor-buffer path instead) | `fe7c6e5` | | `VICTORY_WAVE_WIDE_ONLY=a10179ab7eda0dc3` | `fe7c6e5` | | `VICTORY_WAVE_PAIRS=1` (every wave64 program paired) | `fe7c6e5` | | Before the BCPack tables became external (BCPack decodes, no warning) | `877a40e` | | A guard (local patch): a raw access to a buffer picked from the view heap at a computed index reads a null raw view where the stride table has no buffer view there | `fe7c6e5` + patch | Also checked: the runtime sees the card as NVIDIA (`vendor=0x10de`), and the view heap is capped and clamped as expected (`host view heaps hold 1000000 views`). Root SRVs/UAVs are already bound as bounded one-view tables by default, so unbounded root descriptors are not the path. **A control on the same machine:** a build of another VIctory fork (`linux-nvidia`: upstream `main` plus upstream PRs #233/#223, #320 and #439, "console flow" for wave64 on 32-lane hosts, among others) played 2–8 minutes in the world on this PC, same driver and Proton, with no Xid at all. Vice-Tay has none of that console-flow translator work. The common ancestor of the two trees (`ffe310e`) does not run under Proton at all (pipelines refused), so the two can't be bisected against each other directly. Next I'm going after the exact faulting dispatch with `VKD3D_CONFIG=fault`. Recordings and logs are kept locally. AI use: Claude Code (Claude Opus 5.5) ran the builds and the recorded runs and wrote this comment.
craftycorvid commented 2026-11-28 12:13:56 +00:00 (Migrated from github.com)
Author
Contributor

Imported from TaynanGT/Vice-Tay. Originally posted by craftycorvid on 2026-11-28T12:13:56Z.


Follow-up: one title shader reproduces the Xid 13 on its own (same RTX 5090 setup as above, fe7c6e5 plus local diagnostics).

Method: a diagnostics-only extension of VICTORY_SKIP_PIPELINES: all, and hex-prefix entries such as f7* that also skip shaders not seen yet. Without prefixes, each run reached new shaders and still faulted. Every run is recorded, and each result is the kernel log plus exit code.

Shaders that run Result
none (all) no Xid in 200 s; the world loads (≈4,000 draws/frame, all dropped)
hashes f* Xid 13
f8*–ff* no Xid
f0*–f3*, f4*–f5*, f6* no Xid
f7* Xid 13
f7c* only (one shader seen) Xid 13

The shader: compute f7c4f227a2a4c4b2 = smh_gen_130:CS_InterpolateStrands. It is a wave32 program (so no wave64 handling is involved). Its only writes are six buffer_store through one descriptor, s_load_dwordx4 s[16:19], s[4:5], 0x480: the raw table UAV at table dword 288 (stride 1). Skipping it alone does not avoid the fault, because other shaders reach it too.

Where it writes vs. where the fault is (strand shader alone, VKD3D_CONFIG=fault VICTORY_WAIT_RESIDENT=0, a local trace of its table views at dispatch):

  • UAV t288: title 0x1a1f00000, 47,185,920 bytes, host copy 0x9c000000..0x9ed00000 (the view covers exactly the copy)
  • vkd3d-proton: two FaultPC entries, then WriteInvalid at 0x12c7e0000, about 2.3 GB away from that copy, with no candidate VA in the address log (never-bound memory)

Not the cause (strand shader alone, still Xid 13):

  • VICTORY_CARD_STEPS=0
  • VICTORY_CARD_REHASH_RUNS=0
  • a local guard that sends raw accesses through a table/heap slot with no buffer view to a null raw view
  • indirect argument clamps (skipped pipelines are dropped before their clamp)

So the stores the shader encodes are bounded by a 47 MB view, yet running it is enough for a shader write to land 2.3 GB away. Next I am looking at the translated DXIL for this shader: where its store handles and offsets come from.

AI use: Claude Code (Claude Opus 5.5) ran the builds and the recorded runs and wrote this comment.

<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7239084400 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/issues/221#issuecomment-7239084400). Originally posted by [craftycorvid](https://github.com/craftycorvid) on 2026-11-28T12:13:56Z. --- Follow-up: one title shader reproduces the Xid 13 on its own (same RTX 5090 setup as above, `fe7c6e5` plus local diagnostics). **Method:** a diagnostics-only extension of `VICTORY_SKIP_PIPELINES`: `all`, and hex-prefix entries such as `f7*` that also skip shaders not seen yet. Without prefixes, each run reached new shaders and still faulted. Every run is recorded, and each result is the kernel log plus `exit code`. | Shaders that run | Result | | --- | --- | | none (`all`) | no Xid in 200 s; the world loads (≈4,000 draws/frame, all dropped) | | hashes `f*` | Xid 13 | | `f8*`–`ff*` | no Xid | | `f0*`–`f3*`, `f4*`–`f5*`, `f6*` | no Xid | | `f7*` | Xid 13 | | `f7c*` only (one shader seen) | Xid 13 | **The shader:** compute `f7c4f227a2a4c4b2` = `smh_gen_130:CS_InterpolateStrands`. It is a wave32 program (so no wave64 handling is involved). Its only writes are six `buffer_store` through one descriptor, `s_load_dwordx4 s[16:19], s[4:5], 0x480`: the raw table UAV at table dword 288 (`stride 1`). Skipping it alone does not avoid the fault, because other shaders reach it too. **Where it writes vs. where the fault is** (strand shader alone, `VKD3D_CONFIG=fault VICTORY_WAIT_RESIDENT=0`, a local trace of its table views at dispatch): - UAV t288: title `0x1a1f00000`, 47,185,920 bytes, host copy `0x9c000000..0x9ed00000` (the view covers exactly the copy) - vkd3d-proton: two `FaultPC` entries, then `WriteInvalid` at `0x12c7e0000`, about 2.3 GB away from that copy, with no candidate VA in the address log (never-bound memory) **Not the cause** (strand shader alone, still Xid 13): - `VICTORY_CARD_STEPS=0` - `VICTORY_CARD_REHASH_RUNS=0` - a local guard that sends raw accesses through a table/heap slot with no buffer view to a null raw view - indirect argument clamps (skipped pipelines are dropped before their clamp) So the stores the shader encodes are bounded by a 47 MB view, yet running it is enough for a shader write to land 2.3 GB away. Next I am looking at the translated DXIL for this shader: where its store handles and offsets come from. AI use: Claude Code (Claude Opus 5.5) ran the builds and the recorded runs and wrote this comment.
craftycorvid commented 2026-11-28 12:35:38 +00:00 (Migrated from github.com)
Author
Contributor

Imported from TaynanGT/Vice-Tay. Originally posted by craftycorvid on 2026-11-28T12:35:38Z.


Correction and update to my last comment.

The strand shader's own stores are not the faulting write. In vkd3d-proton's SPIR-V for CS_InterpolateStrands (VKD3D_SHADER_DUMP_PATH, then spirv-dis), every store goes through the bindless SSBO array with no bounds check of its own. So I tried a local translator change: each raw buffer store and atomic is checked against getDimensions and does nothing past the view's end. All six of the shader's stores carry the check in the dumped SPIR-V (OpArrayLength before each one). The Xid 13 remains, both with only this shader running and in the full game.

A trap for anyone testing translator changes: the runtime's shader cache key comes from shader_cache::build(), which hashes victory_shader::emit::host_settings(), not translation_fingerprint(). A new translator setting that only goes into the latter lets runs reuse the old cached translations. Two of the results in my earlier comment (the null-view guard) were affected. I reran them with the setting in the key, and they still fault.

Also not the cause (full game unless noted):

  • VICTORY_RELAY=0
  • the runtime's defaults without linux/play.sh's settings (strand shader alone)

What holds: with every title pipeline skipped there is no Xid, and with only f7c4f227a2a4c4b2 running there is one every time. That shader's own writes are now bounded. So the wild write comes from work that runs because of its dispatches, probably the runtime's own GPU work around them. Next I am turning off the runtime's default-on features in halves, with only this shader running, to find which one.

AI use: Claude Code (Claude Opus 5.5) ran the builds and the recorded runs and wrote this comment.

<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7239333952 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/issues/221#issuecomment-7239333952). Originally posted by [craftycorvid](https://github.com/craftycorvid) on 2026-11-28T12:35:38Z. --- Correction and update to my last comment. **The strand shader's own stores are not the faulting write.** In vkd3d-proton's SPIR-V for `CS_InterpolateStrands` (`VKD3D_SHADER_DUMP_PATH`, then `spirv-dis`), every store goes through the bindless SSBO array with no bounds check of its own. So I tried a local translator change: each raw buffer store and atomic is checked against `getDimensions` and does nothing past the view's end. All six of the shader's stores carry the check in the dumped SPIR-V (`OpArrayLength` before each one). The Xid 13 remains, both with only this shader running and in the full game. **A trap for anyone testing translator changes:** the runtime's shader cache key comes from `shader_cache::build()`, which hashes `victory_shader::emit::host_settings()`, not `translation_fingerprint()`. A new translator setting that only goes into the latter lets runs reuse the old cached translations. Two of the results in my earlier comment (the null-view guard) were affected. I reran them with the setting in the key, and they still fault. **Also not the cause** (full game unless noted): - `VICTORY_RELAY=0` - the runtime's defaults without `linux/play.sh`'s settings (strand shader alone) What holds: with every title pipeline skipped there is no Xid, and with only `f7c4f227a2a4c4b2` running there is one every time. That shader's own writes are now bounded. So the wild write comes from work that runs because of its dispatches, probably the runtime's own GPU work around them. Next I am turning off the runtime's default-on features in halves, with only this shader running, to find which one. AI use: Claude Code (Claude Opus 5.5) ran the builds and the recorded runs and wrote this comment.
craftycorvid commented 2026-11-28 16:47:51 +00:00 (Migrated from github.com)
Author
Contributor

Imported from TaynanGT/Vice-Tay. Originally posted by craftycorvid on 2026-11-28T16:47:51Z.


Update: GPU breadcrumbs place the fault inside the strand shader's own dispatches (same RTX 5090 setup as above, fe7c6e5 plus local diagnostics). This corrects the guess at the end of my last comment that the runtime's work around them was to blame.

Method: the breadcrumbs from closed PR #332, applied locally with two fixes:

  • Marks are keyed by the D3D12 command list rather than the HostList. Before this, a list's reuse erased its record, and the report said the list "noted no command".
  • The stuck list's commands are kept when it is submitted, so the report can name them after the loss.

Runs used the direct launcher with the runtime's defaults (VICTORY_GPU_CRUMBS=1 VICTORY_GPU_TIMING=1 VICTORY_D3D12_DRED=1 VKD3D_CONFIG=fault) and only f7c4f227a2a4c4b2 running. VICTORY_THIN and VICTORY_JOIN_PARTS also break the keying, so leave them off for this.

Result: the lost list's last completed mark is command 558, in the middle of a run of CS_InterpolateStrands dispatches (commands 557–566). Everything before that run had finished, including the list's texture uploads. The fault report again shows a WriteInvalid at an address that no vkd3d resource covers, with FaultPC entries, so a shader did the write.

What changes the outcome

  • Pipeline created but Dispatch skipped (a local VICTORY_NO_DISPATCH=1): no Xid.
  • The shader's raw stores dropped in the translator: no Xid.
  • Every raw store and atomic bounded by getDimensions of its own view: still Xid. In vkd3d-proton's dumped SPIR-V, all 17 of the shader's stores are SSBO stores into the bindless array, each behind an OpArrayLength check of the same descriptor.

Also not the cause (strand shader alone unless noted):

  • the send pass (VICTORY_SEND_OWN=0)
  • the card-copy compare (VICTORY_CARD_BUFFERS=0)
  • 104 default-on VICTORY_ switches turned off together
  • every heap-picked image replaced with the null view
  • structured and raw loads clamped to their views

Leading hypothesis: a store that is bounded by its own descriptor can only land gigabytes away if that descriptor is wrong when the shader runs, with a garbage base and a plausible size. The shader reads its UAV (u6, a raw table view) from the title's table in place. The title alternates between two tables, one per frame (+0xa67100 and +0xa67600), and the slots match what was recorded (32-aligned, the slot the shader computes). If the title rewrites a table while the GPU is still running work that reads it, the shader sees a different or half-written descriptor. That may be harmless on native drivers but becomes a wild address under vkd3d-proton. I haven't confirmed this yet.

Next: a diagnostics switch that makes each compute dispatch read a list-owned snapshot of its tables (like the existing "fresh tables" path) instead of the title's live slots. If the Xid goes away with that, the fix is either to snapshot at record time under Wine, or to hold the title's slot contents until in-flight lists finish. @TaynanGT, you know the heap code best. If there is already a way to force the fresh-table path, or a reason this race can't happen, that would save me a step.

Logs and recordings are kept locally, as you asked earlier. I can send specific excerpts.

AI use: Claude Code (Claude Opus 5.5) ran the builds and the recorded runs and wrote this comment.

<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7242520003 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/issues/221#issuecomment-7242520003). Originally posted by [craftycorvid](https://github.com/craftycorvid) on 2026-11-28T16:47:51Z. --- Update: GPU breadcrumbs place the fault inside the strand shader's own dispatches (same RTX 5090 setup as above, `fe7c6e5` plus local diagnostics). This corrects the guess at the end of my last comment that the runtime's work around them was to blame. **Method:** the breadcrumbs from closed PR #332, applied locally with two fixes: - Marks are keyed by the D3D12 command list rather than the `HostList`. Before this, a list's reuse erased its record, and the report said the list "noted no command". - The stuck list's commands are kept when it is submitted, so the report can name them after the loss. Runs used the direct launcher with the runtime's defaults (`VICTORY_GPU_CRUMBS=1 VICTORY_GPU_TIMING=1 VICTORY_D3D12_DRED=1 VKD3D_CONFIG=fault`) and only `f7c4f227a2a4c4b2` running. `VICTORY_THIN` and `VICTORY_JOIN_PARTS` also break the keying, so leave them off for this. **Result:** the lost list's last completed mark is command 558, in the middle of a run of `CS_InterpolateStrands` dispatches (commands 557–566). Everything before that run had finished, including the list's texture uploads. The fault report again shows a `WriteInvalid` at an address that no vkd3d resource covers, with `FaultPC` entries, so a shader did the write. **What changes the outcome** - Pipeline created but `Dispatch` skipped (a local `VICTORY_NO_DISPATCH=1`): no Xid. - The shader's raw stores dropped in the translator: no Xid. - Every raw store and atomic bounded by `getDimensions` of its own view: still Xid. In vkd3d-proton's dumped SPIR-V, all 17 of the shader's stores are SSBO stores into the bindless array, each behind an `OpArrayLength` check of the same descriptor. **Also not the cause** (strand shader alone unless noted): - the send pass (`VICTORY_SEND_OWN=0`) - the card-copy compare (`VICTORY_CARD_BUFFERS=0`) - 104 default-on `VICTORY_` switches turned off together - every heap-picked image replaced with the null view - structured and raw loads clamped to their views **Leading hypothesis:** a store that is bounded by its own descriptor can only land gigabytes away if that descriptor is wrong when the shader runs, with a garbage base and a plausible size. The shader reads its UAV (u6, a raw table view) from the title's table in place. The title alternates between two tables, one per frame (`+0xa67100` and `+0xa67600`), and the slots match what was recorded (32-aligned, the slot the shader computes). If the title rewrites a table while the GPU is still running work that reads it, the shader sees a different or half-written descriptor. That may be harmless on native drivers but becomes a wild address under vkd3d-proton. I haven't confirmed this yet. **Next:** a diagnostics switch that makes each compute dispatch read a list-owned snapshot of its tables (like the existing "fresh tables" path) instead of the title's live slots. If the Xid goes away with that, the fix is either to snapshot at record time under Wine, or to hold the title's slot contents until in-flight lists finish. @TaynanGT, you know the heap code best. If there is already a way to force the fresh-table path, or a reason this race can't happen, that would save me a step. Logs and recordings are kept locally, as you asked earlier. I can send specific excerpts. AI use: Claude Code (Claude Opus 5.5) ran the builds and the recorded runs and wrote this comment.
zmelumian972 commented 2026-11-28 18:16:17 +00:00 (Migrated from github.com)
Author
Contributor

Imported from TaynanGT/Vice-Tay. Originally posted by zmelumian972 on 2026-11-28T18:16:17Z.


Two results that narrow @craftycorvid's table-race hypothesis, from another RTX 5090 (620.73.04, CachyOS 7.3.6, GE-Proton11-14 / vkd3d-proton v3.1-83-gcae8353ed, fe7c6e5 plus local diagnostics):

The GPU is not overwriting descriptors (one run). A local vkd3d-proton patch keeps a shadow copy of each shader-visible CBV/SRV/UAV heap. It updates the copy after every CPU descriptor call and compares it with the live mapped memory four times a second. Up to the Xid 13, nothing changed without a CPU write in any slot of the 1,000,000-view heap. The only changes were in vkd3d-proton's own slots and the driver's reserved range, plus two slots of a small heap 29 s earlier, from a write path I haven't identified. That leaves a CPU rewrite while the GPU is still reading, which this check can't see because that write is legitimate.

The fault reports do mean a garbage address. As a control, a local switch points one of the runtime's own dispatches 64 GiB past its buffer. vkd3d-proton reports it exactly like #221 (WriteInvalid, "no candidate VA entries", Xid 109, exit code 5).

Possibly related: a local check of what each table UAV slot holds at bind time finds wrong-type views (SRVs in slots the shader declares as UAVs) from the end of loading on, though not in the shaders that were on the card at the fault.

Also no change (still Xid): drivers 620.70.06 and 615.78.08, kernel 6.18 LTS, a vkd3d-proton descriptor QA build patched to also check at device loss (0 reports), a 4 fps cap (fault delayed to about 146 s), and a clean environment.

Next here: a switch that gives each compute dispatch a snapshot of its tables taken at record time, tested with only f7c4f227a2a4c4b2 running. @craftycorvid, if you already have one, I'll run yours instead.

AI use: Claude Code (Claude Opus 5.5) ran the builds and the recorded runs and wrote this comment.

<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7243662714 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/issues/221#issuecomment-7243662714). Originally posted by [zmelumian972](https://github.com/zmelumian972) on 2026-11-28T18:16:17Z. --- Two results that narrow @craftycorvid's table-race hypothesis, from another RTX 5090 (620.73.04, CachyOS 7.3.6, GE-Proton11-14 / vkd3d-proton `v3.1-83-gcae8353ed`, `fe7c6e5` plus local diagnostics): **The GPU is not overwriting descriptors (one run).** A local vkd3d-proton patch keeps a shadow copy of each shader-visible CBV/SRV/UAV heap. It updates the copy after every CPU descriptor call and compares it with the live mapped memory four times a second. Up to the Xid 13, nothing changed without a CPU write in any slot of the 1,000,000-view heap. The only changes were in vkd3d-proton's own slots and the driver's reserved range, plus two slots of a small heap 29 s earlier, from a write path I haven't identified. That leaves a CPU rewrite while the GPU is still reading, which this check can't see because that write is legitimate. **The fault reports do mean a garbage address.** As a control, a local switch points one of the runtime's own dispatches 64 GiB past its buffer. vkd3d-proton reports it exactly like #221 (`WriteInvalid`, "no candidate VA entries", Xid 109, exit code 5). **Possibly related:** a local check of what each table UAV slot holds at bind time finds wrong-type views (SRVs in slots the shader declares as UAVs) from the end of loading on, though not in the shaders that were on the card at the fault. **Also no change** (still Xid): drivers 620.70.06 and 615.78.08, kernel 6.18 LTS, a vkd3d-proton descriptor QA build patched to also check at device loss (0 reports), a 4 fps cap (fault delayed to about 146 s), and a clean environment. **Next here:** a switch that gives each compute dispatch a snapshot of its tables taken at record time, tested with only `f7c4f227a2a4c4b2` running. @craftycorvid, if you already have one, I'll run yours instead. AI use: Claude Code (Claude Opus 5.5) ran the builds and the recorded runs and wrote this comment.
zmelumian972 commented 2026-11-28 18:47:20 +00:00 (Migrated from github.com)
Author
Contributor

Imported from TaynanGT/Vice-Tay. Originally posted by zmelumian972 on 2026-11-28T18:47:20Z.


Tested the table-race idea on my RTX 5090 (same setup as my last comment). A local diagnostics switch makes draws and dispatches read a list-owned copy of their descriptor tables, made at record time. It forces on the runtime's existing path for tables that hold a constant buffer. No call was dropped for lack of copy slots, and no table fell back to the title's slots.

Shaders that run VICTORY_THIN Tables Result
only f7c4f227a2a4c4b2 1 (play.sh) title's Xid 13 (reproduces @craftycorvid's single-shader result)
only f7c4f227a2a4c4b2 1 compute tables copied Xid 32 (channel 0x9, intr0 0x40000), 2 of 2, within a second of the first copy
all 1 compute tables / all tables copied Xid 13 or 109, 2 of 2 each
all 0 title's Xid 13, 2 of 2
all 0 all tables copied Xid 13, 2 of 2

With VICTORY_THIN=0 (so recording happens inside the title's own calls), a second check copies each bound table's records at record time and compares them with title memory when the title submits the list. Of 8,192+ tables, none changed in between. So, on this machine, the title doesn't change a table between recording and submitting, and a private copy doesn't help either. That makes a table race unlikely here, whether thin recording is on or off.

linux/play.sh sets VICTORY_THIN=1, and then every bind-time hook runs on the runtime's translation threads, not on the title's lists. That is probably the same keying problem @craftycorvid hit with the breadcrumbs.

The Xid 32 when copying that one shader's tables is a different failure, and I haven't looked into it.

AI use: Claude Code (Claude Opus 5.5) ran the builds and the recorded runs and wrote this comment.

<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7244055042 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/issues/221#issuecomment-7244055042). Originally posted by [zmelumian972](https://github.com/zmelumian972) on 2026-11-28T18:47:20Z. --- Tested the table-race idea on my RTX 5090 (same setup as my last comment). A local diagnostics switch makes draws and dispatches read a list-owned copy of their descriptor tables, made at record time. It forces on the runtime's existing path for tables that hold a constant buffer. No call was dropped for lack of copy slots, and no table fell back to the title's slots. | Shaders that run | `VICTORY_THIN` | Tables | Result | | --- | --- | --- | --- | | only `f7c4f227a2a4c4b2` | 1 (`play.sh`) | title's | Xid 13 (reproduces @craftycorvid's single-shader result) | | only `f7c4f227a2a4c4b2` | 1 | compute tables copied | Xid 32 (`channel 0x9, intr0 0x40000`), 2 of 2, within a second of the first copy | | all | 1 | compute tables / all tables copied | Xid 13 or 109, 2 of 2 each | | all | 0 | title's | Xid 13, 2 of 2 | | all | 0 | all tables copied | Xid 13, 2 of 2 | With `VICTORY_THIN=0` (so recording happens inside the title's own calls), a second check copies each bound table's records at record time and compares them with title memory when the title submits the list. Of 8,192+ tables, none changed in between. So, on this machine, the title doesn't change a table between recording and submitting, and a private copy doesn't help either. That makes a table race unlikely here, whether thin recording is on or off. `linux/play.sh` sets `VICTORY_THIN=1`, and then every bind-time hook runs on the runtime's translation threads, not on the title's lists. That is probably the same keying problem @craftycorvid hit with the breadcrumbs. The Xid 32 when copying that one shader's tables is a different failure, and I haven't looked into it. AI use: Claude Code (Claude Opus 5.5) ran the builds and the recorded runs and wrote this comment.
zmelumian972 commented 2026-11-28 19:25:57 +00:00 (Migrated from github.com)
Author
Contributor

Imported from TaynanGT/Vice-Tay. Originally posted by zmelumian972 on 2026-11-28T19:25:57Z.


You know what you already got the shader hash, I got an idea

<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7244539159 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/issues/221#issuecomment-7244539159). Originally posted by [zmelumian972](https://github.com/zmelumian972) on 2026-11-28T19:25:57Z. --- You know what you already got the shader hash, I got an idea
zmelumian972 commented 2026-11-28 21:13:43 +00:00 (Migrated from github.com)
Author
Contributor

Imported from TaynanGT/Vice-Tay. Originally posted by zmelumian972 on 2026-11-28T21:13:43Z.


that idea worked

https://github.com/TaynanGT/Vice-Tay/pull/428

@craftycorvid try it out and let me know :)

<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7245864934 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/issues/221#issuecomment-7245864934). Originally posted by [zmelumian972](https://github.com/zmelumian972) on 2026-11-28T21:13:43Z. --- that idea worked https://github.com/TaynanGT/Vice-Tay/pull/428 @craftycorvid try it out and let me know :)
TaynanGT commented 2026-11-29 11:23:45 +00:00 (Migrated from github.com)
Author
Contributor

Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-29T11:23:45Z.


Glad #428 got past the watchdog! A second GE-Proton11-14 run that reaches interactive gameplay would help separate the startup fix from remaining rendering issues.

<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7255082477 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/issues/221#issuecomment-7255082477). Originally posted by [TaynanGT](https://github.com/TaynanGT) on 2026-11-29T11:23:45Z. --- Glad #428 got past the watchdog! A second GE-Proton11-14 run that reaches interactive gameplay would help separate the startup fix from remaining rendering issues.
zmelumian972 commented 2026-11-29 11:57:03 +00:00 (Migrated from github.com)
Author
Contributor

Imported from TaynanGT/Vice-Tay. Originally posted by zmelumian972 on 2026-11-29T11:57:03Z.


@TaynanGT i see #408 also solved it too :) you can decide which of those to merge

I think 408 is better, though I didn't run A/B yet

waiting for monday once Claude-Sama wakes up again

<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7255460507 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/issues/221#issuecomment-7255460507). Originally posted by [zmelumian972](https://github.com/zmelumian972) on 2026-11-29T11:57:03Z. --- @TaynanGT i see #408 also solved it too :) you can decide which of those to merge I think 408 is better, though I didn't run A/B yet waiting for monday once Claude-Sama wakes up again
TaynanGT commented 2026-11-29 14:39:02 +00:00 (Migrated from github.com)
Author
Contributor

Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-29T14:39:02Z.


Thanks for the comparison with #408. I will keep both approaches separate until there is evidence from the same Proton setup that the intro reaches interactive gameplay and the rendering is still correct. The report does not establish an A/B winner yet.

<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7257468265 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/issues/221#issuecomment-7257468265). Originally posted by [TaynanGT](https://github.com/TaynanGT) on 2026-11-29T14:39:02Z. --- Thanks for the comparison with #408. I will keep both approaches separate until there is evidence from the same Proton setup that the intro reaches interactive gameplay and the rendering is still correct. The report does not establish an A/B winner yet.
zmelumian972 commented 2026-11-29 15:58:23 +00:00 (Migrated from github.com)
Author
Contributor

Imported from TaynanGT/Vice-Tay. Originally posted by zmelumian972 on 2026-11-29T15:58:23Z.


When I ran it (428), rendering was off, high freq colors were too bright

But because it didn't boot at all, I couldn't account it clearly to 408 or 428 or an issue in the repo itself we will solve in a different PR once this baseline is in

Unsure about 408, I will try it today and I will let you know

The important thing is that this bug is behind us and we can move on :)

<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7258514006 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/issues/221#issuecomment-7258514006). Originally posted by [zmelumian972](https://github.com/zmelumian972) on 2026-11-29T15:58:23Z. --- When I ran it (428), rendering was off, high freq colors were too bright But because it didn't boot at all, I couldn't account it clearly to 408 or 428 or an issue in the repo itself we will solve in a different PR once this baseline is in Unsure about 408, I will try it today and I will let you know The important thing is that this bug is behind us and we can move on :)
zmelumian972 commented 2026-11-29 17:18:11 +00:00 (Migrated from github.com)
Author
Contributor

Imported from TaynanGT/Vice-Tay. Originally posted by zmelumian972 on 2026-11-29T17:18:11Z.


I got artifacts on both (408 and 428)

imho different problem to solve, let's not compress too much to a single PR

https://github.com/user-attachments/assets/0cff08f7-9d4e-41a1-a7a5-8be5cc1d0229

you can see it on his arms, the sirens and stuff

what do you think? should we merge 408/428 as is or ask claude-sama to dig further?

does windows runs have the same issue?

<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7259583334 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/issues/221#issuecomment-7259583334). Originally posted by [zmelumian972](https://github.com/zmelumian972) on 2026-11-29T17:18:11Z. --- I got artifacts on both (408 and 428) imho different problem to solve, let's not compress too much to a single PR https://github.com/user-attachments/assets/0cff08f7-9d4e-41a1-a7a5-8be5cc1d0229 you can see it on his arms, the sirens and stuff what do you think? should we merge 408/428 as is or ask claude-sama to dig further? does windows runs have the same issue?
TaynanGT commented 2026-11-29 19:02:03 +00:00 (Migrated from github.com)
Author
Contributor

Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-29T19:02:03Z.


I would keep the constant-table fix and the visual artifacts as separate issues. Since both branches show the same artifacts, that alone doesn't establish a regression caused by the fix. Before merging, let's compare the same scene on the parent commit and #428, with the same settings and driver, and get a native Windows capture if possible. The existing Windows shader tests do not establish that the scene renders correctly. Please keep the video and logs linked here.

<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7260952697 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/issues/221#issuecomment-7260952697). Originally posted by [TaynanGT](https://github.com/TaynanGT) on 2026-11-29T19:02:03Z. --- I would keep the constant-table fix and the visual artifacts as separate issues. Since both branches show the same artifacts, that alone doesn't establish a regression caused by the fix. Before merging, let's compare the same scene on the parent commit and #428, with the same settings and driver, and get a native Windows capture if possible. The existing Windows shader tests do not establish that the scene renders correctly. Please keep the video and logs linked here.
zmelumian972 commented 2026-11-29 20:46:48 +00:00 (Migrated from github.com)
Author
Contributor

Imported from TaynanGT/Vice-Tay. Originally posted by zmelumian972 on 2026-11-29T20:46:48Z.


A/B for #428 against its parent (fe7c6e5), same scene, settings, driver and Proton. I don't have a native Windows machine (this is Linux only), so I can't provide the Windows capture; Kal0s-design or anyone on Windows + NVIDIA, a capture of the intro there would settle it.

Setup (all legs): RTX 5090, NVIDIA 620.73.04, GE-Proton11-14 (viewtree wineserver), vkd3d-proton 3.1, Series S profile, linux/play.sh settings, windowed 1920x1080 inside headless gamescope, recorded from gamescope's PipeWire stream (game only). Same input script (Enter every 12 s), warm shader caches, 240 s cap. Logs: ab-GS-{MAIN,CTRL,428}-1.log.

Leg Build Result
Parent fe7c6e5 Xid 13 (MMU fault) ~55 s in, at the loading art before the intro. Exit 5.
Control fe7c6e5 + the fix applied to one program only (the one I traced the fault to) Xid 13 ~33 s in, same point. Exit 5.
#428 85a3ebf 240 s, no Xid. Plays the intro cutscene and credits.

What this shows

  • The parent never reaches the scene with the artifacts, on any run. Up to its crash (account picker, art reel, R* logo, loading art) the parent, control and #428 videos look the same.
  • So "same scene on the parent" isn't possible here. To narrow what #428 changes instead, I logged every program whose translation it changes across the whole cache: 28 of 25,788, all the same pattern (a code-table load at offset 0, table now starts after the instructions). Fixing only one of them still faults (control leg), so the other variants fault too: any build that reaches the intro needs the fix on them.
  • For those 28, the values read from the table are unchanged for every load at or past the end of the instructions. Only a load that reads the program's own instruction bytes would see a different value, which the compiled code doesn't do.

The artifacts (#428 at 1:18, 1:24, 1:42): the tattoo sleeves on both characters' arms render as colored block noise, the look of compressed texture data that wasn't decoded. All three legs log, on startup:

WARN victory_hle::modules::dstorage: dstorage: BCPack requests fail: set VICTORY_BCPACK_TABLES to the path of your local BCPack format tables

Since #366 removed the bundled tables, this setup runs without BCPack decoding. My guess is that the artifacts come from that and not from the constant-table fix, but I haven't confirmed it: it needs a run with the tables set. It would also explain why #408 and #428 show the same artifacts.

Agree on keeping them separate. I'll open a new issue for the artifacts once it's tested with the tables.

Videos (parent, control, #428) and run logs follow in a reply.

<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7262351448 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/issues/221#issuecomment-7262351448). Originally posted by [zmelumian972](https://github.com/zmelumian972) on 2026-11-29T20:46:48Z. --- A/B for #428 against its parent (fe7c6e5), same scene, settings, driver and Proton. I don't have a native Windows machine (this is Linux only), so I can't provide the Windows capture; Kal0s-design or anyone on Windows + NVIDIA, a capture of the intro there would settle it. **Setup (all legs):** RTX 5090, NVIDIA 620.73.04, GE-Proton11-14 (viewtree wineserver), vkd3d-proton 3.1, Series S profile, `linux/play.sh` settings, windowed 1920x1080 inside headless gamescope, recorded from gamescope's PipeWire stream (game only). Same input script (Enter every 12 s), warm shader caches, 240 s cap. Logs: `ab-GS-{MAIN,CTRL,428}-1.log`. | Leg | Build | Result | |---|---|---| | Parent | fe7c6e5 | Xid 13 (MMU fault) ~55 s in, at the loading art before the intro. Exit 5. | | Control | fe7c6e5 + the fix applied to **one** program only (the one I traced the fault to) | Xid 13 ~33 s in, same point. Exit 5. | | #428 | 85a3ebf | 240 s, no Xid. Plays the intro cutscene and credits. | **What this shows** - The parent never reaches the scene with the artifacts, on any run. Up to its crash (account picker, art reel, R* logo, loading art) the parent, control and #428 videos look the same. - So "same scene on the parent" isn't possible here. To narrow what #428 changes instead, I logged every program whose translation it changes across the whole cache: **28 of 25,788**, all the same pattern (a code-table load at offset 0, table now starts after the instructions). Fixing only one of them still faults (control leg), so the other variants fault too: any build that reaches the intro needs the fix on them. - For those 28, the values read from the table are unchanged for every load at or past the end of the instructions. Only a load that reads the program's own instruction bytes would see a different value, which the compiled code doesn't do. **The artifacts** (#428 at 1:18, 1:24, 1:42): the tattoo sleeves on both characters' arms render as colored block noise, the look of compressed texture data that wasn't decoded. All three legs log, on startup: ``` WARN victory_hle::modules::dstorage: dstorage: BCPack requests fail: set VICTORY_BCPACK_TABLES to the path of your local BCPack format tables ``` Since #366 removed the bundled tables, this setup runs without BCPack decoding. My guess is that the artifacts come from that and not from the constant-table fix, but I haven't confirmed it: it needs a run with the tables set. It would also explain why #408 and #428 show the same artifacts. Agree on keeping them separate. I'll open a new issue for the artifacts once it's tested with the tables. Videos (parent, control, #428) and run logs follow in a reply.
zmelumian972 commented 2026-11-29 20:48:51 +00:00 (Migrated from github.com)
Author
Contributor
<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7262378019 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/issues/221#issuecomment-7262378019). Originally posted by [zmelumian972](https://github.com/zmelumian972) on 2026-11-29T20:48:51Z. --- Videos and logs for the A/B above: parent, control, #428 (same order as the table). [log-GS-MAIN.txt](https://github.com/user-attachments/files/35583082/log-GS-MAIN.txt) [log-GS-CTRL.txt](https://github.com/user-attachments/files/35583080/log-GS-CTRL.txt) [log-GS-428.txt](https://github.com/user-attachments/files/35583081/log-GS-428.txt) https://github.com/user-attachments/assets/0a2e4a65-4c28-41f5-bb54-6ed2023e7f68 https://github.com/user-attachments/assets/d95cd7dd-0f62-4724-8bd0-97a7b1e27ce5 https://github.com/user-attachments/assets/3de7faf0-05fe-4aed-b865-2eb0ce778c04 https://github.com/user-attachments/assets/84191a83-c781-4f3f-a9b1-aa25955302a9
zmelumian972 commented 2026-11-30 06:32:47 +00:00 (Migrated from github.com)
Author
Contributor

Imported from TaynanGT/Vice-Tay. Originally posted by zmelumian972 on 2026-11-30T06:32:47Z.


The block-noise artifacts in the #428 intro (the arms at ~1:18) are probably the same as #385: VICTORY_BCPACK_TABLES was unset in my runs. Setting the tables is what fixes it; #391 (still open) only adds a warning and docs, and doesn't touch linux/play.sh. Claude retested #428 locally with the tables set (same scene and settings): the artifacts are gone, and so is the BCPack requests fail warning in the log.

Edit: I got it by reverting #366 .. I understand the licensing problem, let me try to figure out a soution

<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7270759345 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/issues/221#issuecomment-7270759345). Originally posted by [zmelumian972](https://github.com/zmelumian972) on 2026-11-30T06:32:47Z. --- The block-noise artifacts in the #428 intro (the arms at ~1:18) are probably the same as #385: `VICTORY_BCPACK_TABLES` was unset in my runs. Setting the tables is what fixes it; #391 (still open) only adds a warning and docs, and doesn't touch `linux/play.sh`. Claude retested #428 locally with the tables set (same scene and settings): the artifacts are gone, and so is the `BCPack requests fail` warning in the log. Edit: I got it by reverting #366 .. I understand the licensing problem, let me try to figure out a soution
TaynanGT commented 2026-11-30 17:02:39 +00:00 (Migrated from github.com)
Author
Contributor

Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-30T17:02:39Z.


main has moved to a new line of the code and everything is now named Vice-Tay: vice-tay.exe play, and VICE_TAY_* switches instead of VICTORY_* (details in #468). Could you check whether this still happens on the current main and say so here, with a log if you can?

<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7285629833 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/issues/221#issuecomment-7285629833). Originally posted by [TaynanGT](https://github.com/TaynanGT) on 2026-11-30T17:02:39Z. --- `main` has moved to a new line of the code and everything is now named Vice-Tay: `vice-tay.exe play`, and `VICE_TAY_*` switches instead of `VICTORY_*` (details in #468). Could you check whether this still happens on the current `main` and say so here, with a log if you can?
craftycorvid commented 2026-12-01 00:31:13 +00:00 (Migrated from github.com)
Author
Contributor

Imported from TaynanGT/Vice-Tay. Originally posted by craftycorvid on 2026-12-01T00:31:13Z.


Checked on the current main (206e07b4): it still happens with the default settings. With VICE_TAY_CODE_TABLE_AFTER=1, one run got into gameplay with no Xid.

Setup: RTX 5090, NVIDIA 620.73.04 (open kernel module), CachyOS kernel 7.3.6, GE-Proton11-14 with the viewtree wineserver, vkd3d-proton 3.1, diagnostics build (--profile diag --features diagnostics). main has no Linux launcher any more, so I ran vice-tay.exe play <game_scarlett_master.exe> with Proton's Wine directly: Proton's prefix, d3d12,d3d12core,dxgi,d3d11,d3d10core,d3d9=n, network off. The game ran in a 2560x1440 gamescope window, recorded. play chose Series X, 1440p and ray tracing on. DLSS and frame generation were off because there were no NVIDIA files: stdin isn't a terminal, so it skips the download.

Run Result
play defaults, played by hand, nothing else on the GPU Xid 13 (MMU fault) 47 s after the world started loading (core_restofworld001 opened), on the black screen after the loading art. vkd3d-proton: VK_ERROR_DEVICE_LOST (vr -4). Exit 5.
play --set VICE_TAY_CODE_TABLE_AFTER=1 No Xid in 5 min 50 s. The intro played and it reached gameplay ("Move around / Move the camera" prompts from about 4:25).

Kernel, defaults run (97 lines, all within the same second):

NVRM: Xid (PCI:0000:01:00): 13, pid=141666, name=main, Graphics SM Warp Exception on (GPC 0, TPC 3, SM 0): MMU Fault
NVRM: Xid (PCI:0000:01:00): 13, pid=141666, name=main, Graphics SM Global Exception on (GPC 0, TPC 3, SM 0): Multiple Warp Errors
NVRM: Xid (PCI:0000:01:00): 13, pid=141666, name=main, Graphics Exception: ESR 0x508730=0x8050017 0x508734=0x4 0x508728=0x1c813b60 0x50872c=0x1104

This is the same signature as on the earlier line, and the same thing #428 fixed there (the hair-strand shader f7c4f227a2a4c4b2 and its whole-program constant table). Since ce27154a puts that change behind VICE_TAY_CODE_TABLE_AFTER (off by default) and no profile turns it on, the default start on this card still faults.

Not measured: for the VICE_TAY_CODE_TABLE_AFTER=1 run, another GPU-heavy program was running on the same machine. I'm not reporting its frame rate or judging its picture from that run. A clean rerun with the switch is the next step. That matters given the Series X / ray-tracing slowdown ce27154a describes.

Two things I hit on the way that others under Proton will too:

  • play removes VICE_TAY_* environment variables it didn't set itself ("leftovers"), so a switch exported in the shell does nothing. It has to go through --set NAME=VALUE.
  • Input: the generic-HID pad path picked up my keyboard's joystick interface (Glorious GMMK V2, vid_320f&pid_504b) as a pad, and the Steam Controller (Steam Input's virtual Xbox 360 pad) never reached the game. Enter on the keyboard worked for the account picker. I can open a separate issue for this if it's useful.

AI use: Claude Code (Claude Opus 5.5) ran the builds and the recorded runs and wrote this comment.

main-206e07b4-default-xid13-piloted.log.gz
main-206e07b4-code-table-after.log.gz

<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7296427888 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/issues/221#issuecomment-7296427888). Originally posted by [craftycorvid](https://github.com/craftycorvid) on 2026-12-01T00:31:13Z. --- Checked on the current `main` (`206e07b4`): **it still happens with the default settings.** With `VICE_TAY_CODE_TABLE_AFTER=1`, one run got into gameplay with no Xid. **Setup:** RTX 5090, NVIDIA 620.73.04 (open kernel module), CachyOS kernel 7.3.6, GE-Proton11-14 with the viewtree wineserver, vkd3d-proton 3.1, diagnostics build (`--profile diag --features diagnostics`). `main` has no Linux launcher any more, so I ran `vice-tay.exe play <game_scarlett_master.exe>` with Proton's Wine directly: Proton's prefix, `d3d12,d3d12core,dxgi,d3d11,d3d10core,d3d9=n`, network off. The game ran in a 2560x1440 gamescope window, recorded. `play` chose Series X, 1440p and ray tracing on. DLSS and frame generation were off because there were no NVIDIA files: stdin isn't a terminal, so it skips the download. | Run | Result | |---|---| | `play` defaults, played by hand, nothing else on the GPU | **Xid 13** (MMU fault) 47 s after the world started loading (`core_restofworld001` opened), on the black screen after the loading art. vkd3d-proton: `VK_ERROR_DEVICE_LOST` (`vr -4`). Exit 5. | | `play --set VICE_TAY_CODE_TABLE_AFTER=1` | **No Xid** in 5 min 50 s. The intro played and it reached gameplay ("Move around / Move the camera" prompts from about 4:25). | Kernel, defaults run (97 lines, all within the same second): ``` NVRM: Xid (PCI:0000:01:00): 13, pid=141666, name=main, Graphics SM Warp Exception on (GPC 0, TPC 3, SM 0): MMU Fault NVRM: Xid (PCI:0000:01:00): 13, pid=141666, name=main, Graphics SM Global Exception on (GPC 0, TPC 3, SM 0): Multiple Warp Errors NVRM: Xid (PCI:0000:01:00): 13, pid=141666, name=main, Graphics Exception: ESR 0x508730=0x8050017 0x508734=0x4 0x508728=0x1c813b60 0x50872c=0x1104 ``` This is the same signature as on the earlier line, and the same thing #428 fixed there (the hair-strand shader `f7c4f227a2a4c4b2` and its whole-program constant table). Since `ce27154a` puts that change behind `VICE_TAY_CODE_TABLE_AFTER` (off by default) and no profile turns it on, the default start on this card still faults. **Not measured:** for the `VICE_TAY_CODE_TABLE_AFTER=1` run, another GPU-heavy program was running on the same machine. I'm not reporting its frame rate or judging its picture from that run. A clean rerun with the switch is the next step. That matters given the Series X / ray-tracing slowdown `ce27154a` describes. **Two things I hit on the way that others under Proton will too:** - `play` removes `VICE_TAY_*` environment variables it didn't set itself ("leftovers"), so a switch exported in the shell does nothing. It has to go through `--set NAME=VALUE`. - Input: the generic-HID pad path picked up my keyboard's joystick interface (Glorious GMMK V2, `vid_320f&pid_504b`) as a pad, and the Steam Controller (Steam Input's virtual Xbox 360 pad) never reached the game. Enter on the keyboard worked for the account picker. I can open a separate issue for this if it's useful. AI use: Claude Code (Claude Opus 5.5) ran the builds and the recorded runs and wrote this comment. [main-206e07b4-default-xid13-piloted.log.gz](https://github.com/user-attachments/files/35650950/main-206e07b4-default-xid13-piloted.log.gz) [main-206e07b4-code-table-after.log.gz](https://github.com/user-attachments/files/35650951/main-206e07b4-code-table-after.log.gz)
craftycorvid commented 2026-12-01 01:44:34 +00:00 (Migrated from github.com)
Author
Contributor

Imported from TaynanGT/Vice-Tay. Originally posted by craftycorvid on 2026-12-01T01:44:34Z.


Follow-up on 65b9beaa (#485 merged): with VICE_TAY_CODE_TABLE_AFTER=1 and a full preload, the game no longer crashes and the cache now works under Wine, but the intro doesn't render properly and the game is slow. Same RTX 5090 / Proton setup as my last comment, played by hand with nothing else running.

What #485 fixed here

  • The Steam Controller (through Steam Input's Xbox pad) now works with mouse and keyboard on.
  • Shader translations and GPU pipelines are reused: 2,161 cache hits and 0 misses, no slow pipeline builds, and no host pipeline library (VICE_TAY_LIBRARY): pipelines come from the driver and its disk cache in the log.

Full preload (vice-tay preload --all, run with the switches play set, including VICE_TAY_CODE_TABLE_AFTER=1): 37 min 44 s in all.

  • 25,985 shaders translated in 75 s, none failed. The translator change in the #477 revert retranslates everything.
  • 88,557 of 88,561 pipelines built in 1,847 s. Per pipeline: median 13.7 ms, p99 3.7 s, slowest 60.6 s. Four neighbouring ones (50674, 50675, 50681, 50682) each hung for 180 s, and their worker process was ended.
  • 5,217 pipelines put into the library in 341 s.

The run: play with --set VICE_TAY_CODE_TABLE_AFTER=1, which chose Series X, 1440p and ray tracing on. There were no NVIDIA files, so DLSS and frame generation were off. No Xid in 3.5 min. Times below are from the recording:

Time What's on screen Overlay / log
0:35–1:20 blank dark screen after the loading art; the first intro scene never shows
1:25–1:50 "Nine months ago" over the cell shots, with subtitles from another scene ("Yo, I'm here for it…")
1:55–2:05 two characters in a black void with scattered fragments of scenery; one is a low-detail stand-in model 0.3 fps, 3,605 ms per frame, GPU 37 %, CPU 81 %
2:25 on gameplay in the cell, mostly right; the player character's arm looks grey 23.5 fps, 42.6 ms per frame, GPU 100 %; the card meter puts the title's lists at 38–54 ms per frame

So the intro stall isn't GPU work: the card is mostly idle while frames take seconds, and models and scenery are missing. Gameplay is GPU-bound. The largest items in the card meter are the compute lists with 00e6aef268b1ef81 / 03e3e26783a5799b (6.0 + 4.8 ms) and 08055d95e9ee79c0 / 0873f80dd84a3c5c (3.9 ms).

Warnings in that run (no BCPack warning this time):

  • 48 × title memory by address: shaders touched pages that had no copy (those accesses read 0 or were dropped)
  • 42 × a texture picked by index changed after its upload with nothing to tell of it: uploaded again
  • 16 × HERO LEAD: a placed texture view lies in the memory of a texture the host copied into
  • 1 × a dispatch without a host pipeline dropped pipeline=0x53755180

What I can't separate: whether VICE_TAY_CODE_TABLE_AFTER itself causes any of this. Without it, the game crashes before the intro on this card, so there's no baseline in the same configuration. For comparison, on the old line, #428 with Series S (1080p, no ray tracing) played the same intro correctly at about 17 fps. The next runs I can do are ray tracing off (--set VICE_TAY_BVH_BUILDER=0) and the new series-s/ build, if either would help.

AI use: Claude Code (Claude Opus 5.5) ran the builds, the preload and the recorded run and wrote this comment.

main-65b9beaa-code-table-after-preloaded.log.gz
main-65b9beaa-preload-all.txt.gz

<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7297842929 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/issues/221#issuecomment-7297842929). Originally posted by [craftycorvid](https://github.com/craftycorvid) on 2026-12-01T01:44:34Z. --- Follow-up on `65b9beaa` (#485 merged): with `VICE_TAY_CODE_TABLE_AFTER=1` and a full preload, **the game no longer crashes and the cache now works under Wine, but the intro doesn't render properly and the game is slow.** Same RTX 5090 / Proton setup as my last comment, played by hand with nothing else running. **What #485 fixed here** - The Steam Controller (through Steam Input's Xbox pad) now works with mouse and keyboard on. - Shader translations and GPU pipelines are reused: 2,161 cache hits and 0 misses, no slow pipeline builds, and `no host pipeline library (VICE_TAY_LIBRARY): pipelines come from the driver and its disk cache` in the log. **Full preload** (`vice-tay preload --all`, run with the switches `play` set, including `VICE_TAY_CODE_TABLE_AFTER=1`): 37 min 44 s in all. - 25,985 shaders translated in 75 s, none failed. The translator change in the #477 revert retranslates everything. - 88,557 of 88,561 pipelines built in 1,847 s. Per pipeline: median 13.7 ms, p99 3.7 s, slowest 60.6 s. Four neighbouring ones (50674, 50675, 50681, 50682) each hung for 180 s, and their worker process was ended. - 5,217 pipelines put into the library in 341 s. **The run:** `play` with `--set VICE_TAY_CODE_TABLE_AFTER=1`, which chose Series X, 1440p and ray tracing on. There were no NVIDIA files, so DLSS and frame generation were off. No Xid in 3.5 min. Times below are from the recording: | Time | What's on screen | Overlay / log | |---|---|---| | 0:35–1:20 | blank dark screen after the loading art; the first intro scene never shows | | | 1:25–1:50 | "Nine months ago" over the cell shots, with subtitles from another scene ("Yo, I'm here for it…") | | | 1:55–2:05 | two characters in a black void with scattered fragments of scenery; one is a low-detail stand-in model | 0.3 fps, 3,605 ms per frame, **GPU 37 %, CPU 81 %** | | 2:25 on | gameplay in the cell, mostly right; the player character's arm looks grey | 23.5 fps, 42.6 ms per frame, GPU 100 %; the card meter puts the title's lists at 38–54 ms per frame | So the intro stall isn't GPU work: the card is mostly idle while frames take seconds, and models and scenery are missing. Gameplay is GPU-bound. The largest items in the card meter are the compute lists with `00e6aef268b1ef81` / `03e3e26783a5799b` (6.0 + 4.8 ms) and `08055d95e9ee79c0` / `0873f80dd84a3c5c` (3.9 ms). Warnings in that run (no BCPack warning this time): - 48 × `title memory by address: shaders touched pages that had no copy (those accesses read 0 or were dropped)` - 42 × `a texture picked by index changed after its upload with nothing to tell of it: uploaded again` - 16 × `HERO LEAD: a placed texture view lies in the memory of a texture the host copied into` - 1 × `a dispatch without a host pipeline dropped pipeline=0x53755180` **What I can't separate:** whether `VICE_TAY_CODE_TABLE_AFTER` itself causes any of this. Without it, the game crashes before the intro on this card, so there's no baseline in the same configuration. For comparison, on the old line, #428 with Series S (1080p, no ray tracing) played the same intro correctly at about 17 fps. The next runs I can do are ray tracing off (`--set VICE_TAY_BVH_BUILDER=0`) and the new `series-s/` build, if either would help. AI use: Claude Code (Claude Opus 5.5) ran the builds, the preload and the recorded run and wrote this comment. [main-65b9beaa-code-table-after-preloaded.log.gz](https://github.com/user-attachments/files/35650962/main-65b9beaa-code-table-after-preloaded.log.gz) [main-65b9beaa-preload-all.txt.gz](https://github.com/user-attachments/files/35650937/main-65b9beaa-preload-all.txt.gz)
Sign in to join this conversation.
No labels
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.

Reference
TaynanGT/Vice-Tay#221
No description provided.