If comfy ui crashes, or simply closes, multiple processes of comfy ui are still running. If I relaunch Comfy ui, I will get cuda errors, disconnections,… At first I restarted the computer to make it work again, but I thought I’ll just check the running processes, and when I shut them down in the process manager, comfy ui can restart without errors. I believe it’s an oversight, that would be nice to not have to find and shut down each instances/artifacts remaining! → comfy ui desktop
Having the same issue here. I had to create a batch file that I run any time I close or restart comfyUI. Add these two lines to a .bat file and run it when this happens until they get it fixed.
taskkill /F /IM ComfyUI.exe
taskkill /F /IM python.exe
oh thanks man, does it fix the disconnection issue as well? it’s like comfy never know when to clean up the vram or leaves unwanted things that bloats the paging file and stuff, I feel each update it’s getting worse arg
It won’t clean any temp files or caches, no. However, I did find that if I start ComfyUI from a command prompt instead of running it directly from the start menu or clicking its icon, I can press any key (like spacebar) to cleanly stop ComfyUi. Press a key in the command prompt window and not ComfyUI. So far it’s been solving the issue.
if the fix is that simple, there is no reason it’s not implemented yet
