Bug 165613 - Crash when GPS altitude is negative
Summary: Crash when GPS altitude is negative
Status: RESOLVED WORKSFORME
Alias: None
Product: digikam
Classification: Applications
Component: Portability-Runtime (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords: needs_verification
Depends on:
Blocks:
 
Reported: 2008-07-03 08:29 UTC by Paweł Marciniak
Modified: 2017-08-18 20:01 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 1.1.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paweł Marciniak 2008-07-03 08:29:19 UTC
Version:           0.9.3 (using KDE 3.5.9)
Installed from:    Unlisted Binary Package

When a negative altitude is assigned to a photo in the correlation process, that photo's exif data becomes corrupted and causes digikam to crash when displaying it. The workaround is to search for photos with negative altitude before clicking 'apply' in the correlator window, and manually change the altitude to some positive value.

I'm filing this as digikam bug because I'm not sure whether it's the plugin's fault when writing metadata or digikam's when displaying it.

exiv2 pr -pt corrupted_photo.jpg:
[...]
Exif.GPSInfo.GPSVersionID                    Byte        4  2 0 0 0
Exif.GPSInfo.GPSLatitudeRef                  Ascii       2  North
Exif.GPSInfo.GPSLatitude                     Rational    3  49deg 10.03620'
Exif.GPSInfo.GPSLongitudeRef                 Ascii       2  West
Exif.GPSInfo.GPSLongitude                    Rational    3  123deg 56.08980'
Exif.GPSInfo.GPSAltitudeRef                  Byte        1  Above sea level
Exif.GPSInfo.GPSAltitude                     Rational    0
Exif.GPSInfo.GPSMapDatum                     Ascii       7  WGS-84

exiv2 pr -pt fixed_photo.jpg:
[...]
Exif.GPSInfo.GPSVersionID                    Byte        4  2 0 0 0
Exif.GPSInfo.GPSLatitudeRef                  Ascii       2  North
Exif.GPSInfo.GPSLatitude                     Rational    3  49deg 10.03620'
Exif.GPSInfo.GPSLongitudeRef                 Ascii       2  West
Exif.GPSInfo.GPSLongitude                    Rational    3  123deg 56.08980'
Exif.GPSInfo.GPSAltitudeRef                  Byte        1  Above sea level
Exif.GPSInfo.GPSAltitude                     Rational    1  7.1 m
Exif.GPSInfo.GPSMapDatum                     Ascii       7  WGS-84
Comment 1 FiNeX 2008-11-19 20:25:27 UTC
Changed severity to "crash". I hope to have selected only the right bugs (>100) :-)
Comment 2 caulier.gilles 2008-11-19 20:34:24 UTC
But, thi sbug have been fixed in the pass if i remember. Please try with current Exiv2 library (next 0.18) and curent libkexiv2 library (next 0.1.7) using code from subversion repositories...

Gilles Caulier
Comment 3 caulier.gilles 2008-12-07 21:24:37 UTC
Pawel,

This file still valid using kipi-plugins 0.1.6 and a recent version of Exiv2 library ?

Gilles Caulier
Comment 4 Paweł Marciniak 2009-01-21 04:37:05 UTC
Gilles,

Unfortunately, I don't have that photo anymore, so I'm unable to verify. :(
Comment 5 Andi Clemens 2009-09-13 14:35:14 UTC
Should we close this one then?
Comment 6 Michael G. Hansen 2009-11-26 12:21:48 UTC
Negative altitudes work fine here with libexiv2 0.18.2, libkexiv2 0.6.0, kipi-plugins 0.8+svn, digikam 1.0beta6+svn

Michael
Comment 7 caulier.gilles 2009-12-25 20:24:20 UTC
Kipi-plugins 1.0.0 is out since few days...

http://www.digikam.org/drupal/node/492

Please try with this version.

Thanks in advance

Gilles Caulier
Comment 8 Michael G. Hansen 2010-01-23 20:51:05 UTC
Problem has not been reproduced by anybody, closing.

Michael