gphoto / gphoto2

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

canon 5d3 - unable to get image out of camera - error I/O #127

Open paskeyes opened 6 years ago

paskeyes commented 6 years ago

Hello to all,

I'm using an indi-server with gphoto2 for a canon 5d3 DSLR. (it runs with ubuntu mate v16.04 and under the kstars/ekos suits - astronomy purpose)

divers are all up-to-date. Symptoms is : camera is controlled, exposure is done, but when gphoto2/indi tries to download the photo, it crashes (error I/O, like exceeding waiting time)

We debug the indiservern but it points an issue on the gphoto2, we did this command : gphoto2 --debug --debug-logfile=gphoto.txt --capture-image-and-download

i will try to attach the debug file for your investigation (12mo) if it doesn't work i will send a link to download it from google or elsewhere

Thank you very much for your help and your time ! Best regards,

Pask gphoto.txt

paskeyes commented 6 years ago

i forgot to mention it's on a pi3

And here are the version for gphoto2 :

gphoto2 2.5.9 gcc, popt(m), exif, no cdk, aa, jpeg, readline libgphoto2 2.5.16.1 all camlibs, gcc, ltdl, EXIF libgphoto2_port 0.12.0 iolibs: disk ptpip serial usb1 usbdiskdirect usbscsi, gcc, ltdl, USB, serial without locking

Pask

msmeissn commented 6 years ago

please check if current libgphoto2 git works ... we fixed a problem with large RAW files from EOS

paskeyes commented 6 years ago

Hi and tanks for your message,

I have right now the libgphoto2 2.5.16.1, is there a new version ? I can't find a fresher one (i did an update&upgrade this morning, i should be OK i presume)

Best regards; pask

paskeyes commented 6 years ago

I use the script of Gonzalo (and update the script with the last branch release) therefore in stable version i am in gphoto2 2.5.15 and libgphoto2 2.5.16.1

after running the script, the gphoto2 driver disappeared from indiserver. I had to fully reinstall indi to get back the driver (strange). once all done, i came back and try shootng but symptom stays the same, it works with JPG not with RAW :(

paskeyes commented 6 years ago

Good morning to you all,

I did a new caption with gphoto2 (using "gphoto2 --debug --debug-logfile=gphoto2.txt --capture-image-and-download")

The command stay frozen at the beginng of downloading, and here is the debug file (gphoto2.txt)

Thanks for your help ! Pask

gphoto2.txt

msmeissn commented 6 years ago

latest git should use GetPartialObject here though, not GetObject... is this really the dev version from the updater.sh?

paskeyes commented 6 years ago

Hello,

I installed now the dev-driver (gphoto2 2.5.15.1 libgphoto2 2.5.16.1) I did a shoot, using : $ gphoto2 --debug --debug-logfile=gphoto5.txt --capture-image-and-download 1/ Camera does the shoot, open the shutter and close it as requested 2/ photo appear on the camera screen during 2 sec for the review, the CR2 is stored in the camera SD 3/ the download progress is blocked at approx 26.9% for a little, 4/ Then i now have a ERR70 on the camera, and on the terminal : general error PTP & impossible to delete picture 5/ there is the file of the pic on the folder but it's an empty file.

here attached is the new gphoto5.txt (debug trace) gphoto5.txt

paskeyes commented 6 years ago

from a hint of Jose (on the indilib forum), i did different captures with gphoto2 (using same picture name), and get the tmpfile generated (when i get the request to overwrite y/n the file).

Here are my results :+1:

dev-driver (2.5.15.1 & 2.5.16.1) : RAW/mRAW/sRAW => Err70 on the camera, and tmpfile=0ko JPG => OK fully

stab-driver (2.5.15 & 2.6.16) RAW = blocked at some % like 26% (see file : tmp-RAW-stab-blocked) size 3.1Mo mRAW = fully ok (see file : tmp-mRAW-stab-OK) size 8.3Mo sRAW =!!! blocked at some % like 30% (see file :tmp-sRAW-stab-blocked) size 2.6Mo JPG = fully ok (see file : tmp-JPG-stab-OK) size 655ko

Very strange to see the sRAW doesn't pass !!! And i did the test 3x for each format, and i get the same result each time, with same size of tmpfile !

Also strange i get Err70 with the latest drivers :(

hope you can see things there ;) (here attached the different files) tmpfiles.tar.gz

Pask

msmeissn commented 6 years ago

please test todays 2.5.17 release

paskeyes commented 6 years ago

Hello,

Thanks for that Marcus. I did test it quickly last night as i was not having lot of time, but the result is strange :

i will do more test tomorrow... Pask

msmeissn commented 6 years ago

not good ... a debug logfile would be good again :/

paskeyes commented 6 years ago

Hello,

Finally got the time to do the test. I started with a fresh install with 2.5.9 drivers, then updated to 2.5.17 (last time i did reinstall indiserver or kstars that in fact overwritten some drivers back to previous one...)

So : Result of the test in full RAW : (using gphoto2 ...) photos is captured in canon RAM, gphoto tries to get it, but stays blocked. i don't have err70, or anyother kind of message, it stays "busy" Here is the debug file :

gphoto6.txt

Hope you can see something ... Best regards, Pask

paskeyes commented 6 years ago

Hello,

While the 5D3 doesn't work as described above, I did the test with a canon 20D someone brought me yesterday, and it works well for that camera :(

Pask