AI Autotagger stalls in 'media & folders' view

Started by mity!, February 13, 2025, 12:44:08 PM

Previous topic - Next topic

mity!

Beginning (I think) with v2025.1.10 I can observe and reproduce this behaviour with AutoTagger:

  • I select an bunch of files in the 'media & folders' view (typically a whole folder containing about 100 files) and start AutoTagger. AutoTagger is configured for OpenAI which worked fine so far (up to v2025.1.8 probably but at least v2025.1.6).
  • All files get the "AI in progress icon". First file will complete within seconds (AI icon vanishes) and progress shows "1 of x processed". And then the progress stalls.
  • I can see that 2nd an 3rd file have AI Tags received, even the AutoTagger category is already set, but AI icon is yet shown and AutoTagger progress shows continuously "1 of x".
  • When I switch to any other tab (categories, timeline...) progress starts to go on again and AutoTagging finishes within some minutes. This even happens if the other tab shows the same images as the 'media & folders' tab.

I don't know if it has to do with this behavior but perhaps it is some more clue to you: While AutoTagger is running I can see a lot of activity in updating categories and metadata visualization. So in categories tab many categories constantly update (switching continuously between 0 and the recent number of assigned images). I have no auto-driven AuoTagger categories for the AI keywords configured.

Also in the file view of 'media & folders' there is some kind of "pumping" during AutoTagger is running, meaning that all the images icons (for flags, bookmarks, GPS etc.) get slightly bigger and shrink again to their normal size. I then realized that even the slider in the menu bar for the size of the preview images slides slightly to the right for a moment during this "refresh". But the size of my previews does not change.

Mario

Always include a ZIPped log file (preferably in debug logging mode) when you report such issues.
See log file for more information.
This gives us a minimum of information to work with, e.g. responses sent by OpenAI, headers with rate limit data etc.

I've made a test, with a set of 50 and 120 files and ran AutoTagger on them using OpenAI.
All files were processed without any problem.

Maybe the info in your log file tells us more. Maybe OpenAI just asked for a pause via a rate limit or something. Many possible reasons.

Do you see the "AutoTagger: Files with Problems" notification?
Was IMatch busy ingesting files or doing face recognition at the time (See Info & Activity Panel). These operations pause  AutoTagger until finished.

If this happens again, secure the log (Help menu > Support > Copy application logfile) and reopen the database. AutoTagger should continue after a minute or so.

That IMatch is updating categories and collections and metadata while AutoTagger is running is normal. Metadata changes, @Keywords must be updated, the Workflow categories are possible affected (depending on which tags you use etc.).



mity!

Well... ???

Wanted to produce a debug log just now. So started IMatch (v2025.1.10). First OpenAI access today, so no issue with tier 1 limits possible. Selected 160 images, started AutoTagger - fault as described (AutoTagger stalls with "1 of 160" and in fact three images already with AI keywords - tagging goes on when switching to another tab).

"Ahhh, forgot to change to debug mode." Switched to debug mode when Imatch told me about new version. Okay, installed v2025.1.12.

Next try with v2025.1.12. Debug on. Selected next folder with 167 images. Started AutoTagger and... no problems - proceeded all images within 2 minutes or so. Selected next folder - and next folder: no faults any more. :)

I will keep an eye on it...  :o