ExifTool Forum

ExifTool => Bug Reports / Feature Requests => Topic started by: johnrellis on December 20, 2023, 03:03:42 PM

Title: Undefined subroutine
Post by: johnrellis on December 20, 2023, 03:03:42 PM
I get "Undefined subroutine" with this command line:

$ exiftool -makernotes= exiftool-bug.2023.12.20.dng
Undefined subroutine &Image::ExifTool::QuickTime::WriteQuickTime called at /usr/local/bin/lib/Image/ExifTool/Writer.pl line 694.

$ exiftool -ver
12.70

Download the problem DNG:
https://www.dropbox.com/scl/fi/46620lzi2dij31bynojy6/exiftool-bug.2023.12.20.dng?rlkey=prgyixtijf0mtneu2t2ncvca4&dl=0 (https://www.dropbox.com/scl/fi/46620lzi2dij31bynojy6/exiftool-bug.2023.12.20.dng?rlkey=prgyixtijf0mtneu2t2ncvca4&dl=0)

Tested on Mac OS 14.1.
Title: Re: Undefined subroutine
Post by: johnrellis on December 20, 2023, 03:07:07 PM
Also, when I use -makernotes:all= it does what I intended. So I guess the issue is the obscure error message when I gave -makernotes=.
Title: -MakerNotes= returns error message: Undefined subroutine
Post by: dwlott on December 20, 2023, 10:10:01 PM
Using this delete makernotes command, I get an error message, as shown below.  I was using the Oliver Betz install, which I uninstalled and reinstalled, but that didn't help.  So I uninstalled the Oliver Betz install and downloaded ExifTool from https://exiftool.org/exiftool-12.70.zip, but am still getting the same error message.  I am stumped, so I tried a reboot, but that didn't help either.
I'm using ExifTool aplenty, and everything else works great.  How can I fix the delete makernotes - undefined subroutine problem?
-MakerNotes=
E:\mySourceFolder\Ribault Bike Ride\PA110002.JPG
-o
e:\myTargetFolder\%f.%e
Title: Re: -MakerNotes= returns error message: Undefined subroutine
Post by: StarGeek on December 20, 2023, 10:51:54 PM
There's nothing you can do, it'll have to be fixed by Phil.

According to this post (https://exiftool.org/forum/index.php?topic=15501.0) on the same subject, you could use -MakerNotes:all= in the meantime.
Title: Re: -MakerNotes= returns error message: Undefined subroutine
Post by: dwlott on December 21, 2023, 09:22:13 AM
Quote from: dwlott on December 20, 2023, 10:10:01 PMUsing this delete makernotes command, I get an error message, as shown below.  I was using the Oliver Betz install, which I uninstalled and reinstalled, but that didn't help.  So I uninstalled the Oliver Betz install and downloaded ExifTool from https://exiftool.org/exiftool-12.70.zip, but am still getting the same error message.  I am stumped, so I tried a reboot, but that didn't help either.
I'm using ExifTool aplenty, and everything else works great.  How can I fix the delete makernotes - undefined subroutine problem?
-MakerNotes=
E:\mySourceFolder\Ribault Bike Ride\PA110002.JPG
-o
e:\myTargetFolder\%f.%e

I forgot to add the error message.  Here it is:
Exiftool: Undefined subroutine &Image::ExifTool::QuickTime::WriteQuickTime called at C:\Users\dwlot\AppData\Local\Temp\par-64776c6f74\cache-exiftool-12.70\inc\lib/Image/ExifTool/Writer.pl line 694.
Title: Re: -MakerNotes= returns error message: Undefined subroutine
Post by: Phil Harvey on December 21, 2023, 10:32:33 AM
could you post the sample image that shows this problem?

- Phil
Title: Re: Undefined subroutine
Post by: StarGeek on December 21, 2023, 10:44:32 AM
I went ahead and merged these two threads as it was the same topic.

I was also able to duplicate it by copying a MakerNotes from one of my original files into my test file and had the same error.

C:\>exiftool -P -overwrite_original -TagsFromFile 2012-07-28_15.42.05.Nef -MakerNotes y:\!temp\Test4.jpg
    1 image files updated

C:\>exiftool -P -overwrite_original -MakerNotes= y:\!temp\Test4.jpg
Undefined subroutine &Image::ExifTool::QuickTime::WriteQuickTime called at C:\Users\Bryan\AppData\Local\Temp\par-626b772d4d\cache-exiftool-12.70\inc\lib/Image/ExifTool/Writer.pl line 694.
Title: Re: Undefined subroutine
Post by: Phil Harvey on December 21, 2023, 10:52:33 AM
Ouch.  It is very unusual that I wouldn't be able to reproduce an issue like this:

> Image-ExifTool-12.70/exiftool ~/Desktop/exiftool-bug.2023.12.20.dng -makernotes= -o tmp
    1 image files created

(on MacOS 10.14.6)

:(

- Phil
Title: Re: Undefined subroutine
Post by: Phil Harvey on December 21, 2023, 11:01:47 AM
Does this still happen if you add -config "" at the start of the command?

- Phil

Edit:  Ah, OK.  If I add that to my command then I see the error!!
Title: Re: Undefined subroutine
Post by: Phil Harvey on December 21, 2023, 11:25:12 AM
I found the problem.  This bug was introduced in 12.69 with a change in the writing of makernotes as a block to CR3 images.

I'll fix this in version 12.71 which I hope to release later today.

- Phil
Title: Re: Undefined subroutine
Post by: Phil Harvey on December 21, 2023, 02:35:04 PM
12.71 is now available.

- Phil