World GPU fault: title's own hang-check exits (EXIT 1) 5-22s after "in the world" — same fault as VIctory #844 #16
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/vktory6--VKtory#16
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?
@peraperkan on GitHub · 2026-11-30 17:57 UTC · original
Symptom
On the target system (RX 9070 XT, Mesa 26.3.1, 30 GB RAM, Proton 11/GE-Proton 11-15), every run reaches "in the world" (renders fine, 12-17 fps), then the title exits on its own after 5-22 s with:
No panic, no
VK_ERROR_DEVICE_LOST, no segfault. Reproducible 7/7 runs, at varying times (5s, 14s, 16s, 22s...). Not affected by: AFMF/MangoHud layers,VKB_REC_THREADS(1 or 8),VKB_GTT_BUDGET_GB,UMEM_LAZY_UNBIND, Mesa 26.2.4 vs 26.3.1.Likely root cause (matches upstream VIctory #844 and #714)
This is the same world-GPU-fault pattern Slaktarn700 diagnosed and fixed in the D3D12 path (Marvisak/VIctory#844, branch
Slaktarn700:proton-fixes):watch::writes) before each submit.Upstream: "Before, it was lost after 5–90 s" — exactly the window seen here. VIctory#714 notes the reason no
DEVICE_LOSTappears: "the title's own hang check exits first." That is why the only signal istitle exited with 1.vkback-specific note
The D3D12 path's fix (re-mirror from the title's record under the slot lock,
HostHeap::mirror) does not exist in vkback by design —descjob.rsdocuments that vkback "jobs are not made from the record at run time, so the order is kept by one stream instead." If the title writes descriptor slots straight into its own heap memory, that stream never sees the write, which matches the crash.Per-frame evidence of the title touching unmapped addresses (expected stale words, but the same reads that fault when they land in a live slot):
Reference
umrwave-dump evidence and the 8-minute-no-device-loss result).Happy to test a vkback port once it exists — I can rebuild from source on this exact machine (RX 9070 XT, RADV).
@peraperkan on GitHub · 2026-11-30 18:02 UTC · original
Follow-up from source review: vkback already has equivalents of BOTH #844 fixes, so the fault persisting here is a scene-specific case the current mechanisms miss.
live.rsindex_slots_begin/slot_reads/retry_slot_readsat eachExecute(the comment there literally citesresync_title_writes).flatviews.rs: the whole title window is one sparse buffer, reads by 40-bit address pick a view slice; unmapped pages "read zeros and drop writes" (residencyNonResidentStrict). Added 2026-11-29.bufview.rsexact_view+ null for "buffer view not on 4 bytes … over no title memory" — the0xd00000007/0x100000007rule32 lines are this already-handled path.So the crash is not the two known faults. The remaining signature in the logs is:
title exited with 1, ~5–22 s after "in the world", noDEVICE_LOST, ~10–36rule32 buffer view … over no title memoryper run (all the handled stale-word path).I can capture whatever is needed for repro on this exact box (RX 9070 XT, RADV 26.3.1). If there's a
VKB_*diagnostic to arm (per-op watch, gpuprof, umr-friendly dumps) that would pin the faulting op, point me at it and I'll run it.@peraperkan on GitHub · 2026-11-30 18:19 UTC · original
RGP capture note (relevant to debugging the fault):
MESA_VK_TRACE=rgpenables RADV thread trace fine on this box (radv: Thread trace support is enabled (128 MiB)in log.txt), and bothMESA_VK_TRACE_FRAME=1andMESA_VK_TRACE_TRIGGERproduce.rgpfiles withvkcube. But for VKtory neither trigger nor frame produces a capture — vkback's standalone present mode logsno game window known ... frames are not shown until it comesbefore the swapchain exists, and the capture trigger never fires. If RGP captures are the intended way to pin the faulting wave (as with the umr dumps in VIctory#844), is there a VKtory flag to force the windowed/swapchain present path (or should capture be armed after the window arrives)?@vktory6 on GitHub · 2026-11-30 22:36 UTC · original
Thanks for the detailed report, and for the follow-up: you're right, vkback has both of those mechanisms (the
title's byte copies into its shader-visible heaps are found through the heap write watch and sent before each
submission, and by-address reads go through the flat title window, which reads zeros on unmapped pages). The rule-32
buffer view ... over no title memorylines are counted and nulled, so on their own they don't explain an exit.What we know:
(prison cell), no device loss, nothing in
log.txtorvk.log. It did not come back, so it is open and unexplained(
docs/learnings/shader-store.md, "Prison runs: title exits ...", anddocs/learnings/exposure-pair.md, "Open").title exited with 1is printed by our launcher when the title's main thread returns with that code. It is not acrash, and not the
exit/TerminateProcesspaths, which logtitle exits/title terminates the processwith thecallers. So the title itself decided to stop.
kernel log (
docs/learnings/vkback-descriptors-and-hangs.md). If there is nothing there, a GPU hang check isunlikely to be the reason.
What would help:
tools/play.shdefaults or a save), and any switches youset.
log.txtandvk.logof one run (the last ~200 lines of each is fine), especially anytitle exits,title terminates,title abortsor unhandled-exception lines with theirfrom=callers.journalctl -k(ordmesg) around the moment of the exit: any amdgpu ring timeout, page fault or reset lines.VKB_LAT=<file>, and the last seconds throughgreenfield/tools/frec/frames.py <run> <from_s> <to_s>.That shows whether presents and GPU work kept completing right up to the exit, or stopped before it.
On RGP: there is no windowed mode or second present path. vkback always presents into the title's own window
(borderless full screen); the
no game window knownline is logged once, for the first presents before the PE sidehas sent the window, and it presents normally after that (
docs/learnings/present.md). Check the log forfailed to set new pstate. (-16)(see #9), and note thatMESA_VK_TRACEturns off vkback's pipeline cache, so thefirst world seconds are slow (
docs/learnings/gpu-time.md). For this exit, though, the logs and the kernel log aboveare the better first step: without a device loss there may be no faulting wave to find.
@vktory6 on GitHub · 2026-11-30 22:40 UTC · original
I created a task based on your report:
github.com/vktory6/VKtory@5cae53b40f@TheRifai on GitHub · 2026-12-01 09:04 UTC · original
Adding findings from a local investigation on the reference machine (GE-Proton11-15, build with an 8 MiB title-main stack floor), in case they save someone time:
0100:err:virtual:virtual_setup_exception stack overflow 2048 bytes addr 0x7f364ff79099 stack 0xd20800 (0xd20000-0xd21000-0xe20000)— thread0100is the Rusttitle-mainthread created byspawn_mainwith the image's 1 MiB reserve. Its last calls were a burst of env reads then fourSetThreadIdealProcessorEx.title-mainto 8 MiB removed that ERR line, but 2 of 3 runs still exited 1 about 40-45 s after world entry; a fourth survived 150 s. Two later 180 s filtered runs also survived. So the reserve masks one instance at most; the intermittent exit has another cause.WINEDEBUG=+process, the parent Protonstart.exelogsNtTerminateProcess handle (nil), exit_code 1after thevictory.exechild disappears; the child logs noNtTerminateProcess, and there is notitle exits/title calls ExitProcess/title terminatesline. The guest process ends on the Unix side, silently. Its native process exited with status 0 in the LD_PRELOAD trace, so that trace did not identify a Windows exit code.abortfrompanic_cannot_unwind <- vkback_unix::live_donewhile Wine was forcibly unwinding a thread — this is the Unix-call teardown panic already described incrates/victory-gpu/src/unixgate.rs, not the initiating event.VICTORY_STACKSsuspends threads; a filtered run with it produced a nested exception on a signal stack whose PC mapped into Wine'susr1_handler(SIGUSR1, used bySuspendThread). WithoutVICTORY_STACKSthat exception does not appear — don't chase it as the cause.dmesgshowed no amdgpu ring timeout around the exits.Evidence is in
/tmp/opencode/capture/(native-exittrace-*,seh-filter-*,stackfix-*) and the detailed chronology in the local todo. No PR shipped because no initiating mechanism was proven. If someone has a diagnostic that can see the guest's exit decision before teardown, that seems to be the missing piece.@vktory6 on GitHub · 2026-12-01 09:08 UTC · original
Thanks, this narrows it down a lot, especially that the child process ends without any of our exit lines while the parent reports 1, and that the bigger stack isn't the fix. I added your findings to the task "The title exits with code 1 seconds after reaching the world" in
github.com/vktory6/VKtory@a2d52e2.@TheRifai on GitHub · 2026-12-01 09:56 UTC · original
Another repro on current main (
b53e3b5), with validation, BCPack tables,VKB_LATand a scripted camera walk from the house save (world at 09:51:49 UTC):W 6,I 3,K 3,J 2,L 2(pressed at 09:51:49.9, :56.0, :59.3, 09:52:02.5 and :04.7 respectively).EXIT 1at 09:52:05.46 — about 0.75 s after theLpress, ~16 s after world entry.06409); loud summary has only the two known rule-32 kinds. Notitle exited, no exit/abort log, no device-lost line, no amdgpu fault.This matches the earlier note that the bathroom-transition exit happens while binding a new mesh pipeline: camera movement brings new geometry into view, a batch of pipelines is made, and the title stops shortly after. It is not tied to one key in particular — each new direction produces its own bind burst. Evidence in
/tmp/opencode/capture/explore-main/(validation log,lat.txt, per-second stats).@vktory6 on GitHub · 2026-12-01 10:05 UTC · original
Thanks, a repro on main in ~16 s is very useful, and the timing (a burst of new pipelines and translations right before the end) is the best lead so far. It is in the task as
Rechecked on: b53e3b5(github.com/vktory6/VKtory@dee2dbb).