[Pkg-phototools-devel] Bug#579736: gphoto2: started failing to download images from Canon 5D

Felix Hagemann felix.hagemann at gmail.com
Fri Apr 30 10:05:18 UTC 2010


Package: gphoto2
Version: 2.4.5-2
Severity: important

In between 06/04/2010 and 30/04/2010 (frequently updated testing
system) gphoto2 stopped to be able to download images from by Canon 5D
in PTP mode. It's still working with with my Canon 400D, and with the
Canon 5D in "PC connect." mode as well as in Windows. Listing the files
with "gphoto2 -L" still works.

In PTP mode the error message is:

$ gphoto2 -p 1,2
Downloading 'IMG_1015.CR2' from folder
'/store_00020002/DCIM/100EOS5D'...

*** Error ***
PTP I/O error
*** Error (-1: 'Unspecified error') ***

In "PC connect." mode:
$ gphoto2 -p 1,2
Detected a 'Canon:EOS 5D (normal mode)'.
Downloading 'IMG_1015.CR2' from folder '/DCIM/100EOS5D'...

*** Error ***
canon_usb_set_file_attributes: canon_usb_dialogue failed
Saving file as IMG_1015.CR2
Downloading 'IMG_1015.JPG' from folder '/DCIM/100EOS5D'...

*** Error ***
canon_usb_set_file_attributes: canon_usb_dialogue failed
Saving file as IMG_1015.JPG

Below is a (small) part of the output in PTP mode with "--debug":

46.157201 frontend/foreach.c(2): ID 0 is in folder
'/store_00020002/DCIM/100EOS5D'.
46.159158 gphoto2-camera(2): Getting file 'IMG_1015.CR2' in folder
'/store_00020002/DCIM/100EOS5D'...
46.159179 libgphoto2/gphoto2-filesys.c(2): Getting file 'IMG_1015.CR2'
from folder '/store_00020002/DCIM/100EOS5D' (type 1)...
46.159193 gphoto2-filesystem(2): Lookup folder
/store_00020002/DCIM/100EOS5D file IMG_1015.CR2
46.159202 gphoto2-filesystem(2): Lookup folder
'/store_00020002/DCIM/100EOS5D'...
46.159221 context(2): Downloading 'IMG_1015.CR2' from folder
'/store_00020002/DCIM/100EOS5D'...
Downloading 'IMG_1015.CR2' from folder
'/store_00020002/DCIM/100EOS5D'...
46.159245 PTP2/ptp2/library.c(2): Getting file.
46.159257 gphoto2-port(2): Writing 16=0x10 byte(s) to port...
46.159269 gphoto2-port(3): Hexdump of 16 = 0x10 bytes follows:
0000  10 00 00 00 01 00 09 10-e0 01 00 00 71 3f 90 31  ............q?.1

46.160277 ptp2/ptp_usb_getdata(2): reading data
46.160288 ptp2/ptp_usb_getpacket(2): getting next ptp packet
46.160297 gphoto2-port(2): Reading 512=0x200 bytes from port...
46.466966 gphoto2-port(3): Hexdump of 512 = 0x200 bytes follows:
0000  ac 33 00 00 02 00 21 90-df 01 00 00 71 3f 90 31  .3....!.....q?.1
0010  03 b1 20 71 5a c5 00 08-88 bc 4b 49 4d 47 5f 31  .. qZ.....KIMG_1
0020  30 31 35 2e 43 52 32 00-72 3f 90 31 01 38 20 af  015.CR2.r?.1.8 .
0030  03 47 00 06 88 bc 4b 49-4d 47 5f 31 30 31 35 2e  .G....KIMG_1015.
0040  4a 50 47 00 81 3f 90 31-03 b1 20 78 18 c0 00 14  JPG..?.1.. x....
0050  88 bc 4b 49 4d 47 5f 31-30 31 36 2e 43 52 32 00  ..KIMG_1016.CR2.
0060  82 3f 90 31 01 38 20 1e-5d 40 00 14 88 bc 4b 49  .?.1.8 .]@....KI
0070  4d 47 5f 31 30 31 36 2e-4a 50 47 00 91 3f 90 31  MG_1016.JPG..?.1
0080  03 b1 20 8a 1e bf 00 26-88 bc 4b 49 4d 47 5f 31  .. ....&..KIMG_1
0090  30 31 37 2e 43 52 32 00-92 3f 90 31 01 38 20 2e  017.CR2..?.1.8 .
00a0  1d 3f 00 26 88 bc 4b 49-4d 47 5f 31 30 31 37 2e  .?.&..KIMG_1017.
00b0  4a 50 47 00 a1 3f 90 31-03 b1 00 cd f1 c0 00 92  JPG..?.1........
00c0  88 bc 4b 49 4d 47 5f 31-30 31 38 2e 43 52 32 00  ..KIMG_1018.CR2.
00d0  a2 3f 90 31 01 38 00 63-24 44 00 90 88 bc 4b 49  .?.1.8.c$D....KI
00e0  4d 47 5f 31 30 31 38 2e-4a 50 47 00 b1 3f 90 31  MG_1018.JPG..?.1
00f0  03 b1 00 b7 df c0 00 96-88 bc 4b 49 4d 47 5f 31  ..........KIMG_1
0100  30 31 39 2e 43 52 32 00-b2 3f 90 31 01 38 00 ea  019.CR2..?.1.8..
0110  63 42 00 94 88 bc 4b 49-4d 47 5f 31 30 31 39 2e  cB....KIMG_1019.
0120  4a 50 47 00 c1 3f 90 31-03 b1 00 4b e5 bc 00 98  JPG..?.1...K....
0130  88 bc 4b 49 4d 47 5f 31-30 32 30 2e 43 52 32 00  ..KIMG_1020.CR2.
0140  c2 3f 90 31 01 38 00 72-d3 3e 00 96 88 bc 4b 49  .?.1.8.r.>....KI
0150  4d 47 5f 31 30 32 30 2e-4a 50 47 00 d1 3f 90 31  MG_1020.JPG..?.1
0160  03 b1 20 10 ae be 00 9a-88 bc 4b 49 4d 47 5f 31  .. .......KIMG_1
0170  30 32 31 2e 43 52 32 00-d2 3f 90 31 01 38 20 f8  021.CR2..?.1.8 .
0180  d4 41 00 98 88 bc 4b 49-4d 47 5f 31 30 32 31 2e  .A....KIMG_1021.
0190  4a 50 47 00 e1 3f 90 31-03 b1 20 df 52 bd 00 c0  JPG..?.1.. .R...
01a0  88 bc 4b 49 4d 47 5f 31-30 32 32 2e 43 52 32 00  ..KIMG_1022.CR2.
01b0  e2 3f 90 31 01 38 20 9b-b7 3f 00 be 88 bc 4b 49  .?.1.8 ..?....KI
01c0  4d 47 5f 31 30 32 32 2e-4a 50 47 00 f1 3f 90 31  MG_1022.JPG..?.1
01d0  03 b1 20 76 ee bf 00 e0-88 bc 4b 49 4d 47 5f 31  .. v......KIMG_1
01e0  30 32 33 2e 43 52 32 00-f2 3f 90 31 01 38 20 91  023.CR2..?.1.8 .
01f0  7c 43 00 de 88 bc 4b 49-4d 47 5f 31 30 32 33 2e  |C....KIMG_1023.

46.467127 ptp2/ptp_usb_getdata(0): Read broken PTP header (Code is 9021
vs 1009).
46.467143 ptp2/usb_getdata(2): request code 0x1009 getting data error
0x02ff
46.467175 context(0): PTP I/O error

*** Error ***
PTP I/O error
46.467231 libgphoto2/gphoto2-filesys.c(2): Download of 'IMG_1015.CR2'
from '/store_00020002/DCIM/100EOS5D' (type 1) failed. Reason:
'Unspecified error'
46.467252 gphoto2-camera(2): Operation failed!
*** Error (-1: 'Unspecified error') ***

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (900, 'testing'), (700, 'unstable'), (650, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-3-686 (SMP w/1 CPU core)
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 gphoto2 depends on:
ii  libaa1                    1.4p5-38       ascii art library
ii  libc6                     2.10.2-6       Embedded GNU C Library: Shared lib
ii  libcdk5                   5.0.20060507-2 C-based curses widget library
ii  libexif12                 0.6.19-1       library to parse EXIF files
ii  libgphoto2-2              2.4.6-1        gphoto2 digital camera library
ii  libgphoto2-port0          2.4.6-1        gphoto2 digital camera port librar
ii  libjpeg62                 6b-16.1        The Independent JPEG Group's JPEG 
ii  libncurses5               5.7+20100313-2 shared libraries for terminal hand
ii  libpopt0                  1.15-1         lib for parsing cmdline parameters
ii  libreadline5              5.2-7          GNU readline and history libraries

gphoto2 recommends no packages.

Versions of packages gphoto2 suggests:
pn  gthumb                        <none>     (no description available)
pn  gtkam                         <none>     (no description available)

-- no debconf information





More information about the Pkg-phototools-devel mailing list