GNOME Bugzilla – Bug 472805
Import Error: System.ArgumentOutOfRangeException
Last modified: 2007-09-02 12:55:08 UTC
Please describe the problem: I upgraded to f-spot 4.0. I can not import new photos anymore. The import dialog says: ---- Error importing /path/to/photo.jpg Index is less than 0 or more than or equal to the list count. Parameter name:index -1 --- The log: --- Scanning /path/to/ item changed open uri = file:/path/to/photo.jpg Error importing /path/to/photo.jpg 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] --- Steps to reproduce: 1. Open Import dialog 2. Choose folder Actual results: Expected results: Does this happen every time? yes Other information:
quick workaround: upgrade your db to sqlite3 (provided script in tools/) *** This bug has been marked as a duplicate of 467011 ***