Author Topic: Can't call method "Read"  (Read 236 times)

StarGeek

  • Global Moderator
  • ExifTool Freak
  • *****
  • Posts: 1939
Can't call method "Read"
« on: July 05, 2018, 06:56:50 PM »
I just tried exiftool.exe ver 11.05 and recieved the following error.  I clear temp, deleted and redownloaded exiftool to see if that fixed it, but still have the error.

Code: [Select]
C:\>exiftool -description y:\!temp\Test3.jpg
Can't call method "Read" on an undefined value at Image/ExifTool/Photoshop.pm line 823, <EXIFTOOL_FILE> chunk 3.

Edit: Same with 11.04.  No error with 11.03.  Trying to figure out if it's something on my end or not.
« Last Edit: July 05, 2018, 08:08:09 PM by StarGeek »
Troubleshooting hints:
* When posting, include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).
* Double all percent signs (%) in a Windows batch file.
* If you GPS coords are negative, make sure and set the GpsLatitudeRef and GpsLongitudeRef tags correctly.

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 13339
    • ExifTool Home Page
Re: Can't call method "Read"
« Reply #1 on: July 05, 2018, 09:23:03 PM »
Nope, that's my problem. :(  Related to the recent out-of-memory "fix".

Can you email me Test3.jpg and I'll look into this?  (funny this didn't happen with my thousands of test files)

Thanks.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

StarGeek

  • Global Moderator
  • ExifTool Freak
  • *****
  • Posts: 1939
Re: Can't call method "Read"
« Reply #2 on: July 05, 2018, 09:28:51 PM »
It a file filled with data from my test file args.

https://www.dropbox.com/s/o20zoxavuaz4tq5/Test3.jpg
Troubleshooting hints:
* When posting, include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).
* Double all percent signs (%) in a Windows batch file.
* If you GPS coords are negative, make sure and set the GpsLatitudeRef and GpsLongitudeRef tags correctly.

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 13339
    • ExifTool Home Page
Re: Can't call method "Read"
« Reply #3 on: July 06, 2018, 07:35:46 AM »
Thanks for the sample.

This bug is fixed in ExifTool 11.06 (just released).

And thanks for reporting this!

(This problem didn't occur in my test files because I don't think that Photoshop writes ImageSourceData in JPEG images, as in your sample.)

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

StarGeek

  • Global Moderator
  • ExifTool Freak
  • *****
  • Posts: 1939
Re: Can't call method "Read"
« Reply #4 on: July 06, 2018, 11:47:52 AM »
Ah, so it isn't anything I edited, it's the original image itself.  This image came from a Epson Perfection V500 Photo scanner, do you want an unedited image from the scanner?
Troubleshooting hints:
* When posting, include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).
* Double all percent signs (%) in a Windows batch file.
* If you GPS coords are negative, make sure and set the GpsLatitudeRef and GpsLongitudeRef tags correctly.

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 13339
    • ExifTool Home Page
Re: Can't call method "Read"
« Reply #5 on: July 06, 2018, 01:20:53 PM »
I think it was your edit to add ImageSourceData that revealed the problem.  The contents of ImageSourceData is "EXIF:ImageSourceData".

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).