Comfyui Crashing and can't restart it until restarting computer.
- Dominant language
- Python
- Stars
- 133k
- Forks
- 15.7k
- Avg merge
- 1d 7h
- Merged PRs (30d)
- 158
Description
Hi, I'm getting this issue sometimes when using Quantops for the INT8 format. Typically this issue happens if I have --cache-none off as a startup argument or I have been working with other models and I haven't cleared them from the cache/memory.
It has been happening tonight when --Cache-none is still on so something is off and more to the point and I'd like to know why this is allowed to happen? It's not the crashing part that bothers me its the need to restart, it is killing comfy (other AI/Python tools load like my standalone reforge UI) I use Stability Matrix and I have 2 installs of Comfy, Stability Matrix will start up fine but Comfy wont at all.
All Comfy and Python processes have been manually killed if running in taskman, even when I try to start it again, the Python process will appear in Taskman yet Comfyui can't be seen to even start loading in the log. Another important point is it seems to be killing other services too, my audio software Waves License service wont load until restart after this issue happens, so its not inconsequential.
Once again I think this is something to do with dynamicvram, I've noticed when this happens (and it shouldn't) that my 'commited' amount in Taskman will spring all the way up to 90gb when it should only be around 50-60gb tops) this was originally happening before I installed the proper wheel but I have that and there have been no updates this week, all the nodes, my Comfy amd my graphics drivers are up to date, daily.
The error is below:
QuantizedModelLoader: Using UnifiedQuantOps for int8_tensorwise models
Found quantization metadata version 1
Detected mixed precision quantization
Windows fatal exception: access violation
Stack (most recent call first):
File "D:\SM\Data\Packages\Comf\venv\Lib\site-packages\torch\nn\modules\linear.py", line 109 in __init__
File "D:\SM\Data\Packages\Comf\comfy\ops.py", line 343 in __init__
File "D:\SM\Data\Packages\Comf\custom_nodes\ComfyUI-QuantOps\unified_ops.py", line 57 in __init__
File "D:\SM\Data\Packages\Comf\comfy\ldm\lightricks\model.py", line 305 in __init__
File "D:\SM\Data\Packages\Comf\comfy\ldm\lightricks\model.py", line 315 in __init__
File "D:\SM\Data\Packages\Comf\comfy\ldm\lightricks\av_model.py", line 178 in __init__
File "D:\SM\Data\Packages\Comf\comfy\ldm\lightricks\av_model.py", line 586 in _init_transformer_blocks
File "D:\SM\Data\Packages\Comf\comfy\ldm\lightricks\model.py", line 696 in __init__
File "D:\SM\Data\Packages\Comf\comfy\ldm\lightricks\model.py", line 968 in __init__
File "D:\SM\Data\Packages\Comf\comfy\ldm\lightricks\av_model.py", line 427 in __init__
File "D:\SM\Data\Packages\Comf\comfy\model_base.py", line 148 in __init__
File "D:\SM\Data\Packages\Comf\comfy\model_base.py", line 1020 in __init__
File "D:\SM\Data\Packages\Comf\comfy\supported_models.py", line 878 in get_model
File "D:\SM\Data\Packages\Comf\comfy\sd.py", line 1645 in load_state_dict_guess_config
File "D:\SM\Data\Packages\Comf\custom_nodes\ComfyUI-QuantOps\nodes\loader_nodes.py", line 104 in load_checkpoint
File "D:\SM\Data\Packages\Comf\execution.py", line 296 in process_inputs
File "D:\SM\Data\Packages\Comf\execution.py", line 308 in _async_map_node_over_list
File "D:\SM\Data\Packages\Comf\execution.py", line 334 in get_output_data
File "D:\SM\Data\Packages\Comf\execution.py", line 525 in execute
File "D:\SM\Data\Packages\Comf\execution.py", line 758 in execute_async
File "D:\SM\Data\Assets\Python\cpython-3.12.12-windows-x86_64-none\Lib\asyncio\events.py", line 88 in _run
File "D:\SM\Data\Assets\Python\cpython-3.12.12-windows-x86_64-none\Lib\asyncio\base_events.py", line 1999 in _run_once
File "D:\SM\Data\Assets\Python\cpython-3.12.12-windows-x86_64-none\Lib\asyncio\base_events.py", line 645 in run_forever
File "D:\SM\Data\Assets\Python\cpython-3.12.12-windows-x86_64-none\Lib\asyncio\windows_events.py", line 322 in run_forever
File "D:\SM\Data\Assets\Python\cpython-3.12.12-windows-x86_64-none\Lib\asyncio\base_events.py", line 678 in run_until_complete
File "D:\SM\Data\Assets\Python\cpython-3.12.12-windows-x86_64-none\Lib\asyncio\runners.py", line 118 in run
File "D:\SM\Data\Assets\Python\cpython-3.12.12-windows-x86_64-none\Lib\asyncio\runners.py", line 195 in run
File "D:\SM\Data\Packages\Comf\execution.py", line 702 in execute
File "D:\SM\Data\Packages\Comf\main.py", line 276 in prompt_worker
File "D:\SM\Data\Assets\Python\cpython-3.12.12-windows-x86_64-none\Lib\threading.py", line 1012 in run
File "D:\SM\Data\Assets\Python\cpython-3.12.12-windows-x86_64-none\Lib\threading.py", line 1075 in _bootstrap_inner
File "D:\SM\Data\Assets\Python\cpython-3.12.12-windows-x86_64-none\Lib\threading.py", line 1032 in _bootstrap
send error: Cannot write to closing transport
Thanks.
Contributor guide
Assessment
This issue has not been assessed yet.