Summary: | KPA crashes when certain photos are loaded | ||
---|---|---|---|
Product: | [Applications] kphotoalbum | Reporter: | Mark Harrison <mark.z.harrison> |
Component: | general | Assignee: | KPhotoAlbum Bugs <kpabugs> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | ahuggel, andresbajotierra, caulier.gilles, mark.z.harrison, miika.turkia |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: |
Photo that crashes KPA. Possible corrupt EXIF data.
Output of "exif -d" on attached photo to show which data is corrupt. |
Description
Mark Harrison
2010-10-26 07:16:36 UTC
Created attachment 52874 [details]
Photo that crashes KPA. Possible corrupt EXIF data.
Created attachment 53241 [details]
Output of "exif -d" on attached photo to show which data is corrupt.
Stripping all metadata using "jhead -purejpg" allows photo to be imported without crashing. Obviously, this isn't an ideal solution. This crash is relevant of exiv2. I CC Andreas for info. Gilles Caulier I managed to work around this bug by using exiftool to fix the exif tags, specifically: exiftool -XResolution=180 -Orientation='Horizontal (normal)' $pic These two tags (XResolution and Orientation) were invalid (or blank) from all the photos that caused KPA to crash. exiftool -Orientation $pic Orientation : Unknown () exiftool -XResolution $pic X Resolution : Actually, only the Orientation tag needed to be fixed in order for it to be properly loaded into KPA. So, exiftool -Orientation='Horizontal (normal)' $pic was sufficient. This should be fixed now in revision 1208526. Which version of libexiv2 are you using? Can you post the output of exiv2 $pic and exiv2 -u -pa $pic from one of the problematic images, or does that crash too? -ahu. Forget my post above. Didn't realize this was that old. -ahu. |