File "asyncio\proactor_events.py", line 165, in _call_connection_lost
When you have multiple tabs open (edge/win11/all latest everything inc. comfy) -you get random: File "asyncio\proactor_events.py", line 165, in _call_connection_lost when browsing other tabs, i found youtube was a good one to repeat this message.
The full dump is
Exception in callback _ProactorBasePipeTransport._call_connection_lost(None)
handle: <Handle _ProactorBasePipeTransport._call_connection_lost(None)>
Traceback (most recent call last):
File "asyncio\events.py", line 80, in _run
File "asyncio\proactor_events.py", line 165, in _call_connection_lost
ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host
AFAIK it's non-fatal but it's certainly new - wasn't doing that as of a week ago.
I hope this helps a bit.
Same here
修改asyncio\windows_events.py文件,把 DefaultEventLoopPolicy = WindowsProactorEventLoopPolicy 修改成 DefaultEventLoopPolicy = WindowsSelectorEventLoopPolicy
修改asyncio\windows_events.py文件,把 DefaultEventLoopPolicy = WindowsProactorEventLoopPolicy 修改成 DefaultEventLoopPolicy = WindowsSelectorEventLoopPolicy
该文件地址在哪
修改asyncio\windows_events.py文件,把 DefaultEventLoopPolicy = WindowsProactorEventLoopPolicy 修改成 DefaultEventLoopPolicy = WindowsSelectorEventLoopPolicy
Instead of directly modifying the Python file, it is recommended to add windows_selector_event_loop_policy=True to ComfyUI-Manager/config.ini.
修改asyncio\windows_events.py文件,把 DefaultEventLoopPolicy = WindowsProactorEventLoopPolicy 修改成 DefaultEventLoopPolicy = WindowsSelectorEventLoopPolicy
Instead of directly modifying the Python file, it is recommended to add
windows_selector_event_loop_policy=TruetoComfyUI-Manager/config.ini.
ComfyUI-Manager not have config.ini, and I add config.ini copy windows_selector_event_loop_policy=True in it and error still there.
Got idea from https://www.cnblogs.com/zongdeiqianxing/p/17107077.html , modified main.py under ComfyUI root folder.
find code os.name == "nt" and added one line (see the last line below)
it should be this:
if os.name == "nt":
logging.getLogger("xformers").addFilter(lambda record: 'A matching Triton is not available' not in record.getMessage())
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy()) # line added
Confirming for anyone who has the same issue, both these options work.
I've just changed the config.ini which is in ComfyUI\user\default\ComfyUI-Manager
Confirming for anyone who has the same issue, both these options work.
I've just changed the config.ini which is in ComfyUI\user\default\ComfyUI-Manager
thx, ArctiXArts, find the path and fixed the promblem.
This should be stickied somewhere I just experienced this issue today
确认给任何遇到相同问题的人,这两个选项都有效。 我刚刚修改了位于 ComfyUI\user\default\ComfyUI-Manager 的 config.ini 文件。
谢谢,ArctiXArts 找到了路径并解决了问题。
However, a new problem arises: when windows_selector_event_loop_policy is set to True, it will force the system to use the old SelectorEventLoop, which causes compatibility issues with the video preview function of ComfyUI-VideoHelperSuite, and the video preview function will fail to load.
这样改确实不报错了,但远程的预览图不能显示