mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #7784] [Issue]: Pictures and videos are lost when a local LLM and ComfyUI share one GPU through llama-swap #4298
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#4298
Loading…
Add table
Add a link
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?
Originally created by @JamesMowery on GitHub (Oct 18, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7784
Summary
On a single GPU where llama-swap swaps between a local LLM and ComfyUI, pictures and videos that characters send are lost when several chats ask for them at once. Most never reach ComfyUI, and Marinara shows no error for them. This is the gap described in #6498: Marinara's text requests and its image/video queue do not take turns on the shared GPU.
Expected behavior
Every selfie, Illustrator picture and video message either appears in the chat or shows an error. When text and media share one GPU, a waiting picture gets its turn instead of waiting behind an endless stream of text requests.
Actual behavior
In one test with four chats (conversation selfies, group selfies, video messages and an Illustrator picture), about 4–9 pictures and 1–3 videos were expected. ComfyUI received two jobs and Marinara saved one video. From the llama-swap, ComfyUI and Marinara logs:
comfyUiVideoFetchdoes not raise Undici's default 300 s headers timeout, so a video whose queue wait plus render passes 5 minutes fails withfetch failed: Headers Timeout Error. Image requests already raise it to the image timeout.generateSelfiereturns quietly when the prompt writer gives back nothing, with noselfie_errorand no log line. The video prompt writer already removes leading<think>blocks and reports an empty prompt.Pictures queued behind a starved or hung request then wait in the provider lane and never log anything.
Steps to reproduce
Environment
POST /promptopen until the render finishesLogs, screenshots, or video
Excerpt from the llama-swap debug log (the ComfyUI request waited from 00:13:32 to 00:19:30 while about 20 LLM requests went straight through):
Marinara:
Additional context
Follow-up to #6498. A PR adding opt-in turn-taking for a shared GPU host is on the way.
CLOSED UNTIL I GET MORE CLAUDE CODE USAGE AVAILABLE.
Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked: