Crash in JOGL2rc10 creating a context in a VM
Posted by gregirvine on Feb 08, 2013; 4:36am
URL: https://forum.jogamp.org/Crash-in-JOGL2rc10-creating-a-context-in-a-VM-tp4028176.html
While running my application in a RedHat virtual machine I get an exception when starting with JOGL2rc10 that I don't get with JOGL1.1.1.
In both circumstances I get a warning:
Xlib: extension "NV-GLX" missing on display ":0.0".
I get the same warning if I run glxgears and it's running a MESA driver (glxgears -info)
Xlib: extension "NV-GLX" missing on display ":0.0".
GL_MAX_VIEWPORT_DIMS=4096/4096
GL_RENDERER = Mesa GLX Indirect
GL_VERSION = 1.2 (1.5 Mesa 6.2.1)
GL_VENDOR = Mesa project: www.mesa3d.org
I have just noticed though the GL_VERSION above is GL1.2 but my application is request a GL2 profile.
If this is the issue, i don't think it should segfault the VM though.
- - - -
Stack: [0x96500000,0x965c8000], sp=0x965c6b70, free space=794k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [libGL.so.1+0x5b1e3] __float128+0xbe33
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j jogamp.opengl.x11.glx.GLX.dispatch_glXCreateNewContext1(JJIJZJ)J+0
j jogamp.opengl.x11.glx.GLX.glXCreateNewContext(JJIJZ)J+35
j jogamp.opengl.x11.glx.X11GLXContext.createImplRaw(Ljogamp/opengl/GLContextImpl;)Z+499
j jogamp.opengl.x11.glx.X11GLXContext.createImpl(Ljogamp/opengl/GLContextImpl;)Z+17
j jogamp.opengl.GLContextImpl.makeCurrentWithinLock(I)I+47
j jogamp.opengl.GLContextImpl.makeCurrent()I+209
j jogamp.opengl.x11.glx.X11GLXDrawableFactory$SharedResourceImplementation.createSharedResource(Ljava/lang/String;)Ljogamp/opengl/SharedResourceRunner$Resource;+251
j jogamp.opengl.SharedResourceRunner.run()V+270
j java.lang.Thread.run()V+11
v ~StubRoutines::call_stub