ITel's picture

Problem with context & GLWidget in Ubuntu 9.04

Hello!
In Ubuntu 8.10, I use GLControl to make a context for GLWidget, but now, in Ubuntu 9.04 it doesn't work!

example:

...
public MainWindow (): base (Gtk.WindowType.Toplevel)
{
	Build ();
	GLControl gc = new GLControl();
	GL.LoadAll();
	Glu.LoadAll();
	gc.Dispose();
}
...

And now application crashed with:

Stacktrace:
 
  at (wrapper managed-to-native) Gtk.Application.gtk_main () <0x00004>
  at (wrapper managed-to-native) Gtk.Application.gtk_main () <0xffffffff>
  at Gtk.Application.Run () <0x00007>
  at Test.MainClass.Main (string[]) [0x00011] in .../Test/Test/Main.cs:16
  at (wrapper runtime-invoke) Test.MainClass.runtime_invoke_void_string[] (object,intptr,intptr,intptr) <0xffffffff>
 
Native stacktrace:
 
	/usr/bin/mono [0x806d944]
	/usr/bin/mono [0x808616b]
	[0xb7f8e410]
	/usr/lib/libX11.so.6 [0xb67e121f]
	/usr/lib/libX11.so.6(XrmQGetResource+0x3e) [0xb67f7dce]
	/usr/lib/libX11.so.6(XGetDefault+0xcb) [0xb67d745b]
	/usr/lib/libcairo.so.2 [0xb675d978]
	/usr/lib/libcairo.so.2 [0xb675dca4]
	/usr/lib/libcairo.so.2 [0xb675e5bc]
	/usr/lib/libcairo.so.2(cairo_xlib_surface_create+0x10a) [0xb675ed6a]
	/usr/lib/libgdk-x11-2.0.so.0 [0xb693eeb1]
	/usr/lib/libgdk-x11-2.0.so.0 [0xb6912923]
	/usr/lib/libgdk-x11-2.0.so.0 [0xb691eb60]
	/usr/lib/libgdk-x11-2.0.so.0 [0xb6912923]
	/usr/lib/libgdk-x11-2.0.so.0(gdk_window_begin_paint_region+0x11e) [0xb692b9ee]
	/usr/lib/libgtk-x11-2.0.so.0(gtk_main_do_event+0x51e) [0xb6ab755e]
	/usr/lib/libgdk-x11-2.0.so.0 [0xb692be95]
	/usr/lib/libgdk-x11-2.0.so.0(gdk_window_process_all_updates+0xff) [0xb692c4af]
	/usr/lib/libgdk-x11-2.0.so.0 [0xb692c4db]
	/usr/lib/libgdk-x11-2.0.so.0 [0xb690f8fb]
	/usr/lib/libglib-2.0.so.0 [0xb7ef8c81]
	/usr/lib/libglib-2.0.so.0(g_main_context_dispatch+0x1e8) [0xb7efab88]
	/usr/lib/libglib-2.0.so.0 [0xb7efe0eb]
	/usr/lib/libglib-2.0.so.0(g_main_loop_run+0x1ca) [0xb7efe5ba]
	/usr/lib/libgtk-x11-2.0.so.0(gtk_main+0xb9) [0xb6ab77d9]
	[0xb48d6ec6]
	[0xb48d6e90]
	[0xb7a05259]
	[0xb7a051b3]
	/usr/bin/mono(mono_runtime_exec_main+0xe5) [0x80bad75]
	/usr/bin/mono(mono_runtime_run_main+0x16b) [0x80bb4eb]
	/usr/bin/mono(mono_main+0x1727) [0x805c917]
	/usr/bin/mono [0x805ac62]
	/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe5) [0xb7d27775]
	/usr/bin/mono [0x805aba1]

Have you any ideas? Or may be there are one more way (more correctly, this way was the simplest for me) to create this context?
P.s: sorry for my English..


Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
ITel's picture

thanks a lot!!!

the Fiddler's picture

Did you get it to work?