Tracker: Bugs

5 [exif] Olympus memory consumption / read overflow - ID: 1714901
Last Update: Settings changed ( ckdake )

When reading exif (not IPTC) data from JPG files from a Olympus camera, it
takes much longer than reading EXIF data from another maker (e.g. Canon or
Nikon) and it also requires more memory.

It looks like there's something wrong with exifixer's parser for EXIF data
from Olympus images.
The long parse time indicates that there's some offset / parse error and it
parses the whole image data (not just the EXIF data).

An example image from an Olympus camera:
http://dev.nei.ch/exif_olympus_2007_May.jpg

Image with EXIF Data from Olympus Camera (1.6 MB)


Andy Staudacher ( andy_st ) - 2007-05-08 12:08

5

Open

None

Nobody/Anonymous

None

Gallery 2

Public


Comment ( 1 )

Date: 2008-05-13 05:01
Sender: guyforget


I have experienced this as well, but in my case it took so long that it
exceeded the time limit for scripts and caused the script to terminate.
Here are my system details and a summary of my experience.

Gallery version = 2.2.4 core 1.2.0.6
PHP version = 5.2.0-8+etch11 apache2handler
Webserver = Apache/2.2.3 (Debian) PHP/5.2.0-8+etch11
Database = mysqli 5.0.32-Debian_7etch5-log, lock.system=flock
Toolkits = ArchiveUpload, Exif, Gd, ImageMagick, SquareThumb
Acceleration = partial/21600, partial/21600
Operating system = Linux week4paug.net 2.6.18-6-686 #1 SMP Thu Apr 24
08:33:59 UTC 2008 i686
Default theme = matrix
gettext = enabled
Locale = en_US
Browser = Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.14)
Gecko/20080418 Ubuntu/7.10 (gutsy) Firefox/2.0.0.14

I was adding files that were already on the server via the add files
module. Of the 43 photos I was trying to add to this album, 2 caused the
script to exceed the maximum time limit and terminate. In every instance
the file was at least created in its target album directory as evidenced by
listing the contents of the directory in a shell, but the album never
recognized the files. Telling gallery to show debugging info revealed the
files eventually throwing 2 errors:

Fatal error: Maximum execution time of 30 seconds exceeded in
/var/users/guyforget/gallery/modules/exif/lib/exifer/exif.inc on line 145
Fatal error: Maximum execution time of 30 seconds exceeded in
/var/users/guyforget/gallery/modules/exif/lib/exifer/makers/olympus.inc on
line 81

Disabling the EXIF module allowed me to upload the images with no problem,
and turning it back on afterwards it works fine w/ those 2 files, all data
is parsed and displayed correctly.

The two files can be downloaded here:

http://files.guyforget.week4paug.net/ad280906_1.jpg
http://files.guyforget.week4paug.net/ad280939_1.jpg


Attached File

No Files Currently Attached

Changes ( 2 )

Field Old Value Date By
summary [G2][exif] Olympus memory consumption / read overflow 2008-10-24 20:29 ckdake
category_id None 2008-10-24 19:37 ckdake