[Gtk-sharp-list] Gtk# in Monodevelop with Mono 2.6.7

Felix Natter felix.natter at smail.inf.fh-brs.de
Mon Mar 21 15:32:30 EDT 2011


hello,

I am running Debian Lenny with an ancient Mono, that's why I installed
the debian squeeze Packages (backports.org) for mono 2.6.7
(mono-complete package) and gtk-sharp2 2.12.9 (package gtk-sharp2).

However, when using Monodevelop (2.2.1) with the GUI designer
to create a simple Gtk Window and then run it, I get:

-----------------------------
(/home/felix/doks/CSMath/CSAnalysis/bin/Debug/CSAnalysis.exe:4479): GLib-GObject-WARNING **: invalid (NULL) pointer instance

(/home/felix/doks/CSMath/CSAnalysis/bin/Debug/CSAnalysis.exe:4479): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed

(/home/felix/doks/CSMath/CSAnalysis/bin/Debug/CSAnalysis.exe:4479): GLib-GObject-WARNING **: invalid (NULL) pointer instance

(/home/felix/doks/CSMath/CSAnalysis/bin/Debug/CSAnalysis.exe:4479): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed

(/home/felix/doks/CSMath/CSAnalysis/bin/Debug/CSAnalysis.exe:4479): GLib-CRITICAL **: g_hash_table_lookup: assertion `hash_table != NULL' failed

(/home/felix/doks/CSMath/CSAnalysis/bin/Debug/CSAnalysis.exe:4479): GLib-CRITICAL **: g_hash_table_lookup: assertion `hash_table != NULL' failed

(/home/felix/doks/CSMath/CSAnalysis/bin/Debug/CSAnalysis.exe:4479): GLib-CRITICAL **: g_hash_table_lookup: assertion `hash_table != NULL' failed

(/home/felix/doks/CSMath/CSAnalysis/bin/Debug/CSAnalysis.exe:4479): GLib-CRITICAL **: g_hash_table_insert_internal: assertion `hash_table != NULL' failed

(/home/felix/doks/CSMath/CSAnalysis/bin/Debug/CSAnalysis.exe:4479): GLib-CRITICAL **: g_hash_table_lookup: assertion `hash_table != NULL' failed
Stacktrace:

  at (wrapper managed-to-native) Gtk.UIManager.gtk_ui_manager_get_widget (intptr,intptr) <0x00004>
  at (wrapper managed-to-native) Gtk.UIManager.gtk_ui_manager_get_widget (intptr,intptr) <0x00004>
  at Gtk.UIManager.GetWidget (string) <IL 0x0000e, 0x0002d>
  at CSAnalysis.MainWindow.Build () [0x000d2] in /home/felix/doks/CSMath/CSAnalysis/gtk-gui/CSAnalysis.MainWindow.cs:51
  at CSAnalysis.MainWindow..ctor () [0x00007] in /home/felix/doks/CSMath/CSAnalysis/MainWindow.cs:20
  at CSAnalysis.MainClass.Main (string[]) [0x000f4] in /home/felix/doks/CSMath/CSAnalysis/Main.cs:51
  at (wrapper runtime-invoke) <Module>.runtime_invoke_void_object (object,intptr,intptr,intptr) <IL 0x0001d, 0x00043>

Native stacktrace:

	/usr/bin/mono [0x80d7dcb]
	/usr/bin/mono [0x8111e4b]
	[0xb7f1a40c]
	/usr/lib/libgtk-x11-2.0.so.0 [0xb536a172]
	/usr/lib/libgtk-x11-2.0.so.0(gtk_accel_group_connect_by_path+0xed) [0xb536aaad]
	/usr/lib/libgtk-x11-2.0.so.0(gtk_action_connect_accelerator+0xbe) [0xb536ea4e]
	/usr/lib/libgtk-x11-2.0.so.0 [0xb53706eb]
	/usr/lib/libgtk-x11-2.0.so.0(gtk_action_create_menu_item+0x8e) [0xb536f55e]
	/usr/lib/libgtk-x11-2.0.so.0 [0xb5586248]
	/usr/lib/libgtk-x11-2.0.so.0 [0xb55860ab]
	/usr/lib/libgtk-x11-2.0.so.0 [0xb55860ab]
	/usr/lib/libgtk-x11-2.0.so.0(gtk_ui_manager_ensure_update+0x40) [0xb5587020]
	/usr/lib/libgtk-x11-2.0.so.0 [0xb5587772]
	/usr/lib/libgtk-x11-2.0.so.0(gtk_ui_manager_get_widget+0x90) [0xb5588d90]
	[0xb4d47e28]
	[0xb4d47da6]
	[0xb56afea5]
	[0xb56c8a8a]
	[0xb607b3ee]
	[0xb607b4a4]
	/usr/bin/mono [0x8064958]
	/usr/bin/mono(mono_runtime_invoke+0x40) [0x81304c0]
	/usr/bin/mono(mono_runtime_exec_main+0xe5) [0x8133c75]
	/usr/bin/mono(mono_runtime_run_main+0x16b) [0x8133feb]
	/usr/bin/mono(mono_main+0x195d) [0x80b641d]
	/usr/bin/mono [0x805b8f1]
	/lib/i686/cmov/libc.so.6(__libc_start_main+0xe5) [0xb7cb3455]
	/usr/bin/mono(g_ascii_strcasecmp+0x91) [0x805b821]

Debug info from gdb:

(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread 0xb7c726d0 (LWP 4479)]
[New Thread 0xb5c6fb90 (LWP 4486)]
[New Thread 0xb5ca0b90 (LWP 4485)]
[New Thread 0xb6b35b90 (LWP 4484)]
[New Thread 0xb7336b90 (LWP 4483)]
[New Thread 0xb7b37b90 (LWP 4482)]
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
0xb7f1a424 in __kernel_vsyscall ()
  6 Thread 0xb7b37b90 (LWP 4482)  0xb7f1a424 in __kernel_vsyscall ()
  5 Thread 0xb7336b90 (LWP 4483)  0xb7f1a424 in __kernel_vsyscall ()
  4 Thread 0xb6b35b90 (LWP 4484)  0xb7f1a424 in __kernel_vsyscall ()
  3 Thread 0xb5ca0b90 (LWP 4485)  0xb7f1a424 in __kernel_vsyscall ()
  2 Thread 0xb5c6fb90 (LWP 4486)  0xb7f1a424 in __kernel_vsyscall ()
  1 Thread 0xb7c726d0 (LWP 4479)  0xb7f1a424 in __kernel_vsyscall ()

Thread 6 (Thread 0xb7b37b90 (LWP 4482)):
#0  0xb7f1a424 in __kernel_vsyscall ()
#1  0xb7e28025 in pthread_cond_wait@@GLIBC_2.3.2 ()
   from /lib/i686/cmov/libpthread.so.0
#2  0x0820f3ba in ?? ()
#3  0x082d1c20 in ?? ()
#4  0x082d1c50 in ?? ()
#5  0xb7b37398 in ?? ()
#6  0x0820eccd in ?? ()
#7  0xb7b2f390 in ?? ()
#8  0x00000001 in ?? ()
#9  0x00000000 in ?? ()

Thread 5 (Thread 0xb7336b90 (LWP 4483)):
#0  0xb7f1a424 in __kernel_vsyscall ()
#1  0xb7e28025 in pthread_cond_wait@@GLIBC_2.3.2 ()
   from /lib/i686/cmov/libpthread.so.0
#2  0x0820f3ba in ?? ()
#3  0x082d1c20 in ?? ()
#4  0x082d1c50 in ?? ()
#5  0xb7336398 in ?? ()
#6  0x0820eccd in ?? ()
#7  0xb732e390 in ?? ()
#8  0x00000002 in ?? ()
#9  0x00000000 in ?? ()

Thread 4 (Thread 0xb6b35b90 (LWP 4484)):
#0  0xb7f1a424 in __kernel_vsyscall ()
#1  0xb7e28025 in pthread_cond_wait@@GLIBC_2.3.2 ()
   from /lib/i686/cmov/libpthread.so.0
#2  0x0820f3ba in ?? ()
#3  0x082d1c20 in ?? ()
#4  0x082d1c50 in ?? ()
#5  0xb6b35398 in ?? ()
#6  0x0820eccd in ?? ()
#7  0xb6b2d390 in ?? ()
#8  0x00000003 in ?? ()
#9  0x00000000 in ?? ()

Thread 3 (Thread 0xb5ca0b90 (LWP 4485)):
#0  0xb7f1a424 in __kernel_vsyscall ()
#1  0xb7e2b8a6 in nanosleep () from /lib/i686/cmov/libpthread.so.0
#2  0x081f3d98 in ?? ()
#3  0xb5ca0394 in ?? ()
#4  0x00000000 in ?? ()

Thread 2 (Thread 0xb5c6fb90 (LWP 4486)):
#0  0xb7f1a424 in __kernel_vsyscall ()
#1  0xb7e2a3b5 in sem_wait@@GLIBC_2.1 () from /lib/i686/cmov/libpthread.so.0
#2  0x081fdc18 in mono_sem_wait ()
#3  0x0813ce28 in ?? ()
#4  0x082d090c in ?? ()
#5  0x00000000 in ?? ()

Thread 1 (Thread 0xb7c726d0 (LWP 4479)):
#0  0xb7f1a424 in __kernel_vsyscall ()
#1  0xb7e2b0ab in read () from /lib/i686/cmov/libpthread.so.0
#2  0x080d7f7b in ?? ()
#3  0x00000005 in ?? ()
#4  0xb7f053a4 in ?? ()
#5  0x00000400 in ?? ()
#6  0xb7df4580 in ?? () from /lib/i686/cmov/libc.so.6
#7  0x00000000 in ?? ()
#0  0xb7f1a424 in __kernel_vsyscall ()

=================================================================
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.
=================================================================

Die Anwendung beendete mit Code: SIGIOT
-----------------------------

Could be the problem that I am using gtk-sharp2 from squeeze but gtk+
from lenny? (Lenny uses 2.12., Squeeze 2.20).

Thanks,
-- 
Felix Natter
    


More information about the Gtk-sharp-list mailing list