[Digikam-devel] [Bug 156420] New: Canon EOS 400D, no thumbnails displayed then digikam segfaults
Mark Ovens
parish at magichamster.com
Tue Jan 22 22:13:14 GMT 2008
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=156420
Summary: Canon EOS 400D, no thumbnails displayed then digikam
segfaults
Product: digikam
Version: unspecified
Platform: FreeBSD Ports
OS/Version: FreeBSD
Status: UNCONFIRMED
Severity: crash
Priority: NOR
Component: Camera GUI
AssignedTo: digikam-devel kde org
ReportedBy: parish magichamster com
Version: 0.9.3 (using KDE 3.5.8)
Installed from: FreeBSD Ports
Compiler: gcc 3.4.6
OS: FreeBSD
Follow on from my post in the mailing list - http://mail.kde.org/pipermail/digikam-users/2008-January/004805.html
Running 0.9.3 under KDE 3.5.8 on FreeBSD 6.3
When I connect my Canon EOS400D (PTP Mode) the OS reports it as:
ugen0: Canon Inc. Canon Digital Camera, rev 2.00/0.02, addr 2
In digikam I connect to the camera, the camera window opens, displays
"Connecting to camera", 'BUSY' appears on the camera LCD screen and the
read/write LED flashes. Digikam then displays "Listing Folders....".
When digikam has finished, there are no thumbnails displayed but the
following appears in the console:
digikam: Failed to get folders list from camera!
digikam: Libgphoto2 error: Unspecified error (-1)
Then, when I click 'Close' in the camera window in digikam, this appears
in the console and digikam dies on a SIGSEGV:
KCrash: Application 'digikam' crashing...
The following library versions are being used:
libgphoto2 2.4.0
kipi-plugins 0.1.4
exiv2 0.14
lcms 1.17
dcraw 8.81
It was suggested that gphoto2 may be the cause (Canon problems in 2.4.0) so I downgraded gphoto2 to 2.2.1 but the problem persisted.
I then downgraded digikam back to 0.9.2 and it works correctly - even with gphoto2 2.4.0 - so it definitely seems to be a problem with digikam 0.9.3
I've done some limited debugging (using fprintf()s in both the digikam and gphoto2 code) and the problem seems to be in camlibs/ptp2/library.c at around line 2578:
PTPStorageIDs storageids;
if (ptp_operation_issupported(params,PTP_OC_GetStorageIDs)) {
fprintf(stderr, ">> 2\n");
CPR (context, ptp_getstorageids(params,
&storageids));
fprintf(stderr, ">> Returned from ptp_getstorageids()\n");
for (i=0; i<storageids.n; i++) {
char fname[PTP_MAXSTRLEN];
The fprintf()'s are my debug and it never gets to the second one so it appears to never return from ptp_getstorageids() - although this is using an optimized build rather than a debug build so may be misleading.
More information about the Digikam-devel
mailing list