Summary: | Hang on opening Geolocation pane on photos with XMP GPS tags. | ||
---|---|---|---|
Product: | [Applications] digikam | Reporter: | Alexander Meshcheryakov <alexander.s.m> |
Component: | Metadata-Gps | Assignee: | Digikam Developers <digikam-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | alexander.s.m, caulier.gilles |
Priority: | NOR | ||
Version: | 3.5.0 | ||
Target Milestone: | --- | ||
Platform: | Arch Linux | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | 4.3.0 | |
Sentry Crash Report: | |||
Attachments: | Example picture with XMP GPS tags |
Description
Alexander Meshcheryakov
2013-08-31 15:37:48 UTC
Created attachment 82067 [details]
Example picture with XMP GPS tags
To prevent accidental hangs of digiKam I've added following trigger to my MySQL DB CREATE TRIGGER `ImagePositions_BINS` BEFORE INSERT ON ImagePositions FOR EACH ROW -- Edit trigger body code below this line. Do not edit lines above this one BEGIN DECLARE msg varchar(255); IF (NEW.latitudeNumber>90 OR NEW.latitudeNumber<-90) THEN SET msg = concat('Latitude out of bounds (', cast(NEW.latitudeNumber AS CHAR), ')'); SIGNAL sqlstate '45000' SET message_text = msg; END IF; IF (NEW.longitudeNumber>180 OR NEW.longitudeNumber<-180) THEN SET msg = concat('Longitude out of bounds (', cast(NEW.longitudeNumber AS CHAR), ')'); SIGNAL sqlstate '45000' SET message_text = msg; END IF; END And similar trigger for BEFORE UPDATE. Unfortunately, MariaDB does not support CHECK CONSTRAINT unlike SQLite. I suppose checks for valid coords should be added to standart DB schema. digiKam 3.5.0 is out. Can you give a fresh feedback about your report ? Crash still reproducible ? Thanks in advance Gilles Caulier I can still reproduce this bug with digiKam 3.5.0 and sample picture that I have provided before ("Example picture with XMP GPS tags"). digiKam 4.0.0 is out : http://www.digikam.org/node/713 Please check if this entry still valid with this new version. Thanks in advance Gilles Caulier Following comment #4, i close this file now... Gilles Caulier |