luca-piccioni / OpenGL.Net

Modern OpenGL bindings for C#.
MIT License
568 stars 108 forks source link

OpenGL.net and Linux ( Ubuntu 18.04 ) #116

Closed ghost closed 5 years ago

ghost commented 5 years ago

Hello @luca-piccioni ,

I have tried to run OpenGL.net and Gtk Sharp 3.22.8 ( GtkSharp's github already compiled )

But It still have problem with stacktrace errors.


mono 'TestOpenGL.exe
Stacktrace:

  at <unknown> <0xffffffff>
  at (wrapper managed-to-native) object.wrapper_native_0x7fe7899791d0 (intptr,uint,intptr) [0x0000c] in <2e51093b73cb4f889aeddfd313775637>:0
  at GLib.Object.ConstructorCallback (intptr,uint,intptr) [0x0002d] in <22222d7233cb48e5a65a3dbb1ba9e642>:0
  at (wrapper native-to-managed) GLib.Object.ConstructorCallback (intptr,uint,intptr) <0x00073>
  at <unknown> <0xffffffff>
  at (wrapper managed-to-native) GLib.Object.g_object_newv (intptr,int,GLib.Object/GParameter[]) [0x00015] in <22222d7233cb48e5a65a3dbb1ba9e642>:0
  at GLib.Object.CreateNativeObject (string[],GLib.Value[]) [0x000b3] in <22222d7233cb48e5a65a3dbb1ba9e642>:0
  at Gtk.Widget.CreateNativeObject (string[],GLib.Value[]) [0x00001] in <18428190894e4facba4baff57323b2cf>:0
  at Gtk.Window..ctor (Gtk.WindowType) [0x0005c] in <18428190894e4facba4baff57323b2cf>:0
  at Gtk.Window..ctor (string) [0x00000] in <18428190894e4facba4baff57323b2cf>:0
  at TestOpenGL.ExampleWindow..ctor () [0x00000] in <cbcc820290a643529791d3ed4f20870f>:0
  at TestOpenGL.Program.Main () [0x00013] in <cbcc820290a643529791d3ed4f20870f>:0
  at (wrapper runtime-invoke) object.runtime_invoke_void (object,intptr,intptr,intptr) [0x0001e] in <2e51093b73cb4f889aeddfd313775637>:0
/proc/self/maps:
4017a000-401aa000 rwxp 00000000 00:00 0 
407e3000-407f3000 rwxp 00000000 00:00 0 
557ce36df000-557ce3b1c000 r-xp 00000000 08:02 42086672                   /usr/bin/mono-sgen
557ce3d1c000-557ce3d23000 r--p 0043d000 08:02 42086672                   /usr/bin/mono-sgen
557ce3d23000-557ce3d27000 rw-p 00444000 08:02 42086672                   /usr/bin/mono-sgen
557ce3d27000-557ce3d3e000 rw-p 00000000 00:00 0 
557ce591d000-557ce5c0b000 rw-p 00000000 00:00 0                          [heap]
7fe783b00000-7fe783c00000 rw-p 00000000 00:00 0 
7fe783c64000-7fe783ed6000 r--p 00000000 08:02 43262407                   /usr/lib/mono/gac/System/4.0.0.0__b77a5c561934e089/System.dll
7fe783ed6000-7fe783eea000 r-xp 00000000 08:02 38539954                   /lib/x86_64-linux-gnu/libgpg-error.so.0.22.0
7fe783eea000-7fe7840e9000 ---p 00014000 08:02 38539954                   /lib/x86_64-linux-gnu/libgpg-error.so.0.22.0
7fe7840e9000-7fe7840ea000 r--p 00013000 08:02 38539954                   /lib/x86_64-linux-gnu/libgpg-error.so.0.22.0
7fe7840ea000-7fe7840eb000 rw-p 00014000 08:02 38539954                   /lib/x86_64-linux-gnu/libgpg-error.so.0.22.0
7fe7840eb000-7fe7840f1000 r-xp 00000000 08:02 38540081                   /lib/x86_64-linux-gnu/libuuid.so.1.3.0
7fe7840f1000-7fe7842f0000 ---p 00006000 08:02 38540081                   /lib/x86_64-linux-gnu/libuuid.so.1.3.0
7fe7842f0000-7fe7842f1000 r--p 00005000 08:02 38540081                   /lib/x86_64-linux-gnu/libuuid.so.1.3.0
7fe7842f1000-7fe7842f2000 rw-p 00006000 08:02 38540081                   /lib/x86_64-linux-gnu/libuuid.so.1.3.0
7fe7842f2000-7fe784406000 r-xp 00000000 08:02 38539952                   /lib/x86_64-linux-gnu/libgcrypt.so.20.2.1
7fe784406000-7fe784605000 ---p 00114000 08:02 38539952                   /lib/x86_64-linux-gnu/libgcrypt.so.20.2.1
7fe784605000-7fe784607000 r--p 00113000 08:02 38539952                   /lib/x86_64-linux-gnu/libgcrypt.so.20.2.1
7fe784607000-7fe78460c000 rw-p 00115000 08:02 38539952                   /lib/x86_64-linux-gnu/libgcrypt.so.20.2.1
7fe78460c000-7fe78460d000 rw-p 00000000 00:00 0 
7fe78460d000-7fe784628000 r-xp 00000000 08:02 42082551                   /usr/lib/x86_64-linux-gnu/liblz4.so.1.7.1
7fe784628000-7fe784827000 ---p 0001b000 08:02 42082551                   /usr/lib/x86_64-linux-gnu/liblz4.so.1.7.1
7fe784827000-7fe784828000 r--p 0001a000 08:02 42082551                   /usr/lib/x86_64-linux-gnu/liblz4.so.1.7.1
mono_coop_cond_broadcast Cannot transition thread 0x7fe795b48780 from STATE_BLOCKING with DO_BLOCKING
Aborted (core dumped)

So sad It can't work for Ubuntu 18.04 but OpenTK is OK for me now.

Because I really want know how does it work? OpenTK has problem with Margin and OpenGL.net has not problem since I tested with Windows 10 = Works fine. OpenGL'S GLWidget I have replaced with DrawingArea into GLArea and library via DLLImport dll into libgdk-3.so or libgdk-3.so.0 for Ubuntu 18.04 and it crashes.

How do I fix for Ubuntu 18.04? I want check any C# libraries OpenTK = 75 % - problem with Allocations and Margins Unity = ???% ( Embed in Gtk3 Sharp so close to Monogame embeds in Gtk Sharp 3 ) I didn't try yet. WaveEngine = 100 % - only pure coded C# without WaveEngine's VisualEditor OpenGL.net = 0 % because it crashes.... Xenko Studio = No work for Ubuntu :( Because it works only Windows UrhoSharp Denied to Linux :( and more...

luca-piccioni commented 5 years ago

Well, I don't see how this is related to this project. The stack trace indicates that the problem is in GDK. And I don't see any OpenGL.Net library loaded in executable.