Author Topic: While setting a rating an error occurred:  (Read 3684 times)

Offline struffsky

  • Newcomer
  • *
  • Posts: 13
    • View Profile
While setting a rating an error occurred:
« on: January 09, 2020, 04:11:23 AM »
We tagged a huge amount of photos (about 6000). With only one photo we get an error message while trying to add a star rating.
Resave and replace of the jpg with Photoshop didn't change anything. The rights seem to be correct. Bridge is able to change the rating.
Any ideas? This is the error message:

While setting a rating an error occurred:

Unable to save metadata for /Users/tilm…
Error deleting '/Users/tilm… {1A220574-7299-1644-ACB6-F79C4A634487}.TMP', result was: 2 [No such file or directory].
Error updating JPEG metadata for '/Users/tilm… /.{1A220574-7299-1644-ACB6-F79C4A634487}.TMP'.

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 24730
    • View Profile
    • Camera Bits, Inc.
Re: While setting a rating an error occurred:
« Reply #1 on: January 09, 2020, 08:59:01 AM »
We tagged a huge amount of photos (about 6000). With only one photo we get an error message while trying to add a star rating.
Resave and replace of the jpg with Photoshop didn't change anything. The rights seem to be correct. Bridge is able to change the rating.
Any ideas? This is the error message:

While setting a rating an error occurred:

Unable to save metadata for /Users/tilm…
Error deleting '/Users/tilm… {1A220574-7299-1644-ACB6-F79C4A634487}.TMP', result was: 2 [No such file or directory].
Error updating JPEG metadata for '/Users/tilm… /.{1A220574-7299-1644-ACB6-F79C4A634487}.TMP'.

What build and version of Photo Mechanic are you using?

-Kirk

Offline struffsky

  • Newcomer
  • *
  • Posts: 13
    • View Profile
Re: While setting a rating an error occurred:
« Reply #2 on: January 10, 2020, 01:22:35 AM »
Hi Kirk,
just updated to the last build: Photo Mechanic Version 6.0, build 4155 (e068498)
With PM4 the photo can be star-rated. No Problem here.
The error was repsoducable on two different Mac-systems and only with one photo.
Maybe I could send the jpg to you?

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 24730
    • View Profile
    • Camera Bits, Inc.
Re: While setting a rating an error occurred:
« Reply #3 on: January 10, 2020, 07:13:20 AM »
Maybe I could send the jpg to you?

Sure.  If you can't attach it here (too large) then contact me privately for other options.

-Kirk

Offline struffsky

  • Newcomer
  • *
  • Posts: 13
    • View Profile
Re: While setting a rating an error occurred:
« Reply #4 on: January 10, 2020, 08:22:37 AM »
Hi Kirk, sent you the file via Mail…

Offline dennis

  • President
  • Camera Bits Staff
  • Sr. Member
  • *****
  • Posts: 462
    • View Profile
    • Camera Bits, Inc.
Re: While setting a rating an error occurred:
« Reply #5 on: January 10, 2020, 04:17:10 PM »
Looks like this file has a bunch of Photoshop resource data related to printing on an Epson (Stylus Pro 7900).  Epson likes to put gobs of printing data into Photoshop's resources (Mac NSPrintInfo), so much that it fills up the max 64K size of the JPEG block used to also store the old-style IPTC-IIM binary record before Adobe created XMP to replace it.

I'll make some changes to PM so that it doesn't fail in this condition, but it will not update the IPTC-IIM records.  Nowadays this shouldn't be an issue since XMP supersedes the old IPTC-IIM, and all the metadata is stored in XMP.  Your file actually had no IPTC-IIM data in it to begin with, and the only XMP metadata it had was a rating of 0 and a bunch of Adobe Camera RAW settings.  PM will still update the XMP.

One workaround option for now is to use PM's Save As command to save out a new JPEG.  Just set the quality to say 90 or so and don't crop or anything.  The new JPEG created by PM will not have all this extraneous Photoshop resource data for the printer settings.  You may still want to keep the original copy around if you want to reprint this again on the same Epson printer (since the PM created version will lose the Epson print settings).

HTH.

--dennis

« Last Edit: January 10, 2020, 04:27:03 PM by Kirk Baker »

Offline struffsky

  • Newcomer
  • *
  • Posts: 13
    • View Profile
Re: While setting a rating an error occurred:
« Reply #6 on: January 11, 2020, 03:49:07 AM »
Thanks for your investigations, Dennis. Very interesting. We are rating images from the german youth photography award. We might have seen about 100.000 images in the last decade ;) Your workaround is perfect, saving a new jpg from photoshop did not work but from PM6 it works. This error appeared only with one picture of about 15000. Everything else ist great as ever with PM. :D