[f-spot] Crash when opening f-spot preferences window

Bug #298283 reported by Aaron Kelley
44
This bug affects 4 people
Affects Status Importance Assigned to Milestone
F-Spot
Fix Released
Critical
f-spot (Ubuntu)
Fix Released
Medium
Ubuntu Desktop Bugs
Nominated for Intrepid by lemmy
Nominated for Jaunty by lemmy

Bug Description

Binary package hint: f-spot

I reported this over at the Gnome bug tracker. Here is my report:
http://bugzilla.gnome.org/show_bug.cgi?id=560265
(I have also pasted my original report below.)

I am posting this here because, after looking at some of the recent changes to f-spot in Ubuntu (https://launchpad.net/ubuntu/+source/f-spot), I am wondering if this crash may be caused by one of the recent updates. The preferences window worked when I first installed Ubuntu (shortly after 8.10 release), and stopped after the most recent update came down. (I cannot say for sure that the update caused the problem, but I can say that the preferences window started crashing after the update and I haven't done much else in f-spot that I think would cause a problem.

Here is my original report:

---

Steps to reproduce:
1. Open f-spot.
2. Go to Edit -> Preferences.
3. Boom!

Stack trace (from terminal output):
Exception in Gtk# callback delegate
  Note: Applications can use GLib.ExceptionManager.UnhandledException to handle
the exception.
System.NullReferenceException: Object reference not set to an instance of an
object
  at FSpot.UI.Dialog.PreferenceDialog.LoadPreference (System.String key)
[0x00000]
  at FSpot.UI.Dialog.PreferenceDialog..ctor () [0x00000]
  at FSpot.UI.Dialog.PreferenceDialog.Show () [0x00000]
  at MainWindow.HandlePreferences (System.Object sender, System.EventArgs args)
[0x00000]
  at GLib.Signal.voidObjectCallback (IntPtr handle, IntPtr data) [0x00000]
   at GLib.ExceptionManager.RaiseUnhandledException(System.Exception e, Boolean
is_terminal)
   at GLib.Signal.voidObjectCallback(IntPtr handle, IntPtr data)
   at GLib.Signal.voidObjectCallback(IntPtr , IntPtr )
   at Gtk.Application.gtk_main()
   at Gtk.Application.gtk_main()
   at Gtk.Application.Run()
   at Gnome.Program.Run()
   at FSpot.Driver.Main(System.String[] args)

---

Just to be clear, this is f-spot 0.5.0.3 (latest update) in Ubuntu 8.10.

Let me know if I can provide any additional information.

description: updated
Revision history for this message
traylenator (traylenator) wrote :

Confirmed by me also.

Changed in f-spot:
status: New → Confirmed
Changed in f-spot:
assignee: nobody → desktop-bugs
importance: Undecided → Medium
status: Confirmed → Triaged
Revision history for this message
Aaron Kelley (aaronkelley) wrote :

Update: Found the source of the crash.

This crash occurs when f-spot tries to read the key "/apps/f-spot/screensaver/tag_id" from gconf and the key does not exist.

Revision history for this message
Aaron Kelley (aaronkelley) wrote :

Workaround:
Execute this command in terminal:

gconftool-2 --set "/apps/f-spot/screensaver/tag_id" --type int 0

Revision history for this message
Aaron Kelley (aaronkelley) wrote :

Correction:

This crash occurs if you remove the pre-defined "Favorites" tag and you haven't already changed the screen saver to use images with a different tag. (The above workaround still works.)

Revision history for this message
Aaron Kelley (aaronkelley) wrote :

Fix is now applied upstream. Hopefully it'll make it into Ubuntu soonish. :-)

Changed in f-spot:
status: Unknown → Fix Released
Revision history for this message
Sebastien Bacher (seb128) wrote :

the bug is fixed upstream now

Changed in f-spot:
status: Triaged → Fix Committed
Revision history for this message
Daniel Jour (danieloertwig) wrote :

I noticed this error today, after deleting the Favorites tag.
But (after using the command above) there is no tag set which should the screensaver use.

=> Seems as if the error isn't corrected in the repos?

(Using Jaunty, up to date)

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package f-spot - 0.6.0.0-1~ubuntu1

---------------
f-spot (0.6.0.0-1~ubuntu1) karmic; urgency=low

  * Upload to Karmic from Debian's git VCS (LP: #410520)
  * New Upstream Version 0.6.0.0
   - no longer depends on libeog
   - fighting against deprecation, on the path to gnome3
   - new viewer widget
   - new widget showing folders organisation
   - new Preference dialog
   - db and config moved to .config (or whatever is pointed by xdg config)
   - tons of bugs fixed (really) (Closes: #534566, #449293, #479176, #305306,
     #537942, #418356)
     (LP: #77133, #290564, #298283, #379373, #405005, #116796, #178303,
     #355035, #368275)
   - updated translations
  * debian/control: Set Vcs-* to point to new Git locations
  * debian/control, debian/patches/*: Switch to quilt for patches, refresh all
    patches
  * debian/rules, debian/control: Rewrite in DH7 style (Closes: #531769)
  * debian/rules: Use ltmain-as-needed, modify LDFLAGS
  * debian/patches/99_ltmain_as-needed.dpatch: Drop, now applied in rules by
    copying from debian/
  * debian/patches/debian_unlink_nunit.dpatch: Drop, upstream now handles this
    case correctly by configure checks
  * debian/patches/debian_no_dup_app_icons.dpatch: Drop, upstream no longer
    ships svg icon
  * debian/patches/debian_link_2.0_profile_cairo.dpatch: Drop, fixed in mono
  * debian/patches/debian_dont_link_libmono.patch: Drop, ltmain-as-needed
    achieves this too
  * debian/patches/f-spot-import-gphoto.dpatch,
    debian/patches/svn-r4555_fix-crash-on-icon-size-change.dpatch,
    debian/patches/svn-r4545_locales-import.dpatch,
    debian/patches/debian_use_csc.dpatch,
    ubuntu_1024x600_CDExport.cs.dpatch,
    ubuntu_raw_escape_quote.dpatch (Closes: #481124),
    svn-display-sidebar.dpatch,
    svn-no-versionellipze.patch: Drop, fixed upstream
  * debian/control: Bump versions on a load of build-deps to match upstream
    configure checks. Also drop a load more build-deps that are no longer
    needed.
  * debian/{docs,menu,manpages}: Prefix with f-spot
  * debian/rules, debian/f-spot.install: Move DLLmap installation to
    f-spot.install instead of cp in rules
  * debian/gkeyfile-sharp.dll.config: Add, DLLImport was incorrect

 -- Iain Lane <email address hidden> Mon, 10 Aug 2009 17:42:29 +0100

Changed in f-spot (Ubuntu):
status: Fix Committed → Fix Released
Changed in f-spot:
importance: Unknown → Critical
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.