GNOME Bugzilla – Bug 441078
Imports fail with ArgumentOutOfRangeException
Last modified: 2007-11-08 14:16:01 UTC
Please describe the problem: When importing photos, either from a camera or a local folder, F-Sport throws up an error dialogues for *every* photo in the scanned medium. Steps to reproduce: 1. Import photos. This may not be reproducible on other systems or with other databases. Actual results: F-Sport errors out on *every* photo in the scanned medium with a ArgumentOutOfRangeException: Starting IFD[3]: IFD[3]:Compression(Short) [1] ( 6) IFD[3]:StripOffsets(Long) [1] ( 3678392) IFD[3]:StripByteCounts(Long) [1] ( 7124674) IFD[3]:50648(Long) [1] ( 1) IFD[3]:50656(Long) [1] ( 1) IFD[3]:50752(Short) [3] ( 1 1758 1758) Ending IFD[3]: Error importing /home/michael/Photos/2007/05/16/img_5868.cr2 System.ArgumentOutOfRangeException: Index is less than 0 or more than or equal to the list count. Parameter name: index -1 at System.Collections.ArrayList.get_Item (Int32 index) [0x00000] at Mono.Data.SqliteClient.SqliteParameterCollection.GetParameter (Int32 parameterIndex) [0x00000] at System.Data.Common.DbParameterCollection.get_Item (Int32 index) [0x00000] at System.Data.Common.DbParameterCollection.get_Item (System.String parameterName) [0x00000] at (wrapper remoting-invoke-with-check) System.Data.Common.DbParameterCollection:get_Item (string) at Mono.Data.SqliteClient.SqliteCommand.BindParameters2 () [0x00000] at Mono.Data.SqliteClient.SqliteCommand.Prepare () [0x00000] at Mono.Data.SqliteClient.SqliteCommand.ExecuteReader (CommandBehavior behavior, Boolean want_results, System.Int32& rows_affected) [0x00000] at Mono.Data.SqliteClient.SqliteCommand.ExecuteNonQuery () [0x00000] at Banshee.Database.QueuedSqliteCommand.Execute () [0x00000] Expected results: Import photo normally. Does this happen every time? Yes Other information:
what is the output of "head -c 10 ~/.gnome2/f-spot/photos.db"
The output of that command is "** This fi". Looking further into the file header, it's Sqlite 2.1.
similar bug in Ubuntu : https://bugs.launchpad.net/ubuntu/+source/f-spot/+bug/141180
Please backup your db and run f-spot-sqlite-upgrade, it should fix. Beware that f-spot-sqlite-upgrade will upgrade only the db present in ~/.gnome2/f-spot/photos.db *** This bug has been marked as a duplicate of 467011 ***