[ubuntu-mono] [Bug 653327] Re: f-spot crashes when image has wrong date

Paul McGarry paul at paulmcgarry.com
Wed Oct 13 23:56:09 UTC 2010


The underlying import problem seems to be something to do with raw
files, as the jpeg versions of the files imported at the same time seem
to have been imported correctly, from a dump of the photos.db:

INSERT INTO "photos" VALUES(6042,-62135636400,'file:///home/paulm/Photos/1/01/01','IMG_3149.CR2','',43,1,0);
INSERT INTO "photos" VALUES(6043,1279323047,'file:///home/paulm/Photos/2010/07/17','IMG_3149.JPG','',43,1,0);

Presumably it's the negative "time" value in the second field that is
causing the problem.


FWIW I have got my f-spot working again by deleting the records for the effected photos from the sqlite db, ie:

paulm at noobuntu:~/.config/f-spot$ sqlite3 photos.db
SQLite version 3.7.2
Enter ".help" for instructions
sqlite> select * from photos where id=6044;
6044|-62135636400|file:///home/paulm/Photos/1/01/01|IMG_3150.CR2||43|1|0
sqlite> delete from photos where base_uri='file:///home/paulm/Photos/1/01/01';
sqlite> select * from photos where id=6044;
sqlite> .quit

-- 
f-spot crashes when image has wrong date
https://bugs.launchpad.net/bugs/653327
You received this bug notification because you are a member of Ubuntu
CLI/Mono Uploaders, which is subscribed to f-spot in ubuntu.

Status in “f-spot” package in Ubuntu: Incomplete

Bug description:
Binary package hint: f-spot

f-spot crashes when the gallery contains an image which has an invalid date. f-spot can not be started / crashes on each start.
This should be handled and not result in an application crash.

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)






More information about the Ubuntu-mono mailing list