Menu

#852 2.4.10 parentobject is 0xf21280ad, but not in card mode?

open
None
5
2010-09-09
2010-08-30
Dan Avidan
No

System: Up to date Ubuntu 10.04 LTS (Lucid Lynx)

Kernel: 2.6.32-24-generic-pae

Camera: Canon PowerShot S50 (PTP mode)

Remote capture commands:
1) /usr/local/bin/gphoto2 --set-config capture=on --set-config capturetarget=0 --set-config imagesize=2 --set-config iso=4 --set-co
nfig --set-config zoom=5"

2) /usr/local/bin/gphoto2 --capture-image-and-download --force-overwrite --filename=webcam.jpg

Description of problem:
There is no memory card in the camera. An image is taken directly to the camera memory and downloaded via "-capture-image-and-download"
After many successful remote captures, I am getting the following error:

Actual results:
ERROR: Could not get image.
parentobject is 0xf21280ad, but not in card mode?

*** Error ***
lg?
^
Unexpected character 'l'.
ERROR: Could not get image.

gphoto doesn't return a failure error code and instead report success (i.e. 0).

Expected results:
An image is captured successfully. If an error condition is in fact produced, gphoto2 should return a failure code (anything other than zero).

Is there a way to recover from this error gracefully? I tried to set capture=off/on again but that didn't help...
Is there a way to avoid this error in the first place? I specifically took the memory card out completely as without out it overall capture seemed to be more reliable.

Please see attached debug log

Thanks!

Discussion

  • Dan Avidan

    Dan Avidan - 2010-08-30

    libgphoto2 2.4.10 "parentobject is 0xf21280ad, but not in card mode?" Error debug log

     
  • Dan Avidan

    Dan Avidan - 2010-08-31

    Made an interesting observation which seems to suggest what is happening:

    1. A corrupted image has been saved to the Camera's RAM:
    #gphoto2 -L:

    There is no file in folder '/'.
    There is 1 file in folder '/store_80000001'.
    #1 lgñ rd 150 KB application/x-unknown

    2. However, if I try to delete the "rouge" image I get:
    # gphoto2 -f /store_80000001 -d 1
    Deleting 'lgñ' from folder '/store_80000001'...

    *** Error ***
    PTP Store Read Only
    *** Error (-1: 'Unspecified error') ***

    Other variations of the delete operation fails as well...

    I am sure rebooting the Camera will solve the issue (temporarily), but I wonder what can be done to avoid it in the first place or how it may be recovered gracefully. I forgot to mention before hand that with the memory card in, i got a lot of PTP timeout issues which is why I eventually took it out completely.

     
  • Marcus Meissner

    Marcus Meissner - 2010-09-09
    • assigned_to: nobody --> marcusmeissner
     
  • Marcus Meissner

    Marcus Meissner - 2010-09-09

    Seems to be in camera memory corruption, as it is still there after libgphoto2/gphoto2 exits.

    i am not sure what we can do here :/

     

Log in to post a comment.