Strange bug when saving tags

There is a strange bug occuring casually when saving tags to JPGs. Every now & then, the JPG extension gets changed, ending up
with names like Image0034.jpg1809, IMG1027.jpg0635 or similar. So, basically some random (?) numbers are
appended to the extension.

I also can see that thing happening during the tag saving process; a copy of the file is being created for a short time, having those numbers
at the end. Obviously that´s some sort of temp file, which will normally disappear in the process, leaving the correct JPG.
But sometimes, it gets stuck, keeping that changed extension. It tends to happen with a lot of tags being saved, like, a couple hundred
of characters (several tag words).

This can happen if the EXIF library catches an exception and falls out without cleaning up the temp file. If it's reproducible please send an example image with instructions on how to repeat.

Thanks Jon, i will try that. Not sure, if it s reproducible with the same files, though. It seems to happen somewhat randomly, & in some
tagging sessions i donˊt see it at all, while in others it might happen in every 3rd-5th file. First i thought, it happens with rather large
files (iˊm using different cameras), but thatˊs not the case. If i find a file & tag set, that reproduces it reliably, iˊll sent it to you.

I can´t say much new, but it is still happening in maybe 30% of all picture tagging actions, so it´s a lot of addional stuff to watch & correct.
Even in case the extension isn´t misnamed, it sometimes takes up 2-3 seconds, which seems long to me.
Strangely, some files with about the same size get tagged almost immediately.

By the way, it seems that larger files (like from a larger sensor type camera) seem more prone to show that bug (~ >6 MB).
Also, it is maybe a bit better, when i don´t use thumbnails or tiles mode but details mode. I can´t quantify it that exactly.

Here is the code i´m using:

@nodeselect
SetAttr META "tags:{dlgstring}"

For anyone who has the same effects, here is a workaround i´d like to share. Until now i used
some correct button to fix some broken extensions every time they occured, but as i just had
the idea, it works even better, if i include the code of the "fixing botton" in the buttons for
the six rating grades (1-5, none) , plus the tag button. Here´s an example for "rating=1":

SETATTR META rating:1 Select THIS dopusrt /cmd Rename PATTERN *.* TO *.jpg Select NEXT

It doesn´t look so elegant, but it works dependably. :smiley:

This was fixed in 10.5.3.0, which Abr confirmed via PM. (So if anyone else finds this thread and sees something similar, please report it as it's likely a separate issue and won't grt fixed unless we know about it.)

:thumbsup: