libgphoto2 causes F-Spot import failure

Bug #301731 reported by Brian O'Keefe
4
Affects Status Importance Assigned to Milestone
libgphoto2 (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

Nikon CoolPix 2500
Intrepid
TiBook G4

I'm having the same problem. I had no problem in Hardy but Intrepid is a disaster in this and other ways.
The workaround doesn't work. I tried downgrading to f-spot - 0.5.0.3-0ubuntu2 from f-spot - 0.5.0.3-0ubuntu4 and that didn't make any difference. All the gvfs packages are installed. Here's the terminal output:

~$ gvfs-mount -l
Drive(0): ATA Drive
  Volume(0): 43.0 GB Media
Drive(1): CD-RW/DVD±RW Drive
Volume(0): Nikon Corp. Coolpix 2500
  Mount(0): Nikon Corp. Coolpix 2500 -> gphoto2://[usb:004,010]/
brianokeefe@ubuntu:~$ sh -ex /usr/bin/f-spot-import gphoto2://[usb:004,010]/
+ udi=gphoto2://[usb:004,010]/
+ [ gphoto2://[usb:004,010]/ != //[usb:004,010]/ ]
+ gvfs-mount -u gphoto2://[usb:004,010]/
+ echo gphoto2://[usb:004,010]/
+ sed s_://\[_:_; s_/$__; s_\]$__
+ uri=gphoto2:usb:004,010
+ exec f-spot --import gphoto2:usb:004,010
[Info 14:09:31.822] Initializing DBus
[Info 14:09:32.194] Initializing Mono.Addins
[Info 14:09:33.014] Starting new FSpot server
Testing gphoto path = usb:
PortInfo Universal Serial Bus, usb:
Error Write: LibGPhoto2.GPhotoException: Error writing to the port
  at LibGPhoto2.CameraFilesystem.ListFiles (System.String folder, LibGPhoto2.Context context) [0x00000]
  at GPhotoCamera.GetFileList (System.String dir) [0x00000]
  at GPhotoCamera.GetFileList () [0x00000]
  at GPhotoCamera.InitializeCamera () [0x00000]
  at MainWindow.ImportCamera (System.String camera_device) [0x00000]

(f-spot:9710): GdkPixbuf-WARNING **: GdkPixbufLoader finalized without calling gdk_pixbuf_loader_close() - this is not allowed. You must explicitly end the data stream to the loader before dropping the last reference.
cleanup context
[Info 14:10:05.616] Starting BeagleService
[Info 14:10:05.617] Hack for gnome-settings-daemon engaged
[Info 14:10:09.155] Exiting

After unmounting the camera I get an error: f-spot received error error writing to the port while connecting to the camera

The workaround to which is to, again, unmount the device and restart F-Spot-doesn't work.
Really sad as I had finally, for the first time, gotten F-Spot to actually behave and work. I could send pix, import etc. Really sucks. sorry about the negativity but I spent about 5 hours trying to get this to work .

Revision history for this message
Brian O'Keefe (okeefe) wrote :

Sorry about the short description in my first post!
When I try to import from my camera using F-Spot I get an error about not being able to lock the device. I unmount the camera and try again and I get an "error writing to port". Here's the terminal output:

~$ f-spot
[Info 10:09:49.078] Initializing DBus
[Info 10:09:49.442] Initializing Mono.Addins
[Info 10:09:50.153] Starting new FSpot server
[Info 10:09:53.305] Starting BeagleService
[Info 10:09:53.306] Hack for gnome-settings-daemon engaged

(f-spot:5973): GdkPixbuf-WARNING **: GdkPixbufLoader finalized without calling gdk_pixbuf_loader_close() - this is not allowed. You must explicitly end the data stream to the loader before dropping the last reference.
item ImportCommand+SourceItem
Testing gphoto path = usb:
PortInfo Universal Serial Bus, usb:
Error Write: LibGPhoto2.GPhotoException: Error writing to the port
  at LibGPhoto2.CameraFilesystem.ListFiles (System.String folder, LibGPhoto2.Context context) [0x00000]
  at GPhotoCamera.GetFileList (System.String dir) [0x00000]
  at GPhotoCamera.GetFileList () [0x00000]
  at GPhotoCamera.InitializeCamera () [0x00000]
  at MainWindow.ImportCamera (System.String camera_device) [0x00000]

Revision history for this message
Martin Pitt (pitti) wrote :

Please install the "gphoto2" package, make sure that your camera gets unmounted after plugging it in (press the "umount" button in the dialog which pops up), and do

  gphoto2 --debug --debug-logfile /tmp/gphoto.debug.txt -L

Does this print an error message, or a list of files on the camera? Please attach /tmp/gphoto.debug.txt if it prints an error and fails. Thank you!

Changed in libgphoto2:
status: New → Incomplete
Revision history for this message
Brian O'Keefe (okeefe) wrote :

gphoto2 is already installed as are libghoto2-2, libghoto2-2-port. I got the error:

~$ gphoto2 --debug --debug-logfile /tmp/gphoto.debug.txt -L
*** Error (-35: 'Error writing to the port') ***

Attached is the debug file.

Revision history for this message
Brian O'Keefe (okeefe) wrote :

Additionally in GThumb viewer I get an error that camera contains no images when in fact it does.

Revision history for this message
Marcus Meissner (meissner) wrote :

The trace has:

0.561725 gphoto2-port-usb(1): USB device (vendor 0x4b0, product 0x108) is a mass storage device, and might not function with gphoto2. Reference: http://www.linux-usb.org/USB-guide/x498.html

I think that it was mounted as disk already makes it not accessible to sierra mode.

Please just use it as mass storage device.

Revision history for this message
Brian O'Keefe (okeefe) wrote :

It used to work great in Sierra mode. I'll miss being able to import..

Revision history for this message
Marcus Meissner (meissner) wrote :

for it to work in Sierra mode it must be able to detach the usb storage driver (the sierra mode is hidden in the sstorage mode).

libgphoto2 is no longer detaching mass strorage cameras anymore (since it caused too much problems), you can do this yourself manually if necessary.

Revision history for this message
Brian O'Keefe (okeefe) wrote :

I have unmounted and tried importing as from a mass storage device-doesn't work either. Is there another way? Am I missing something?

Revision history for this message
Victor Vargas (kamus) wrote :

Since this report have a long time without activity, could you check (if is possible) in latest version included in Karmic if this issue is still happening? Thanks in advance.

Revision history for this message
Brian O'Keefe (okeefe) wrote :

Sorry to have not responded sooner. I'm no longer using the camera or the laptop. I upgraded the TiBook to Karmic and it became completely non-functional.

Revision history for this message
Paul Crawford (psc-sat) wrote :
Download full text (3.7 KiB)

I believe this could be related to bug #74279 that I have been complaining about for some time. I tried the above commands with my Nikon D300s with just the CF card installed (causes F-spot to fail) and the first time I ran the command I got this:
=================================================================
gphoto2 --debug --debug-logfile /tmp/gphoto.debug1.txt -L

*** Error ***
PTP General Error

*** Error ***
An error occurred in the io-library ('Unspecified error'): No error description available
*** Error (-1: 'Unspecified error') ***

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 <email address hidden>, please run
gphoto2 as follows:

    env LANG=C gphoto2 --debug --debug-logfile=my-logfile.txt --debug --debug-logfile /tmp/gphoto.debug1.txt -L

Please make sure there is sufficient quoting around the arguments.

=================================================================
Second time I ran the command it worked as far as I could tell:
=================================================================

gphoto2 --debug --debug-logfile /tmp/gphoto.debug2.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 are 26 files in folder '/store_00010001/DCIM/100D300S'.
#1 DSC_1135.NEF rd 11359 KB application/x-unknown
#2 DSC_1136.NEF rd 11839 KB application/x-unknown
#3 DSC_1137.NEF rd 11929 KB application/x-unknown
#4 DSC_1138.NEF rd 11922 KB application/x-unknown
#5 DSC_1139.NEF rd 11694 KB application/x-unknown
#6 DSC_1140.NEF rd 11469 KB application/x-unknown
#7 DSC_1141.NEF rd 11792 KB application/x-unknown
#8 DSC_1142.NEF rd 11474 KB application/x-unknown
#9 DSC_1143.NEF rd 11774 KB application/x-unknown
#10 DSC_1144.NEF rd 11487 KB application/x-unknown
#11 DSC_1145.NEF rd 12062 KB application/x-unknown
#12 DSC_1146.NEF rd 12158 KB application/x-unknown
#13 DSC_1147.NEF rd 11895 KB application/x-unknown
#14 DSC_1148.NEF rd 11694 KB application/x-unknown
#15 DSC_1149.NEF rd 11953 KB application/x-unknown
#16 DSC_1150.NEF rd 11475 KB application/x-unknown
#17 DSC_1151.NEF rd 11786 KB application/x-unknown
#18 DSC_1152.NEF rd 11534 KB application/x-unknown
#19 DSC_1153.NEF rd 12434 KB application/x-unknown
#20 DSC_1154.NEF rd 12335 KB application/x-unknown
#21 DSC_1155.NEF rd 11636 KB application/x-unknown
#22 DSC_1156.NEF rd 12217 KB application/x-unknown
#23 DSC_1157.NEF rd 10993 KB applicat...

Read more...

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for libgphoto2 (Ubuntu) because there has been no activity for 60 days.]

Changed in libgphoto2 (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.