gphoto / gphoto2

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

Canon EOS 5D mark IV would stuck at recording when turned off after using gphoto2 to capture an image #486

Open shaizohar opened 2 years ago

shaizohar commented 2 years ago

Describe the bug

When setting capturetarget=1 (card) and turning the camera off camera would hang on recording screen (remaining images: number of taken images, although all images are already on the card when taken)

Name the camera Canon EOS 5D Mark IV usb:001,007

libgphoto2 and gphoto2 version gphoto2 2.5.28 gcc, popt(m), exif, no cdk, no aa, no jpeg, no readline libgphoto2 2.5.28 standard camlibs (SKIPPING docupen lumix), gcc, no ltdl, EXIF libgphoto2_port 0.12.0 iolibs: disk ptpip serial usb1 usbdiskdirect usbscsi, gcc, no ltdl, EXIF, USB, serial without locking

To Reproduce gphoto2 --auto-detect --set-config capturetarget=1 --debug --debug-logfile=eos5dmk3-gphoto2.5.14.log --capture-image

I am attaching the log , however Gphoto is long not running but it seems as if because an image was taken while it was running, the camera is trying to do something still, the only way out of this would be to pull the USB cable outside eos5dmk3-gphoto2.5.14.log .

msmeissn commented 2 years ago

if the camera reports that, usually it means a image left in the SDRAM capture buffer... e.g. as if capturetarget setting to card did not work.

shaizohar commented 2 years ago

Hi marcus, but the image is being saved on the card, furthermore if i disconnect the cable the message would disapper and the image is still there.

Let me know if its possible to somehow debug this further?

Shai

Sent from my Galaxy

-------- Original message -------- From: Marcus Meissner @.> Date: 2/8/22 11:41 (GMT+02:00) To: gphoto/gphoto2 @.> Cc: Shai Zohar @.>, Author @.> Subject: Re: [gphoto/gphoto2] Canon EOS 5D mark IV would stuck at recording when turned off after using gphoto2 to capture an image (Issue #486)

if the camera reports that, usually it means a image left in the SDRAM capture buffer... e.g. as if capturetarget setting to card did not work.

— Reply to this email directly, view it on GitHubhttps://github.com/gphoto/gphoto2/issues/486#issuecomment-1032405527, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AXU5VQCI6FDGBBLC2U2VNE3U2DQLZANCNFSM5NYLEYWA. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you authored the thread.Message ID: @.***>

msmeissn commented 2 years ago

the capturetarget persists in the setting file usually... can you move setting it out of the commandline?