Bug 186638 - Canon 450D import issues
Summary: Canon 450D import issues
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Import-Gphoto2 (show other bugs)
Version: 0.9.5
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-09 10:56 UTC by Mark Purcell
Modified: 2017-08-16 05:50 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 1.0.0


Attachments
list of libs which digikam 0.94 links to (8.46 KB, text/plain)
2009-03-20 20:21 UTC, Wolfram Quester
Details
list of libs which digikam 0.9.5~beta3 links to (8.68 KB, text/plain)
2009-03-20 20:23 UTC, Wolfram Quester
Details
Patch which fixes the problem for me (1.81 KB, patch)
2009-03-22 20:36 UTC, Wolfram Quester
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Purcell 2009-03-09 10:56:30 UTC
Version:           0.9.5-beta3 (using 3.5.10, Debian Package 4:3.5.10.dfsg.1-1+b1 (5.0))
Compiler:          Target: i486-linux-gnu
OS:                Linux (i686) release 2.6.28-1-686

Forwarded from:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=514911

Cc: 514911@bugs.debian.org

From: Wolfram Quester <wolfi@sigxcpu.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: digikam: import from camera broken since last update
Date: Wed, 11 Feb 2009 21:38:01 +0100

[Message part 1 (text/plain, inline)]
Package: digikam
Version: 2:0.9.5~beta3-1
Severity: important

Hi altogether,

since I upgraded digikam to version 2:0.9.5~beta3-1, I have problems with the
import feature.
I shoot raw+jpeg with my canon 450D. If I connect, digikam lists the .CR2 files
together with some JPGs, which I can download. But not all jpegs are shown and
downloaded. I can then delete the listed files, close the dialog and reconnect
to the camera. Again some files are listed, which I can download and delete. Then 
I have to reconnect and so on. This process is to be repeated until all images
are downloaded.
With 0.9.4, I could connect, all files on the camera were listed and I could
download them all at once.

Yours,

Wolfi

-- System Information:
Debian Release: 5.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages digikam depends on:
ii  kdebase-kio-plugins    4:3.5.9.dfsg.1-6  core I/O slaves for KDE
ii  kdelibs4c2a            4:3.5.10.dfsg.1-1 core libraries and binaries for al
ii  libc6                  2.7-18            GNU C Library: Shared libraries
ii  libgcc1                1:4.3.3-3         GCC support library
ii  libgphoto2-2           2.4.1-3           gphoto2 digital camera library
ii  libgphoto2-port0       2.4.1-3           gphoto2 digital camera port librar
ii  libjasper1             1.900.1-5.1       The JasPer JPEG-2000 runtime libra
ii  libjpeg62              6b-14             The Independent JPEG Group's JPEG 
ii  libkdcraw4             0.1.7-2           Raw picture decoding C++ library (
ii  libkexiv2-3            0.1.7-1+b1        Qt like interface for the libexiv2
ii  libkipi0               0.1.6-2           library for apps that want to use 
ii  liblcms1               1.17.dfsg-1       Color management library
ii  libpng12-0             1.2.27-2          PNG library - runtime
ii  libqt3-mt              3:3.3.8b-5        Qt GUI Library (Threaded runtime v
ii  libsqlite3-0           3.5.9-6           SQLite 3 shared library
ii  libstdc++6             4.3.3-3           The GNU Standard C++ Library v3
ii  libtiff4               3.8.2-11          Tag Image File Format (TIFF) libra
ii  libx11-6               2:1.1.5-2         X11 client-side library

Versions of packages digikam recommends:
ii  kdeprint                4:3.5.9.dfsg.1-6 print system for KDE
ii  kipi-plugins            0.1.7-2          image manipulation/handling plugin
ii  konqueror               4:3.5.9.dfsg.1-6 KDE's advanced file manager, web b

Versions of packages digikam suggests:
ii  digikam-doc                   0.9.5-1    handbook for digikam and showfoto 

-- no debconf information
Comment 1 caulier.gilles 2009-03-09 11:13:20 UTC
This problem is not reproducible here. Both JPEG and RAW are displayed properly and at the same time with my Minolta Dynax 5D (USB mass storage).

Canon camera use PTP mode (using Gphoto2 library). Perhaps it's the problem.

Gilles Caulier
Comment 2 Wolfram Quester 2009-03-13 21:52:20 UTC
I downgraded to 0.9.4 with libkdcraw3 and the download worked flawlessly. I can also browse the files on the camera properly using gphoto. The same problem persists on another camera I have from canon :-(

With best wishes,

Wolfi
Comment 3 caulier.gilles 2009-03-13 22:00:19 UTC
Wolfram,

This problem is relevant of libgphoto2, not digiKam

Gilles Caulier
Comment 4 Wolfram Quester 2009-03-20 20:21:09 UTC
Created attachment 32291 [details]
list of libs which digikam 0.94 links to
Comment 5 Wolfram Quester 2009-03-20 20:23:29 UTC
Created attachment 32292 [details]
list of libs which digikam 0.9.5~beta3 links to
Comment 6 Wolfram Quester 2009-03-20 20:25:36 UTC
I don't see how this should work, since both versions of digikam are linked to the same version of libgphoto2.
Obviously, I also don't understand how to attach two files and some comment at the same time in this BYS ;-(

With best regards,

Wolfi
Comment 7 Wolfram Quester 2009-03-22 17:53:25 UTC
Hi, I updated libgphoto2 from 2.4.1 to 2.4.4 yesterday and the problem persists.
Thanks,

Wolfi
Comment 8 Marcus Meissner 2009-03-22 18:55:07 UTC
i have to testrun this with a 450D, but its the first time I hear of it actually :/
Comment 9 Wolfram Quester 2009-03-22 20:36:23 UTC
Created attachment 32344 [details]
Patch which fixes the problem for me

This patch fixes the problem for me. I reverts the function  CameraUI::slotFileList in 
digikam-0.9.5~beta3/digikam/utilities/cameragui/cameraui.cpp
to the state of version 0.9.4. Now importing images works as expected ;-)

With best regards,

Wolfi
Comment 10 Marcel Wiesweg 2009-03-23 17:54:40 UTC
Dates need not be unique - we need to use QMultiMap, not QMap.
Comment 11 caulier.gilles 2009-05-13 12:18:51 UTC
SVN commit 967367 by cgilles:

QMap => QMultimap
CCBUGS: 186638


 M  +3 -3      cameraui.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=967367
Comment 12 caulier.gilles 2009-05-13 12:30:06 UTC
Wolfram, Mark,

Can you test with current code of digiKam from trunk (KDE4 - 0.11.0) ? Thanks in advance.

Gilles Caulier
Comment 13 Wolfram Quester 2009-06-28 21:55:57 UTC
Sorry for the long silence, I updated to the version of digikam currently in debian unstable (1.0.0) and the file import works well.
It is a bit surprising though, that in the import dialog, the files are not listed according to their numbers.

With best wishes and congrats to 1.0.0,

Wolfi
Comment 14 caulier.gilles 2009-06-28 22:31:08 UTC
well, fine for you to close this entry ?

Gilles Caulier