From: Joseph M. N. <jm...@wm...> - 2008-03-24 15:35:51
|
Problem: I've been using gphoto2 on and off for a couple of years. I only use it ocassionally (like once a year on vacations), and in the middle there I've probably done a kernel upgrade or two. I've just noticed that while I can still download photos from the camera, I can't download the thumbnails anymore. I can remove the cf card and mount it on the pcmcia port and get the images and thumbnails OK. A search with google for the error message doesn't give me any obvious hints. Any suggestions? Thanks Joe ----------------------- Thinkpad 600E kernel 2.6.22.9 This version of gphoto2 is using the following software versions and options: gphoto2 2.4.0 gcc, popt(m), exif, cdk, aa, jpeg, readline libgphoto2 2.4.0 gcc, ltdl, EXIF libgphoto2_port 0.8.0 gcc, ltdl, USB, serial resmgr locking Mounting cf card on pcmcia bus, shows that the thm (thumbnail) file is on the cf card. igloo:/src/temp# mount -t vfat /dev/hde1 /mnt . . igloo:/mnt/dcim/639canon# dir total 2528 drwxr-xr-x 4 root root 32768 Mar 23 14:20 ../ drwxr-xr-x 2 root root 32768 Mar 23 14:20 ./ -rwxr-xr-x 1 root root 6348 Mar 23 14:20 crw_3919.thm* -rwxr-xr-x 1 root root 2483776 Mar 23 14:20 crw_3919.crw* Plugging the camera into usb port, the raw (CRW) file is present but the thm file is not seen igloo:/src/temp# gphoto2 --auto-detect gphoto2: {/src/temp} /> exit Model Port ---------------------------------------------------------- Canon PowerShot G1 usb: Canon PowerShot G1 usb:1,8 Canon PowerShot G1 usb:001,008 igloo:/src/temp# gphoto2 gphoto2: {/src/temp} /> ls Detected a 'Canon:PowerShot G1'. DCIM/ gphoto2: {/src/temp} /> cd DCIM Remote directory now '/DCIM'. gphoto2: {/src/temp} /DCIM> ls 639CANON/ CANONMSC/ gphoto2: {/src/temp} /DCIM> cd 639CANON Remote directory now '/DCIM/639CANON'. gphoto2: {/src/temp} /DCIM/639CANON> ls CRW_3919.CRW gphoto2: {/src/temp} /> exit I can retrieve the raw file OK. igloo:/src/temp# gphoto2 --get-all-files gphoto2: {/src/temp} /> exit Detected a 'Canon:PowerShot G1'. Downloading 'CRW_3919.CRW' from folder '/DCIM/639CANON'... File CRW_3919.CRW exists. Overwrite? [y|n] y Saving file as CRW_3919.CRW But can't retreive the thumbnail igloo:/src/temp# gphoto2 --get-all-thumbnails gphoto2: {/src/temp} /> exit Detected a 'Canon:PowerShot G1'. Downloading 'CRW_3919.CRW' from folder '/DCIM/639CANON'... Downloading 'CRW_3919.CRW' from folder '/DCIM/639CANON'... *** Error (-6: 'Unsupported operation') *** 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 --port=usb --camera=Canon PowerShot G1 --shell -get-all-thumbnails Please make sure there is sufficient quoting around the arguments. Edited dump (last 100 lines or so of about 1000 lines) 4.125505 canon/../../camlibs/canon/canon.c(2): Raw info: name=CRW_3919.CRW is_dir=0, is_file=1, attrs=0x0 4.125580 canon/../../camlibs/canon/canon.c(2): <CameraFileInfo> 4.125639 canon/../../camlibs/canon/canon.c(2): <CameraFileInfoFile> 4.125697 canon/../../camlibs/canon/canon.c(2): Name: CRW_3919.CRW 4.125810 canon/../../camlibs/canon/canon.c(2): Type: image/x-canon-raw 4.125877 canon/../../camlibs/canon/canon.c(2): Size: 2483776 4.125939 canon/../../camlibs/canon/canon.c(2): Perms: 0x3 4.126001 canon/../../camlibs/canon/canon.c(2): Status: 1 4.126093 canon/../../camlibs/canon/canon.c(2): Time: Sun Mar 23 14:20:46 2008 (1206282046) 4.126159 canon/../../camlibs/canon/canon.c(2): </CameraFileInfoFile> 4.126218 canon/../../camlibs/canon/canon.c(2): </CameraFileInfo> 4.126280 canon/../../camlibs/canon/util.c(2): is_image(CRW_3919.CRW) == 1 4.126391 canon/../../camlibs/canon/canon.c(2): Added file /DCIM/639CANON/CRW_3919.CRW 4.126461 canon/../../camlibs/canon/util.c(2): is_jpeg(CRW_3919.CRW) == 0 4.126527 canon/../../camlibs/canon/util.c(2): is_cr2(CRW_3919.CRW) == 0 4.126593 canon/../../camlibs/canon/util.c(2): is_thumbnail(CRW_3919.CRW) == 0 4.126658 canon/../../camlibs/canon/util.c(2): is_movie(CRW_3919.CRW) == 0 4.126722 canon/../../camlibs/canon/util.c(2): is_image(CRW_3919.CRW) == 1 4.126832 canon/../../camlibs/canon/canon.c(2): canon_int_filename2thumbname: thumbnail for file "CRW_3919.CRW" is external 4.126932 canon/../../camlibs/canon/canon.c(2): replace_filename_extension: No '.' found in filename 'CRW_3919.CRW' in ../../camlibs/canon/canon.c line 401. 4.129227 canon/../../camlibs/canon/canon.c(2): file "CRW_3919.CRW" has preview of MIME type "" 4.129502 canon/../../camlibs/canon/canon.c(2): canon_int_list_directory: converted 1206282046 to UTC 1206282046 (tm_gmtoff is 0) 4.129578 canon/canon.c(3): canon_int_list_directory: reading dirent at position 50 of 84 (0x32 of 0x54) 4.129650 canon/canon.c(3): canon_int_list_directory: dirent determined to be 23=0x17 bytes : 4.129736 canon(3): Hexdump of 23 = 0x17 bytes follows: 0000 20 00 cc 18 00 00 3e 67-e6 47 43 52 57 5f 33 39 .....>g.GCRW_39 0010 31 39 2e 54 48 4d 00 - 19.THM. 4.129824 canon/../../camlibs/canon/canon.c(2): Raw info: name=CRW_3919.THM is_dir=0, is_file=1, attrs=0x20 4.129895 canon/../../camlibs/canon/canon.c(2): <CameraFileInfo> 4.129953 canon/../../camlibs/canon/canon.c(2): <CameraFileInfoFile> 4.130012 canon/../../camlibs/canon/canon.c(2): Name: CRW_3919.THM 4.130072 canon/../../camlibs/canon/canon.c(2): Type: image/jpeg 4.130132 canon/../../camlibs/canon/canon.c(2): Size: 6348 4.130194 canon/../../camlibs/canon/canon.c(2): Perms: 0x3 4.130255 canon/../../camlibs/canon/canon.c(2): Status: 0 4.130354 canon/../../camlibs/canon/canon.c(2): Time: Sun Mar 23 14:20:46 2008 (1206282046) 4.130422 canon/../../camlibs/canon/canon.c(2): </CameraFileInfoFile> 4.130483 canon/../../camlibs/canon/canon.c(2): </CameraFileInfo> 4.130547 canon/../../camlibs/canon/util.c(2): is_image(CRW_3919.THM) == 0 4.130613 canon/../../camlibs/canon/util.c(2): is_movie(CRW_3919.THM) == 0 4.130679 canon/../../camlibs/canon/util.c(2): is_audio(CRW_3919.THM) == 0 4.130743 canon/../../camlibs/canon/canon.c(2): Ignored /DCIM/639CANON/CRW_3919.THM 4.130806 canon/canon.c(3): canon_int_list_directory: reading dirent at position 73 of 84 (0x49 of 0x54) 4.130873 canon/canon.c(3): canon_int_list_directory: dirent determined to be 11=0xb bytes : 4.130945 canon(3): Hexdump of 11 = 0xb bytes follows: 0000 00 00 00 00 00 00 00 00-00 00 00 ........... 4.131016 canon/../../camlibs/canon/canon.c(2): <FILESYSTEM-DUMP> 4.131077 libgphoto2/../../libgphoto2/gphoto2-filesys.c(2): Dumping Filesystem: 4.131137 libgphoto2/../../libgphoto2/gphoto2-filesys.c(2): Folder: / 4.131341 libgphoto2/../../libgphoto2/gphoto2-filesys.c(2): Folder: /DCIM 4.131404 libgphoto2/../../libgphoto2/gphoto2-filesys.c(2): Folder: /DCIM/639CANON 4.131464 libgphoto2/../../libgphoto2/gphoto2-filesys.c(2): 0: CRW_3919.CRW 4.131528 canon/../../camlibs/canon/canon.c(2): </FILESYSTEM-DUMP> 4.131587 canon/../../camlibs/canon/canon.c(2): END canon_int_list_dir() folder '/DCIM/639CANON' aka 'D:\DCIM\639CANON' 4.131657 filesys(2): Listed 'CRW_3919.CRW' 4.132103 gphoto2-camera(2): Getting file 'CRW_3919.CRW' in folder '/DCIM/639CANON'... 4.132265 libgphoto2/../../libgphoto2/gphoto2-filesys.c(2): Getting file 'CRW_3919.CRW' from folder '/DCIM/639CANON' (type 0)... 4.133684 context(2): Downloading 'CRW_3919.CRW' from folder '/DCIM/639CANON'... 4.134292 canon/canon.c(3): gphoto2canonpath: converted '/DCIM/639CANON' to 'D:\DCIM\639CANON' 4.134406 canon/../../camlibs/canon/library.c(2): get_file_func: folder '/DCIM/639CANON' filename 'CRW_3919.CRW' (i.e. 'D:\DCIM\639CANON\CRW_3919.CRW'), getting thumbnail 4.134484 canon/../../camlibs/canon/util.c(2): is_jpeg(D:\DCIM\639CANON\CRW_3919.CRW) == 0 4.134553 canon/../../camlibs/canon/util.c(2): is_cr2(D:\DCIM\639CANON\CRW_3919.CRW) == 0 4.134621 canon/../../camlibs/canon/util.c(2): is_thumbnail(D:\DCIM\639CANON\CRW_3919.CRW) == 0 4.134686 canon/../../camlibs/canon/util.c(2): is_movie(D:\DCIM\639CANON\CRW_3919.CRW) == 0 4.134753 canon/../../camlibs/canon/util.c(2): is_image(D:\DCIM\639CANON\CRW_3919.CRW) == 1 4.134817 canon/../../camlibs/canon/canon.c(2): canon_int_filename2thumbname: thumbnail for file "D:\DCIM\639CANON\CRW_3919.CRW" is external 4.134884 canon/../../camlibs/canon/canon.c(2): replace_filename_extension: No '.' found in filename 'D:\DCIM\639CANON\CRW_3919.CRW' in ../../camlibs/canon/canon.c line 401. 4.134953 canon/../../camlibs/canon/library.c(2): D:\DCIM\639CANON\CRW_3919.CRW is a file type for which no thumbnail is provided 4.135020 libgphoto2/../../libgphoto2/gphoto2-filesys.c(2): Getting previews is not supported. Trying EXIF data... 4.135132 libgphoto2/../../libgphoto2/gphoto2-filesys.c(2): Getting file 'CRW_3919.CRW' from folder '/DCIM/639CANON' (type 4)... 4.136279 context(2): Downloading 'CRW_3919.CRW' from folder '/DCIM/639CANON'... 4.136719 canon/canon.c(3): gphoto2canonpath: converted '/DCIM/639CANON' to 'D:\DCIM\639CANON' 4.136804 canon/../../camlibs/canon/library.c(2): get_file_func: folder '/DCIM/639CANON' filename 'CRW_3919.CRW' (i.e. 'D:\DCIM\639CANON\CRW_3919.CRW'), getting exif data 4.136877 canon/../../camlibs/canon/util.c(2): is_jpeg(D:\DCIM\639CANON\CRW_3919.CRW) == 0 4.136946 canon/../../camlibs/canon/util.c(2): is_cr2(D:\DCIM\639CANON\CRW_3919.CRW) == 0 4.137013 canon/../../camlibs/canon/util.c(2): is_thumbnail(D:\DCIM\639CANON\CRW_3919.CRW) == 0 4.137078 canon/../../camlibs/canon/util.c(2): is_movie(D:\DCIM\639CANON\CRW_3919.CRW) == 0 4.137145 canon/../../camlibs/canon/util.c(2): is_image(D:\DCIM\639CANON\CRW_3919.CRW) == 1 4.137209 canon/../../camlibs/canon/canon.c(2): canon_int_filename2thumbname: thumbnail for file "D:\DCIM\639CANON\CRW_3919.CRW" is external 4.137276 canon/../../camlibs/canon/canon.c(2): replace_filename_extension: No '.' found in filename 'D:\DCIM\639CANON\CRW_3919.CRW' in ../../camlibs/canon/canon.c line 401. 4.137345 canon/../../camlibs/canon/library.c(2): D:\DCIM\639CANON\CRW_3919.CRW is a file type for which no thumbnail is provided 4.137507 gphoto2-camera(2): Operation failed! 4.140596 gp-camera(2): Freeing camera... 4.140711 gphoto2-camera(2): Exiting camera ('Canon PowerShot G1')... 4.140778 canon/../../camlibs/canon/usb.c(2): canon_usb_unlock_keys() 4.140839 canon/../../camlibs/canon/usb.c(2): canon_usb_unlock_keys: keys aren't locked 4.140899 canon/../../camlibs/canon/library.c(2): switch_camera_off() 4.140959 canon/../../camlibs/canon/library.c(2): Not trying to shut down USB camera... 4.141018 canon/../../camlibs/canon/library.c(2): clear_readiness() 4.141103 gphoto2-port(2): Closing port... 4.448387 libgphoto2/../../libgphoto2/gphoto2-filesys.c(2): Clearing fscache LRU list... 4.448582 libgphoto2/../../libgphoto2/gphoto2-filesys.c(2): fscache LRU list already empty 4.448646 gphoto2-filesystem(2): Internally deleting all folders from '/'... 4.448812 gphoto2-port(2): Freeing port... 4.448881 gphoto2-port(2): Closing port... 4.449131 libgphoto2/../../libgphoto2/gphoto2-filesys.c(2): Clearing fscache LRU list... 4.449205 libgphoto2/../../libgphoto2/gphoto2-filesys.c(2): fscache LRU list already empty 4.449265 gphoto2-filesystem(2): Internally deleting all folders from '/'... -- Joseph Mack NA3T EME(B,D), FM05lw North Carolina jmack (at) wm7d (dot) net - azimuthal equidistant map generator at http://www.wm7d.net/azproj.shtml Homepage http://www.austintek.com/ It's GNU/Linux! |