Troubleshooting & FAQ
Quick fixes for the errors you will run into most often when setting up PyTorch, models, custom nodes, and large workflows.
#CUDA out of memory
Allocation on device or CUDA out of memory means a node tried to allocate more GPU memory than Dynamic VRAM can fit alongside your OS.
- Remove legacy flags: clear
--highvram,--gpu-only, or--disable-dynamic-vramso Dynamic VRAM and async weight streaming can offload layers automatically. - Lower resolution or batch size: verify your empty latent node is near native training size (
1024 x 1024,batch_size = 1) rather than2048 x 2048. - Switch to Tiled VAE: if sampling hits 100% and crashes right during decode, replace
VAE DecodewithVAE Decode (Tiled)(tile_size: 512,overlap: 64). - Use native quantized weights: swap unquantized 16-bit diffusion models and text encoders for native
convrot int8,w6a8,FP8, orNVFP4.safetensorsfiles (do not use GGUF). - Leave OS headroom and clear cache: launch with
--vram-headroom 1.0if other GPU apps (browsers, games) stay open, add--fast-diskon fast NVMe SSDs if system RAM is low, and click Unload Models / Free Memory in ComfyUI's top menu.
#Missing custom nodes
Opening someone else's PNG or JSON workflow often shows red-bordered nodes and a Missing Node Types modal.
- Make sure ComfyUI-Manager is active (pre-installed on Desktop App, or enabled with
pip install -r manager_requirements.txtandpython main.py --enable-manager). - Open Manager -> Install Missing Custom Nodes inside ComfyUI.
- Review the list, click Install on the matching packages, and Restart ComfyUI completely.
- If a node still shows red after restarting, check the ComfyUI console or bottom Logs panel (
Ctrl + `) forModuleNotFoundErrortracebacks and install its dependencies inside your ComfyUI environment:
# Run from inside your ComfyUI virtual environment (or python_embeded on Windows Portable)
pip install -r custom_nodes/<pack-folder>/requirements.txt#Black or NaN outputs
If images render solid black, neon noise, or trigger NaN / invalid value errors:
- Wrong VAE: SDXL, SD 1.5, Flux (
ae.safetensorsvs Flux.2 VAE), Qwen-Image 2.1, Wan, and SD 3.5 each require their own matching VAE. Mixing VAEs causes black images or distorted colors. - Wrong latent node: match the channel count to the architecture (
Empty Flux 2 Latent32-ch for Flux.2,Empty SD3 Latent Image16-ch for Flux.1 / SD 3.5 / Z-Image / Anima,Empty Latent Image4-ch for SDXL / SD 1.5). - SDXL FP16 VAE overflow: older SDXL 1.0 VAEs can overflow in FP16. Use
sdxl_vae_fp16fixor pass--bf16-vae/--fp32-vae. - Excessive CFG or LoRA strength: check model-specific CFG (
1.0for distilled/Turbo models andQwen-Image 2.1;1.0+FluxGuidancefor Flux.1 Dev), and keep stacked LoRA weights balanced. - Precision / compiler flags: remove
--fastflags, test--force-upcast-attentionif black outputs persist on older GPUs, or test--disable-cuda-graphsonly to check for kernel bugs.
#PyTorch and launch issues
#Torch not compiled with CUDA enabled
Your Python environment installed CPU-only PyTorch instead of the CUDA build. Reinstall PyTorch with cu130 (for NVIDIA RTX 20-series+) inside your active venv:
pip uninstall -y torch torchvision torchaudio
pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu130If you are on a legacy GTX 10-series or older card, use the cu126 index instead.
#Address already in use on port 8188
Another ComfyUI instance (or orphaned background python process) is still bound to port 8188:
python main.py --port 8189Or close the previous terminal window / terminate the leftover python process first.
#Slow model loading on every run
- Store
ComfyUI/models/on an internal NVMe SSD instead of a spinning HDD or external USB drive. - Make sure you are using native
.safetensorsquantized weights rather than GGUF files or bloated unquantized FP32 checkpoints. - Add sufficient system RAM (32 GB+ recommended for 12B+ models) or try
--fast-diskon fast NVMe storage if system RAM is constrained.
#Recovering from a broken custom node update
If ComfyUI fails to boot or freezes after installing or updating a custom node pack:
- Test core ComfyUI first with
python main.py --disable-all-custom-nodes. - Bring back packs selectively with
--whitelist-custom-nodes pack_a pack_b(or list broken node IDs in--disabled-nodes-config path.yaml). - Alternatively, open
ComfyUI/custom_nodes/and append.disabledto the problem folder name so ComfyUI skips it on startup.
#Disabling Partner Nodes or running fully offline
- Hide paid API nodes only: start ComfyUI with
--disable-partner-nodeswhile keeping frontend features such as Manager and template updates online. - Strict air-gapped mode: start with
--offlineto disable Partner Nodes and apply a restrictive Content Security Policy blocking external frontend network access.
Ready to build your own nodes in Python? Read Custom Node Development.