After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 326860 - Fails to Import Photos from Digital Camera
Fails to Import Photos from Digital Camera
Status: RESOLVED FIXED
Product: f-spot
Classification: Other
Component: General
0.1.5
Other All
: High major
: ---
Assigned To: F-spot maintainers
F-spot maintainers
: 335491 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2006-01-13 15:33 UTC by Carlos Moffat
Modified: 2006-07-01 17:44 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch against 0.1.11 (3.51 KB, patch)
2006-05-14 23:06 UTC, Larry Ewing
none Details | Review

Description Carlos Moffat 2006-01-13 15:33:00 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:
Comment 1 Gabriel Burt 2006-01-29 05:15:03 UTC
Is this still happening?
Comment 2 pjv 2006-02-09 14:27:21 UTC
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
Comment 3 Larry Ewing 2006-02-20 07:07:40 UTC
ugh, I'll try to ping the libgphoto developers
Comment 4 Marcus Meissner 2006-03-02 22:09:54 UTC
this is GP_ERROR ... but its not clear where it is returned from. :/
Comment 5 Carlos Moffat 2006-03-02 22:35:18 UTC
Sorry for the late reply. Yes, I still see this problem, with the latest f-spot (0.1.8)  in debian/sid. 

Thanks!
Comment 6 chris roddy 2006-04-08 01:43:19 UTC
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 :)
Comment 7 John Stilian 2006-04-22 19:28:35 UTC
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.
Comment 8 Matt MacLeod 2006-04-26 20:48:12 UTC
Seeing this on Ubuntu 6.06, Canon SD400.  Same deal.
Comment 9 Marcus Meissner 2006-04-26 21:06:18 UTC
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);

}
Comment 10 Carlos Moffat 2006-04-26 21:09:04 UTC
I'm not sure what do you want me to do with that. :)
Comment 11 Larry Ewing 2006-04-26 21:13:39 UTC
Is everyone that is seeing this using a canon?
Comment 12 Carlos Moffat 2006-04-26 21:25:17 UTC
I am. I don't have another camera to see if it's canon related, though.
Comment 13 Matt MacLeod 2006-04-26 21:28:17 UTC
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.
Comment 14 pjv 2006-04-26 22:05:55 UTC
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?
Comment 15 Matt MacLeod 2006-04-26 23:27:21 UTC
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.
Comment 16 chris roddy 2006-04-27 14:41:18 UTC
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.
Comment 17 chris roddy 2006-04-28 01:06:24 UTC
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.
Comment 18 Larry Ewing 2006-05-01 20:16:36 UTC
*** Bug 335491 has been marked as a duplicate of this bug. ***
Comment 19 Larry Ewing 2006-05-01 20:17:44 UTC
can someone who is seeing this bug see if the patch on 335491 fixes things for them?
Comment 20 Matt MacLeod 2006-05-01 21:07:15 UTC
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.
Comment 21 Marcus Meissner 2006-05-02 09:04:08 UTC
btw, /special on Canons is/will be gone with libgphoto2 2.1.99 and 2.2 again.
Comment 22 Larry Ewing 2006-05-14 23:02:13 UTC
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.
Comment 23 Larry Ewing 2006-05-14 23:06:06 UTC
Created attachment 65466 [details] [review]
patch against 0.1.11

this is the patch against 0.1.11, head is fixed.
Comment 24 pjv 2006-07-01 17:44:37 UTC
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 :-).