From: SourceForge.net <no...@so...> - 2009-01-18 22:38:57
|
Bugs item #2306843, was opened at 2008-11-17 20:47 Message generated for change (Settings changed) made by marcusmeissner You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=108874&aid=2306843&group_id=8874 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None >Status: Closed >Resolution: Fixed Priority: 5 Private: No Submitted By: meepy (meepy42) Assigned to: Marcus Meissner (marcusmeissner) Summary: --capture-image-and-download saves image to the camera Initial Comment: I like the '--capture-image-and-download' command for ease of use, but I have noticed the following reproducible error on my system. When I first use the command, it seems to work as normal. However, the second I use the command there is an error. If you check the file list on the camera, an image was actually taken but it was not downloaded. If you use the command again, it will download the previous image, while taking another picture and saving it to the camera again. This is problematic, because any changes to camera parameters (such as shutterspeed, zoom, etc.) require you to use the '--capture-image-and-download' command twice before downloading a picture with the correct properties. I am using the latest version libgphoto2 2.4.3 and gphoto2 2.4.3 on Debian 3.0, with a Canon Powershot G9: This version of gphoto2 is using the following software versions and options: gphoto2 2.4.3 gcc, popt(m), exif, no cdk, no aa, no jpeg, readline libgphoto2 2.4.3 gcc, ltdl, EXIF libgphoto2_port 0.8.0 gcc, ltdl, USB, serial without locking Here are the commands I used in order to prepare the attached log files. I did not attach the file list log files because I do not think they are relevant. Due the extreme length of each file because of massive hex dumps (6-18MB files!), I have manually removed portions of these dumps so that I can attach these files. If you would like to see the whole file, I can e-mail them to you. leed@gazoo:~/images$ gphoto2 --set-config capture=on --set-config shootingmode=3 --set-config afdistance=0 --set-config shutterspeed=17 --set-config aperture=3 --set-config zoom=0 --set-config iso=4 leed@gazoo:~/images$ env LANG=C gphoto2 --debug --debug-logfile=list_files01.txt -L There is no file in folder '/'. There is no file in folder '/store_00010001'. There is no file in folder '/store_00010001/DCIM'. There is no file in folder '/store_00010001/DCIM/100CANON'. There is no file in folder '/store_00010001/MISC'. leed@gazoo:~/images$ env LANG=C gphoto2 --debug --debug-logfile=capture01.txt --capture-image-and-download New file is in location /store_00010001/DCIM/100CANON/IMG_0702.JPG on the cameraDownloading 'IMG_0702.JPG' from folder '/store_00010001/DCIM/100CANON'... Saving file as IMG_0702.JPG Deleting file /store_00010001/DCIM/100CANON/IMG_0702.JPG on the camera Deleting 'IMG_0702.JPG' from folder '/store_00010001/DCIM/100CANON'... leed@gazoo:~/images$ ls argon samples error test IMG_0702.JPG sourceforge bug~ argon samples.zip G9 Photos leed@gazoo:~/images$ gphoto2 -L There is no file in folder '/'. There is no file in folder '/store_00010001'. There is no file in folder '/store_00010001/DCIM'. There is no file in folder '/store_00010001/DCIM/100CANON'. There is no file in folder '/store_00010001/MISC'. leed@gazoo:~/images$ env LANG=C gphoto2 --debug --debug-logfile=capture02.txt --capture-image-and-download ERROR: Could not capture. *** Error (-10: 'Timeout reading from or writing to the port') *** For debugging messages, please use the --debug option. Debugging messages may help finding a solution to your problem. If you intend to send any error or debug messages to the gphoto developer mailing list <gph...@li...>, please run gphoto2 as follows: env LANG=C gphoto2 --debug --debug-logfile=my-logfile.txt --debug --debug-logfile=capture02.txt --capture-image-and-download Please make sure there is sufficient quoting around the arguments. leed@gazoo:~/images$ env LANG=C gphoto2 --debug --debug-logfile=list_files02.txt -L There is no file in folder '/'. There is no file in folder '/store_00010001'. There is no file in folder '/store_00010001/DCIM'. There is 1 file in folder '/store_00010001/DCIM/100CANON'. #1 IMG_0703.JPG 1315 KB 3264x2448 image/jpeg There is no file in folder '/store_00010001/MISC'. leed@gazoo:~/images$ env LANG=C gphoto2 --debug --debug-logfile=capture03.txt --capture-image-and-download New file is in location /store_00010001/DCIM/100CANON/IMG_0703.JPG on the cameraDownloading 'IMG_0703.JPG' from folder '/store_00010001/DCIM/100CANON'... Saving file as IMG_0703.JPG Deleting file /store_00010001/DCIM/100CANON/IMG_0703.JPG on the camera Deleting 'IMG_0703.JPG' from folder '/store_00010001/DCIM/100CANON'... leed@gazoo:~/images$ env LANG=C gphoto2 --debug --debug-logfile=list_files03.txt -L There is no file in folder '/'. There is no file in folder '/store_00010001'. There is no file in folder '/store_00010001/DCIM'. There is 1 file in folder '/store_00010001/DCIM/100CANON'. #1 IMG_0704.JPG 1318 KB 3264x2448 image/jpeg There is no file in folder '/store_00010001/MISC'. leed@gazoo:~/images$ ls argon samples error test IMG_0702.JPG sourceforge bug~ argon samples.zip G9 Photos IMG_0703.JPG ---------------------------------------------------------------------- >Comment By: Marcus Meissner (marcusmeissner) Date: 2009-01-18 21:37 Message: I missed a gp_filesystem_append() in the canon capture to card mode. :( added for next release. ---------------------------------------------------------------------- Comment By: Marcus Meissner (marcusmeissner) Date: 2008-12-08 15:33 Message: reopen .. (means stuff to do for me ;) thanks for the logs, will take a look how to make the default better ---------------------------------------------------------------------- Comment By: meepy (meepy42) Date: 2008-12-08 15:11 Message: Correction: set_capturetarget_ram.txt should read get_capturetarget_ram.txt ---------------------------------------------------------------------- Comment By: meepy (meepy42) Date: 2008-12-08 15:08 Message: Success! The command finally captures to the RAM when you first switch the Capture Target to the Memory Card, and then switch the Target to the RAM: leed@gazoo:~/images$ gphoto2 --set-config capture=on --set-config shootingmode=3 --set-config afdistance=0 --set-config shutterspeed=17 --set-config aperture=3 --set-config zoom=0 --set-config iso=4 leed@gazoo:~/images$ env LANG=C gphoto2 --debug --debug-logfile=set_capturetarget_to_card.txt --set-config capturetarget=1 leed@gazoo:~/images$ env LANG=C gphoto2 --debug --debug-logfile=get_capturetarget__card.txt --get-config capturetarget Label: Capture Target Type: RADIO Current: Memory card Choice: 0 Internal RAM Choice: 1 Memory card leed@gazoo:~/images$ env LANG=C gphoto2 --debug --debug-logfile=set_capturetarget_to_ram.txt --set-config capturetarget=0 leed@gazoo:~/images$ env LANG=C gphoto2 --debug --debug-logfile=set_capturetarget_ram.txt --get-config capturetarget Label: Capture Target Type: RADIO Current: Internal RAM Choice: 0 Internal RAM Choice: 1 Memory card leed@gazoo:~/images$ gphoto2 --capture-image-and-download New file is in location /store_00010001/capt0000.jpg on the camera File capt0000.jpg exists. Overwrite? [y|n] n Specify new filename? [y|n] y Enter new filename: capt0002.jpg Saving file as capt0002.jpg Deleting file /store_00010001/capt0000.jpg on the camera Deleting 'capt0000.jpg' from folder '/store_00010001'... I imagine this is an initialization problem of some sort. ---------------------------------------------------------------------- Comment By: meepy (meepy42) Date: 2008-12-05 19:49 Message: Sorry for the delay Marcus, I have been really busy lately. Here is the output you requested. leed@gazoo:~/pyTherm/trunk$ gphoto2 --set-config capture=on --set-config shootingmode=3 --set-config afdistance=0 --set-config shutterspeed=17 --set-config aperture=3 --set-config zoom=0 --set-config iso=4 leed@gazoo:~/pyTherm/trunk$ env LANG=C gphoto2 --debug --debug-logfile=get_capturetarget_01.txt --get-config capturetarget Label: Capture Target Type: RADIO Current: Internal RAM Choice: 0 Internal RAM Choice: 1 Memory card leed@gazoo:~/pyTherm/trunk$ env LANG=C gphoto2 --debug --debug-logfile=set_capturetarget_01.txt --set-config capturetarget=0 leed@gazoo:~/pyTherm/trunk$ env LANG=C gphoto2 --debug --debug-logfile=get_capturetarget_02.txt --get-config capturetarget Label: Capture Target Type: RADIO Current: Internal RAM Choice: 0 Internal RAM Choice: 1 Memory card ---------------------------------------------------------------------- Comment By: SourceForge Robot (sf-robot) Date: 2008-12-03 02:20 Message: This Tracker item was closed automatically by the system. It was previously set to a Pending status, and the original submitter did not respond within 14 days (the time period specified by the administrator of this Tracker). ---------------------------------------------------------------------- Comment By: Marcus Meissner (marcusmeissner) Date: 2008-11-21 21:07 Message: hmm. still capturing to the card as far as I can see. whgat does: gphoto2 --get-config capturetarget report? and after gphoto2 --set-config capturetarget=0 what does gphoto2 --get-config capturetarget report? ---------------------------------------------------------------------- Comment By: meepy (meepy42) Date: 2008-11-21 15:52 Message: Using this setting does change the outcome. The second capture-image-and-download still fails, and the resulting image ends up on the camera. Check capture04.txt for the logfile. ---------------------------------------------------------------------- Comment By: Marcus Meissner (marcusmeissner) Date: 2008-11-18 09:21 Message: the reason is that the deletge in the second call fails. (happens occasionbaly). But yes, the image temporary lands on the card, which is not good. Try: gphoto2 --set-config capturetarget=0 and then the gphoto2 --capture-image-and-download calls. this will use the cameras RAM for storing. ---------------------------------------------------------------------- Comment By: meepy (meepy42) Date: 2008-11-17 20:54 Message: Sorry, these logfiles were actually made using libgphoto2 2.4.2, but I've found that 2.4.3 has the exact same behavior. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=108874&aid=2306843&group_id=8874 |