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 472805 - Import Error: System.ArgumentOutOfRangeException
Import Error: System.ArgumentOutOfRangeException
Status: RESOLVED DUPLICATE of bug 467011
Product: f-spot
Classification: Other
Component: Import
0.4.x
Other All
: Normal normal
: ---
Assigned To: F-spot maintainers
F-spot maintainers
Depends on:
Blocks:
 
 
Reported: 2007-09-02 12:36 UTC by sebi
Modified: 2007-09-02 12:55 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description sebi 2007-09-02 12:36:02 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:
Comment 1 Stephane Delcroix 2007-09-02 12:55:08 UTC
quick workaround: upgrade your db to sqlite3 (provided script in tools/)

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