Crashes due to API change in Glade [edgy]

Bug #59325 reported by Scott Robinson
36
Affects Status Importance Assigned to Milestone
muine (Ubuntu)
Fix Released
Undecided
Brandon Hale

Bug Description

If I play a song, and then press open the seek dialog, the program immediately crashes. The unhandled exception as logged to a terminal follows:

Unhandled Exception: Glade.HandlerNotFoundException: The handler for the event DeleteEvent should take '(System.Object,Gtk.DeleteEventArgs)', but the signature of the provided handler ('OnWindowDeleteEvent') is '(System.Object,System.EventArgs)'

at SignalConnector.ConnectFunc (intptr,intptr,intptr,intptr,intptr,int,intptr) <0x0033f>
at (wrapper native-to-managed) SignalConnector.ConnectFunc (intptr,intptr,intptr,intptr,intptr,int,intptr) <0x0004b>
in (unmanaged) 0xb6216915
at (wrapper managed-to-native) SignalConnector.glade_xml_signal_autoconnect_full (intptr,Glade.XML/SignalConnector/RawXMLConnectFunc,intptr) <0x00004>
at SignalConnector.Autoconnect () <0x00059>
at Glade.XML.Autoconnect (object) <0x00042>
at Muine.SkipToWindow..ctor (Muine.PluginLib.IPlayer) <0x00046>
at Muine.PlaylistWindow.RunSkipToDialog () <0x0004e>
at Muine.Actions.OnSkipTo (object,System.EventArgs) <0x00018>
at (wrapper delegate-invoke) System.MulticastDelegate.invoke_void_object_EventArgs (object,System.EventArgs) <0x00041>
at GLib.Signal.voidObjectCallback (intptr,intptr) <0x00093>
at (wrapper native-to-managed) GLib.Signal.voidObjectCallback (intptr,intptr) <0x00035>
in (unmanaged) 0xb6ac1bd8
at (wrapper managed-to-native) Gtk.Application.gtk_main () <0x00004>
at Gtk.Application.Run () <0x00007>
at Muine.Global.Main (string[]) <0x0057b>

Revision history for this message
Scott Robinson (scott-ubuntu) wrote :

I haven't closely analyzed the remaining source code for similar issues, but this patch solves this particular crash.

Revision history for this message
Sebastian Dröge (slomo) wrote :

this is no API change in glade but a bugfix in mono. mono had a different behaviour than MS .net before and some applications relied on that.
The patch looks alright, Brandon?

Changed in muine:
assignee: nobody → brandon
status: Unconfirmed → Confirmed
Revision history for this message
Cyril (cyril-niorg) wrote :

I have a similar crash here when importing new folders:

Unhandled Exception: Glade.HandlerNotFoundException: The handler for the event Response should take '(System.Object,Gtk.ResponseArgs)', but the signature of the provided handler ('OnWindowResponse') is '(System.Object,System.EventArgs)'

at SignalConnector.ConnectFunc (intptr,intptr,intptr,intptr,intptr,int,intptr) <0x004b3>
at (wrapper native-to-managed) SignalConnector.ConnectFunc (intptr,intptr,intptr,intptr,intptr,int,intptr) <0x0008f>
in (unmanaged) 0x2aaab0852145
at (wrapper managed-to-native) SignalConnector.glade_xml_signal_autoconnect_full (intptr,Glade.XML/SignalConnector/RawXMLConnectFunc,intptr) <0x0000e>
at SignalConnector.Autoconnect () <0x0006f>
at Glade.XML.Autoconnect (object) <0x00058>
at Muine.ProgressWindow..ctor (Gtk.Window) <0x00061>
at AddFoldersThread..ctor (System.Collections.ArrayList) <0x00086>
at Muine.SongDatabase.AddWatchedFolders (System.Collections.ArrayList) <0x0026b>
at Muine.ImportDialog.OnResponse (object,Gtk.ResponseArgs) <0x001f3>
at (wrapper delegate-invoke) System.MulticastDelegate.invoke_void_object_ResponseArgs (object,Gtk.ResponseArgs) <0x00063>
at Gtk.Dialog.ResponseSignalCallback (intptr,int,intptr) <0x0015f>
at (wrapper native-to-managed) Gtk.Dialog.ResponseSignalCallback (intptr,int,intptr) <0x00057>
in (unmanaged) 0x2aaaac835599
at (wrapper managed-to-native) Gtk.Application.gtk_main () <0x0000b>
at Gtk.Application.Run () <0x00008>
at Muine.Global.Main (string[]) <0x0079c>

Revision history for this message
Scott Robinson (scott-ubuntu) wrote :

The attached patch should handle that issue.

Revision history for this message
Bastanteroma (bastanteroma) wrote :

Will these patches make there way into an update?
I don't know how or where to apply them.

Revision history for this message
Scott Robinson (scott-ubuntu) wrote :
Revision history for this message
Scott Robinson (scott-ubuntu) wrote :

I have a sponsorship request with the patches under bug 64981. Let your support be known. ;-)

Revision history for this message
Steve Kowalik (stevenk) wrote :

muine (0.8.5-1ubuntu4) edgy; urgency=low

  * Fix crashers resulting from bump in Mono version.
    + Closes Ubuntu #59325.

 -- David R.S. Robinson <email address hidden> Mon, 9 Oct 2006 21:02:32 -0700

Changed in muine:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.