GNOME Bugzilla – Bug 326860
Fails to Import Photos from Digital Camera
Last modified: 2006-07-01 17:44:37 UTC
Please describe the problem: Hi, I have a Canon PowerShot SD400 (PTP). When I try to import the photos from it using f-spot, I get the following output: Testing gphoto path = usb: PortInfo Universal Serial Bus, usb: Error GeneraError: LibGPhoto2.GPhotoException: Unspecified error in <0x000b9> LibGPhoto2.CameraFilesystem:ListFiles (System.String folder, LibGPhoto2.Context context) in <0x0003e> GPhotoCamera:GetFileList (System.String dir) in <0x00114> GPhotoCamera:GetFileList (System.String dir) in <0x0000f> GPhotoCamera:GetFileList () in <0x00055> GPhotoCamera:InitializeCamera () in <0x001e3> MainWindow:ImportCamera (System.String camera_device) I can import the photos using gthumb with no problems. When I plug in the camera, gnome show up dialog asking whether I want to import the photos, which it does correctly. Steps to reproduce: 1. Plug in camear 2. Go to file- import from camera 3. Actual results: Get an error saying "Error connecting to camera" and then "received error "unspecified error" while connecting to camera" Expected results: Does this happen every time? yes Other information:
Is this still happening?
It's still happening here anyway: f-spot ** (/usr/lib/f-spot/f-spot.exe:8072): WARNING **: Symbol file /usr/lib/mono/gac/dbus-sharp/0.60.0.0__9eef2692033670f5/dbus-sharp.dll.mdb has incorrect version (expected 39, got 38) Starting new FSpot server Testing gphoto path = usb: PortInfo Universal Serial Bus, usb: Error GeneraError: LibGPhoto2.GPhotoException: Unspecified error in <0x000b9> LibGPhoto2.CameraFilesystem:ListFiles (System.String folder, LibGPhoto2.Context context) in <0x0003e> GPhotoCamera:GetFileList (System.String dir) in <0x00114> GPhotoCamera:GetFileList (System.String dir) in <0x0000f> GPhotoCamera:GetFileList () in <0x00055> GPhotoCamera:InitializeCamera () in <0x001e3> MainWindow:ImportCamera (System.String camera_device) cleanup context cleanup context Canon Ixus 50 (in USA this is a SD450 I think). Gthumb works, auto popup in gnome. Gentoo linux. If I remember correctly someone concluded half a year ago that it was a small bug in one of the libraries, libgphoto2 I think, but that they had corrected this in their cvs, so to wait for a new version. However I have the latest versions now (but not cvs) and it still is happening: f-spot 0.1.8 gphoto2 2.1.6 libgphoto2 2.1.6-r1
ugh, I'll try to ping the libgphoto developers
this is GP_ERROR ... but its not clear where it is returned from. :/
Sorry for the late reply. Yes, I still see this problem, with the latest f-spot (0.1.8) in debian/sid. Thanks!
I am seeing this same problem on debian sid, with all of the following combinations of f-spot and libgphoto2: f-spot 0.1.8-1.1 from debian sid, libgphoto 2.1.6-8 from debian sid. f-spot 0.1.11 built from f-spot.org source, libgphoto 2.1.6-8 from debian sid. f-spot 0.1.11 built from f-spot.org source, libgphoto 2.1.99 built from gphoto.sf.net source. I am running on debian's 2.6.15-1-amd64-k8 kernel; my camera is a Canon PowerShot A610 (04a9:30fd). I've had no problems using the camera with gphoto2 on the command line, or using gtkam or gthumb's import functionality in PTP mode. hope this is useful info :)
I'd like to confirm that this happens with a new Canon A530 while running Ubuntu 6.06. The relevent software includes F-Spot 0.1.11 and libgphoto2 2.1.6-5.2. As was the case for other commenters, I experience no issues importing with gThumb.
Seeing this on Ubuntu 6.06, Canon SD400. Same deal.
it would help if you could get f-spot to dump the debugoutput. for f-spot to dump it, use: gp_log_add_func (GP_LOG_ALL, debug_func, NULL); and debug_func as callback function void debug_func (GPLogLevel level, const char *domain, const char *format, va_list args, void *data) { fprintf (stderr, "%s(%i): ", sec, usec, domain, level); vfprintf (stderr, format, args); fputc ('\n', stderr); }
I'm not sure what do you want me to do with that. :)
Is everyone that is seeing this using a canon?
I am. I don't have another camera to see if it's canon related, though.
The two gnome bugs (Bug 335491 is the other one) and the ubuntu bug (https://launchpad.net/products/f-spot/+bug/38010) only mention Canons.
Only have one canon to test with also. Seems to be only recent Canons: the Ixus's mostly (and an A530). Only the ones with the DIGIC 2 processor?
The SD400 (mine) is a Digic 2. I may be able to test with an SD550 next week, it's got the Digic 2 as well.
regarding comment #9 (meissner): i ran f-spot (from the debian package) with the --debug option enabled this morning before i left for work; the output was no more verbose than in the initial report. is that a patch that needs to be applied? if so, i'll add it and build f-spot from cvs when i get home. where in the source does this belong? also, fwiw, my camera has a digic 2 processor as well.
I dug up my older HP Photosmart 320 and tried it in PTP mode -- while that also fails to import the photos, the error is completely different and occurs much later. So, in my case, this appears to be confined to the Canon A610.
*** Bug 335491 has been marked as a duplicate of this bug. ***
can someone who is seeing this bug see if the patch on 335491 fixes things for them?
With the patch it now brings up the import dialog and shows all the thumbnails, but when I try to import them I get the following error box: System.NullReferenceException: Object reference not set to an instance of an object in <0x0026b> FileImportBackend:ChooseLocation (System.String path) in <0x00163> FSpot.CameraFileSelectionDialog:SaveFile (Int32 index) in <0x00140> FSpot.CameraFileSelectionDialog:Download () Error Transferring File It also crashes trying to release the device on exit.
btw, /special on Canons is/will be gone with libgphoto2 2.1.99 and 2.2 again.
This bug should be fixed if you have libgphoto2 2.1.99 or later and f-spot from CVS. I'll attach a patch against f-spot-0.1.11 as well.
Created attachment 65466 [details] [review] patch against 0.1.11 this is the patch against 0.1.11, head is fixed.
Yes, this patch and (an unstable) libgphoto2-2.2.1 (Gentoo still has 2.16 only) fixes the problem. Nice job! I assume that the import now is exactly equivalent to gthumb's import? How about video files? Too bad that it still imports to ~/Photos if I ask to import to a folder on my FAT32-partition (or is it more generally outside my homedir; ~/a for example does work). This is a new bug but there seem to be plenty like this reported already so I not going to :-).