Startup fails with System.ArgumentOutOfRangeException

Bug #669472 reported by Stuart Bishop
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
F-Spot
Fix Released
Critical
f-spot (Ubuntu)
Fix Committed
Medium
Unassigned

Bug Description

Binary package hint: f-spot

I tried to import some old photos into f-spot. At some point, it crashed. I suspect the photos got imported, the crash happening straight after.

Now f-spot does not start up, crashing with the following exception:

$ f-spot
[Info 21:18:18.761] Initializing Mono.Addins
Exception in Gtk# callback delegate
  Note: Applications can use GLib.ExceptionManager.UnhandledException to handle the exception.
System.ArgumentOutOfRangeException: Argument is out of range.
  at System.DateTime.DaysInMonth (Int32 year, Int32 month) [0x00000] in <filename unknown>:0
  at FSpot.TimeAdaptor.DateFromIndexDescending (Int32 item) [0x00000] in <filename unknown>:0
  at FSpot.TimeAdaptor.DateFromIndex (Int32 item) [0x00000] in <filename unknown>:0
  at FSpot.TimeAdaptor.TickLabel (Int32 item) [0x00000] in <filename unknown>:0
  at FSpot.GroupSelector.HandleAdaptorChanged (FSpot.GroupAdaptor adaptor) [0x00000] in <filename unknown>:0
  at (wrapper delegate-invoke) FSpot.GroupAdaptor/ChangedHandler:invoke_void__this___GroupAdaptor (FSpot.GroupAdaptor)
  at FSpot.TimeAdaptor+<DoReload>c__AnonStorey19.<>m__6B () [0x00000] in <filename unknown>:0
  at FSpot.Driver+<RunIdle>c__AnonStorey11.<>m__50 () [0x00000] in <filename unknown>:0
  at GLib.Idle+IdleProxy.Handler () [0x00000] in <filename unknown>:0
   at GLib.ExceptionManager.RaiseUnhandledException(System.Exception e, Boolean is_terminal)
   at GLib.Idle+IdleProxy.Handler()
   at Gtk.Application.gtk_main()
   at Gtk.Application.Run()
   at FSpot.Driver.Startup()
   at Hyena.Gui.CleanRoomStartup.Startup(Hyena.Gui.StartupInvocationHandler startup)
   at FSpot.Driver.Main(System.String[] args)

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: f-spot 0.8.0-1
ProcVersionSignature: Ubuntu 2.6.35-22.35-generic 2.6.35.4
Uname: Linux 2.6.35-22-generic x86_64
NonfreeKernelModules: nvidia
Architecture: amd64
Date: Mon Nov 1 21:19:47 2010
ProcEnviron:
 LANGUAGE=en_AU:en
 PATH=(custom, user)
 LANG=en_AU.UTF-8
 SHELL=/bin/bash
SourcePackage: f-spot

Revision history for this message
Stuart Bishop (stub) wrote :
Revision history for this message
Pedro Villavicencio (pedro) wrote :

Thanks for the report Stuart, this looks similar to bug https://bugzilla.gnome.org/show_bug.cgi?id=631333 which is already fixed upstream, linking the report, thanks.

Changed in f-spot (Ubuntu):
importance: Undecided → Medium
status: New → Fix Committed
Changed in f-spot:
importance: Unknown → Critical
status: Unknown → Fix Released
Revision history for this message
Stuart Bishop (stub) wrote :

I did have some photos imported into Photos/1.

Workaround:

I've moved these directories out of the way, but f-spot still does not launch. The bad data is still in the sqlite3 database - Photos.time contains photos

To fix this:

cd ~/.config/f-spot
cp photos.db photos.db.incaseiwannarecover
sqlite3 photos.db "delete from photos where time < 0;"

Revision history for this message
Stuart Bishop (stub) wrote :

In my case, the two files causing the trouble had file creation dates in 2004-10-12 and were both corrupt and no longer recognizable as jpeg images.

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.