[Pkg-phototools-devel] Bug#603384: Cannot trivially download photos from a simple SD card

David Paleino dapal at debian.org
Sat Nov 13 18:39:14 UTC 2010


reassign 603384 libgphoto2-port0
fixed 603384 2.4.10.1-2
found 603384 2.4.6-3

Ciao,

On Sat, 13 Nov 2010 16:14:13 +0000, Enrico Zini wrote:

> I am trying to reproduce #512883 so I could try to debug it, but I
> didn't get as far as the bug reporter did. I have photos on a SD card
> put in my laptop SD card reader, and gphoto2 -l and gphoto2 -L correctly
> list the contents of the SD card. I can copy file out of it using plain
> "cp". However, gphoto2 cannot:
> 
>   $ gphoto2 --get-all-files
>   Downloading 'P1110588.JPG' from folder
> '/DCIM/111_PANA'... *** Error (-1: 'Unspecified error') ***       
>   
>   For debugging messages, please use the --debug option.
>   Debugging messages may help finding a solution to your problem.
>   If you intend to send any error or debug messages to the gphoto
>   developer mailing list <gphoto-devel at lists.sourceforge.net>, please run
>   gphoto2 as follows:
>   
>       env LANG=C gphoto2 --debug --debug-logfile=my-logfile.txt
> --get-all-files 
>   Please make sure there is sufficient quoting around the arguments.
> 
> I generate the logfile and this seems to be the relevant extract:
> 
>   0.280131 context(2): Downloading 'P1110666.JPG' from folder
> '/DCIM/111_PANA'...
>   0.280182 gp_file_open(0): Needs to be initialized with fd=-1 to work
>   0.280209 libgphoto2/gphoto2-filesys.c(2): Download of 'P1110666.JPG' from
> '/DCIM/111_PANA' (type 1) failed. Reason: 'Unspecified error'
>   0.280221 gphoto2-camera(2): Operation failed!

After digging in the code, seems like this bug is in libgphoto2-port0. In fact,
with sid's versions of libgphoto2-2 and gphoto2, and the experimental one of
-port0, I couldn't reproduce this bug.

I'll try to find what changed between the two versions, and possibly backport
the fix.

Grazie,
David

-- 
 . ''`.   Debian developer | http://wiki.debian.org/DavidPaleino
 : :'  : Linuxer #334216 --|-- http://www.hanskalabs.net/
 `. `'`  GPG: 1392B174 ----|---- http://deb.li/dapal
   `-   2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-phototools-devel/attachments/20101113/d32e131f/attachment.pgp>


More information about the Pkg-phototools-devel mailing list