Skip to content

Image cache error after update — generation stops when Queue > 4 (Noobl AI XL / Reference mode) #2135

@usr7072

Description

@usr7072

Description:
After the latest update of Krita AI Diffusion (and the local ComfyUI server), image generation stops with a cache error when the queue size exceeds 4 tasks.

Environment:

  • Model: Noobl AI XL
  • Mode: Reference mode
  • Connection: Local Server mode
  • Krita AI Diffusion & LocalServer both updated to latest version
  • OS: Windows 11

Steps to reproduce:

  1. Launch Krita AI Diffusion in LocalServer mode.
  2. Select Noobl AI XL and enable Reference mode.
  3. Create a queue of 8 tasks (my usual setting).
  4. Start the generation process.

Expected behavior:
All queued tasks should complete successfully.

Actual behavior:
When the queue count exceeds 4, generation stops with an error like the following:

C:\Users\Username\AppData\Roaming\krita\ai_diffusion\server\ComfyUI\comfy_extras\nodes_easycache.py:267: UserWarning: Using a non-tuple sequence for multidimensional indexing is deprecated and will be changed in pytorch 2.9; use x[tuple(seq)] instead of x[seq].

!!! Exception during processing !!!
Image with ID b64e24cc-f045-4c27-bcca-87bc34598270 not found in cache.
Traceback (most recent call last):
  File "C:\Users\Username\AppData\Roaming\krita\ai_diffusion\server\ComfyUI\custom_nodes\comfyui-tooling-nodes\nodes.py", line 179, in execute
    raise ValueError(f"Image with ID {id} not found in cache.")

ValueError: Image with ID b64e24cc-f045-4c27-bcca-87bc34598270 not found in cache.

When the queue is limited to 4, everything works normally.
If the queue drops to 1 remaining and I press Generate again, the newly added tasks finish correctly.

What I’ve tried:
Deleted the server directory and reinstalled the LocalServer.
Restarted Krita and the LocalServer multiple times.
The issue still persists.

Additional note:
This issue did not occur before the latest update.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions