Summary: | Digikam camera gui dialog crashes if there is a filename without extension | ||
---|---|---|---|
Product: | [Applications] digikam | Reporter: | Josep Febrer <jfebrer> |
Component: | Import-Gphoto2 | Assignee: | Digikam Developers <digikam-bugs-null> |
Status: | RESOLVED WORKSFORME | ||
Severity: | crash | ||
Priority: | VHI | ||
Version: | 0.9.0 | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | 0.9.0 | |
Sentry Crash Report: | |||
Attachments: | camera gui with a file without ext. |
Description
Josep Febrer
2006-09-20 14:10:49 UTC
I can confirm that this bug is still present on digikam 0.9-rc1. I also patched digikam 0.9-rc1 with this patch: http://commit-digest.org/issues/2006-11-26/moreinfo/606923/ And it's still crashing. Also this bug can be reproduced this way, rename an image and quit it's extension like from image.jpg to image ,this is the output from the console when Digikam crashes: /media/SD-1G/image has no thumbnail. Cannot decode /media/SD-1G/image If later I rename image to image.jpg Digikam doesn't crash and it works great. This patch is not in relation with camera gui. Gilles Caulier This file must be fixed for 0.9.0 final release. Gilles Created attachment 18708 [details]
camera gui with a file without ext.
Josep,
digikam 0.9.0-RC1 doesn't crash using UMS camera. Look screenshot attached
Witch camera driver you use ?
Gilles
Also, your crash backtrace is not relevant of digiKam directly but from certainly HAL/hotplug interface. Please check this part. Gilles Caulier My camera is a Canon Powershot S2 IS and before I used the PTP mode, but after some minutes of usage Digikam always lost it's connection, and I think it wasn't a Digikam fault, because it happened the same with the camera:/ kioslave and other program (which I don't remember it's name) that also used gphoto, so I think that my problem with the PTP mode was an issue with gphoto or something else not related to Digikam. So, since them I extracted the SD card from the camera and connected to a card reader and when the KDE popup dialog appeared I selected the option "digiKam Mount and Download" and Digikam worked great. Also with Digikam I selected the SD card in the menu "Camera - Media Browse", which also worked great. However, since Digikam 0.9beta2 I noticed that Digikam crashed if in the SD card there was a filename without an extension. I noticed this because I formated the SD card in the camera and it seems that it created a filename without extension, called INFO or similar. Also I will try to import photos with Digikam using the PTP mode to see if it crashed with this mode. If you can't reproduce this problem, I can compile digikam with debug mode if that helps. Thanks. Hi, I tried to connect the digital camera to the computer and import the photos with Digikam using the PTP mode. In this way, Digikam camera gui dialog doesn't show the image which their filename doesn't have an extension. But this isn't a Digikam bug's because the camera:/ kioslave does the same, so I think that it's a bug or a feature from gphoto. So to my case, it's seems that this bug is related to connecting a flash card to a card reader. I'm using Debian sid and to my knwoledge it seems that I haven't any problem related to HAL/DBUS/Hotplug, the errors or warning messages that appear on the log it's seems to be due to a more recent version of Dbus that it's more verbose. I also will try if I can reproduce this bug with another distribution like SUSE 10.1. Thanks. Hi, I just recompiled digikam 0.9-rc1 with --enable-debug=full and I think that I know why Digikam crashes. It seems that when Digikam finds a filename without extension thinks that it is a RAW image and try to run digikamdcraw and it crashes. So, I inserted the SD card from the digital camera to the card reader and on a console I run this commands: pmount-hal /dev/sdc1 (which mounts the card on /media/SD-1G) /usr/share/apps/digikam/utils/digikam-camera storage /media/SD-1G And this is the output that it shows on the console: digikam: /media/SD-1G//IMG_1340.JPG : JPEG file identified digikam: Cannot load metadata using Exiv2 (/media/SD-1G//IMG_1340: The file contains data of an unknown image type) digikam: Running dcraw command dcraw -c -e '/media/SD-1G//IMG_1340' /media/SD-1G//IMG_1340 has no thumbnail. digikam: Running dcraw command dcraw -c -h -w -a '/media/SD-1G//IMG_1340' Cannot decode /media/SD-1G//IMG_1340 digikam: /media/SD-1G//IMG_1340 : RAW file identified digikam: Cannot load metadata using Exiv2 (/media/SD-1G//IMG_1340: The file contains data of an unknown image type) KCrash: Application 'digikam' crashing... digikam: Running dcraw command (digikamdcraw,-c,-w,-a,-H,0,-b,1,-q,0,-o,1,/media/SD-1G//IMG_1340) QSocketNotifier: Multiple socket notifiers for same socket 4 and type read Temporitzador IMG_1340.JPG and IMG_1340 are the same which I copied on the root folder from the SD card and just deleted the filename extension on IMG_1340. If I run the command: file /media/SD-1G/IMG_1340* /media/SD-1G/IMG_1340.JPG: JPEG image data, EXIF standard 2.2 /media/SD-1G/IMG_1340: JPEG image data, EXIF standard 2.2 Thanks. Ok, i understand better now. We have 2 important lines in console : digikam: Cannot load metadata using Exiv2 (/media/SD-1G//IMG_1340: The file contains data of an unknown image type) ==> Why ? Witch Exiv2 release you use. Are you an old one ? We need to use 0.12 release with digiKam now. Look my blog : http://www.digikam.org/?q=node/193 digikam: Running dcraw command dcraw -c -e '/media/SD-1G//IMG_1340' ==> This is normal than dcraw crash during jpeg file parsing. This program do not support it and its annoted on dcraw web project page. I have fixed this point in current implementation from svn. Now all files with an empty filename extension are not parsed by dcraw. So, i recommend to do an ultimate test with using svn implementation. Look here how to download svn source code (UNSTABLE) : http://www.digikam.org/?q=node/19 Thanks in advance Gilles Caulier I was using Exiv2 0.12 already. I build Digikam from svn trunk from today, and now Digikam does not crashes anymore. So I will close this bug now. Also in the meantime it was compiling Digikam from trunk I remembered that some time ago I installed kde-rawimage to be able to view thumbnails of raw images on Konqueror filebrowser, and my fear was that kde-rawimage was really the culprit, but it seems to be not. Kde-rawimage: http://www.kde-apps.org/content/show.php?content=30971 Thanks. |