Skip to content

ComfyUI first-generation corruption occurs only on first image generation after launch. #13587

@abline11

Description

@abline11

System:

Windows 11
RTX 3070 Ti Laptop GPU (8GB)
ComfyUI 0.17.2 rev 4905
Torch 2.9.1+cu130

Behaviour:

First generation after launch is corrupted
Second generation with identical settings is clean

Testing:

--cuda-malloc alone: does not fix
--disable-cuda-malloc alone: does not fix
--cuda-malloc --disable-cuda-malloc together: fixes the issue consistently

Important:

Order appears relevant
Working launch command:

.\python_embeded\python.exe -s ComfyUI\main.py --disable-api-nodes --windows-standalone-build --cuda-malloc --disable-cuda-malloc

This suggests allocator initialisation differs from final allocator selection, and both flags together change first-run startup behaviour in a way neither flag alone does.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions