ComfyUI Troubleshooting Guide
Render completes but looks WRONG (artifacts, wrong subject/pose/color, a
ControlNet/mask/LoRA not taking, a refiner degrading it)? That's not an error.
Use the debug-render skill (
list_packswithaction: "skill_read",
name: "debug-render") to localize the bad stage with run-to-node
(
panel_runto_node_id) by previewing intermediate steps. This guide is for
runs that fail with an error, OOM, or missing node.
Error Diagnosis Strategy
When a workflow fails, follow this approach:
- Get the error. Use
get_history(action="diagnose")to retrieve the execution result with the full traceback, plus any missing models/nodes - Check logs. Use
get_system_stats (action:"logs")with keyword filters like"error","warning","traceback" - Identify the failing node. The history response includes the
node_idandnode_typethat failed - Cross-reference inputs. Use
create_workflow (action:"node_info")to verify the failing node's expected input schema - Check models. Use
list_local_modelsto verify all referenced model files exist
Out of Memory (OOM)
Error Pattern
torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate X MiB.
GPU 0 has a total capacity of 24.00 GiB of which X MiB is free.
Or:
RuntimeError: CUDA error: out of memory
Root Cause
The GPU does not have enough VRAM to hold the model weights, intermediate tensors, and latent images at the same time. Common triggers:
- High resolution images (2048x2048+)
- Multiple models loaded at the same time
- FP32 precision models on limited VRAM
- Video generation (LTXV, AnimateDiff) with many frames
- Large batch sizes
Fixes (in order of preference)
- Reduce resolution. Drop to the model's native resolution (512 for SD 1.5, 1024 for SDXL/Flux)
- Use FP8/FP16 quantized models. FP8 Flux models use ~8GB vs ~24GB for FP16
- Search for FP8 variants:
download_model({ action: "search", query: "flux fp8" })or the same with"sdxl fp8"
- Launch flags (the VRAM ladder). Offload via ComfyUI CLI flags:
--lowvramoffloads text encoders / model parts to CPU--novramis extreme offload, the go-to for long video (LTX 2 / WAN) OOM--cache-nonecaches nothing (lowest RAM/VRAM); combine with--novram--reserve-vram Nreserves N GB so the GPU stops spilling into slow shared VRAM (Windows); typical2to4--disable-smart-memoryforces offload to RAM when a run gets stuck or OOMs intermittently- Full matrix and recipes: