Comfy-Org / Comfy-Org/ComfyUI

RuntimeError: <asyncio.locks.Lock object at 0x000002A79E6B2B50 [unlocked, waiters:1]> is bound to a different event loop

Open
#3,232 11 comments 2 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
133k
Forks
15.7k
Avg merge
1d 10h
Merged PRs (30d)
153

Description

Traceback (most recent call last):
File "E:\IMAGE\ComfyUI-base-py311-0329\ComfyUI\main.py", line 254, in
loop.run_until_complete(run(server, address=args.listen, port=args.port, verbose=not args.dont_print_server, call_on_start=call_on_start))
File "asyncio\base_events.py", line 654, in run_until_complete
File "E:\IMAGE\ComfyUI-base-py311-0329\ComfyUI\main.py", line 149, in run
await asyncio.gather(server.start(address, port, verbose, call_on_start), server.publish_loop())
File "E:\IMAGE\ComfyUI-base-py311-0329\ComfyUI\server.py", line 621, in publish_loop
await self.send(*msg)
File "E:\IMAGE\ComfyUI-base-py311-0329\ComfyUI\server.py", line 556, in send
await self.send_json(event, data, sid)
File "E:\IMAGE\ComfyUI-base-py311-0329\ComfyUI\server.py", line 607, in send_json
await send_socket_catch_exception(ws.send_json, message)
File "E:\IMAGE\ComfyUI-base-py311-0329\ComfyUI\server.py", line 35, in send_socket_catch_exception
await function(message)
File "E:\IMAGE\ComfyUI-base-py311-0329\python_embeded\Lib\site-packages\aiohttp\web_ws.py", line 351, in send_json
await self.send_str(dumps(data), compress=compress)
File "E:\IMAGE\ComfyUI-base-py311-0329\python_embeded\Lib\site-packages\aiohttp\web_ws.py", line 335, in send_str
await self._writer.send(data, binary=False, compress=compress)
File "E:\IMAGE\ComfyUI-base-py311-0329\python_embeded\Lib\site-packages\aiohttp\http_websocket.py", line 729, in send
await self._send_frame(message, WSMsgType.TEXT, compress)
File "E:\IMAGE\ComfyUI-base-py311-0329\python_embeded\Lib\site-packages\aiohttp\http_websocket.py", line 644, in _send_frame
message = await compressobj.compress(message)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\IMAGE\ComfyUI-base-py311-0329\python_embeded\Lib\site-packages\aiohttp\compression_utils.py", line 71, in compress
async with self._compress_lock:
File "asyncio\locks.py", line 15, in __aenter__
File "asyncio\locks.py", line 106, in acquire
File "asyncio\mixins.py", line 20, in _get_loop
RuntimeError: is bound to a different event loop

it happened very often

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.