You are not logged in.

#1 2013-08-03 20:57:07

Sivert3
Member
Registered: 2011-05-16
Posts: 8

[Workaround] F-Spot from the official repo crashes on startup

I installed f-spot from the official repository. When I start it, it errors out imminently. I'm running 64 bit, with multi-lib, Awesome and xdm.

$ f-spot
[Info  22:33:53.022] Initializing Mono.Addins
Object reference not set to an instance of an object
System.NullReferenceException: Object reference not set to an instance of an object
  at FSpot.Widgets.PhotoImageView.LoadErrorImage (System.Exception e) [0x00000] in <filename unknown>:0 
  at FSpot.Widgets.PhotoImageView.HandlePhotoItemChanged (System.Object sender, FSpot.Core.BrowsablePointerChangedEventArgs args) [0x00000] in <filename unknown>:0 
  at (wrapper delegate-invoke) System.EventHandler`1<FSpot.Core.BrowsablePointerChangedEventArgs>:invoke_void__this___object_TEventArgs (object,FSpot.Core.BrowsablePointerChangedEventArgs)
  at FSpot.Core.BrowsablePointer.SetIndex (Int32 value, IBrowsableItemChanges changes) [0x00000] in <filename unknown>:0 
  at FSpot.Core.BrowsablePointer.HandleCollectionChanged (IBrowsableCollection collection) [0x00000] in <filename unknown>:0 
  at (wrapper delegate-invoke) <Module>:invoke_void__this___IBrowsableCollection (FSpot.Core.IBrowsableCollection)
  at (wrapper delegate-invoke) <Module>:invoke_void__this___IBrowsableCollection (FSpot.Core.IBrowsableCollection)
  at FSpot.PhotoQuery.RequestReload () [0x00000] in <filename unknown>:0 
  at FSpot.QueryWidget.Close () [0x00000] in <filename unknown>:0 
  at FSpot.MainWindow.UpdateFindByTagMenu () [0x00000] in <filename unknown>:0 
  at FSpot.MainWindow..ctor (FSpot.Database.Db db) [0x00000] in <filename unknown>:0 
  at FSpot.App.get_Organizer () [0x00000] in <filename unknown>:0 
  at FSpot.App.HandleOrganize () [0x00000] in <filename unknown>:0 
  at FSpot.App.Organize () [0x00000] in <filename unknown>:0 
  at FSpot.Driver.Startup () [0x00000] in <filename unknown>:0 
  at Hyena.Gui.CleanRoomStartup.Startup (Hyena.Gui.StartupInvocationHandler startup) [0x00000] in <filename unknown>:0 
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.Core.Tag.get_SizedIcon () [0x00000] in <filename unknown>:0 
  at FSpot.TagSelectionWidget.IconDataFunc (Gtk.TreeViewColumn column, Gtk.CellRenderer renderer, TreeModel model, TreeIter iter) [0x00000] in <filename unknown>:0 
  at GtkSharp.TreeCellDataFuncWrapper.NativeCallback (IntPtr tree_column, IntPtr cell, IntPtr tree_model, IntPtr iter, IntPtr data) [0x00000] in <filename unknown>:0 
   at GLib.ExceptionManager.RaiseUnhandledException(System.Exception e, Boolean is_terminal)
   at GtkSharp.TreeCellDataFuncWrapper.NativeCallback(IntPtr tree_column, IntPtr cell, IntPtr tree_model, IntPtr iter, IntPtr data)
   at Gtk.Dialog.gtk_dialog_run(IntPtr )
   at Gtk.Dialog.Run()
   at Hyena.Gui.CleanRoomStartup.Startup(Hyena.Gui.StartupInvocationHandler startup)
   at FSpot.Driver.Main(System.String[] args)

It looks like it crashes after trying to display an icon in an error dialog after an error occurred trying to load an error image.

Last edited by Sivert3 (2013-08-04 19:38:44)

Offline

#2 2013-08-04 11:08:41

Sivert3
Member
Registered: 2011-05-16
Posts: 8

Re: [Workaround] F-Spot from the official repo crashes on startup

I tracked down the previous error to being caused by missing an icon theme. I installed gnome-icon-theme from the official repo, now I'm getting this error, which is even weirder than the previous one.

$ f-spot --debug
** Running f-spot in Debug Mode **
** Running Mono with --debug   **
[1 Info  12:56:13.308] Initializing Mono.Addins
[1 Debug 12:56:13.504] Mono.Addins Initialization took 0.170231
[1 Debug 12:56:13.755] Db Initialization took 0.075766
[1 Debug 12:56:14.044] Query Started : SELECT * FROM photos  WHERE  photos.id NOT IN (SELECT photo_id FROM photo_tags WHERE tag_id = 2) ORDER BY  time DESC, filename ASC 
[1 Debug 12:56:14.046] QueryToTemp took 0.001559 : SELECT * FROM photos  WHERE  photos.id NOT IN (SELECT photo_id FROM photo_tags WHERE tag_id = 2) ORDER BY  time DESC, filename ASC 
[1 Debug 12:56:14.046] Reloading the query took 0.003724
[4 Debug 12:56:14.269] PhotosPerMonth took 0.000625
[4 Debug 12:56:14.271] TimeAdaptor REAL Reload took 0.212915
[1 Debug 12:56:14.315] Query Started : SELECT * FROM photos  WHERE  photos.id NOT IN (SELECT photo_id FROM photo_tags WHERE tag_id = 2) ORDER BY  time DESC, filename ASC 
[1 Debug 12:56:14.316] QueryToTemp took 0.000807 : SELECT * FROM photos  WHERE  photos.id NOT IN (SELECT photo_id FROM photo_tags WHERE tag_id = 2) ORDER BY  time DESC, filename ASC 
[1 Debug 12:56:14.344] Reloading the query took 0.029295
Could not allocate -32 bytes
Stacktrace:

  at <unknown> <0xffffffff>
  at (wrapper managed-to-native) System.Runtime.InteropServices.Marshal.PtrToStringAnsi (intptr) <IL 0x0000d, 0xffffffff>
  at Cms.Profile.get_ProductDescription () [0x0000c] in /build/src/f-spot-0.8.2/src/Core/FSpot.Cms/Cms/Profile.cs:292
  at FSpot.ColorManagement.AddProfiles (string,System.Collections.Generic.IDictionary`2<string, Cms.Profile>) [0x0002c] in /build/src/f-spot-0.8.2/src/Clients/MainApp/FSpot/ColorManagement.cs:64
  at FSpot.ColorManagement.AddProfiles (string,System.Collections.Generic.IDictionary`2<string, Cms.Profile>) [0x0010a] in /build/src/f-spot-0.8.2/src/Clients/MainApp/FSpot/ColorManagement.cs:75
  at FSpot.ColorManagement.get_Profiles () [0x0008d] in /build/src/f-spot-0.8.2/src/Clients/MainApp/FSpot/ColorManagement.cs:38
  at FSpot.TagSelectionWidget.IconDataFunc (Gtk.TreeViewColumn,Gtk.CellRenderer,Gtk.TreeModel,Gtk.TreeIter) [0x00046] in /build/src/f-spot-0.8.2/src/Clients/MainApp/FSpot/TagSelectionWidget.cs:189
  at GtkSharp.TreeCellDataFuncWrapper.NativeCallback (intptr,intptr,intptr,intptr,intptr) <IL 0x0002a, 0x0011b>
  at (wrapper native-to-managed) GtkSharp.TreeCellDataFuncWrapper.NativeCallback (intptr,intptr,intptr,intptr,intptr) <IL 0x00031, 0xffffffff>
  at <unknown> <0xffffffff>
  at (wrapper managed-to-native) Gtk.Application.gtk_main () <IL 0x0000e, 0xffffffff>
  at Gtk.Application.Run () <IL 0x00000, 0x0000b>
  at FSpot.Driver.Startup () [0x00153] in /build/src/f-spot-0.8.2/src/Clients/MainApp/FSpot/main.cs:355
  at Hyena.Gui.CleanRoomStartup.Startup (Hyena.Gui.CleanRoomStartup/StartupInvocationHandler) [0x00044] in /build/src/f-spot-0.8.2/lib/Hyena/Hyena.Gui/Hyena.Gui/CleanRoomStartup.cs:54
  at FSpot.Driver.Main (string[]) [0x003ae] in /build/src/f-spot-0.8.2/src/Clients/MainApp/FSpot/main.cs:273
  at (wrapper runtime-invoke) <Module>.runtime_invoke_int_object (object,intptr,intptr,intptr) <IL 0x0005c, 0xffffffff>

Native stacktrace:

        f-spot() [0x4ae331]
        /usr/lib/libpthread.so.0(+0xf0e0) [0x7ff9a03330e0]
        /usr/lib/libc.so.6(gsignal+0x39) [0x7ff99ffac1c9]
        /usr/lib/libc.so.6(abort+0x148) [0x7ff99ffad5c8]
        f-spot() [0x60da25]
        f-spot() [0x60dac2]
        f-spot() [0x60d736]
        f-spot() [0x60bfd0]
        f-spot(mono_string_new+0x31) [0x5a93d1]
        [0x41576e7a]

Debug info from gdb:


=================================================================
Got a SIGABRT while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries 
used by your application.
=================================================================

Aborted (core dumped)

Offline

#3 2013-08-04 19:37:29

Sivert3
Member
Registered: 2011-05-16
Posts: 8

Re: [Workaround] F-Spot from the official repo crashes on startup

I have further tracked down the issue to being related to locales, somehow lcms + Marshal.PtrToStringAnsi + Xserver running with a locale other than C = crash. A workaround is to set the system locale to C (change the /etc/locale.conf LANG variable to C).

Offline

#4 2013-08-14 13:20:48

lz3060
Member
Registered: 2006-09-15
Posts: 35

Re: [Workaround] F-Spot from the official repo crashes on startup

$ LANG=C f-spot

worked for me.

Thanks for sharing.

Offline

Board footer

Powered by FluxBB