[ubuntu-mono] [Bug 156753] beagle-search crashes with "GLib.GException: Couldn't recognize the image file format"

alyandon alyandon at hotmail.com
Wed Oct 24 17:24:28 UTC 2007


Public bug reported:

Binary package hint: beagle

Sorry if this is a bit vague but I will attempt to explain the issue in
detail.

I use Gaim with logging turned on so beagle helpfully indexes my
conversation logs.  When I attempt a search with words that are matched
in a conversation log the beagle-search tool would return matches under
the "Convesations" group.  However, when I clicked on the conversation
log result the beagle-search tool would immediately die without
displaying any error message.

After running beagle-search from a terminal window I captured the following output:
Unhandled Exception: GLib.GException: Couldn't recognize the image file format for file '/home/scain/.gaim/icons/418d9be7'
  at Gdk.Pixbuf..ctor (System.String filename) [0x00000] 
  at Search.Tiles.IMLog.LoadBuddyIcon () [0x00000] 
  at Search.Tiles.IMLog.GetDetails () [0x00000] 
  at Search.Tiles.Tile.get_Details () [0x00000] 
  at Search.MainWindow.ShowInformation (Search.Tiles.Tile tile) [0x00000] 
  at (wrapper delegate-invoke) System.MulticastDelegate:invoke_void_Tile (Search.Tiles.Tile)
  at Search.GroupView.OnTileSelected (System.Object tile, System.EventArgs args) [0x00000] 
  at (wrapper delegate-invoke) System.MulticastDelegate:invoke_void_object_EventArgs (object,System.EventArgs)
  at Search.Tiles.Tile.OnFocusInEvent (Gdk.EventFocus f) [0x00000] 
  at Gtk.Widget.focusinevent_cb (IntPtr widget, IntPtr evnt) [0x00000] 
  at (wrapper native-to-managed) Gtk.Widget:focusinevent_cb (intptr,intptr)
  at <0x00000> <unknown method>
  at (wrapper managed-to-native) Gtk.Widget:gtk_widget_grab_focus (intptr)
  at Gtk.Widget.GrabFocus () [0x00000] 
  at Search.Tiles.Tile.OnButtonPressEvent (Gdk.EventButton b) [0x00000] 
  at Gtk.Widget.buttonpressevent_cb (IntPtr widget, IntPtr evnt) [0x00000] 
  at (wrapper native-to-managed) Gtk.Widget:buttonpressevent_cb (intptr,intptr)
  at <0x00000> <unknown method>
  at (wrapper managed-to-native) Gtk.Application:gtk_main ()
  at Gtk.Application.Run () [0x00000] 
  at Gnome.Program.Run () [0x00000] 
  at Search.MainWindow.Main (System.String[] args) [0x00000] 

Examining the contents of that file revealed a http 404 error page
instead of an valid graphic file format.

So I suspect the following chain of events:

1) Gaim had attempted to fetch the icon at some point in time via http and blindly saved the 404 response to the file.
2) My related conversation was subsequently indexed by beagled and it associated the conversation with that icon.
3) beagle-search attempted to display the icon when I selected the search result and died because of the unhandled exception

Obviously, Gaim shouldn't be writing garbage to the icon files.
However, I still feel this is a bug with beagle-search because it should
be doing proper exception handling and recover gracefully from the Glib
exception.

** Affects: beagle (Ubuntu)
     Importance: Undecided
         Status: New

-- 
beagle-search crashes with "GLib.GException: Couldn't recognize the image file format"
https://bugs.launchpad.net/bugs/156753
You received this bug notification because you are a member of MOTU Mono
Team, which is a bug contact for beagle in ubuntu.




More information about the Ubuntu-mono mailing list