error importing photos with f-spot on ppc: LibGPhoto2.CameraFile.GetDataAndSize () -> Number overflow.

Bug #176707 reported by fish
14
This bug affects 1 person
Affects Status Importance Assigned to Milestone
F-Spot
Fix Released
Critical
f-spot (Debian)
Fix Released
Undecided
Unassigned
f-spot (Ubuntu)
Fix Released
Medium
Unassigned
Nominated for Hardy by Richard Wilbur

Bug Description

Binary package hint: f-spot

The bug is every time reproducable:
After starting f-spot, selecting import and choosing the camera f-spot crashs.
Looks like the same bug already reported in the debian bugtracker: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=439816

When started in a terminal i get this error:
...
cleanup context
item ImportCommand+SourceItem
Ubuntu 7.10 ppc - gnome-dev-cdrom - Mountpoint file:///media/cdrom0
<file:///media/cdrom0> True True Cdrom
Cdrom
item ImportCommand+SourceItem
Testing gphoto path = usb:
PortInfo Universal Serial Bus, usb:
cleanup context
Exception in Gtk# callback delegate
  Note: Applications can use GLib.ExceptionManager.UnhandledException to
handle the exception.
System.OverflowException: Number overflow.
  at LibGPhoto2.CameraFile.GetDataAndSize () [0x00000]
  at GPhotoCamera.GetPreviewPixbuf (.GPhotoCameraFile camfile) [0x00000]
  at FSpot.CameraFileSelectionDialog.GetPreviews () [0x00000]
  at FSpot.CameraFileSelectionDialog.CreateInterface () [0x00000]
  at FSpot.CameraFileSelectionDialog.Run () [0x00000]
  at MainWindow.ImportCamera (System.String camera_device) [0x00000]
  at ImportCommand.set_Source (.SourceItem value) [0x00000]
  at ImportCommand+SourceMenu.HandleActivated (System.Object sender,
System.EventArgs args) [0x00000]
  at (wrapper delegate-invoke)
System.MulticastDelegate:invoke_void_object_EventArgs
(object,System.EventArgs)
  at GLib.Signal.voidObjectCallback (IntPtr handle, IntPtr gch) [0x00000]

   at GLib.Signal.voidObjectCallback ()
   at Gtk.Dialog.gtk_dialog_run ()
   at Gtk.Dialog.gtk_dialog_run ()
   at Gtk.Dialog.Run ()
   at ImportCommand.ImportFromFile ()
   at MainWindow.HandleImportCommand ()
   at System.MulticastDelegate.invoke_void_object_EventArgs ()
   at GLib.Signal.voidObjectCallback ()
   at GLib.Signal.voidObjectCallback ()
   at Gtk.Application.gtk_main ()
   at Gtk.Application.gtk_main ()
   at Gtk.Application.Run ()
   at Gnome.Program.Run ()
   at FSpot.Driver.Main ()
cleanup context

gphoto2 -P works well. Its just generating a warning about
setting file attributes (which is the same on all systems i use to
download photos from that camera):

*** Fehler ***
canon_usb_set_file_attributes: canon_usb_dialogue failed
Speichere Datei als IMG_5377.JPG
Downloading 'IMG_5378.JPG' from folder '/DCIM/153CANON'...

System specs:
Camera is a Canon EOS 350D (aka. Rebell XT)

iBook G4:
sophie@maia:~$ cat /proc/cpuinfo
processor : 0
cpu : 7447A, altivec supported
clock : 666.666000MHz
revision : 0.1 (pvr 8003 0101)
bogomips : 36.73
timebase : 18432000
platform : PowerMac
machine : PowerBook6,5
motherboard : PowerBook6,5 MacRISC3 Power Macintosh
detected as : 287 (iBook G4)
pmac flags : 0000001b
L2 cache : 512K unified
pmac-generation : NewWorld

Ubuntu 7.10, installed with alternative CD. Everything up to date
(apt-get upgrade).
libgphoto2-2: Version: 2.4.0-2ubuntu2
f-spot: Version: 0.4.0-0ubuntu3

Important: The import worked without problems on a x86 Notebook
(Thinkpad R51) with the same Ubuntu version and the same camera!
I guess that LibGPhoto2.CameraFile.GetDataAndSize returns a to large number on PPC...

Maia Everett (linneris)
Changed in f-spot:
importance: Undecided → Medium
status: New → Triaged
Maia Everett (linneris)
Changed in f-spot:
status: New → Unknown
Revision history for this message
Forest Bond (forest-bond) wrote :

I have exactly the same issue on my iBook G4, Canon SD1000. As with reporter, gphoto2 works fine, but f-spot crashes consistently with same traceback.

Changed in f-spot:
status: Unknown → Confirmed
Maia Everett (linneris)
Changed in f-spot:
status: New → Unknown
Changed in f-spot:
status: Unknown → New
Revision history for this message
justink (justin-kelly) wrote :

anyone tried to import with f-spot on hardy ppc beta?

does it still give the above error?

Cheers

Justin

Revision history for this message
Thomas Champagne (lafeuil) wrote :

Hi

I have just tested with hardy on ppc and I have exactly the same error.
My camera is a Canon Powershot A520.
I join the fspot log.

Best regards
Thomas

Changed in f-spot:
status: New → Fix Released
Changed in f-spot:
status: Triaged → Fix Committed
Revision history for this message
Sebastien Bacher (seb128) wrote :

the new version fixing the issue is in intrepid

Changed in f-spot:
status: Fix Committed → Fix Released
Revision history for this message
Richard Wilbur (richard-wilbur) wrote :

This is still a problem with fully updated Hardy LTS (8.04.2). Every time I plug a digital camera into my laptop (PPC) the first thing it does is crash F-Spot. I close the unhandled exception window and open gThumb manually which works great. I wish either:
1. Hardy LTS F-Spot were updated with this fix (I filed 582113 on Gnome bugzilla against v0.4.3.1 and was notified it had been resolved long ago, but in Intrepid), or
2. I could choose gThumb as the default handler when a digital camera is detected (it works great!).

Kind of embarrassing to have the main application crash every time I plug in a digital camera. With gThumb the digital camera support is simple and "Just Works." The Long-Term Support edition of Ubuntu (Hardy 8.04) is scheduled for support on the desktop till April 2011--two years from now.

Revision history for this message
Richard Wilbur (richard-wilbur) wrote :

I backported the fix from upstream for Hardy LTS (8.04.2) and the source is in my PPA at
 https://launchpad.net/~richard-wilbur/+archive/ppa
as f-spot_0.4.3.1-0ubuntu2~ppa1~hardy1

When I built and tested on my PPC it worked! What do I need to do to propose this as an update for Hardy LTS? I attach the pbuilder results for the powerpc (PPC) architecture as LaunchPad PPA won't build that binary. Test it and let me know your results.

Revision history for this message
Richard Wilbur (richard-wilbur) wrote :
Revision history for this message
Onkar Shinde (onkarshinde) wrote :

@Richard,

If you need to propose this fix as stable release update please refer to https://wiki.ubuntu.com/StableReleaseUpdates

You need to attach the debdiff between current version and the version you have prepared. Also make sure that your version has proper changelog entry i.e. release name hardy-proposed and appropriate version string.

Revision history for this message
Risto Suominen (risto-suominen) wrote :

I tested Richard's powerpc package on my iMac G4 and Ubuntu 8.04.1 (up-to-date). It solves the problem! Thank you, Richard! I hope they accept it as SRU.

Revision history for this message
Richard Wilbur (richard-wilbur) wrote : Re: [Bug 176707] Re: error importing photos with f-spot on ppc: LibGPhoto2.CameraFile.GetDataAndSize () -> Number overflow.

Risto, thanks so much for testing the fix! I knew the crash problem on
f-spot was a bother for me. I am thankful this is open-source software
so I could fix the problem, but even more thankful it is "free" (libre)
software so I can share the fix with others.

Now, I need to get my fix in line with the SRU guidelines so it can be
released.

Artur Rona (ari-tczew)
Changed in f-spot (Debian):
importance: Unknown → Undecided
status: Confirmed → New
status: New → Fix Released
Changed in f-spot:
importance: Unknown → Critical
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.