Bug #798
Exception: GLib.Object subclass Smuxi.Frontend.Gnome.MessageTextView must provide a protected or public IntPtr ctor to support wrapping of native object handles.
Status: | New | Start: | 01/15/2013 | |
Priority: | Normal | Due date: | ||
Assigned to: | Mirco Bauer | % Done: | 0% |
|
Category: | Frontend GNOME | |||
Target version: | - | |||
Complexity: | Found in Version: | |||
Votes: | 0 |
Description
Vendor: Debian 0.8.10.1-1~precise+1
Frontend: GNOME 0.8.10.1
Engine: 0.8.10.1
Upon starting smuxi I got the following error, but I was unable to reproduce the error:
Exception Type:GLib.MissingIntPtrCtorExceptionException Message:GLib.Object subclass Smuxi.Frontend.Gnome.MessageTextView must provide a protected or public IntPtr ctor to support wrapping of native object handles.Exception StackTrace: at GLib.ObjectManager.CreateObject (IntPtr raw) [0x00000] in <filename unknown>:0 at GLib.Object.GetObject (IntPtr o, Boolean owned_ref) [0x00000] in <filename unknown>:0 at GLib.Value.op_Explicit (Value val) [0x00000] in <filename unknown>:0 at GLib.Value.get_Val () [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
History
Updated by Mirco Bauer 4053 days ago
I just got this exception when I re-compiled Smuxi and tried to close it:
Exception Type: GLib.MissingIntPtrCtorException Exception Message: GLib.Object subclass Smuxi.Frontend.Gnome.SessionChatView must provide a protected or public IntPtr ctor to support wrapping of native object handles. Exception StackTrace: at GLib.ObjectManager.CreateObject (IntPtr raw) [0x00000] in <filename unknown>:0 at GLib.Object.GetObject (IntPtr o, Boolean owned_ref) [0x00000] in <filename unknown>:0 at GLib.Value.op_Explicit (Value val) [0x00000] in <filename unknown>:0 at GLib.Value.get_Val () [0x00000] in <filename unknown>:0 at Gtk.TreeStore.GetValue (TreeIter iter, Int32 column) [0x00000] in <filename unknown>:0 at Smuxi.Frontend.Gnome.ChatTreeView+<FindChatIter>c__AnonStorey33.<>m__86 (TreeModel model, Gtk.TreePath path, TreeIter iter) [0x00001] in /home/meebey/Projects/smuxi/src/Frontend-GNOME/Views/ChatTreeView.cs:193 at GtkSharp.TreeModelForeachFuncWrapper.NativeCallback (IntPtr model, IntPtr path, IntPtr iter, IntPtr data) [0x00000] in <filename unknown>:0
So I think this issue is actually a general type loading issue when the binary changes while it is running.
Updated by Mirco Bauer 4053 days ago
Actually it looks like the problem is not the re-compile but the fact that there are GTK callbacks happening while the application is shutting down and thus GTK# no longer knows the types and thus throws an exception.