gphoto / gphoto2

The gphoto2 commandline tool for accessing and controlling digital cameras.
GNU General Public License v2.0
708 stars 116 forks source link

PTP Device Busy after --capture-movie #594

Open linus-tls opened 1 year ago

linus-tls commented 1 year ago

Describe the bug After I run gphoto2 --stdout --capture-movie, Im unable to capture any images.

gphoto2 --capture-image-and-download --filename=outputfile.jpeg --debug --debug-logfile=my-logfile.txt outputs the following error: *** Error *** Canon EOS Full-Press failed (0x2019: PTP Device Busy) ERROR: Could not capture image. ERROR: Could not capture. *** Error (-110: 'I/O in progress') ***

Capturing images works normally before I run --capture-movie.

Name the camera Canon EOS 250D

libgphoto2 and gphoto2 version gphoto2 2.5.27 libgphoto2 2.5.27 libgphoto2_port 0.12.0 Ubuntu 22.04.2 LTS

To Reproduce

  1. gphoto2 --stdout --capture-movie
  2. Exit movie capture
  3. gphoto2 --capture-image-and-download --filename=outputfile.jpeg --debug --debug-logfile=my-logfile.txt

my-logfile.txt

msmeissn commented 1 year ago

Please make sure you have latest libgphoto2 2.5.30 , it is worth trying to update.

how do you exit movie capture? with ctrl-c ?

linus-tls commented 1 year ago

Will update and test again. Yes, ctrl + c.

linus-tls commented 1 year ago

Still the same issue with 2.5.30

gphoto2         2.5.28         gcc, popt(m), exif, no cdk, no aa, no jpeg, no readline
libgphoto2      2.5.30         standard camlibs (SKIPPING docupen lumix), gcc, no ltdl, EXIF
libgphoto2_port 0.12.1         iolibs: disk ptpip serial usb1 usbdiskdirect usbscsi, gcc, no ltdl, EXIF, USB, serial without locking
secretgrampuh commented 3 months ago

So I was having a similar issue that drove me up the wall for a few hours. My code worked for a whole day, then it stopped working all of a sudden, and it started returning this error:

*** Error *** Canon EOS Full-Press failed (0x2019: PTP Device Busy) ERROR: Could not capture image. ERROR: Could not capture. *** Error (-110: 'I/O in progress') ***

But I think what was happening was it was trying to auto-focus with my lens, so I lifted it off the ground where it was probably trying to take a blurry photo. I believe it would send a command to the camera to take a photo, the camera would try to focus, and unable to do it, it would send back an error that it couldn't snap a photo. Try pointing your camera at a big empty room or yourself and see how it goes.?