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 441078 - Imports fail with ArgumentOutOfRangeException
Imports fail with ArgumentOutOfRangeException
Status: RESOLVED DUPLICATE of bug 467011
Product: f-spot
Classification: Other
Component: Import
SVN
Other All
: Normal normal
: ---
Assigned To: F-spot maintainers
F-spot maintainers
Depends on:
Blocks:
 
 
Reported: 2007-05-25 00:25 UTC by Mikayla Hutchinson
Modified: 2007-11-08 14:16 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Mikayla Hutchinson 2007-05-25 00:25:23 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:
Comment 1 Larry Ewing 2007-05-26 03:35:48 UTC
what is the output of "head -c 10 ~/.gnome2/f-spot/photos.db"
Comment 2 Mikayla Hutchinson 2007-05-30 01:02:01 UTC
The output of that command is "** This fi".

Looking further into the file header, it's Sqlite 2.1.
Comment 3 Pedro Villavicencio 2007-09-28 15:36:38 UTC
similar bug in Ubuntu : https://bugs.launchpad.net/ubuntu/+source/f-spot/+bug/141180
Comment 4 Maxxer 2007-11-08 14:16:01 UTC
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 ***