Crash in JOGL2rc10 creating a context in a VM

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

Crash in JOGL2rc10 creating a context in a VM

gregirvine
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
Reply | Threaded
Open this post in threaded view
|

Re: Crash in JOGL2rc10 creating a context in a VM

Sven Gothel
Administrator
On 02/08/2013 05:36 AM, gregirvine [via jogamp] wrote:
> 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.

Well, now we do query GL profile availability etc, so it has a chance to crash
early.

>
> 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.
Please try a newer build, where we have fixed a few Mesa related issues.

http://jogamp.org/deployment/archive/master/?C=M;O=D

~Sven



signature.asc (911 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Crash in JOGL2rc10 creating a context in a VM

gregirvine
Interestingly even with rc11 i get the same crash
(different line number for X11GLXDrwableFactory)
jogamp.opengl.x11.glx.X11GLXDrawableFactory$SharedResourceImplementation.createSharedResource(Ljava/lang/String;)Ljogamp/opengl/SharedResourceRunner$Resource;+237