Linux / GE-Proton11-14 (RTX 5090): title watchdog stops the intro prestream (Unsignaled CrossQueueBarrier) #221
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/TaynanGT--Vice-Tay#221
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@zmelumian972 on GitHub · 2026-11-27 10:57 UTC · original
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
proton-ge-custom-bin, vkd3d-proton1.1-5769-gcae8353ed), with thelinux/wineserverview-tree serverd3dcompiler_47(winetricks)99a7f9bdiag, cross-compiled withcargo xwin, plus the composer change in the linked PRlinux/play.sh series-s(play.ps1's NVIDIA settings), input throughVICTORY_KEYS_FILE(Enter 0.3at 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:
+0x23cf683ismov dword ptr [0], 0x4d8bd421after an obfuscated message.+0x2215950is a thread that sleeps 1000 ms per pass, goes over 64 entries, and compares each one's elapsed time with a tunable (hash0x89aee1d6). It looks like a GPU or queue watchdog.Breakpad then writes
T:\victory-*.crash.log. Every run's log has the same lines: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
d3dcompiler_47-SafesettingsVICTORY_UPSCALER=6series-xVKD3D_DISABLE_EXTENSIONS=VK_NV_raw_access_chains(from #33)f1b245a(before #203)fab5286(when #33 was filed)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)
4e296b1885c37b29: a merge block without a terminator. The NVIDIA driver crashed invkCreateComputePipelines. GE-Proton11-14 is fine.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'sfiles/bin/winedirectly 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 on GitHub · 2026-11-27 11:08 UTC · original
@zmelumian972 A diagnostics build can show the queue that waits. Set
VICTORY_CAPTUREto a local directory outside the checkout and useVICTORY_CAPTURE_FRAMESfor a few frames in the prestream interval. The operation file for a listed frame recordsWAIT queue kindwith 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 on GitHub · 2026-11-27 13:01 UTC · original
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 atimage+0x23cf683inFBK_STRY000_INTROPrestream every run.No queue-level waits near the stall. With
VICTORY_CAPTURE_FRAMEScovering every frame from 1151 to 1300, no ops file contains aWAIT queue kindline. 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 VALUEops, 67 of themmet falseat record time. They all wait for0x49c/0x49d(comparison 7, wide) at0x14577f980–0x14577fc00. Every one of those waits has aWRITE VALUEof 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 list0x416fe2f0writes0x49dto0x14577fae8…0x14577fbf8, which about 20 other lists wait on, and it appears in noSUBMITop of that frame. That frame has only 20SUBMITops: 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:
VICTORY_PIPELINE_BOOK=1+ dense capturesvictory warm --used(1,492 pipelines prebuilt)VICTORY_CUT_WAITS=0VICTORY_SPLIT_WAITS=0The 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.txtexcerpts for the waits and writes on0x14577f9xx–fcxx, plus the matchingSUBMITlines, or run with other switches if that would help.@TaynanGT on GitHub · 2026-11-27 13:09 UTC · original
@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 on GitHub · 2026-11-27 14:48 UTC · original · edited 2026-11-27 15:19 UTC
✨ 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 (
c4170cefaults 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 (withVICTORY_WAIT_RESIDENT=0, which turns the same Xid 13 into a device loss straight away):0xab9a30000x1a30000x12d17f0000x17f0000x12db7f0000x37f0000x12f36b0000x36b0000x131d7f0000x17f0000x180e5f0000x25f000The addresses always fall in a gap between our 4 MiB windows of title memory, often at
+0x17f000/+0x37f000from 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)
VICTORY_SEND_OWN=0VK_EXT_descriptor_heap(new in this vkd3d-proton)VKD3D_DISABLE_EXTENSIONS=VK_EXT_descriptor_heap: vkd3d falls back toVK_EXT_descriptor_bufferand the fault moves (run 11)memory.rs)buffer_view_okrefuses any view past the copy's widthc4170ce(before #286, #277, #198 …): Xid 13 about 30 s in, watchdog at the same placeNext
The first faulting dispatch, from a
VICTORY_RECORDcapture 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
linux/wineserverview-tree servere45051adiag, cross-compiled (lld-link + xwin SDK), plus a local diagnostics patch (below)linux/play.sh series-s, windowed,Enter 0.3every 3 s throughVICTORY_KEYS_FILE1. 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:+0x23cf683watchdog at 15:21:22VICTORY_WAIT_RESIDENT=0)device removed: 0x887A0005An 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-asideholdsASIDEinhost::mapped(host.rs:271). Inside it, it waits withINFINITEinmapping_fence::confirmfor 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_passvictory-submitis inMutex::lock_contended ← host::mapped ← Host::uav_buffer ← take_steps ← Host::submit ← send_late ← execute_parts ← behind::govictory-list-0/1/2/5…11andvictory-views-*are inlock_contended ← host::mapped ← shared_buffer(fromHostList::budget/shadow::loose).victory-list-3/4are inaside::Coming::wait ← HostList::take_coming ← HostList::close, waiting for the aside thread.vkd3d_queuesubmission threads are idle. Twovkd3d_fencethreads are invkWaitSemaphores.The line dump at that point (
running=Some(<compute queue>), nothing done for 25 s): the head of every other queue is aRUNor a finished translation. The only memory-value wait there readsmet true. TheSIGNALs the title waits for sit right behind them:So no wait cycle is involved here, and the title isn't failing to submit work. With
VICTORY_THIN=1, a submission gets itsSUBMITcapture line only when the lane processes it, which is why the producer lists in the earlier capture showed up in noSUBMIT: 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
SetAutoBreadcrumbsEnablement … stub!,SetPageFaultEnablement … stub!), soVICTORY_D3D12_DREDreports nothing here. Next would beVKD3D_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=0is not a workaround: the same fault becomes an immediate device loss.Possible changes
mapping_fence::confirm(and probably the otherINFINITEwaits on our own fences) could wait with a timeout and checkGetDeviceRemovedReason, or go tohost::failafter a few seconds. Then this shows up as a GPU fault straight away, not as a title watchdog 30 s later.VICTORY_LINE_STOPPED=<s>, default 5, 0 off), adescribe()for eachJob, the title's blocking fence waits, and a stack dump through anon_line_stoppedhook. 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 on GitHub · 2026-11-27 14:57 UTC · original
@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 on GitHub · 2026-11-27 16:11 UTC · original
✨ 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),WriteBufferImmediatewrites 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. WithVICTORY_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):Every command before #8 was confirmed done, and #8 never finished. vkd3d-proton (
VKD3D_CONFIG=fault) reports aWriteInvalidat0x100a44000, in memory never bound.First run of
fdd56d97a806bccaagainst Xid 13 in the earlier runs (UTC):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
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 arecb0and the read-onlyt255,space1. Every write goes through a heap handle whose index comes from the constant buffer, clamped to999999. They're exactly the four UAVs above (the report'ss…+nare dwords):%778(cb[1].x + 5920) >> 5s0+1480(174 MB)atomicBinOp+ 14rawBufferStore%783(cb[1].y + 32) >> 5s1+8(32 B)atomicBinOp%787(cb[1].y + 64) >> 5s1+16(512 KiB)rawBufferStore%791(cb[1].y + 96) >> 5s1+24(5,800 B)atomicBinOpThe byte offsets of those writes are computed from data the kernel reads (counts and indices out of the 174 MB buffer).
buffer_view_okkeeps each host view inside its copy, and the book shows the 174 MB copy as one contiguous allocation (title buffer …+0xae00000and 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 throughVK_EXT_descriptor_heap(orVK_EXT_descriptor_buffer: disabling the first still faults) bounds-checks these writes here. That's the next experiment: a small out-of-boundsRWByteAddressBufferstore test under the same Proton, and logging the offsets this dispatch writes at.The breadcrumbs patch (
host/crumbs.rs, hooks inHostList::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 on GitHub · 2026-11-27 16:17 UTC · original
@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 on GitHub · 2026-11-27 16:35 UTC · original
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 on GitHub · 2026-11-27 16:40 UTC · original
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+0x23cf683followed, withUnsignaled CrossQueueBarrier, at game frame 1118 inFBK_STRY000_INTROPrestream. So #315 does not fix it here.@zmelumian972 on GitHub · 2026-11-27 16:48 UTC · original
More data from
f948c70(RTX 5090, 620.73.04, GE-Proton11-14 + viewtree,series-s):fdd56d97a806bccais 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).4e296b1885c37b29,88994c3496045f51andba2ea928faffd2b0(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
fdd56d97a806bccaalone 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 on GitHub · 2026-11-27 16:58 UTC · original
@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 on GitHub · 2026-11-27 17:51 UTC · original
Breadcrumbs from a second RTX 5090 (driver 620.73.04, GE-Proton11-14 + viewtree,
series-s, windowed). The build is00a8d44+ #332 merged locally, with translator v15, freshly re-translated shaders and 1,493 re-warmed pipelines (0 failed). Runs usedVICTORY_GPU_TIMING=1 VICTORY_GPU_CRUMBS=1 VKD3D_CONFIG=fault. Every run had a single liststopped=1:WriteInvalid#37 draw 3x1 [vertex 88dc833624e2c5ec, pixel a7cfe758751c20aa]into a 128×128f10target (113 lists, 109 not begun)0x136317000#3 dispatch 9x1x1 [compute 55679a0547649d0b](93 lists, 87 not begun)0x12ddd7000#3 dispatch 9x1x1 [compute 55679a0547649d0b](89 lists, 85 not begun)0x12534c000#8 dispatch 87x1x1 [compute fdd56d97a806bcca](34 lists, 31 not begun)0x10f5f7000Every fault is followed by Xid 109 4 s later and Xid 31 at teardown.
55679a0547649d0bis new: 2 of 4 runs.55679a0547649d0bandfdd56d97a806bccabind the same 174 MB buffer as a UAV:Uav s0+1480: buffer (185532416, 182452224), with the same buffer asSrv s0+688(182452224x1 at 0xb0f0000). Both also bindu4=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 skippingfdd56d97a806bccaalone did not help.2048x2048 f71uploads) or noted no command (runs 2–4).Full logs are kept locally. I can share the complete
stopped amonglines (all tables) for each run.@TaynanGT on GitHub · 2026-11-27 17:58 UTC · original
@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 on GitHub · 2026-11-27 18:00 UTC · original
Got it
@zmelumian972 on GitHub · 2026-11-27 18:04 UTC · original
@TaynanGT maybe our agents missed an unconverted console address?
@zmelumian972 on GitHub · 2026-11-27 18:06 UTC · original
Let me run that theory with my agent
@TaynanGT on GitHub · 2026-11-27 18:09 UTC · original
@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 on GitHub · 2026-11-27 18:36 UTC · original
Fair enough, apologies for bothering you
I will leave this one to you
@TaynanGT on GitHub · 2026-11-27 18:39 UTC · original
@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.