[Mono-dev] PanelApplet issue

Tobias Schlitt tobias at schlitt.info
Thu Jul 27 15:20:48 EDT 2006


Hi all!

Since the Gtk list seems pretty orphan to me, I take the liberty to post
this issue here. Please be patient with me!

I'm quite new to Mono, so please forgive me stupid errors. Thanks!

My Problem relates to the PanelApplet class which I am using to write
some Gnome panel applets. So far it works quite well, but on certain
actions the applet crashes with a stack trace and I don't really have an
approach to search for the reason.

One action is, when I try opening an about box. See the code snippet below:

<snip>
public class tsTempApplet : PanelApplet
{

//...

    AboutDialog ab;

// ...

    static void Main (string[] argv) {
        Gnome.Program p = new Gnome.Program("TempApplet", "0.1",
Gnome.Modules.UI, argv);
        PanelAppletFactory.Register(typeof (tsTempApplet));
    }

// ...

    private void ShowAbout() {
        string[] authors = {"Tobias Schlitt"};
        string[] documenters = {"Tobias Schlitt"};

        ab = new AboutDialog();
        ab.Authors = authors;
        ab.Documenters = documenters;
        ab.Copyright = "2006 Tobias Schlitt";
        ab.License = "GPL 2.0";
        ab.Name = "IBM TempApplet";
        ab.Version = "0.1";
        ab.Website = "http://schlitt.info";
        ab.Run();
    }

// ...

}
</snip>

The ShowAbout() method is bound as a delegate to a menu item (as it is
common in applets). Each time I click the menu item the applet dies with
a trace like this:

<snip>
dotxp at tango ~/dev/C#/tempapplet $ ./tempapplet.exe

=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================

Stacktrace:

  at (wrapper managed-to-native)
Gnome.PanelAppletFactory.panel_applet_factory_main
(intptr,intptr,GnomeSharp.PanelAppletFactoryCallbackNative,intptr) <0x00004>
  at (wrapper managed-to-native)
Gnome.PanelAppletFactory.panel_applet_factory_main
(intptr,intptr,GnomeSharp.PanelAppletFactoryCallbackNative,intptr)
<0xffffffff>
  at Gnome.PanelAppletFactory.Register (System.Type) <0x00159>
  at tsTempApplet.Main (string[]) <0x00060>
  at (wrapper runtime-invoke) System.Object.runtime_invoke_void_string[]
(object,intptr,intptr,intptr) <0xffffffff>

Native stacktrace:

        /usr/bin/mono(mono_handle_native_sigsegv+0xec) [0x818884c]
        /usr/bin/mono [0x8141008]
        [0xffffe440]
        /usr/lib/libgobject-2.0.so.0(g_closure_invoke+0x13b) [0xb68abfeb]
        /usr/lib/libbonobo-2.so.0(bonobo_closure_invoke_va_list+0x253)
[0xb6943153]
        /usr/lib/libbonobo-2.so.0(bonobo_closure_invoke+0x1ac) [0xb694338c]
        /usr/lib/libbonoboui-2.so.0 [0xb70a267a]

/usr/lib/libbonobo-2.so.0(_ORBIT_skel_small_Bonobo_UIComponent_execVerb+0x21)
[0xb6945531]
        /usr/lib/libORBit-2.so.0(ORBit_c_stub_invoke+0x120) [0xb6868150]
        /usr/lib/libbonobo-2.so.0(Bonobo_UIComponent_execVerb+0x72)
[0xb694cdb2]
        /usr/lib/libbonoboui-2.so.0 [0xb70a9d54]

/usr/lib/libgobject-2.0.so.0(g_cclosure_marshal_VOID__POINTER+0x5b)
[0xb68b8c2b]
        /usr/lib/libgobject-2.0.so.0 [0xb68aa577]
        /usr/lib/libgobject-2.0.so.0(g_closure_invoke+0x13b) [0xb68abfeb]
        /usr/lib/libgobject-2.0.so.0 [0xb68bcdd4]
        /usr/lib/libgobject-2.0.so.0(g_signal_emit_valist+0x887)
[0xb68bdc77]
        /usr/lib/libgobject-2.0.so.0(g_signal_emit+0x35) [0xb68bde35]

/usr/lib/libbonoboui-2.so.0(bonobo_ui_engine_emit_verb_on_w+0x57)
[0xb70a5497]
        /usr/lib/libbonoboui-2.so.0 [0xb70af0e5]
        /usr/lib/libgobject-2.0.so.0(g_cclosure_marshal_VOID__VOID+0x4b)
[0xb68b966b]
        /usr/lib/libgobject-2.0.so.0(g_closure_invoke+0x13b) [0xb68abfeb]
        /usr/lib/libgobject-2.0.so.0 [0xb68bc7a3]
        /usr/lib/libgobject-2.0.so.0(g_signal_emit_valist+0x887)
[0xb68bdc77]
        /usr/lib/libgobject-2.0.so.0(g_signal_emit+0x35) [0xb68bde35]
        /usr/lib/libgtk-x11-2.0.so.0(gtk_widget_activate+0x92) [0xb6d9f922]
        /usr/lib/libgtk-x11-2.0.so.0(gtk_menu_shell_activate_item+0x122)
[0xb6ca1532]
        /usr/lib/libgtk-x11-2.0.so.0 [0xb6ca2f41]
        /usr/lib/libgtk-x11-2.0.so.0 [0xb6c93a2f]
        /usr/lib/libgtk-x11-2.0.so.0 [0xb6c935f0]
        /usr/lib/libgobject-2.0.so.0 [0xb68aa577]
        /usr/lib/libgobject-2.0.so.0(g_closure_invoke+0x13b) [0xb68abfeb]
        /usr/lib/libgobject-2.0.so.0 [0xb68bcdd4]
        /usr/lib/libgobject-2.0.so.0(g_signal_emit_valist+0x668)
[0xb68bda58]
        /usr/lib/libgobject-2.0.so.0(g_signal_emit+0x35) [0xb68bde35]
        /usr/lib/libgtk-x11-2.0.so.0 [0xb6d9bd24]
        /usr/lib/libgtk-x11-2.0.so.0(gtk_propagate_event+0x193) [0xb6c8ce83]
        /usr/lib/libgtk-x11-2.0.so.0(gtk_main_do_event+0x317) [0xb6c8e917]
        /usr/lib/libgdk-x11-2.0.so.0 [0xb6b12e1a]
        /usr/lib/libglib-2.0.so.0(g_main_context_dispatch+0x179)
[0xb7ee5db9]
        /usr/lib/libglib-2.0.so.0 [0xb7ee660f]
        /usr/lib/libglib-2.0.so.0(g_main_loop_run+0x1b7) [0xb7ee69b7]
        /usr/lib/libbonobo-2.so.0(bonobo_main+0x63) [0xb6930c53]

/usr/lib/libbonobo-2.so.0(bonobo_generic_factory_main_timeout+0xdb)
[0xb692ee8b]
        /usr/lib/libbonobo-2.so.0(bonobo_generic_factory_main+0x34)
[0xb692ef14]

/usr/lib/libpanel-applet-2.so.0(panel_applet_factory_main_closure+0xe3)
[0xb6311ac3]
        /usr/lib/libpanel-applet-2.so.0(panel_applet_factory_main+0x53)
[0xb6311ba3]
        [0xb7174673]
        [0xb716ca3a]
        [0xb7a38f01]
        [0xb7a387c3]
        /usr/bin/mono(mono_runtime_exec_main+0x61) [0x809e451]
        /usr/bin/mono(mono_runtime_run_main+0x290) [0x809e8e0]
        /usr/bin/mono(mono_main+0x118a) [0x805d47a]
        /usr/bin/mono [0x805bee2]
        /lib/libc.so.6(__libc_start_main+0xd8) [0xb7d5a878]
        /usr/bin/mono [0x805be31]
Aborted
</snip>

Can anybody give me a hint on this?

Thanks in advance!
Toby
-- 
Tobias Schlitt - Zend Certified Engineer         GPG Key: 0xC462BC14
a passion for php                            http://www.schlitt.info
Like to say "thank you"?    -  http://pear.php.net/wishlist.php/toby

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20060727/8a6d3607/attachment.bin 


More information about the Mono-devel-list mailing list