← Back to team overview

rapid-users team mailing list archive

Re: problem with segfault on photo when creating thumbnail

 

On Sun, Dec 4, 2011 at 9:14 AM, Andreas Nyback <andreas@xxxxxxxxxx> wrote:

>
> Will rapid try to create a thumbnail on its own if there is none in the
> exif data? How? Any more ideas what to look for and how to trace the
> segfault?
>
>
If the file is a jpeg and Rapid Photo Downloader cannot extract a preview
from the metadata, it will simply create a thumbnail out of the jpeg
itself. See code thumbnail.py.

On Ubuntu 11.10, I was able to download the file with the following warning:

Problems in filename generation
The following metadata is missing: ISO, Aperture, Focal length and Exposure
time.
File: /home/damon/Desktop/DSC_0025b.JPG

This is a bug in pyexiv2 or exiv2 on your Gentoo system. Because it is a
python program, Rapid Photo Downloader never segfaults unless a python
module like PIL or pyexiv2 does.  It is not a bug in Rapid Photo Downloader.

To diagnose it is not difficult. Simply start python and open the file in
pyexiv2 or PIL and try to extract the metadata in pyexiv2 or manipulate the
file PIL. Or run exiv2 from the command line and do the same. When it
segfaults you know where to start looking to figure out the problem --
perhaps the compilation flags you're using, gcc version, missing patch etc.

Best,
Damon
-- 
http://www.damonlynch.net

References