Summary: | Digikam crashes when trying to re-download new pictures from SD card | ||
---|---|---|---|
Product: | [Applications] digikam | Reporter: | Patrick <patoche.smart+kde> |
Component: | Metadata-Engine | Assignee: | Digikam Developers <digikam-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | ahuggel, andresbajotierra, caulier.gilles, ender.jens |
Priority: | NOR | ||
Version: | 1.7.0 | ||
Target Milestone: | --- | ||
Platform: | openSUSE | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | 2.3.0 | |
Sentry Crash Report: |
Description
Patrick
2011-01-22 11:37:09 UTC
Crash appear in Exiv2 library. Go To Help/Components Info and copy & paste content here. Also, if you can provide a file which crash Exiv2, it will be nice. I CC Andreas Huggel here, who is lead Exiv2 developer. Gilles Caulier Please find requested info below. How could I know which file is causing the crash? It happens when the window to download new pictures is starting to load the contents of the card. digiKam version 1.7.0 Exiv2 can write to Jp2: Yes Exiv2 can write to Jpeg: Yes Exiv2 can write to Pgf: No Exiv2 can write to Png: Yes Exiv2 can write to Tiff: Yes Exiv2 supports XMP metadata: Yes LibCImg: 130 LibClapack: internal library LibExiv2: 0.19 LibJPEG: 80 LibJasper: 1.900.1 LibKDE: 4.5.5 (KDE 4.5.5) "release 1" LibKExiv2: 1.1.0 LibKdcraw: 1.1.0 LibLCMS: 118 LibLensFun: external shared library LibLqr: internal library LibPGF: 6.09.44 - internal library LibPNG: 1.4.3 LibQt: 4.6.3 LibRaw: 0.11.3 LibTIFF: LIBTIFF, Version 3.9.2 Copyright (c) 1988-1996 Sam Leffler Copyright (c) 1991-1996 Silicon Graphics, Inc. Marble widget: 0.10.3 Parallelized demosaicing: Yes Database backend: QSQLITE LibGphoto2: 2.4.9 LibKipi: 1.1.0 Is it read from an SD card in a card reader or USB mass storage camera? Then you could access it like a normal file, open it in dolphin etc. Try using the exiv2 command line utility in this case: exiv2 /media/path/of/images/* and see if it crashes As TIFF reader is used in Exiv2 during crash i suspect that it's a JPEG file from your camera. Exiv2 has a command line tool named... "exiv2". Install it and try to read metadata from image with this tool. If it crash... But you use Exiv2 0.19. I recommend to update to last 0.21. libkexiv2 and digiKam need to be recompiled too. Gilles Caulier Yes, this looks like an exiv2 issue. As Gilles and Marcel said, please try to identify the image and post it here or (better) report an issue at dev.exiv2.org and append the image to the bug report. Thanks! * Install the exiv2 command line utility, v0.21 * Download your pictures into a folder * Run exiv2 over all of them and see which one causes the crash $ exiv2 -v * I have not upgraded yet but I am getting this: exiv2 -v * File 1/235: _DSC7460.NEF Bus error In fact, I then tried to manipulate the files from Dolphin or the command line but the SD card FS supposedly became read only. I tried to copy all the files to my HD but I get an "error 5" from Dolphin. I then chose to skip the ones giving that error. The result copy is that I have the half of the files with a 32kB size. 1/4 of them is an intermediate size and the remaining 1/4 seems to be intact. I suspect something went wrong when Digikam tried to delete the files after having copied them. Do you wish to investigate something on this or do I go for a reformatting of the card? The truncated files you downloaded - does the exiv2 utility crash on them? In that case, Andreas will be interested in a sample, to ensure a recent exiv2 version gives an error instead of crashing ;-) On the copy on my HD, it goes fine. Anything which could be useful from the SD card? I meant that it gives errors and warnings about the copied files. Which errors / warnings ? Gilles Caulier Warning: Directory Image, entry 0x0111: Strip 0 is outside of the data area; ignored. Error: Directory Image, entry 0x014a Sub-IFD pointer 0 is out of bounds; ignoring it. Error: Upper boundary of data for directory Photo, entry 0x927c is out of bounds: Offset = 0x000003f4, size = 122882, exceeds buffer size by 91126 Bytes; adjusting the size Warning: Directory NikonPreview, entry 0x0201: Data area exceeds data buffer, ignoring it. Error: Directory Image, entry 0x8825 Sub-IFD pointer 0 is out of bounds; ignoring it. these messages are internal warnings coming from Exiv2 library. This is not relevant of your card reader device or your camera. Gilles Caulier Indeed, I get those on the truncated copies made to my HD. [Comment from a bug triager] Backtrace is indeed mostly the same as the one in bug 254357. *** Bug 254357 has been marked as a duplicate of this bug. *** Any news here with a recent 2.x version? Is this question addressed to me? What do you want me to check? As mentioned in comment 6, I didn't block the SD since then for the sole purpose of this bug report. Ok, seems we have an unreproducible situation then. And, as I understand, none of the truncated files on your harddisk crash the exiv2 utility? digiKam 2.2.0 is out since few weeks. Crash still valid with this version ? Gilles Caulier Gilles, see comment 17, please. Bus error ? Sound like your SD card (or reader) device is broken... Gilles Caulier Gilles, My SD card works fine as does the reader but that's a while a go and I've formatted the card since then. Shouldn't we just forget about this one? well, the question is simple. Can you reproduce the crash or not ? If it's disappear, well this file can be closed... Gilles Caulier Gilles, I don't have the corrupted SD card anymore and therefore can't reproduce. |