GNOME Bugzilla – Bug 624933
Crash while trying to import a 0 Byte JPG
Last modified: 2010-07-22 13:21:35 UTC
TagLib.CorruptFileException: Expected SOI marker at the start of the file. at TagLib.Jpeg.File.ValidateHeader () [0x00023] in /usr/src/f-spot/lib/TagLib/TagLib/src/TagLib/Jpeg/File.cs:284 at TagLib.Jpeg.File.Read (ReadStyle propertiesStyle) [0x00017] in /usr/src/f-spot/lib/TagLib/TagLib/src/TagLib/Jpeg/File.cs:245 at TagLib.Jpeg.File..ctor (IFileAbstraction abstraction, ReadStyle propertiesStyle) [0x00007] in /usr/src/f-spot/lib/TagLib/TagLib/src/TagLib/Jpeg/File.cs:167 at (wrapper managed-to-native) System.Reflection.MonoCMethod:InternalInvoke (object,object[],System.Exception&) at System.Reflection.MonoCMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000]
Please run f-spot --debug and paste output when it crashes, tia.
I did already. You want more? [6 Warn 10:11:29.479] Caught an exception - TagLib.CorruptFileException: Expected SOI marker at the start of the file. (in `TagLib') at TagLib.Jpeg.File.ValidateHeader () [0x00023] in /usr/src/f-spot/lib/TagLib/TagLib/src/TagLib/Jpeg/File.cs:284 at TagLib.Jpeg.File.Read (ReadStyle propertiesStyle) [0x00017] in /usr/src/f-spot/lib/TagLib/TagLib/src/TagLib/Jpeg/File.cs:245 at TagLib.Jpeg.File..ctor (IFileAbstraction abstraction, ReadStyle propertiesStyle) [0x00007] in /usr/src/f-spot/lib/TagLib/TagLib/src/TagLib/Jpeg/File.cs:167 at (wrapper managed-to-native) System.Reflection.MonoCMethod:InternalInvoke (object,object[],System.Exception&) at System.Reflection.MonoCMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. (in `mscorlib') at System.Reflection.MonoCMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] at System.Reflection.MonoCMethod.Invoke (BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] at System.Activator.CreateInstance (System.Type type, BindingFlags bindingAttr, System.Reflection.Binder binder, System.Object[] args, System.Globalization.CultureInfo culture, System.Object[] activationAttributes) [0x00000] at System.Activator.CreateInstance (System.Type type, System.Object[] args, System.Object[] activationAttributes) [0x00000] at System.Activator.CreateInstance (System.Type type, System.Object[] args) [0x00000] at FSpot.Imaging.ImageFile.Create (Hyena.SafeUri uri) [0x0001e] in /usr/src/f-spot/src/Imaging/ImageFile.cs:128 Exception in Gtk# callback delegate Note: Applications can use GLib.ExceptionManager.UnhandledException to handle the exception. TagLib.CorruptFileException: Expected SOI marker at the start of the file. at TagLib.Jpeg.File.ValidateHeader () [0x00023] in /usr/src/f-spot/lib/TagLib/TagLib/src/TagLib/Jpeg/File.cs:284 at TagLib.Jpeg.File.Read (ReadStyle propertiesStyle) [0x00017] in /usr/src/f-spot/lib/TagLib/TagLib/src/TagLib/Jpeg/File.cs:245 at TagLib.Jpeg.File..ctor (IFileAbstraction abstraction, ReadStyle propertiesStyle) [0x00007] in /usr/src/f-spot/lib/TagLib/TagLib/src/TagLib/Jpeg/File.cs:167 at (wrapper managed-to-native) System.Reflection.MonoCMethod:InternalInvoke (object,object[],System.Exception&) at System.Reflection.MonoCMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] at GLib.ExceptionManager.RaiseUnhandledException(System.Exception e, Boolean is_terminal) at Gtk.Widget.exposeevent_cb(IntPtr widget, IntPtr evnt) at Gdk.Window.gdk_window_process_updates(IntPtr , Boolean ) at Gdk.Window.ProcessUpdates(Boolean update_children) at FSpot.Widgets.IconView.SetSize(Int32 x, Int32 y, Int32 width, Int32 height) in /usr/src/f-spot/src/Widgets/IconView.cs:line 816 at FSpot.Widgets.IconView.UpdateLayout(Rectangle allocation) in /usr/src/f-spot/src/Widgets/IconView.cs:line 776 at FSpot.Widgets.IconView.OnSizeAllocated(Rectangle allocation) in /usr/src/f-spot/src/Widgets/IconView.cs:line 1483 at Gtk.Widget.sizeallocated_cb(IntPtr widget, IntPtr allocation) at Gtk.Application.gtk_main() at Gtk.Application.Run() at FSpot.Driver.Startup() in /usr/src/f-spot/src/main.cs:line 328 at Hyena.Gui.CleanRoomStartup.Startup(Hyena.Gui.StartupInvocationHandler startup) in /usr/src/f-spot/lib/Hyena/Hyena.Gui/Hyena.Gui/CleanRoomStartup.cs:line 54 at FSpot.Driver.Main(System.String[] args) in /usr/src/f-spot/src/main.cs:line 272
Empty files are now ignored, we can't handle them anyway.