← Back to team overview

rapid-users team mailing list archive

problem with segfault on photo when creating thumbnail

 

I just updated the gentoo ebuild with some dependency changes and made a
revisit to rapid to check if I still get crashes with rapid. I do.

I have one example file which has been touched by picasa, I don't know
if its picasa's fault but just mentioning..

When i run exiftool -a -u -g1 DSC_0037.JPG
It gives all exif data from the file, but a warning is given;

---- ExifTool ----
ExifTool Version Number         : 8.50
Warning                         : Unknown format (4288) for PreviewIFD
 tag 0x0


Also when opened in gwenview it throws some warnings about the file;

Warning: Directory NikonPreview, entry 0x0000 has unknown Exif (TIFF)
type 4288; setting type size 1.
Error: Directory NikonPreview, entry 0x0000 has invalid size
268566532*1; skipping entry.
Error: Directory (Last IFD item) with 49325 entries considered invalid;
not read.


But otherwise the file can be opened and I can process it in all other
tools then in rapid. I don't know if the above is what makes rapid
segfault when it tries to create a thumbnail.

rapid debug gives;
(edited some words that where in Swedish in my output)

[INFO/MainProcess] Rapid Photo Downloader 0.4.2
[INFO/MainProcess] Using pyexiv2 0.3.0
[INFO/MainProcess] Using exiv2 0.21.1
[INFO/MainProcess] Using hachoir 1.3.3
[INFO/MainProcess] Downloads that have occurred so far today: 624
[INFO/MainProcess] allocating a new mmap of length 4096
[DEBUG/MainProcess] created semlock with handle 139865452691456
[DEBUG/MainProcess] created semlock with handle 139865452290048
[DEBUG/MainProcess] created semlock with handle 139865451806720
[DEBUG/MainProcess] created semlock with handle 139865451802624
[DEBUG/MainProcess] created semlock with handle 139865451798528
[DEBUG/MainProcess] created semlock with handle 139865451794432
[DEBUG/MainProcess] created semlock with handle 139865451790336
[DEBUG/MainProcess] created semlock with handle 139865451786240
/usr/lib64/python2.7/site-packages/rapid/rapid.py:2946: GtkWarning:
Unknown property: GtkMenuBar.ubuntu-local
  builder.add_from_file(paths.share_dir("glade3/rapid.ui"))
/usr/lib64/python2.7/site-packages/rapid/rapid.py:2946: GtkWarning:
Unknown property: GtkMenu.ubuntu-local
  builder.add_from_file(paths.share_dir("glade3/rapid.ui"))
[INFO/GetPreviewImage-1] child process calling self.run()
[DEBUG/MainProcess] Start of day is set to 3:0
[DEBUG/MainProcess] SubfolderFile PID: 24497
[INFO/MainProcess] Using manually specified path /home/andreas/DCIM/Namnlös
[INFO/SubfolderFile-2] child process calling self.run()
[INFO/MainProcess] # photo backup devices: 0; # video backup devices: 0
[DEBUG/SubfolderFile-2] Finished 0. Getting next task.
[DEBUG/MainProcess] created semlock with handle 139865451134976
[DEBUG/MainProcess] created semlock with handle 139865451130880
[DEBUG/MainProcess] created semlock with handle 139865451126784
[DEBUG/MainProcess] Queue._after_fork()
[DEBUG/MainProcess] created semlock with handle 139865451122688
[DEBUG/MainProcess] created semlock with handle 139865451118592
[DEBUG/MainProcess] created semlock with handle 139865451114496
[DEBUG/MainProcess] created semlock with handle 139865451110400
[DEBUG/MainProcess] created semlock with handle 139865451106304
[DEBUG/Scan-3] Queue._after_fork()
[INFO/Scan-3] child process calling self.run()
[DEBUG/MainProcess] TaskManager PID: 24498
[INFO/Scan-3] process shutting down
[DEBUG/Scan-3] running all "atexit" finalizers with priority >= 0
[DEBUG/Scan-3] running the remaining "atexit" finalizers
[INFO/Scan-3] process exiting with exitcode 0
[INFO/MainProcess] Found 1 photo
[INFO/MainProcess] Files total 3.2MB
[DEBUG/MainProcess] created semlock with handle 139865451102208
[DEBUG/MainProcess] created semlock with handle 139865451098112
[DEBUG/MainProcess] created semlock with handle 139865451094016
[DEBUG/MainProcess] Queue._after_fork()
[DEBUG/MainProcess] created semlock with handle 139865451089920
[DEBUG/MainProcess] created semlock with handle 139865451085824
[DEBUG/MainProcess] created semlock with handle 139865451081728
[DEBUG/MainProcess] created semlock with handle 139865451077632
[DEBUG/MainProcess] created semlock with handle 139865451073536
[DEBUG/MainProcess] TaskManager PID: 24499
[DEBUG/GenerateThumbnails-4] Queue._after_fork()
[DEBUG/GenerateThumbnails-4] Queue._after_fork()
[INFO/GenerateThumbnails-4] child process calling self.run()
[DEBUG/GenerateThumbnails-4] Getting thumbnail for
/home/andreas/DCIM/Namnlös/DSC_0037.JPG...
[DEBUG/GenerateThumbnails-4] file type is photo
[DEBUG/GenerateThumbnails-4] Read photo metadata...
Segmentation fault

The file is available here:
http://www.nyback.com/DSC_0037.JPG


Follow ups

References