ComfyUI icon indicating copy to clipboard operation
ComfyUI copied to clipboard

The webui can be used for a period of time and then no response

Open LeeKIngKIng opened this issue 1 year ago • 5 comments

Your question

The webUI can be used for a period of time and then no response. When I click the button 'Queue Prompt', the backend can print out message normally. Finally I find out that there's something wrong with the function 'publish_loop' in the Class 'PromptServer'. 'self.messages.put_nowait' can normally add item into the queue, but 'await self.messages.get()' is stuck and the msg can't be sent out by socket any more. How can I fix this Problem?

Logs

No response

Other

No response

LeeKIngKIng avatar Jul 09 '24 02:07 LeeKIngKIng

Can you write down detailed reproduction steps? e.g. 1. Click ... 2. Click .. 3. Observe ...

huchenlei avatar Jul 09 '24 14:07 huchenlei

Can you write down detailed reproduction steps? e.g. 1. Click ... 2. Click .. 3. Observe ...

There's no step. The webUI can run normally for a period of time. Maybe one hour, maybe two...But finally it will be no response. I find out that the code 'await self.messages.get()' is stuck, but I don't know why and how it happens?

By the way,I also run the webUI in the iframe on other website and there’s going to be a situation like multiple user. Is there any problem like that?

LeeKIngKIng avatar Jul 10 '24 01:07 LeeKIngKIng

Hmmm, seems to be a hard to repro flaky issue. How did you managed to get down to await self.messages.get()?

huchenlei avatar Jul 10 '24 01:07 huchenlei

Hmmm, seems to be a hard to repro flaky issue. How did you managed to get down to await self.messages.get()?

when there’s no response on the webui, the http request works and the terminal prints out the logging info,so I realize that the problem is on the socket. Just step by step. post_prompt > prompt_queue.put > queue_updated > send_sync and finally 'await self.messages.get' in publish_loop is stuck

LeeKIngKIng avatar Jul 10 '24 02:07 LeeKIngKIng

Fortunately,I finally find out that it's the custom nodes named Crystools which causes this problem. All I have to do is to disable it. Maybe it sends too many socket messages? I don't know the deep reason.

LeeKIngKIng avatar Jul 11 '24 01:07 LeeKIngKIng

Hmmm. Maybe you can file an issue in the custom node repo instead. Closing this for now.

huchenlei avatar Jul 11 '24 02:07 huchenlei

Fortunately,I finally find out that it's the custom nodes named Crystools which causes this problem. All I have to do is to disable it. Maybe it sends too many socket messages? I don't know the deep reason.

@crystian Maybe the resource monitor is causing this error.

ltdrdata avatar Jul 11 '24 12:07 ltdrdata

Fortunately,I finally find out that it's the custom nodes named Crystools which causes this problem. All I have to do is to disable it. Maybe it sends too many socket messages? I don't know the deep reason.

please create an issue on my repo. I don't believe that raises only with my node (many people will be affected by it), but we'll check it! (fill the form please!)

crystian avatar Jul 11 '24 13:07 crystian