krekman's picture

opentk crash

Hi, want to thank you for a great tool kit, and I also have an issue im trying to reslove. Perhaps anyone can help here?

Im trying to use open tk on Linux.
Im using

  1. Mesa 7.8.2
  2. Linux 2.6.33.3
  3. IEMGD 1.6 (Intel graphics driver which support Opengl 2.1)
  4. Opentk 1.0

I get the exception below when I try the examples.
Is it possible to fix it?

Stacktrace:
 
  at (wrapper managed-to-native) OpenTK.Platform.X11.Glx.MakeCurrent (intptr,intptr,intptr) <0x00004>
  at (wrapper managed-to-native) OpenTK.Platform.X11.Glx.MakeCurrent (intptr,intptr,intptr) <0x00004>
  at OpenTK.Platform.X11.Glx.MakeCurrent (intptr,intptr,OpenTK.ContextHandle) <0x00017>
  at OpenTK.Platform.X11.X11GLContext.MakeCurrent (OpenTK.Platform.IWindowInfo) <0x001d7>
  at OpenTK.Graphics.GraphicsContext.MakeCurrent (OpenTK.Platform.IWindowInfo) <0x0001f>
  at OpenTK.GameWindow..ctor (int,int,OpenTK.Graphics.GraphicsMode,string,OpenTK.GameWindowFlags,OpenTK.DisplayDevice,int,int,OpenTK.Graphics.GraphicsContextFlags,OpenTK.Graphics.IGraphicsContext) <0x002ef>
  at OpenTK.GameWindow..ctor (int,int,OpenTK.Graphics.GraphicsMode,string,OpenTK.GameWindowFlags,OpenTK.DisplayDevice,int,int,OpenTK.Graphics.GraphicsContextFlags) <0x0002d>
  at OpenTK.GameWindow..ctor (int,int,OpenTK.Graphics.GraphicsMode,string,OpenTK.GameWindowFlags,OpenTK.DisplayDevice) <0x00028>
  at OpenTK.GameWindow..ctor (int,int) <0x00031>
  at Examples.Tutorial.Textures..ctor () <0x0004a>
  at Examples.Tutorial.Textures.Main () <0x00028>
  at (wrapper runtime-invoke) object.runtime_invoke_void (object,intptr,intptr,intptr) <0x0003a>
 
Native stacktrace:
 
	mono [0x80d35b9]
	mono [0x810d0cb]
	[0xb78d1410]
	/usr/lib/libEMGDegl.so(KEGLGetDrawableParameters+0x74) [0xb5ffd114]
	/usr/lib/libEMGDOGL.so [0xb5ab40cf]
	/usr/lib/dri/emgd_dri.so(PVRDRIMakeCurrentGC+0x3f) [0xb5d2df3f]
	/usr/lib/dri/emgd_dri.so [0xb5d2dbf6]
	/usr/lib/dri/emgd_dri.so [0xb5d28a77]
	/usr/lib/libGL.so.1 [0xb5f982ec]
	/usr/lib/libGL.so.1(glXMakeContextCurrent+0x13f) [0xb5f7362f]
	/usr/lib/libGL.so.1(glXMakeCurrent+0x23) [0xb5f739b3]
	[0xb535d54b]
	[0xb535e008]
	[0xb535ddc0]
	[0xb535dbe0]
	[0xb7063f88]
	[0xb7063c6e]
	[0xb7063c29]
	[0xb705d672]
	[0xb705b3eb]
	[0xb705b1d9]
	[0xb705b2db]
	mono [0x8062c98]
	mono(mono_runtime_invoke+0x40) [0x8115e40]
	mono(mono_runtime_exec_main+0xde) [0x811978e]
	mono(mono_runtime_run_main+0x112) [0x811b6d2]
	mono(mono_main+0x15d1) [0x80b1851]
	mono [0x8059f05]
	/lib/libc.so.6(__libc_start_main+0xe7) [0xb7548a47]
	mono [0x8059e41]
 
Debug info from gdb:
 
 
=================================================================
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.
=================================================================
 
**
ERROR:shared.c:659:shm_semaphores_remove: assertion failed: (proc_count > 0)