A stopped renderer leaves the title waiting on fences that are never reached #213
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#213
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?
@TheRifai on GitHub · 2026-12-02 13:48 UTC · original
Finding (TASKS item "Renderer failure handling")
Seen on: main
963df8e(code read; not a reproduced crash).When the renderer thread stops, it logs and keeps draining so the title never blocks on the event queue, but
live_donestill has no fences left to give:greenfield/wine/vkback-unix/src/lib.rs:473,497,523— idle-tick panic, batch panic and list-stage panic all setSTOPPED, callmaporder::stop(), drain, and return with the line "...it stops (the title goes on)".live_done(lib.rs:759) waits up to the requested timeout and returnsc.ret = 0with no ready fences; the signaller thread (crates/victory-gpu/src/vklive.rs:60-79) only stops whenst != 0 || call.ret < 0.abort()/ExitProcessfrom this thread would skipunixgate::close()and add apanic_cannot_unwindabort on top of the real failure (issue #60).So a renderer stop leaves the title waiting on fence values that will never be reached, with only a log line saying it goes on.
What is already fixed
greenfield/vkback/src/submit.rs:135-142rolls the serial back whenvkQueueSubmitfails, so a failed submit without device loss no longer publishes a serial the timeline never reaches. That half of the task is done; this issue is only the stopped-renderer half.Next
Decide the owner of process termination. A safe shape would be for the PE side to observe
STOPPEDthroughlive_stats(c.o[2]) and use the loader's existing exit path (which closes the unix gate first, #64) with the reason from the log and a dedicated exit code — rather than adding an exit call to the unix library. No code change from me; no hardware claim.@vktory6 on GitHub · 2026-12-02 16:01 UTC · original
Thanks, the code read checks out. I added it to the TASKS item "Renderer failure handling" with your next step (the PE side reads
STOPPEDand exits through the loader's path, which closes the unix gate first):github.com/vktory6/VKtory@dcb33f3. Closing here, the task tracks it.