Using Filename2Caption ExifTool crashes - photos wont open

Started by Orbitald, May 26, 2014, 12:48:57 PM

Previous topic - Next topic

Phil Harvey

Hi David,

I have re-read your posts and thought more about this, and I now think I understand what happened.

ExifTool does everything that it can to ensure the temporary file is written and closed without errors before renaming it to replace the original (when the -overwrite_original option is used, as in the Filename2Caption script).  But there is nothing it can do to ensure that the data has physically been written to the disk, since the system may employ a disk write cache.  Further, it seems that on your system the rename operation may occur before the system cache is written, which unfortunately opens the door for data loss in the case of a system crash.

I suggest filing a bug report with Filename2Caption, since it should limit the number of processes that it tries to launch.  This should prevent the system crash that I believe was the major contributing factor to your file corruption problem.

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

Orbitald

Thanks a bunch Phil!

I passed that on.

All the best,

David