Silent process death mid-sampling with WanAnimate2Cache device=gpu dtype=int8 (works with custom nodes disabled)
Environment: Windows 11, ComfyUI 0.34.0, torch 2.13.0+cu130, comfy-kitchen 0.2.31, dual 16GB Blackwell cards (RTX 5060 Ti + 5070 Ti), ComfyUI-MultiGPU at b51c99a. DynamicVRAM not enabled (startup log: "[MultiGPU] DynamicVRAM not enabled; skipping multi-device aimdo initialization"); MultiGPU core patches active (mm.soft_empty_cache patch, comfy_kitchen CUDA DLPack device guard, current_stream patch).
Symptom: running the official video_wan_animate2_distilled Motion Transfer graph (single 81-frame or 49-frame chunk, wan_animate_2_distill_int8_convrot UNET partial-offloaded ~7.3GB GPU / ~8.6GB CPU) with the template's shipped WanAnimate2Cache settings device=gpu, dtype=int8, the ComfyUI process dies silently ~17s into sampling step 1 — no Python traceback, the log simply stops after the model-load lines; the HTTP server goes unreachable.
Differential evidence (same box, same graph, same seed, same checkpoints):
- With custom nodes loaded (MultiGPU core patches active): silent process death, reproduced repeatedly at 49f and 81f.
- With
--disable-all-custom-nodes: the identical API graph completes (10/10 steps, 126.8s at 49f @480x854). - With custom nodes loaded but
WanAnimate2Cacheset to device=cpu, dtype=default: completes at both 49f and 81f.
So the crash needs the combination of MultiGPU's patches + the gpu/int8 pose-cache path; either alone is fine. Happy to run diagnostics if you can suggest instrumentation — nothing lands in the log at default verbosity before the process exits.
Workaround: pin WanAnimate2Cache to cpu/default.
🤖 Generated with Claude Code
Silent death with nothing in the log matches what this stack did on my box (2x 3080 20G, Windows, torch 2.10+cu130, H3 int8_convrot). The way to get a stack out of it is faulthandler: enable it before ComfyUI starts (PYTHONFAULTHANDLER=1, or faulthandler.enable (all_threads=True) early in main.py) and run with stdout/stderr redirected to a file. This kind of crash is a native access violation, so Python's traceback machinery never gets a chance, but faulthandler does catch it - it printed the full stack for me where the normal log showed nothing.
The stack I got pointed into comfy_kitchen's dequant/dispatch path, reached from the MultiGPU DLPack guard - same territory as #220 and #213. Your differential already lines up with that: the workaround that holds (moving the pose cache off gpu/int8) is exactly the case where packed int8 tensors stop crossing devices.
FWIW the DynamicVRAM flag being off doesn't rule this family out. The crashes I could pin down came from the block-move path itself - packed weights going through kitchen's dequant/requant on the way - which is reachable without aimdo in the picture.
If it's useful as a data point: what finally stopped it for me was not moving weights between devices at all - static placement of the blocks, no per-step cross-device shuffling. That worked on H3 (https://github.com/ylzbj1-stack/ComfyUI-StaticPipeline), and I have no way to know whether it maps onto WanAnimate2's structure, so treat it as a direction rather than a drop-in fix.