F-Spot crashes on startup after photos.db is created

Bug #5164 reported by Nafallo Bjälevik
26
Affects Status Importance Assigned to Milestone
f-spot (Ubuntu)
Fix Released
Medium
Andrew Mitchell

Bug Description

F-spot works fine the first time it is run, I can import, browse,
add tags etc. However as soon as I quit it, it will no longer run the
next time, instead it crashes giving this message:

Unhandled Exception: System.NullReferenceException: Object reference not
set to an instance of an object
in <0x001e5> PhotoStore:Query (System.String query)
in <0x005b4> PhotoStore:Query (.Tag[] tags, .DateRange range)
in <0x0002c> FSpot.PhotoQuery:.ctor (.PhotoStore store)
in <0x006fe> MainWindow:.ctor (.Db db)
in <0x00039> FSpot.Core:get_MainWindow ()
in <0x00018> FSpot.Core:Organize ()
in <0x00559> Driver:Main (System.String[] args)

When I delete/move the file .gnome2/f-spot/photos.db it will start
again, but then, of course, all my sorting is gone.

Changed in f-spot:
assignee: nobody → ajmitch
Revision history for this message
Andrew Mitchell (ajmitch) wrote :

It would be great to get debugging info by building this with debugging on, and running it with mono --debug. I'll try & provide a .deb for you to test with all debugging enabled

Revision history for this message
Andrew Mitchell (ajmitch) wrote :

Upstream reports that this is fixed with mono 1.13.4, which has just hit dapper. Could you retry with that version & see if the crash is still there?

Changed in f-spot:
status: Unconfirmed → Needs Info
Revision history for this message
FrejSoya (frej) wrote :

I can not recreate this with mono 1.13.4.

But the old photos.db is still broken. :(

Revision history for this message
Andrew Mitchell (ajmitch) wrote :

Please explain how you can both 'not recreate this' & have photos.db broken?

Revision history for this message
Jonathan Loriaux (jloriaux) wrote :

I have this problem too ! And my dapper is uptodate.

Revision history for this message
Jeff Fortin Tam (kiddo) wrote :

I am 90% sure this is the cause. Could the MOTUs please bring the latest release to dapper drake? It's supposedly fixed in there.

http://bugzilla.gnome.org/show_bug.cgi?id=335442

Revision history for this message
Andrew Mitchell (ajmitch) wrote :

Working on 0.1.11 packaging now, will set sqlite3 as default DB if none exists already. This will solve most new problems, and a future f-spot upload will do the migration from sqlite 2 to 3 automatically if needed, and if the libs are both there.

Changed in f-spot:
status: Needs Info → In Progress
Revision history for this message
Andrew Mitchell (ajmitch) wrote :

0.1.11 is in the archive now, please inform me if the fix doesn't work.

Changed in f-spot:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.