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 633020 - When imported photos have invalid dates F-Spot crashes
When imported photos have invalid dates F-Spot crashes
Status: RESOLVED DUPLICATE of bug 630646
Product: f-spot
Classification: Other
Component: Import
unspecified
Other Linux
: Normal normal
: ---
Assigned To: F-spot maintainers
F-spot maintainers
Depends on:
Blocks:
 
 
Reported: 2010-10-24 10:21 UTC by Mark Clarke
Modified: 2010-11-23 02:36 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Mark Clarke 2010-10-24 10:21:23 UTC
When importing some photos from my phone which appeared to have invalid dates, it appeared that they were imported ok but when f-spot tries to read the data from the database an out-of-range exception is thrown.


** Running f-spot in Debug Mode **
** Running Mono with --debug   **
[1 Info  12:15:02.942] Initializing Mono.Addins
[1 Debug 12:15:03.169] Mono.Addins Initialization took 0.214718
[1 Debug 12:15:03.362] Db Initialization took 0.085938
[1 Debug 12:15:03.679] Query Started : SELECT * FROM photos  WHERE  photos.id NOT IN (SELECT photo_id FROM photo_tags WHERE tag_id = 2) ORDER BY  time DESC, filename ASC 
[1 Debug 12:15:03.699] QueryToTemp took 0.018107 : SELECT * FROM photos  WHERE  photos.id NOT IN (SELECT photo_id FROM photo_tags WHERE tag_id = 2) ORDER BY  time DESC, filename ASC 
[1 Debug 12:15:03.699] Reloading the query took 0.022847
[1 Debug 12:15:03.847] Query took 0.010857 : SELECT * FROM photoquery_temp_0 LIMIT 100 OFFSET 0
[2 Debug 12:15:03.933] PhotosPerMonth took 0.009262
[2 Debug 12:15:03.934] TimeAdaptor REAL Reload took 0.222929
[1 Debug 12:15:03.939] Query Started : SELECT * FROM photos  WHERE  photos.id NOT IN (SELECT photo_id FROM photo_tags WHERE tag_id = 2) ORDER BY  time DESC, filename ASC 
[1 Debug 12:15:03.959] QueryToTemp took 0.01985 : SELECT * FROM photos  WHERE  photos.id NOT IN (SELECT photo_id FROM photo_tags WHERE tag_id = 2) ORDER BY  time DESC, filename ASC 
[1 Debug 12:15:03.980] Query took 0.004799 : SELECT * FROM photoquery_temp_0 LIMIT 100 OFFSET 0
[1 Debug 12:15:04.061] open uri = file:///home/mark/Pictures/Photos/2010/10/24/(35)-1190180962-fH=274-gH=160-mode=20-AG=0
[1 Debug 12:15:04.071] Reloading the query took 0.131797
[3 Debug 12:15:04.189] PhotosPerMonth took 0.010887
[3 Debug 12:15:04.190] TimeAdaptor REAL Reload took 0.228186
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)
[4 Debug 12:15:04.981] Finalizer called on FSpot.Utils.DisposableCache`2[Hyena.SafeUri,Gdk.Pixbuf]. Should be Disposed
[4 Debug 12:15:04.989] Finalizer called on FSpot.Core.Category. Should be Disposed
[4 Debug 12:15:04.989] Finalizer called on FSpot.Core.Category. Should be Disposed
[4 Debug 12:15:04.989] Finalizer called on FSpot.Core.Category. Should be Disposed
[4 Debug 12:15:04.989] Finalizer called on FSpot.Core.Category. Should be Disposed
[4 Debug 12:15:04.989] Finalizer called on FSpot.Core.Category. Should be Disposed
[4 Debug 12:15:04.989] Finalizer called on FSpot.Core.Category. Should be Disposed
[4 Debug 12:15:04.989] Finalizer called on FSpot.Core.Category. Should be Disposed
[4 Debug 12:15:04.992] Finalizer called on FSpot.Core.Tag. Should be Disposed
[4 Debug 12:15:04.995] Finalizer called on FSpot.Database.Db. Should be Disposed
[4 Debug 12:15:04.996] Finalizer called on FSpot.Core.Category. Should be Disposed
[4 Debug 12:15:04.996] Finalizer called on FSpot.Core.Category. Should be Disposed
[4 Debug 12:15:04.996] Finalizer called on FSpot.Utils.DisposableCache`2[System.String,Gdk.Pixbuf]. Should be Disposed
[4 Debug 12:15:04.996] Finalizer called on FSpot.Core.Category. Should be Disposed
[4 Debug 12:15:04.996] Finalizer called on FSpot.Core.Category. Should be Disposed
[4 Debug 12:15:04.996] Finalizer called on FSpot.Core.Category. Should be Disposed
[4 Debug 12:15:04.997] Finalizer called on FSpot.Core.Category. Should be Disposed
[4 Debug 12:15:04.997] Finalizer called on FSpot.Core.Category. Should be Disposed
[4 Debug 12:15:04.998] Finalizer called on FSpot.Widgets.Filmstrip. Should be Disposed
[4 Debug 12:15:04.999] Finalizer called on FSpot.PhotoView. Should be Disposed
Comment 1 Tim Howard 2010-11-23 02:36:04 UTC

*** This bug has been marked as a duplicate of bug 630646 ***