Menu

#520 Unable to retrieve images from HP Photosmart M415

closed
5
2015-02-12
2005-11-24
No

Hello,

I can intermittently get images from this camera. When I
cannot, I get the following:

sheldonl@sleewen:~$ env LANG=C gphoto2 --debug -l
0.000020 main(2): ALWAYS INCLUDE THE FOLLOWING
LINES WHEN SENDING DEBUG MESSAGES TO THE
MAILING LIST:
0.000869 main(2): gphoto2 2.1.6
0.001359 main(2): gphoto2 has been compiled with the
following options:
0.002022 main(2): + gcc (C compiler used)
0.002526 main(2): + no popt (for handling command-line
parameters)
0.003172 main(2): + exif (for displaying EXIF information)
0.003841 main(2): + cdk (for accessing configuration
options)
0.004387 main(2): + no aa (for displaying live previews)
0.005133 main(2): + jpeg (for displaying live previews in
JPEG format)
0.005711 main(2): + readline (for easy navigation in the
shell)
0.006277 main(2): libgphoto2 2.1.6
0.006901 main(2): libgphoto2 has been compiled with the
following options:
0.007484 main(2): + gcc (C compiler used)
0.008105 main(2): + EXIF (for special handling of EXIF
files)
0.008658 main(2): + no ltdl (working around buggy libltdl,
eh? :-)
0.009229 main(2): + /proc/meminfo (adapts cache size to
memory available)
0.009826 main(2): libgphoto2_port 0.5.1
0.010333 main(2): libgphoto2_port has been compiled with
the following options:
0.011011 main(2): + gcc (C compiler used)
0.011515 main(2): + USB (for USB cameras)
0.012029 main(2): + serial (for serial cameras)
0.012555 main(2): + no resmgr (serial port access and
locking)
0.013226 main(2): + no baudboy (serial port locking)
0.013790 main(2): + no ttylock (serial port locking)
0.014322 main(2): + no lockdev (serial port locking)
0.014967 main(2): + no ltdl (working around buggy libltdl,
eh? :-)
0.015527 foreach(2): Executing action 'List Folders' for
folder '/'.
0.016556 gphoto2-camera(2): Listing folders in '/'...
0.017285 gphoto2-camera(2): Initializing camera...
0.018027 gphoto2-port(0): The supplied vendor or product
id (0x0,0x0) is not valid.
0.018635 gphoto2-port-usb(1): Looking for USB device
(class 0x6, subclass, 0xffffffff, protocol 0xffffffff)... found.
0.019368 gphoto2-port-usb(1): Detected defaults: config
1, interface 0, altsetting 0, idVendor ID 03f0, idProduct
7a02, inep 81, outep 01, intep 82
0.020115 gphoto2-camera(2): Loading
'/usr/lib/gphoto2/2.1.6/libgphoto2_ptp2.so'...
0.021136 gphoto2-port(2): Opening USB port...
0.021895 gphoto2-port(0): Could not query kernel driver of
device.
0.022541 gphoto2-port(2): Setting timeout to 8000
millisecond(s)...
0.023276 ptp(2): PTP: Opening session
0.023817 gphoto2-port(2): Writing 16=0x10 byte(s) to
port...
0.024392 gphoto2-port(3): Hexdump of 16 = 0x10 bytes
follows:
0000 10 00 00 00 01 00 02 10-00 00 00 00 01 00 00
00 ................

gp_port_write: Resource temporarily unavailable
8.026940 PTP2/library.c(2): PTP: gp_port_* function
returned 0xffffffdd -35
8.026975 ptp(2): PTP: Opening session
8.027000 gphoto2-port(2): Writing 16=0x10 byte(s) to
port...
8.027027 gphoto2-port(3): Hexdump of 16 = 0x10 bytes
follows:
0000 10 00 00 00 01 00 02 10-00 00 00 00 01 00 00
00 ................

gp_port_write: Resource temporarily unavailable
16.029160 PTP2/library.c(2): PTP: gp_port_* function
returned 0xffffffdd -35
16.029196 ptp(2): PTP: Opening session
16.029221 gphoto2-port(2): Writing 16=0x10 byte(s) to
port...
16.029264 gphoto2-port(3): Hexdump of 16 = 0x10 bytes
follows:
0000 10 00 00 00 01 00 02 10-00 00 00 00 01 00 00
00 ................

gp_port_write: Resource temporarily unavailable
24.031419 PTP2/library.c(2): PTP: gp_port_* function
returned 0xffffffdd -35
24.031514 context(0): PTP I/O error

*** Error ***
PTP I/O error
24.031570 gphoto2-port(2): Closing port...
24.033711 context(0): An error occurred in the io-library
('Unspecified error'): Could not query kernel driver of
device.

*** Error ***
An error occurred in the io-library ('Unspecified error'):
Could not query kernel driver of device.
*** 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@lists.sourceforge.net>, please run
gphoto2 as follows:

env LANG=C gphoto2 --debug --debug -l

Please make sure there is sufficient quoting around the
arguments.

24.034261 gp-camera(2): Freeing camera...
24.034287 gphoto2-port(2): Freeing port...
24.034307 gphoto2-port(2): Closing port...
24.034428 libgphoto2/gphoto2-filesys.c(2): Clearing
fscache LRU list...
24.034451 libgphoto2/gphoto2-filesys.c(2): fscache LRU list
already empty
24.034470 gphoto2-filesystem(2): Internally deleting all
folders from '/'...

Discussion

  • Marcus Meissner

    Marcus Meissner - 2005-12-03

    Logged In: YES
    user_id=48092

    Hmm. Unclear.

    Is this the *first* run after plugging in the camera?

    Does the behaviour change when you run "gphoto2" as root?

     
  • Sheldon Lee Wen

    Sheldon Lee Wen - 2005-12-04

    Logged In: YES
    user_id=240921

    No, this happens in subsequent runs. The first time it works
    fine, afterwards I have this problem. Not sure about the
    root thing, I'll check.

     
  • Marcus Meissner

    Marcus Meissner - 2005-12-04

    Logged In: YES
    user_id=48092

    the problem will be in the run right before the failing
    one, since the above one is not able to connct back
    to the camera.

    can you post a --debug trace of the call before the failing
    call?

    (root is no issue, if it works once the permissions are
    ok.)

     
  • Marcus Meissner

    Marcus Meissner - 2005-12-04
    • assigned_to: nobody --> marcusmeissner
     
  • Hubert Figuière

    • labels: 730308 --> camlib/ptp2
     
  • Sheldon Lee Wen

    Sheldon Lee Wen - 2006-07-11

    Output on first connection as root

     
  • Sheldon Lee Wen

    Sheldon Lee Wen - 2006-07-11

    Output on first connection as normal user

     
  • Sheldon Lee Wen

    Sheldon Lee Wen - 2006-07-11

    Logged In: YES
    user_id=240921

    I'm now using Ubuntu Dapper 6.06 LTS.

    Gnome recognizes the camera and loads thumbnails of the
    pictures. When I select one picture and click the import
    button I get an error "PTP Protocol Error, response
    expected" The window hangs until I kill it.

    Here are what I think are the relevant processes from ps -ef
    sheldonl 9348 1 0 20:46 ? 00:00:00 /bin/sh
    /usr/bin/gnome-volume-manager-gthumb
    /org/freedesktop/Hal/devices/usb_device_3f0_7a02_noserial_if0
    sheldonl 9351 9348 6 20:46 ? 00:00:01 gthumb
    --import-photos

    If I exit that and try the gphoto debug again I get:
    0.000013 main(2): ALWAYS INCLUDE THE FOLLOWING LINES WHEN
    SENDING DEBUG MESSAGES TO THE MAILING LIST:
    0.000102 main(2): gphoto2 2.1.6
    0.000139 main(2): gphoto2 has been compiled with the
    following options:
    0.000159 main(2): + gcc (C compiler used)
    0.000177 main(2): + no popt (for handling command-line
    parameters)
    0.000196 main(2): + exif (for displaying EXIF information)
    0.000215 main(2): + cdk (for accessing configuration options)
    0.000233 main(2): + no aa (for displaying live previews)
    0.000251 main(2): + jpeg (for displaying live previews in
    JPEG format)
    0.000270 main(2): + readline (for easy navigation in the shell)
    0.000293 main(2): libgphoto2 2.1.6
    0.000314 main(2): libgphoto2 has been compiled with the
    following options:
    0.000333 main(2): + gcc (C compiler used)
    0.000352 main(2): + EXIF (for special handling of EXIF files)
    0.000370 main(2): + no ltdl (working around buggy libltdl,
    eh? :-)
    0.000398 main(2): + /proc/meminfo (adapts cache size to
    memory available)
    0.000420 main(2): libgphoto2_port 0.5.1
    0.000441 main(2): libgphoto2_port has been compiled with the
    following options:
    0.000461 main(2): + gcc (C compiler used)
    0.000479 main(2): + USB (for USB cameras)
    0.000498 main(2): + serial (for serial cameras)
    0.000517 main(2): + no resmgr (serial port access and locking)
    0.000535 main(2): + no baudboy (serial port locking)
    0.000553 main(2): + no ttylock (serial port locking)
    0.000572 main(2): + no lockdev (serial port locking)
    0.000590 main(2): + no ltdl (working around buggy libltdl,
    eh? :-)
    0.000613 foreach(2): Executing action 'List Folders' for
    folder '/'.
    0.000956 gphoto2-camera(2): Listing folders in '/'...
    0.000984 gphoto2-camera(2): Initializing camera...
    0.001029 gphoto2-port(0): The supplied vendor or product id
    (0x0,0x0) is not valid.
    0.001055 gphoto2-port-usb(1): Looking for USB device (class
    0x6, subclass, 0xffffffff, protocol 0xffffffff)... found.
    0.001076 gphoto2-port-usb(1): Detected defaults: config 1,
    interface 0, altsetting 0, idVendor ID 03f0, idProduct 7a02,
    inep 81, outep 01, intep 82
    0.001098 gphoto2-camera(2): Loading
    '/usr/lib/gphoto2/2.1.6/libgphoto2_ptp2.so'...
    0.001265 gphoto2-port(2): Opening USB port...
    0.001344 gphoto2-port(0): Could not query kernel driver of
    device.
    0.001404 gphoto2-port(2): Setting timeout to 8000
    millisecond(s)...
    0.001434 ptp(2): PTP: Opening session
    0.001466 gphoto2-port(2): Writing 16=0x10 byte(s) to port...
    0.001492 gphoto2-port(3): Hexdump of 16 = 0x10 bytes follows:
    0000 10 00 00 00 01 00 02 10-00 00 00 00 01 00 00 00
    ................

    gp_port_write: Resource temporarily unavailable
    8.003158 PTP2/library.c(2): PTP: gp_port_* function returned
    0xffffffdd -35
    8.003202 ptp(2): PTP: Opening session
    8.003225 gphoto2-port(2): Writing 16=0x10 byte(s) to port...
    8.003249 gphoto2-port(3): Hexdump of 16 = 0x10 bytes follows:
    0000 10 00 00 00 01 00 02 10-00 00 00 00 01 00 00 00
    ................

    gp_port_write: Resource temporarily unavailable
    16.005796 PTP2/library.c(2): PTP: gp_port_* function
    returned 0xffffffdd -35
    16.005842 ptp(2): PTP: Opening session
    16.005872 gphoto2-port(2): Writing 16=0x10 byte(s) to port...
    16.005895 gphoto2-port(3): Hexdump of 16 = 0x10 bytes follows:
    0000 10 00 00 00 01 00 02 10-00 00 00 00 01 00 00 00
    ................

    gp_port_write: Resource temporarily unavailable
    24.007455 PTP2/library.c(2): PTP: gp_port_* function
    returned 0xffffffdd -35
    24.007528 context(0): PTP I/O error

    *** Error ***
    PTP I/O error
    24.007585 gphoto2-port(2): Closing port...
    24.009160 context(0): An error occurred in the io-library
    ('Unspecified error'): Could not query kernel driver of device.

    *** Error ***
    An error occurred in the io-library ('Unspecified error'):
    Could not query kernel driver of device.
    *** Error (-1: 'Unspecified error') ***

    24.009583 gp-camera(2): Freeing camera...
    24.009607 gphoto2-port(2): Freeing port...
    24.009628 gphoto2-port(2): Closing port...
    24.009687 libgphoto2/gphoto2-filesys.c(2): Clearing fscache
    LRU list...
    24.009709 libgphoto2/gphoto2-filesys.c(2): fscache LRU list
    already empty
    24.009767 gphoto2-filesystem(2): Internally deleting all
    folders from '/'...
    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@lists.sourceforge.net>,
    please run
    gphoto2 as follows:

    env LANG=C gphoto2 --debug --debug -l

    Please make sure there is sufficient quoting around the
    arguments.

    I'll attach that output as a file as well.

     
  • Sheldon Lee Wen

    Sheldon Lee Wen - 2006-07-11

    Output on subsequent connection as normal user

     
  • Sheldon Lee Wen

    Sheldon Lee Wen - 2006-07-11

    Logged In: YES
    user_id=240921

    It appears on the last run that the camera trys to get data
    from the camera but then loses that connection part way
    through the transfer. That seems to be what I experience
    when I attempt to get a picture off the camera, it begins to
    transfer but then errors out.

     
  • Marcus Meissner

    Marcus Meissner - 2006-07-13

    Logged In: YES
    user_id=48092

    such a trace would be helpful (where it actually loses
    the transfer)

     
  • Sheldon Lee Wen

    Sheldon Lee Wen - 2006-07-14

    Logged In: YES
    user_id=240921

    The last trace I sent has that behaviour.

     
  • Hubert Figuière

    Logged In: YES
    user_id=27487

    I saw the bug today at OLS after being heckled by a fellow
    user attending the conference.

    Basically ptp_usb_getresp() returns PTP_ERROR_RESP_EXPECTED
    ptp.c:258 after downloading the picture.

    I don't have the camera but can arrange traces and stuff.
    This looks like a bug in the firmware.

    After that the camera is in a wrong state and shoudl either
    be unplugged or switched off.

     
  • Marcus Meissner

    Marcus Meissner - 2007-06-30

    Logged In: YES
    user_id=48092
    Originator: NO

    traces would help :)

     
  • Sheldon Lee Wen

    Sheldon Lee Wen - 2007-06-30

    Logged In: YES
    user_id=240921
    Originator: YES

    How do I do a trace? If you can provide instructions I'll do my best to do it.

     
  • Marcus Meissner

    Marcus Meissner - 2008-10-20

    please try libgphoto2 2.4.3, it is likely much improved

     
  • Marcus Meissner

    Marcus Meissner - 2008-10-20
    • status: open --> pending
     
  • SourceForge Robot

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

     
  • SourceForge Robot

    • status: pending --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB