Menu

#898 Persistent PTP I/O Error after getting all thumbnails

open
5
2013-01-20
2012-01-03
Luis Arias
No

After running

env LANG=C gphoto2 --debug --debug-logfile=get-all-thumbnails.txt --get-all-thumbnails

my Fujifilm X10 goes into an invalid state and subsequent gphoto2 commands like --list-files will give an error message like:

*** Error ***
PTP I/O error

*** Error ***
An error occurred in the io-library (\'Unspecified error\'): No error description available
*** Error (-1: \'Unspecified error\') ***

Related

Bugs: #898

Discussion

  • Marcus Meissner

    Marcus Meissner - 2012-01-03

    no special file is attempted to be downloaded :/ my first suspicion gone.

     
  • Luis Arias

    Luis Arias - 2012-01-04

    Marcus, I have an update, with only a single photo in the camera I can mix gphoto2 -L and gphoto2 --get-all-files seeminly without any issues. So it seems this is tied to the number of photos in the camera. I'll try and find the upper limit. If you have any suggestions as to what I could tweak to try to workaround this please let me know. Sounds like maybe some kind of timeout issue dependent on the number of photos.

     
  • Luis Arias

    Luis Arias - 2012-01-04

    Another phenomenon is the first gphoto2 command (like -L) on a camera that has just been turned on is real fast. All subsequent commands seem to hang a bit then run successfully.

     
  • Luis Arias

    Luis Arias - 2012-01-04

    Here are the last few lines where the hang takes place on subsequent gphoto2 commands:

    0.179244 ptp(2): PTP: Opening session
    0.179259 gphoto2-port(2): Writing 16=0x10 byte(s) to port...
    0.179271 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 ................

    0.179331 ptp2/ptp_usb_getresp(2): reading response
    0.179345 ptp2/ptp_usb_getpacket(2): getting next ptp packet
    0.179358 gphoto2-port(2): Reading 512=0x200 bytes from port...

     
  • Luis Arias

    Luis Arias - 2012-01-04

    I uploaded some new log files here:

    https://docs.google.com/open?id=0BxsLGLc1CE5cMjIyMDcyZjMtMWIwZC00ZGI2LThlMjgtMmEwYzliMjM0NDk0

    It turns out the limit is three photos. But with two photos, you will see that ptp_opensession fails and the 8s timeout takes place but the retry succeeds. With three photos the retry doesn't succeed and we have the above error.

     
  • Aaron W

    Aaron W - 2013-01-14

    This appears to be hitting me as well with a Canon Ixus 310HS (interestingly, I had this same model before with no issues, then had to replace it and now I do). Reported here:
    https://bugs.launchpad.net/ubuntu/+source/shotwell/+bug/1096463

    Please let me know if any log files or similar would assist. On 12.10 I get the lock error, on 12.04 it seems to hang on import after a few files in Shotwell.

     
  • Marcus Meissner

    Marcus Meissner - 2013-01-15
    • milestone: --> do_not_use_this_camlib/canon
     
  • Marcus Meissner

    Marcus Meissner - 2013-01-15

    Aaron, can you also capture a debuglogfile of this:

    env LANG=C gphoto2 --debug --debug-logfile=get-all-thumbnails.txt --get-all-thumbnails

     
  • Aaron W

    Aaron W - 2013-01-19

    Sure. I did some further testing and reported here:
    https://bugs.launchpad.net/ubuntu/+source/shotwell/+bug/910964

    1) Plug in camera and turn on.
    2) Unmount.
    3) env LANG=C gphoto2 --debug --debug-logfile=get-all-thumbnails.txt --get-all-thumbnails

     
  • Aaron W

    Aaron W - 2013-01-19

    It seemed to work. Running the command again gave:
    $ env LANG=C gphoto2 --debug --debug-logfile=get-all-thumbnails.txt --get-all-thumbnails

    Error
    PTP I/O error

    Error
    An error occurred in the io-library ('Unspecified error'): The supplied vendor or product id (0x0,0x0) is not valid.
    Error (-1: 'Unspecified error')

     
  • Marcus Meissner

    Marcus Meissner - 2013-01-20

    Luis, I also tried to look at your google docs files, but they seem to be gone :/

     
  • Luis Arias

    Luis Arias - 2013-01-21

    Ouch sorry, I reorganized my google docs recently. I think they're gone
    now :( I can generate some new ones today, I'll have to look back at this
    cause its been a while.

    Luis

    On Sun, Jan 20, 2013 at 9:57 PM, Marcus Meissner marcusmeissner@users.sf.net wrote:

    Luis, I also tried to look at your google docs files, but they seem to be
    gone :/


    Status: open
    Labels: camlib/ptp2
    Created: Tue Jan 03, 2012 08:02 AM UTC by Luis Arias
    Last Updated: Sat Jan 19, 2013 10:39 PM UTC
    Owner: Marcus Meissner

    After running

    env LANG=C gphoto2 --debug --debug-logfile=get-all-thumbnails.txt
    --get-all-thumbnails

    my Fujifilm X10 goes into an invalid state and subsequent gphoto2 commands
    like --list-files will give an error message like:

    Error
    PTP I/O error

    Error
    An error occurred in the io-library (\'Unspecified error\'): No error
    description available
    Error (-1: \'Unspecified error\')
    ------------------------------

    Sent from sourceforge.net because you indicated interest in
    https://sourceforge.net/p/gphoto/bugs/898/

    To unsubscribe from further messages, please visit
    https://sourceforge.net/auth/prefs/

     

    Related

    Bugs: #898


Log in to post a comment.