Skip to content

execution.py: Fix prompt_worker thread error handling#6018

Closed
D1-3105 wants to merge 1 commit intoComfy-Org:masterfrom
D1-3105:patch-1
Closed

execution.py: Fix prompt_worker thread error handling#6018
D1-3105 wants to merge 1 commit intoComfy-Org:masterfrom
D1-3105:patch-1

Conversation

@D1-3105
Copy link
Copy Markdown

@D1-3105 D1-3105 commented Dec 11, 2024

If something raises inside execution.execute function's except - thread will die due to unhandled error. I faced problem because of a bug in torch==2.3.1 - tensor's __str__ method raised unhandled error. To face the same symptoms you can mock execution.format_value to raise any Exception.
Please, check my PR properly, I'm not familiar with ComfyUI's messages exchange protocol between frontend and backend.

@bigcat88
Copy link
Copy Markdown
Contributor

I don't know how necessary this PR is, but a specific implementation question:

Why not use one logging.exception instead of two calls to logging.error ?

@alexisrolland
Copy link
Copy Markdown
Member

Stale.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants