Skip to content

BUG: AI tagging hangs indefinitely when an image fails to load, blocking subsequent tagging jobs #1444

Description

@Prince-ES

Is there an existing issue for this?

  • I have searched the existing issues

What happened?

Description

While AI tagging, if the backend encounters an image that it cannot load (cv2.imread() returns None), the entire AI-tagging job stops instead of skipping the image. The folder remains in the "processing" state indefinitely, and any following queued folder also remain pending until the ai tagging process of the folder that has problematic image, is turned off. Still we need to restart the subsequent folder's ai tagging.

What backend logs:-

Failed to load image: -path-
Error processing untagged images: object of type 'NoneType' has no len()

problematic image:-

Image

properties: -
format: JPEG
resolution: 616 x 920
size: 79kb

Current behavior

bug-Explaination.mp4

Expected behavior

  • If an image cannot be loaded, log the error.
  • Skip the problematic image.
  • Continue processing the remaining images.
  • Continue processing later queued folders.

Record

  • I agree to follow this project's Code of Conduct

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