Issue trying to run on Linux

classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

Issue trying to run on Linux

Ryan
I have been developing on my MAC, and everything works perfectly, great library btw!

Unfortunately, we are working on moving this to our production machines which have a brand new Quadro card in them with latest drivers installed.

The code throws the same exception on both GLProfile.get(GLProfile.GL2ES2) and on         GLProfile.glAvailabilityToString()


Relevant code is just:
        final GLProfile glp = GLProfile.get(GLProfile.GL2ES2);
        caps = new GLCapabilities(glp);
        caps.setDoubleBuffered(false);
        caps.setOnscreen(false);
        caps.setAlphaBits(0);
        caps.setRedBits(8);
        caps.setBlueBits(8);
        caps.setGreenBits(8);
        caps.setHardwareAccelerated(true);
        caps.setFBO(true);
        caps.setPBuffer(false);
        caps.setOnscreen(false);
        log.info("Using:{} caps:{}", caps.getGLProfile().getImplName(), caps.toString());


        // Make a pbuffer to get an offscreen context
        factory = GLDrawableFactory.getFactory(caps.getGLProfile());
        permanentbuffer = (GLOffscreenAutoDrawable.FBO) factory.createOffscreenAutoDrawable(null, caps, null, MAX_DIMENSION, MAX_DIMENSION);

Any ideas?

Exception:
Caught handled GLException: EGLGLXDrawableFactory - Could not initialize shared resources for EGLGraphicsDevice[type .egl, v0.0.0, connection nil, unitID 0, handle 0x0, owner true, ResourceToolkitLock[obj 0x5002a7ac, isOwner true, <150023c8, 19909198>[count 1, qsz 0, owner <main-SharedResourceRunner>]]] on thread main-SharedResourceRunner
    [0]: jogamp.opengl.egl.EGLDrawableFactory$SharedResourceImplementation.createSharedResource(EGLDrawableFactory.java:518)
    [1]: jogamp.opengl.SharedResourceRunner.run(SharedResourceRunner.java:353)
    [2]: java.lang.Thread.run(Thread.java:745)
Caused[0] by GLException: Failed to created/initialize EGL display incl. fallback default: native 0x0, error 0x3001/0x3003 on thread main-SharedResourceRunner
    [0]: jogamp.opengl.egl.EGLDisplayUtil.eglGetDisplayAndInitialize(EGLDisplayUtil.java:297)
    [1]: jogamp.opengl.egl.EGLDisplayUtil.access$300(EGLDisplayUtil.java:58)
    [2]: jogamp.opengl.egl.EGLDisplayUtil$1.eglGetAndInitDisplay(EGLDisplayUtil.java:320)
    [3]: com.jogamp.nativewindow.egl.EGLGraphicsDevice.open(EGLGraphicsDevice.java:125)
    [4]: jogamp.opengl.egl.EGLDrawableFactory$SharedResourceImplementation.createEGLSharedResourceImpl(EGLDrawableFactory.java:532)
    [5]: jogamp.opengl.egl.EGLDrawableFactory$SharedResourceImplementation.createSharedResource(EGLDrawableFactory.java:516)
    [6]: jogamp.opengl.SharedResourceRunner.run(SharedResourceRunner.java:353)
    [7]: java.lang.Thread.run(Thread.java:745)
Exception in thread "main" com.jogamp.nativewindow.NativeWindowException: X11Util.Display: Unable to create a display(nil) connection. Thread main
        at jogamp.nativewindow.x11.X11Util.openDisplay(X11Util.java:453)
        at jogamp.opengl.x11.glx.X11GLXDrawableFactory$SharedResourceImplementation.isDeviceSupported(X11GLXDrawableFactory.java:230)
        at jogamp.opengl.SharedResourceRunner.getOrCreateShared(SharedResourceRunner.java:224)
        at jogamp.opengl.x11.glx.X11GLXDrawableFactory.getOrCreateSharedResourceImpl(X11GLXDrawableFactory.java:371)
        at jogamp.opengl.x11.glx.X11GLXDrawableFactory.getOrCreateSharedResourceImpl(X11GLXDrawableFactory.java:81)
        at jogamp.opengl.GLDrawableFactoryImpl.getOrCreateSharedResource(GLDrawableFactoryImpl.java:187)
        at jogamp.opengl.GLDrawableFactoryImpl.createSharedResourceImpl(GLDrawableFactoryImpl.java:216)
        at com.jogamp.opengl.GLDrawableFactory.createSharedResource(GLDrawableFactory.java:381)
        at com.jogamp.opengl.GLProfile.initProfilesForDeviceCritical(GLProfile.java:1916)
        at com.jogamp.opengl.GLProfile.initProfilesForDevice(GLProfile.java:1875)
        at com.jogamp.opengl.GLProfile.initProfilesForDefaultDevices(GLProfile.java:1843)
        at com.jogamp.opengl.GLProfile.access$000(GLProfile.java:80)
        at com.jogamp.opengl.GLProfile$1.run(GLProfile.java:230)
        at java.security.AccessController.doPrivileged(Native Method)
        at com.jogamp.opengl.GLProfile.initSingleton(GLProfile.java:216)
        at com.jogamp.opengl.GLProfile.getProfileMap(GLProfile.java:2297)
        at com.jogamp.opengl.GLProfile.get(GLProfile.java:1021)
        at com.jogamp.opengl.GLProfile.get(GLProfile.java:1050)
        at com.eharmony.climp.OpenclResizer.<init>(OpenclResizer.java:87)
        at com.eharmony.climp.OpenclResizer.main(OpenclResizer.java:390)


lib directory
-bash-4.1$ ls -ltra /usr/lib
total 150332
dr-xr-xr-x.  2 root root     4096 Jul 20  2011 games
-rwxr-xr-x   1 root root     7460 Feb 21  2013 libpcprofile.so
-rwxr-xr-x   1 root root    17308 Feb 21  2013 libmemusage.so
-rwxr-xr-x   1 root root   930192 Feb 21  2013 libstdc++.so.6.0.13
dr-xr-xr-x.  2 root root     4096 Jun 27  2014 locale
drwxr-xr-x.  3 root root     4096 Jun 27  2014 anaconda-runtime
lrwxrwxrwx.  1 root root       24 Jun 27  2014 sendmail.postfix -> ../sbin/sendmail.postfix
lrwxrwxrwx.  1 root root       30 Jun 27  2014 sendmail -> /etc/alternatives/mta-sendmail
drwxr-xr-x.  3 root root     4096 Jun 27  2014 python2.6
drwxr-xr-x.  2 root root     4096 Jun 27  2014 yum-plugins
drwxr-xr-x   2 root root     4096 Jun 27  2014 hponcfg
lrwxrwxrwx   1 root root       23 Jun 27  2014 libfreebl3.so -> ../../lib/libfreebl3.so
lrwxrwxrwx   1 root root       24 Jun 27  2014 libfreebl3.chk -> ../../lib/libfreebl3.chk
drwxr-xr-x   2 root root    12288 Jun 27  2014 gconv
lrwxrwxrwx   1 root root       19 Jun 27  2014 libstdc++.so.6 -> libstdc++.so.6.0.13
drwxr-xr-x.  5 root root     4096 Jun 27  2014 ruby
drwxr-xr-x.  9 root root     4096 Jun 27  2014 cups
drwxr-xr-x.  2 root root     4096 Jun 27  2014 lsb
drwxr-xr-x   3 root root     4096 Jun 27  2014 perl5
drwxr-xr-x   3 root root     4096 Aug 13  2014 gcc
drwxr-xr-x.  3 root root     4096 Aug 13  2014 rpm
drwxr-xr-x   5 root root     4096 Sep 21  2015 ambari-server
drwxr-xr-x. 16 root root     4096 Mar 31 21:22 ..
drwxr-xr-x.  5 root root     4096 Jul 12 13:44 ConsoleKit
-rwxr-xr-x   1 root root  7674576 Jul 12 14:40 libcuda.so.367.27
-rwxr-xr-x   1 root root   333804 Jul 12 14:40 libnvidia-fatbinaryloader.so.367.27
-rwxr-xr-x   1 root root  9214984 Jul 12 14:40 libnvidia-ptxjitcompiler.so.367.27
-rwxr-xr-x   1 root root  1174636 Jul 12 14:40 libnvidia-ml.so.367.27
-rwxr-xr-x   1 root root    26440 Jul 12 14:40 libOpenCL.so.1.0.0
-rwxr-xr-x   1 root root 49118928 Jul 12 14:40 libnvidia-compiler.so.367.27
-rwxr-xr-x   1 root root  8054736 Jul 12 14:40 libnvidia-opencl.so.367.27
-rwxr-xr-x   1 root root   141080 Jul 12 14:40 libOpenGL.so.0
-rwxr-xr-x   1 root root   542688 Jul 12 14:40 libGLdispatch.so.0
-rwxr-xr-x   1 root root    38160 Jul 12 14:40 libGLESv2.so.2
-rwxr-xr-x   1 root root    30028 Jul 12 14:40 libGLESv1_CM.so.1
-rwxr-xr-x   1 root root   439972 Jul 12 14:40 libGL.so.1.0.0
-rwxr-xr-x   1 root root  1112268 Jul 12 14:40 libGLX_nvidia.so.367.27
-rwxr-xr-x   1 root root    59476 Jul 12 14:40 libGLX.so.0
-rwxr-xr-x   1 root root 36940472 Jul 12 14:40 libnvidia-glcore.so.367.27
drwxr-xr-x   2 root root     4096 Jul 12 14:40 tls
-rwxr-xr-x   1 root root    13788 Jul 12 14:40 libnvidia-tls.so.367.27
-rwxr-xr-x   1 root root  2389704 Jul 12 14:40 libnvcuvid.so.367.27
-rwxr-xr-x   1 root root   162068 Jul 12 14:40 libnvidia-encode.so.367.27
-rwxr-xr-x   1 root root 33777064 Jul 12 14:40 libnvidia-eglcore.so.367.27
-rwxr-xr-x   1 root root   508228 Jul 12 14:40 libnvidia-glsi.so.367.27
-rwxr-xr-x   1 root root    12400 Jul 12 14:40 libEGL.so.1
-rwxr-xr-x   1 root root   670872 Jul 12 14:40 libEGL_nvidia.so.367.27
-rwxr-xr-x   1 root root    71384 Jul 12 14:40 libGLESv2_nvidia.so.367.27
-rwxr-xr-x   1 root root   189192 Jul 12 14:40 libnvidia-ifr.so.367.27
-rwxr-xr-x   1 root root    46808 Jul 12 14:40 libGLESv1_CM_nvidia.so.367.27
-rwxr-xr-x   1 root root    85020 Jul 12 14:40 libnvidia-fbc.so.367.27
-rw-r--r--   1 root root      651 Jul 12 14:40 libGL.la
lrwxrwxrwx   1 root root       14 Jul 12 14:40 libOpenGL.so -> libOpenGL.so.0
lrwxrwxrwx   1 root root       18 Jul 12 14:40 libOpenCL.so.1.0 -> libOpenCL.so.1.0.0
lrwxrwxrwx   1 root root       16 Jul 12 14:40 libOpenCL.so.1 -> libOpenCL.so.1.0
lrwxrwxrwx   1 root root       14 Jul 12 14:40 libOpenCL.so -> libOpenCL.so.1
lrwxrwxrwx   1 root root       26 Jul 12 14:40 libnvidia-opencl.so.1 -> libnvidia-opencl.so.367.27
lrwxrwxrwx   1 root root       22 Jul 12 14:40 libnvidia-ml.so.1 -> libnvidia-ml.so.367.27
lrwxrwxrwx   1 root root       17 Jul 12 14:40 libnvidia-ml.so -> libnvidia-ml.so.1
lrwxrwxrwx   1 root root       14 Jul 12 14:40 libGLESv2.so -> libGLESv2.so.2
lrwxrwxrwx   1 root root       17 Jul 12 14:40 libcuda.so.1 -> libcuda.so.367.27
lrwxrwxrwx   1 root root       12 Jul 12 14:40 libcuda.so -> libcuda.so.1
drwxr-xr-x   2 root root     4096 Jul 12 14:40 vdpau
lrwxrwxrwx   1 root root       31 Jul 12 14:40 libvdpau_nvidia.so -> vdpau/libvdpau_nvidia.so.367.27
lrwxrwxrwx   1 root root       23 Jul 12 14:40 libnvidia-ifr.so.1 -> libnvidia-ifr.so.367.27
lrwxrwxrwx   1 root root       18 Jul 12 14:40 libnvidia-ifr.so -> libnvidia-ifr.so.1
lrwxrwxrwx   1 root root       26 Jul 12 14:40 libnvidia-encode.so.1 -> libnvidia-encode.so.367.27
lrwxrwxrwx   1 root root       21 Jul 12 14:40 libnvidia-encode.so -> libnvidia-encode.so.1
lrwxrwxrwx   1 root root       20 Jul 12 14:40 libnvcuvid.so.1 -> libnvcuvid.so.367.27
lrwxrwxrwx   1 root root       15 Jul 12 14:40 libnvcuvid.so -> libnvcuvid.so.1
lrwxrwxrwx   1 root root       11 Jul 12 14:40 libGLX.so -> libGLX.so.0
lrwxrwxrwx   1 root root       23 Jul 12 14:40 libGLX_nvidia.so.0 -> libGLX_nvidia.so.367.27
lrwxrwxrwx   1 root root       23 Jul 12 14:40 libGLX_indirect.so.0 -> libGLX_nvidia.so.367.27
lrwxrwxrwx   1 root root       14 Jul 12 14:40 libGL.so.1 -> libGL.so.1.0.0
lrwxrwxrwx   1 root root       10 Jul 12 14:40 libGL.so -> libGL.so.1
lrwxrwxrwx   1 root root       26 Jul 12 14:40 libGLESv2_nvidia.so.2 -> libGLESv2_nvidia.so.367.27
lrwxrwxrwx   1 root root       17 Jul 12 14:40 libGLESv1_CM.so -> libGLESv1_CM.so.1
lrwxrwxrwx   1 root root       29 Jul 12 14:40 libGLESv1_CM_nvidia.so.1 -> libGLESv1_CM_nvidia.so.367.27
lrwxrwxrwx   1 root root       11 Jul 12 14:40 libEGL.so -> libEGL.so.1
lrwxrwxrwx   1 root root       23 Jul 12 14:40 libEGL_nvidia.so.0 -> libEGL_nvidia.so.367.27
lrwxrwxrwx   1 root root       23 Jul 12 14:40 libnvidia-fbc.so.1 -> libnvidia-fbc.so.367.27
lrwxrwxrwx   1 root root       18 Jul 12 14:40 libnvidia-fbc.so -> libnvidia-fbc.so.1
dr-xr-xr-x. 20 root root     4096 Jul 14 16:40 .
drwxr-xr-x   4 root root     4096 Jul 14 16:40 mozilla
Reply | Threaded
Open this post in threaded view
|

Re: Issue trying to run on Linux

Ryan
PS. test.sh output

/usr/bin/java
java version "1.8.0_92"
Java(TM) SE Runtime Environment (build 1.8.0_92-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.92-b14, mixed mode)
LIBXCB_ALLOW_SLOPPY_LOCK:
LIBGL_DRIVERS_PATH: /usr/lib
LIBGL_DEBUG:
java
CLASSPATH: jar/gluegen-rt.jar:jar/jogl-all.jar

forceES2    false
forceES3    false
forceGL3    false
forceGL4ES3 false
-----------------------------------------------------------------------------------------------------
Platform: LINUX / Linux 2.6.32-358.el6.x86_64 (2.6.32), amd64 (X86_64, GENERIC_ABI), 32 cores, littleEndian true
MachineDataInfo: runtimeValidated true, 32Bit false, primitive size / alignment:
  int8    1 / 1, int16   2 / 2
  int     4 / 4, long    8 / 8
  int32   4 / 4, int64   8 / 8
  float   4 / 4, double  8 / 8, ldouble 16 / 16
  pointer 8 / 8, page    4096
Platform: Java Version: 1.8.0_92 (1.8.0u92), VM: Java HotSpot(TM) 64-Bit Server VM, Runtime: Java(TM) SE Runtime Environment
Platform: Java Vendor: Oracle Corporation, http://java.oracle.com/, JavaSE: true, Java6: true, AWT enabled: false
-----------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------
Package: com.jogamp.common
Extension Name: com.jogamp.common
Specification Title: GlueGen Java Bindings Generator
Specification Vendor: JogAmp Community
Specification Version: 2.3
Implementation Title: GlueGen Run-Time
Implementation Vendor: JogAmp Community
Implementation Vendor ID: com.jogamp
Implementation URL: http://jogamp.org/
Implementation Version: 2.3.2
Implementation Build: 2.3-b900-20151009
Implementation Branch: origin/master
Implementation Commit: cc1e9bc698b7f11097c1e114027e53121552f280
-----------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------
Package: com.jogamp.opengl
Extension Name: com.jogamp.opengl
Specification Title: Java Bindings for OpenGL API Specification
Specification Vendor: JogAmp Community
Specification Version: 2.3
Implementation Title: Java Bindings for OpenGL Runtime Environment
Implementation Vendor: JogAmp Community
Implementation Vendor ID: com.jogamp
Implementation URL: http://jogamp.org/
Implementation Version: 2.3.2
Implementation Build: 2.3-b1469-20151010
Implementation Branch: origin/master
Implementation Commit: e794fc40ba723f2fca4ac892e873975fb393e007
-----------------------------------------------------------------------------------------------------
Caught handled GLException: EGLGLXDrawableFactory - Could not initialize shared resources for EGLGraphicsDevice[type .egl, v0.0.0, connection nil, unitID 0, handle 0x0, owner true, ResourceToolkitLock[obj 0x6b94f55c, isOwner true, <2e96664a, 2b0e104a>[count 1, qsz 0, owner <main-SharedResourceRunner>]]] on thread main-SharedResourceRunner
    [0]: jogamp.opengl.egl.EGLDrawableFactory$SharedResourceImplementation.createSharedResource(EGLDrawableFactory.java:518)
    [1]: jogamp.opengl.SharedResourceRunner.run(SharedResourceRunner.java:353)
    [2]: java.lang.Thread.run(Thread.java:745)
Caused[0] by GLException: Failed to created/initialize EGL display incl. fallback default: native 0x0, error 0x3001/0x3003 on thread main-SharedResourceRunner
    [0]: jogamp.opengl.egl.EGLDisplayUtil.eglGetDisplayAndInitialize(EGLDisplayUtil.java:297)
    [1]: jogamp.opengl.egl.EGLDisplayUtil.access$300(EGLDisplayUtil.java:58)
    [2]: jogamp.opengl.egl.EGLDisplayUtil$1.eglGetAndInitDisplay(EGLDisplayUtil.java:320)
    [3]: com.jogamp.nativewindow.egl.EGLGraphicsDevice.open(EGLGraphicsDevice.java:125)
    [4]: jogamp.opengl.egl.EGLDrawableFactory$SharedResourceImplementation.createEGLSharedResourceImpl(EGLDrawableFactory.java:532)
    [5]: jogamp.opengl.egl.EGLDrawableFactory$SharedResourceImplementation.createSharedResource(EGLDrawableFactory.java:516)
    [6]: jogamp.opengl.SharedResourceRunner.run(SharedResourceRunner.java:353)
    [7]: java.lang.Thread.run(Thread.java:745)
Exception in thread "main" com.jogamp.nativewindow.NativeWindowException: X11Util.Display: Unable to create a display(nil) connection. Thread main
        at jogamp.nativewindow.x11.X11Util.openDisplay(X11Util.java:453)
        at jogamp.opengl.x11.glx.X11GLXDrawableFactory$SharedResourceImplementation.isDeviceSupported(X11GLXDrawableFactory.java:230)
        at jogamp.opengl.SharedResourceRunner.getOrCreateShared(SharedResourceRunner.java:224)
        at jogamp.opengl.x11.glx.X11GLXDrawableFactory.getOrCreateSharedResourceImpl(X11GLXDrawableFactory.java:371)
        at jogamp.opengl.x11.glx.X11GLXDrawableFactory.getOrCreateSharedResourceImpl(X11GLXDrawableFactory.java:81)
        at jogamp.opengl.GLDrawableFactoryImpl.getOrCreateSharedResource(GLDrawableFactoryImpl.java:187)
        at jogamp.opengl.GLDrawableFactoryImpl.createSharedResourceImpl(GLDrawableFactoryImpl.java:216)
        at com.jogamp.opengl.GLDrawableFactory.createSharedResource(GLDrawableFactory.java:381)
        at com.jogamp.opengl.GLProfile.initProfilesForDeviceCritical(GLProfile.java:1916)
        at com.jogamp.opengl.GLProfile.initProfilesForDevice(GLProfile.java:1875)
        at com.jogamp.opengl.GLProfile.initProfilesForDefaultDevices(GLProfile.java:1843)
        at com.jogamp.opengl.GLProfile.access$000(GLProfile.java:80)
        at com.jogamp.opengl.GLProfile$1.run(GLProfile.java:230)
        at java.security.AccessController.doPrivileged(Native Method)
        at com.jogamp.opengl.GLProfile.initSingleton(GLProfile.java:216)
        at com.jogamp.opengl.GLProfile.getDefaultDevice(GLProfile.java:2027)
        at com.jogamp.opengl.JoglVersion.getDefaultOpenGLInfo(JoglVersion.java:115)
        at com.jogamp.newt.opengl.GLWindow.main(GLWindow.java:1063)


Thanks!
Reply | Threaded
Open this post in threaded view
|

Re: Issue trying to run on Linux

Wade Walker
Administrator
Have you confirmed that other OpenGL programs run correctly on those machines? I've learned that it's quite possible to have OpenGL messed up in various ways under Linux :( And are your drivers the nvidia drivers or something else?
Reply | Threaded
Open this post in threaded view
|

Re: Issue trying to run on Linux

gouessej
Administrator
In reply to this post by Ryan
Just to avoid any FUD, JOGL works flawlessly under GNU Linux since its birth and I have used it mainly under GNU Linux since 2006. I used it with Nvidia Quadro graphics cards under Windows (Quadro 600 under Windows 10) and GNU Linux (Cent OS) without any trouble. The subject of this topic should be a lot more accurate.

Sorry, there is no relevant code, please post a SSCCE:
http://sscce.org

or try a simple example:
http://gist.github.com/gouessej/3420e2b6f632efdddf98
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: Issue trying to run on Linux

gouessej
Administrator
In reply to this post by Ryan
Reply | Threaded
Open this post in threaded view
|

Re: Issue trying to run on Linux

Ryan
Thanks for the help guys, I am not a unix guy and I had assumed that our admins had set up everything correctly to use the video card. There are a few issues.

1) There are 2 video cards, the one on the motherboard and the quadro
2) No X server was running. I tried installing Xvfb and got a little farther but Im assuming its binding to the wrong video card.

I'm still working on my own, will post more here after I get our admins to fix things a bit

Current 'best' run:

sh etc/test.sh
/usr/bin/java
java version "1.8.0_92"
Java(TM) SE Runtime Environment (build 1.8.0_92-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.92-b14, mixed mode)
LIBXCB_ALLOW_SLOPPY_LOCK:
LIBGL_DRIVERS_PATH:
LIBGL_DEBUG:
java
CLASSPATH: jar/gluegen-rt.jar:jar/jogl-all.jar

forceES2    false
forceES3    false
forceGL3    false
forceGL4ES3 false
-----------------------------------------------------------------------------------------------------
Platform: LINUX / Linux 2.6.32-358.el6.x86_64 (2.6.32), amd64 (X86_64, GENERIC_ABI), 32 cores, littleEndian true
MachineDataInfo: runtimeValidated true, 32Bit false, primitive size / alignment:
  int8    1 / 1, int16   2 / 2
  int     4 / 4, long    8 / 8
  int32   4 / 4, int64   8 / 8
  float   4 / 4, double  8 / 8, ldouble 16 / 16
  pointer 8 / 8, page    4096
Platform: Java Version: 1.8.0_92 (1.8.0u92), VM: Java HotSpot(TM) 64-Bit Server VM, Runtime: Java(TM) SE Runtime Environment
Platform: Java Vendor: Oracle Corporation, http://java.oracle.com/, JavaSE: true, Java6: true, AWT enabled: true
-----------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------
Package: com.jogamp.common
Extension Name: com.jogamp.common
Specification Title: GlueGen Java Bindings Generator
Specification Vendor: JogAmp Community
Specification Version: 2.3
Implementation Title: GlueGen Run-Time
Implementation Vendor: JogAmp Community
Implementation Vendor ID: com.jogamp
Implementation URL: http://jogamp.org/
Implementation Version: 2.3.2
Implementation Build: 2.3-b900-20151009
Implementation Branch: origin/master
Implementation Commit: cc1e9bc698b7f11097c1e114027e53121552f280
-----------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------
Package: com.jogamp.opengl
Extension Name: com.jogamp.opengl
Specification Title: Java Bindings for OpenGL API Specification
Specification Vendor: JogAmp Community
Specification Version: 2.3
Implementation Title: Java Bindings for OpenGL Runtime Environment
Implementation Vendor: JogAmp Community
Implementation Vendor ID: com.jogamp
Implementation URL: http://jogamp.org/
Implementation Version: 2.3.2
Implementation Build: 2.3-b1469-20151010
Implementation Branch: origin/master
Implementation Commit: e794fc40ba723f2fca4ac892e873975fb393e007
-----------------------------------------------------------------------------------------------------
Caught handled GLException: EGLGLXDrawableFactory - Could not initialize shared resources for EGLGraphicsDevice[type .egl, v0.0.0, connection :1, unitID 0, handle 0x0, owner true, ResourceToolkitLock[obj 0x1ef696ca, isOwner true, <5bf41b70, 38f4de99>[count 1, qsz 0, owner <main-SharedResourceRunner>]]] on thread main-SharedResourceRunner
    [0]: jogamp.opengl.egl.EGLDrawableFactory$SharedResourceImplementation.createSharedResource(EGLDrawableFactory.java:518)
    [1]: jogamp.opengl.SharedResourceRunner.run(SharedResourceRunner.java:353)
    [2]: java.lang.Thread.run(Thread.java:745)
Caused[0] by GLException: Failed to created/initialize EGL display incl. fallback default: native 0x0, error 0x3001/0x3001 on thread main-SharedResourceRunner
    [0]: jogamp.opengl.egl.EGLDisplayUtil.eglGetDisplayAndInitialize(EGLDisplayUtil.java:297)
    [1]: jogamp.opengl.egl.EGLDisplayUtil.access$300(EGLDisplayUtil.java:58)
    [2]: jogamp.opengl.egl.EGLDisplayUtil$1.eglGetAndInitDisplay(EGLDisplayUtil.java:320)
    [3]: com.jogamp.nativewindow.egl.EGLGraphicsDevice.open(EGLGraphicsDevice.java:125)
    [4]: jogamp.opengl.egl.EGLDrawableFactory$SharedResourceImplementation.createEGLSharedResourceImpl(EGLDrawableFactory.java:532)
    [5]: jogamp.opengl.egl.EGLDrawableFactory$SharedResourceImplementation.createSharedResource(EGLDrawableFactory.java:516)
    [6]: jogamp.opengl.SharedResourceRunner.run(SharedResourceRunner.java:353)
    [7]: java.lang.Thread.run(Thread.java:745)
Caught handled GLException: EGLGLXDrawableFactory - Could not initialize shared resources for X11GraphicsDevice[type .x11, connection :1, unitID 0, handle 0x0, owner false, ResourceToolkitLock[obj 0x61f8e31d, isOwner true, <5b0bd607, 3f953b45>[count 1, qsz 0, owner <main-SharedResourceRunner>]]] on thread main-SharedResourceRunner
    [0]: jogamp.opengl.egl.EGLDrawableFactory$SharedResourceImplementation.createSharedResource(EGLDrawableFactory.java:518)
    [1]: jogamp.opengl.SharedResourceRunner.run(SharedResourceRunner.java:353)
    [2]: java.lang.Thread.run(Thread.java:745)
Caused[0] by GLException: Failed to created/initialize EGL display incl. fallback default: native 0x0, error 0x3001/0x3001 on thread main-SharedResourceRunner
    [0]: jogamp.opengl.egl.EGLDisplayUtil.eglGetDisplayAndInitialize(EGLDisplayUtil.java:297)
    [1]: jogamp.opengl.egl.EGLDisplayUtil.access$300(EGLDisplayUtil.java:58)
    [2]: jogamp.opengl.egl.EGLDisplayUtil$1.eglGetAndInitDisplay(EGLDisplayUtil.java:320)
    [3]: com.jogamp.nativewindow.egl.EGLGraphicsDevice.open(EGLGraphicsDevice.java:125)
    [4]: jogamp.opengl.egl.EGLDrawableFactory$SharedResourceImplementation.createEGLSharedResourceImpl(EGLDrawableFactory.java:532)
    [5]: jogamp.opengl.egl.EGLDrawableFactory$SharedResourceImplementation.createSharedResource(EGLDrawableFactory.java:516)
    [6]: jogamp.opengl.SharedResourceRunner.run(SharedResourceRunner.java:353)
    [7]: java.lang.Thread.run(Thread.java:745)
GLProfiles on device X11GraphicsDevice[type .x11, connection :1, unitID 0, handle 0x0, owner false, ResourceToolkitLock[obj 0x61f8e31d, isOwner false, <5b0bd607, 3f953b45>[count 0, qsz 0, owner <NULL>]]]
        Natives
                GL4bc false
                GL4 false
                GLES3 false
                GL3bc false
                GL3 false
                GL2 false
                GLES2 false
                GLES1 false
                Count 0 / 8
        Common
                GL4ES3 false
                GL2GL3 false
                GL2ES2 false
                GL2ES1 false
        Mappings
                default n/a
                Count 0 / 12


Desktop Capabilities:
        none

EGL Capabilities:
        none


Exception in thread "main" com.jogamp.opengl.GLException: Profile GL_DEFAULT is not available on X11GraphicsDevice[type .x11, connection :1, unitID 0, handle 0x0, owner false, ResourceToolkitLock[obj 0x61f8e31d, isOwner false, <5b0bd607, 3f953b45>[count 0, qsz 0, owner <NULL>]]], but: []
        at com.jogamp.opengl.GLProfile.get(GLProfile.java:991)
        at com.jogamp.opengl.GLProfile.getDefault(GLProfile.java:722)
        at com.jogamp.opengl.GLProfile.getDefault(GLProfile.java:733)
        at com.jogamp.newt.opengl.GLWindow.main(GLWindow.java:1075)
-bash-4.1$ 5 XSELINUXs still allocated at reset
SCREEN: 0 objects of 224 bytes = 0 total bytes 0 private allocs
DEVICE: 0 objects of 96 bytes = 0 total bytes 0 private allocs
CLIENT: 0 objects of 56 bytes = 0 total bytes 0 private allocs
WINDOW: 0 objects of 24 bytes = 0 total bytes 0 private allocs
PIXMAP: 1 objects of 16 bytes = 16 total bytes 0 private allocs
GC: 4 objects of 16 bytes = 64 total bytes 0 private allocs
CURSOR: 0 objects of 8 bytes = 0 total bytes 0 private allocs
DBE_WINDOW: 0 objects of 24 bytes = 0 total bytes 0 private allocs
TOTAL: 5 objects, 80 bytes, 0 allocs
1 PIXMAPs still allocated at reset
PIXMAP: 1 objects of 16 bytes = 16 total bytes 0 private allocs
GC: 4 objects of 16 bytes = 64 total bytes 0 private allocs
CURSOR: 0 objects of 8 bytes = 0 total bytes 0 private allocs
DBE_WINDOW: 0 objects of 24 bytes = 0 total bytes 0 private allocs
TOTAL: 5 objects, 80 bytes, 0 allocs
4 GCs still allocated at reset
GC: 4 objects of 16 bytes = 64 total bytes 0 private allocs
CURSOR: 0 objects of 8 bytes = 0 total bytes 0 private allocs
DBE_WINDOW: 0 objects of 24 bytes = 0 total bytes 0 private allocs
TOTAL: 4 objects, 64 bytes, 0 allocs
Reply | Threaded
Open this post in threaded view
|

Re: Issue trying to run on Linux

gouessej
Administrator
It seems to find no graphics card.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: Issue trying to run on Linux

Ryan
Yes, the issue is its binding to the wrong graphics card. I suspect Xvfb is not setup right

-bash-4.1$ lspci | grep VGA
01:00.1 VGA compatible controller: Matrox Electronics Systems Ltd. MGA G200EH
07:00.0 VGA compatible controller: NVIDIA Corporation Device 13ba (rev a2)
Reply | Threaded
Open this post in threaded view
|

Re: Issue trying to run on Linux

gouessej
Administrator
The Matrox MGA G200 is extremely old, I used the same graphics card on a used computer (Fujitsu Siemens Scenic L) I bought in 2006. It supports only OpenGL 1.1 and I'm not sure that it's still correctly supported nowadays.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: Issue trying to run on Linux

Ryan
Yes, we are not trying to use the Matrox card although I suspect it is what we are binding to. We are trying a newer version of Linux to see if that helps.

The actual card is a new Nvidia Quadro K2200