GNOME Bugzilla – Bug 625216
Crash on Import when XMP sidecar file exists already
Last modified: 2010-08-02 13:19:17 UTC
Unhandled Exception: GLib.GException: Error opening file '/home/paul/Photos/2010/07/17/DSC_6300.xmp': File exists at GLib.FileAdapter.Copy (File destination, FileCopyFlags flags, GLib.Cancellable cancellable, GLib.FileProgressCallback progress_callback) [0x00000] at FSpot.Import.ImportController.CopyIfNeeded (IBrowsableItem item, Hyena.SafeUri destination) [0x000ba] in /usr/src/f-spot/src/Import/ImportController.cs:390 at FSpot.Import.ImportController.ImportPhoto (IBrowsableItem item, FSpot.Roll roll) [0x00025] in /usr/src/f-spot/src/Import/ImportController.cs:345 at FSpot.Import.ImportController.DoImport () [0x000f0] in /usr/src/f-spot/src/Import/ImportController.cs:264
By the way, the crash on importing even if no xmp existed previously is caused when importing RAW+JPG, as the same XMP filename is used. F-Spot creates an xmp for the first file, and when importing the second one, the xmp exists already. This can only be avoided by changing the sidecar preference on importing.
Created attachment 166975 [details] [review] Don't crash if XMP already exists. In the RAW + JPEG case, an XMP file might already exist. With this commit, it will get overwritten. As both files originate from the same photo, this should not be a problem though.
Attachment 166975 [details] pushed as 362e6b4 - Don't crash if XMP already exists.