After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 776233 - assertion when reading unrotated image from Minolta camera
assertion when reading unrotated image from Minolta camera
Status: RESOLVED FIXED
Product: gexiv2
Classification: Other
Component: implementation
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Gexiv2 Maintainers
Gexiv2 Maintainers
Depends on:
Blocks:
 
 
Reported: 2016-12-18 11:15 UTC by Sjoerd Mullender
Modified: 2016-12-18 20:43 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch that fixes the problem (589 bytes, patch)
2016-12-18 11:15 UTC, Sjoerd Mullender
needs-work Details | Review
get_orientation: Fix abort on Minolta meta-data (2.41 KB, patch)
2016-12-18 16:04 UTC, Jens Georg
committed Details | Review

Description Sjoerd Mullender 2016-12-18 11:15:20 UTC
Created attachment 342157 [details] [review]
patch that fixes the problem

When reading an image from certain Minolta cameras (my old 7D for instance), there is some special code since apparently the camera didn't produce all the correct tags.  However, this special code raises an assertion since https://github.com/GNOME/gexiv2/commit/02f97b262c315da2b46ac486a2c3e019d8cd925f that basically says that the image *must* be rotated by either 90 degrees or 270 degrees.  If neither is the case, e.g. the image doesn't need any rotation, the assertion goes off.

Attached is a patch that works for me.  It merely removes the incorrect assertions.

Also see https://bugzilla.redhat.com/show_bug.cgi?id=1401706.
Comment 1 Jens Georg 2016-12-18 15:16:33 UTC
Review of attachment 342157 [details] [review]:

Thank you for your patch.

Just removing the default case is not good. At least the assertion should be switched against a log. Do you know what values are written there?
Comment 2 Jens Georg 2016-12-18 16:04:32 UTC
Created attachment 342174 [details] [review]
get_orientation: Fix abort on Minolta meta-data

Properly handle rotation value 72 (not rotated)

https://bugzilla.redhat.com/show_bug.cgi?id=1401706

Signed-off-by: Jens Georg <mail@jensge.org>
Comment 3 Jens Georg 2016-12-18 16:28:10 UTC
Review of attachment 342174 [details] [review]:

m
Comment 4 Jens Georg 2016-12-18 16:28:35 UTC
Fixed on master
Comment 5 Sjoerd Mullender 2016-12-18 20:43:10 UTC
Thanks for the very quick reaction and fix.