mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #875] [Issue]: Default ComfyUI workflow sends width/height as strings #426
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#426
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 @Xelvanis on GitHub (May 15, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/875
Originally assigned to: @cha1latte on GitHub.
Summary
The bundled/default ComfyUI workflow can fail because numeric placeholders such as
%width%and%height%are substituted after the workflow is stringified, leaving ComfyUI with string values instead of numbers.This makes the default ComfyUI path fail before an image is produced.
Expected behavior
The default ComfyUI workflow should queue and run without requiring users to paste a custom workflow. Numeric workflow inputs should be sent as numbers, for example:
Actual behavior
ComfyUI receives numeric fields as strings, for example:
Then ComfyUI crashes in the
EmptyLatentImagenode when it tries to divide the height by 8.Steps to reproduce
Environment
Logs, screenshots, or video
User-reported ComfyUI error:
Relevant code path appears to be
packages/server/src/services/image/image-generation.ts:DEFAULT_COMFYUI_WORKFLOWdefinesEmptyLatentImage.inputs.width/heightas%width%/%height%string placeholders.generateComfyUI()runsJSON.stringify(workflow), replaces%width%and%height%with numeric-looking text, then parses the JSON again.Additional context
Workaround for affected users:
Paste a custom ComfyUI workflow and hard-code numeric values in the
EmptyLatentImagenode, for example:A likely fix is to replace workflow placeholders with type-aware traversal before stringifying, or to coerce exact numeric placeholders such as
%width%,%height%,%seed%,%steps%,%cfg%,%denoise%, and%clip_skip%into numbers when they occupy a whole JSON value.Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked: