After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 624933 - Crash while trying to import a 0 Byte JPG
Crash while trying to import a 0 Byte JPG
Status: RESOLVED FIXED
Product: f-spot
Classification: Other
Component: Metadata
GIT
Other Linux
: Normal critical
: 0.7.2
Assigned To: F-spot maintainers
F-spot maintainers
Depends on:
Blocks:
 
 
Reported: 2010-07-21 15:11 UTC by Paul Wellner Bou
Modified: 2010-07-22 13:21 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Paul Wellner Bou 2010-07-21 15:11:14 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]
Comment 1 Akhil Laddha 2010-07-22 04:04:38 UTC
Please run f-spot --debug and paste output when it crashes, tia.
Comment 2 Paul Wellner Bou 2010-07-22 08:14:31 UTC
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
Comment 3 Ruben Vermeersch 2010-07-22 13:21:35 UTC
Empty files are now ignored, we can't handle them anyway.