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 594016 - System.OverflowException error after upgrade to 0.6.0
System.OverflowException error after upgrade to 0.6.0
Status: RESOLVED FIXED
Product: f-spot
Classification: Other
Component: General
0.6.x
Other Linux
: Normal critical
: ---
Assigned To: F-spot maintainers
F-spot maintainers
Depends on:
Blocks:
 
 
Reported: 2009-09-03 11:08 UTC by Duncan Innes
Modified: 2009-09-09 14:37 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Duncan Innes 2009-09-03 11:08:19 UTC
Upgraded to f-spot-0.6.0.0-1.fc11.x86_64 via Fedora yum repos.

Opening f-spot gives database error and opens with new blank database.

Opening from command line gives the following output:

[ann@fedora11 ~]$ f-spot
[Info  11:58:38.278] Initializing DBus
[Info  11:58:38.353] Initializing Mono.Addins
[Info  11:58:38.453] Starting new FSpot server (f-spot 0.6.0.0)
[Info  11:58:38.499] Updating F-Spot Database
[Warn  11:58:39.278] Rolling back database changes because of Exception
System.OverflowException: Value is greater than Int32.MaxValue or less than Int32.MinValue
  at System.Convert.ToInt32 (Int64 value) [0x00000] 
  at System.Int64.System.IConvertible.ToInt32 (IFormatProvider provider) [0x00000] 
  at System.Convert.ToInt32 (System.Object value, IFormatProvider provider) [0x00000] 
  at System.Convert.ToInt32 (System.Object value) [0x00000] 
  at FSpot.Database.Updater.<Updater>m__37 () [0x00000] 
  at FSpot.Database.Updater+Update.Execute (.Db db, .MetaItem db_version) [0x00000] 
  at FSpot.Database.Updater.Run (.Db database) [0x00000] 

(f-spot:21487): Gdk-CRITICAL **: gdk_x11_atom_to_xatom_for_display: assertion `atom != GDK_NONE' failed
[Info  11:59:03.664] Starting BeagleService
[Info  11:59:03.674] Hack for gnome-settings-daemon engaged

(f-spot:21487): 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.
[Info  11:59:05.486] Exiting

Will roll back to pervious version for now, but I have a duplicate environment to assist tracking this problem down.
Comment 1 Maxxer 2009-09-03 11:22:05 UTC
i'm almost sure this was fixed in 0.6.1.1.

Please upgrade and try...
Comment 2 Duncan Innes 2009-09-03 11:29:34 UTC
Ah - I'll have to wait for 0.6.1.1 to hit the yum repos then.

Will update as soon as I get the update.
Comment 3 Stephane Delcroix 2009-09-03 11:51:40 UTC
I don't think it's fixed in 0.6.1.1. could you please send me the photos.db that f-spot backuped by email (stephane AT delcroix DOT org) ?
Comment 4 Stephane Delcroix 2009-09-09 14:37:45 UTC
commit 33f1d9fc4a6e3fdd00e0aa34d17d2a26a1cb5238
Author: Stephane Delcroix <stephane@delcroix.org>
Date:   Wed Sep 9 16:33:27 2009 +0200

    do not try to convert the date to UInt32 on Upgrade, copy the raw data
    
    this fixes bgo #594016 for people with digital photos from the 19th century or from the post2038 era


@Duncan, send me your db, I'll fix it
@Duncan, make sure the fedora packager pick this patch, as I'm not sure there will be a 0.6.1.2