libgphoto2 does not allow capture (unspecified error) on Canon S5 IS
Bug #337990 reported by
b
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libgphoto2 (Ubuntu) |
Fix Released
|
Undecided
|
Martin Pitt |
Bug Description
Binary package hint: libgphoto2-2
On debian lenny (libgphoto2-2 2.4.1-3) the following commands work fine on my camera:
$ gphoto2 --set-config capture=on
value on, t 1
No event yet, we'll try later.
$ gphoto2 --capture-image
*** Error ***
Canon Capture failed: 2019
ERROR: Could not capture.
*** Error (-1: 'Unspecified error') ***
Not so in ubuntu (libghoto2-2 2.4.2-0ubuntu3).
I've confirmed (with both gphoto and my own libgphoto code) that the issue is that gp_camera_capture() returns -1. On debian the call works fine, in both 2.4.1 and 2.4.4 (the latter compiled from source.
Attached is the extra libgphoto debug info.
tested on an up to date intrepid eeepc.
Related branches
To post a comment you must log in.
Hey all,
I've been developing on my lenny machine for my Canon S5 IS camera.
Things have been working well (except for the awkward udev stuff).
I wanted to run my application on my eeepc laptop (ubuntu intrepid) when
I got this error when I try to do an image capture, set-config
capture=on works fine:
$ gphoto2 --set-config capture=on
value on, t 1
No event yet, we'll try later.
$ gphoto2 --capture-image
*** Error ***
Canon Capture failed: 2019
ERROR: Could not capture.
*** Error (-1: 'Unspecified error') ***
So I thought it was a buggy gphoto ubuntu package (reported as bug
#337990), and compiled gphoto and libghoto 2.4.4 from source.
Problem is that the same error happens! :(
I've tried 2.4.2, 2.4.3 and 2.4.4 in packages and compiled from source
on two different ubuntu machines.
I really need to be able to use my app with the laptop, and would rather
not reinstall it with debian (though I may need to).
Attached is the gphoto logfile.
Please let me know what I can do to debug this issue.
Since it works in lenny, with the same version of gphoto/libgphoto it
must be something else. Here are the libs ldd listed libs for ubuntu:
linux-gate.so.1 => (0xb7f3d000) libcdk. so.5 (0xb7ed1000) .so.5 (0xb7ea1000) libjpeg. so.62 (0xb7e81000) i686/cmov/ libpthread. so.0 (0xb7e68000) e.so.5 (0xb7e37000) libgphoto2. so.2 (0xb7dbb000) port.so. 0 => /usr/lib/ libgphoto2_ port.so. 0 (0xb7db1000) libexif. so.12 (0xb7d87000) i686/cmov/ libm.so. 6 (0xb7d61000) 0.1.so. 4 (0xb7d58000) i686/cmov/ libc.so. 6 (0xb7bf0000) i686/cmov/ libdl.so. 2 (0xb7beb000) libltdl. so.7 (0xb7be2000)
libcdk.so.5 => /usr/lib/
libncurses.so.5 => /lib/libncurses
libjpeg.so.62 => /usr/lib/
libpthread.so.0 => /lib/tls/
libreadline.so.5 => /lib/libreadlin
libgphoto2.so.2 => /usr/lib/
libgphoto2_
libexif.so.12 => /usr/lib/
libm.so.6 => /lib/tls/
libusb-0.1.so.4 => /lib/libusb-
libpopt.so.0 => /lib/libpopt.so.0 (0xb7d4e000)
libc.so.6 => /lib/tls/
libdl.so.2 => /lib/tls/
/lib/ld-linux.so.2 (0xb7f23000)
libltdl.so.7 => /usr/lib/
and lenny:
linux-gate.so.1 => (0xf7f09000) libcdk. so.5 (0xf7eb2000) .so.5 (0xf7e7f000) libjpeg. so.62 (0xf7e5f000) cmov/libpthread .so.0 (0xf7e46000) e.so.5 (0xf7e14000) libgphoto2. so.2 (0xf7d9a000) port.so. 0 => /usr/lib/ libgphoto2_ port.so. 0 (0xf7d92000) libexif. so.12 (0xf7d68000) cmov/libm. so.6 (0xf7d42000) 0.1.so. 4 (0xf7d3a000) cmov/libc. so.6 (0xf7bd0000) cmov/libdl. so.2 (0xf7bcc000) libltdl. so.3 (0xf7bc4000)
libcdk.so.5 => /usr/lib/
libncurses.so.5 => /lib/libncurses
libjpeg.so.62 => /usr/lib/
libpthread.so.0 => /lib/i686/
libreadline.so.5 => /lib/libreadlin
libgphoto2.so.2 => /usr/lib/
libgphoto2_
libexif.so.12 => /usr/lib/
libm.so.6 => /lib/i686/
libusb-0.1.so.4 => /lib/libusb-
libpopt.so.0 => /lib/libpopt.so.0 (0xf7d31000)
libc.so.6 => /lib/i686/
libdl.so.2 => /lib/i686/
/lib/ld-linux.so.2 (0xf7f0a000)
libltdl.so.3 => /usr/lib/
Let me know what else I can do to debug.
.b.