f-spot crashes (segfault) when any Export method is chosen

Bug #1351360 reported by Andy Smith
44
This bug affects 7 people
Affects Status Importance Assigned to Milestone
f-spot (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

When exporting any photo or group of photos by any enabled method f-spot reproducibly suffers a segfault and crashes.

This appears to be a duplicate of bug #1269760

Here's some output from strace around the time it happens:

readlink("/usr", 0x7fffd90cc130, 4096) = -1 EINVAL (Invalid argument)
readlink("/usr/lib", 0x7fffd90cc130, 4096) = -1 EINVAL (Invalid argument)
readlink("/usr/lib/f-spot", 0x7fffd90cc130, 4096) = -1 EINVAL (Invalid argument)
readlink("/usr/lib/f-spot/Extensions", 0x7fffd90cc130, 4096) = -1 EINVAL (Invalid argument)
readlink("/usr/lib/f-spot/Extensions/FSpot.Exporters.Zip.dll", 0x7fffd90cc130, 4096) = -1 EINVAL (Invalid argument)
close(17) = 0
stat("/home/andy/.config/f-spot/addin-db-001", {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
lstat("/home/andy/.config/f-spot/addin-db-001", {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
geteuid() = 1000
stat("/home/andy/.config/f-spot/addin-db-001/fdb-lock", {st_mode=S_IFREG|0664, st_size=0, ...}) = 0
lstat("/home/andy/.config/f-spot/addin-db-001/fdb-lock", {st_mode=S_IFREG|0664, st_size=0, ...}) = 0
geteuid() = 1000
stat("/home/andy/.config/f-spot/addin-db-001", {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
lstat("/home/andy/.config/f-spot/addin-db-001", {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
geteuid() = 1000
stat("/home/andy/.config/f-spot/addin-db-001/fdb-lock", {st_mode=S_IFREG|0664, st_size=0, ...}) = 0
lstat("/home/andy/.config/f-spot/addin-db-001/fdb-lock", {st_mode=S_IFREG|0664, st_size=0, ...}) = 0
geteuid() = 1000
open("/home/andy/.config/f-spot/addin-db-001/fdb-lock", O_RDONLY|O_CREAT, 0666) = 17
fstat(17, {st_mode=S_IFREG|0664, st_size=0, ...}) = 0
fstat(17, {st_mode=S_IFREG|0664, st_size=0, ...}) = 0
stat("/home/andy/.config/f-spot/addin-db-001/addin-data", {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
lstat("/home/andy/.config/f-spot/addin-db-001/addin-data", {st_mode=S_IFDIR|0775, st_size=4096, ...}) = 0
geteuid() = 1000
close(17) = 0
open("/usr/lib/f-spot/Extensions/FSpot.Exporters.Zip.dll.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("/usr/lib/f-spot/Extensions/FSpot.Exporters.Zip.dll.so.la", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/f-spot/Extensions/FSpot.Exporters.Zip.dll.config", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/etc/mono/assemblies/FSpot.Exporters.Zip/FSpot.Exporters.Zip.config", O_RDONLY) = -1 ENOENT (No such file or directory)
--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x18} ---

This is not specific to the Zip file export; any export option (such as "Export to folder") behaves the same way.

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: f-spot 0.8.2-5.1ubuntu1
ProcVersionSignature: Ubuntu 3.13.0-32.57-generic 3.13.11.4
Uname: Linux 3.13.0-32-generic x86_64
ApportVersion: 2.14.1-0ubuntu3.2
Architecture: amd64
CurrentDesktop: Unity
Date: Fri Aug 1 16:28:42 2014
InstallationDate: Installed on 2014-07-19 (13 days ago)
InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Release amd64 (20140417)
SourcePackage: f-spot
UpgradeStatus: No upgrade log present (probably fresh install)

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

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in f-spot (Ubuntu):
status: New → Confirmed
Revision history for this message
Florian Quèze (florian-instantbird) wrote :

If I start f-spot from a terminal, at the time of the crash I see this error message in the terminal:

Marshaling activate signal
Exception in Gtk# callback delegate
  Note: Applications can use GLib.ExceptionManager.UnhandledException to handle the exception.
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object
  at FSpot.Extensions.ExportMenuItemNode.OnActivated (System.Object o, System.EventArgs e) [0x00000] in <filename unknown>:0
  at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
  --- End of inner exception stack trace ---
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <filename unknown>:0
  at System.Delegate.DynamicInvokeImpl (System.Object[] args) [0x00000] in <filename unknown>:0
  at System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) [0x00000] in <filename unknown>:0
  at System.Delegate.DynamicInvoke (System.Object[] args) [0x00000] in <filename unknown>:0
  at GLib.Signal.ClosureInvokedCB (System.Object o, GLib.ClosureInvokedArgs args) [0x00000] in <filename unknown>:0
  at GLib.SignalClosure.Invoke (GLib.ClosureInvokedArgs args) [0x00000] in <filename unknown>:0
  at GLib.SignalClosure.MarshalCallback (IntPtr raw_closure, IntPtr return_val, UInt32 n_param_vals, IntPtr param_values, IntPtr invocation_hint, IntPtr marshal_data) [0x00000] in <filename unknown>:0
   at GLib.ExceptionManager.RaiseUnhandledException(System.Exception e, Boolean is_terminal)
   at GLib.SignalClosure.MarshalCallback(IntPtr raw_closure, IntPtr return_val, UInt32 n_param_vals, IntPtr param_values, IntPtr invocation_hint, IntPtr marshal_data)
   at Gtk.Application.gtk_main()
   at Gtk.Application.Run()
   at FSpot.Driver.Startup()
   at Hyena.Gui.CleanRoomStartup.Startup(Hyena.Gui.StartupInvocationHandler startup)
   at FSpot.Driver.Main(System.String[] args)

Revision history for this message
Martin (ubuntu-com-i) wrote :
Download full text (5.6 KiB)

I have exactly the same behaviour.
When I choose "Photo / Export to / folder" or "Photo/ export to / any other choice"then f-sport crashes immediately with the following error which seems to be the same error as Florian posted above.

Marshaling activate signal
Exception in Gtk# callback delegate
  Note: Applications can use GLib.ExceptionManager.UnhandledException to handle the exception.
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object
  at FSpot.Extensions.ExportMenuItemNode.OnActivated (System.Object o, System.EventArgs e) [0x00000] in <filename unknown>:0
  at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
  --- End of inner exception stack trace ---
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <filename unknown>:0
  at System.Delegate.DynamicInvokeImpl (System.Object[] args) [0x00000] in <filename unknown>:0
  at System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) [0x00000] in <filename unknown>:0
  at System.Delegate.DynamicInvoke (System.Object[] args) [0x00000] in <filename unknown>:0
  at GLib.Signal.ClosureInvokedCB (System.Object o, GLib.ClosureInvokedArgs args) [0x00000] in <filename unknown>:0
  at GLib.SignalClosure.Invoke (GLib.ClosureInvokedArgs args) [0x00000] in <filename unknown>:0
  at GLib.SignalClosure.MarshalCallback (IntPtr raw_closure, IntPtr return_val, UInt32 n_param_vals, IntPtr param_values, IntPtr invocation_hint, IntPtr marshal_data) [0x00000] in <filename unknown>:0
   at GLib.ExceptionManager.RaiseUnhandledException(System.Exception e, Boolean is_terminal)
   at GLib.SignalClosure.MarshalCallback(IntPtr raw_closure, IntPtr return_val, UInt32 n_param_vals, IntPtr param_values, IntPtr invocation_hint, IntPtr marshal_data)
   at Gtk.Application.gtk_main()
   at Gtk.Application.Run()
   at FSpot.Driver.Startup()
   at Hyena.Gui.CleanRoomStartup.Startup(Hyena.Gui.StartupInvocationHandler startup)
   at FSpot.Driver.Main(System.String[] args)

(f-spot:1222): GLib-CRITICAL **: Source ID 131 was not found when attempting to remove it

(f-spot:1222): GLib-CRITICAL **: Source ID 297 was not found when attempting to remove it

(f-spot:1222): GLib-CRITICAL **: Source ID 279 was not found when attempting to remove it

(f-spot:1222): GLib-CRITICAL **: Source ID 285 was not found when attempting to remove it

(f-spot:1222): GLib-CRITICAL **: Source ID 60 was not found when attempting to remove it

(f-spot:1222): GLib-CRITICAL **: Source ID 133 was not found when attempting to r...

Read more...

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.