Login  Register

JOGL on Linux - Freezes

Posted by charlie on Jun 20, 2011; 12:38am
URL: https://forum.jogamp.org/JOGL-on-Linux-Freezes-tp3084373.html

Hi,
I've been playing around with JOGL for a couple of weeks now, and have had no problems with Windows. I recently installed Ubuntu 11.04, and the exact same code that has worked fine on Windows, hangs up on Linux unless the window receives a mouse or keyboard event. I'm using NativeWindow, ATI accelerated drivers for a 4890. Can post code if required - it's based on the RedSquare demo with minor changes only, and looks fine - no graphical glitches or anything.

The stack looks like this when a freeze happens:

EITHER:
Thread [main] (Suspended)
        GLX.dispatch_glXSwapBuffers1(long, long, long) line: not available [native method]
        GLX.glXSwapBuffers(long, long) line: 1124
        X11OnscreenGLXDrawable(X11GLXDrawable).swapBuffersImpl() line: 68
        X11OnscreenGLXDrawable(GLDrawableImpl).swapBuffers() line: 94
        GLDrawableHelper.invokeGL(GLDrawable, GLContext, Runnable, Runnable) line: 366
        GLWindow.display(boolean) line: 547
        GLWindow.display() line: 523
        JoglTestShader.main(String[]) line: 32

OR:
Thread [main] (Suspended)
        GLX.dispatch_glXMakeContextCurrent1(long, long, long, long, long) line: not available [native method]
        GLX.glXMakeContextCurrent(long, long, long, long) line: 936
        X11OnscreenGLXContext(X11GLXContext).glXMakeContextCurrent(long, long, long, long) line: 152
        X11OnscreenGLXContext(X11GLXContext).makeCurrentImpl(boolean) line: 412
        X11OnscreenGLXContext(GLContextImpl).makeCurrentLocking() line: 419
        X11OnscreenGLXContext(GLContextImpl).makeCurrent() line: 352
        GLDrawableHelper.invokeGL(GLDrawable, GLContext, Runnable, Runnable) line: 348
        GLWindow.display(boolean) line: 547
        GLWindow.display() line: 523
        JoglTestShader.main(String[]) line: 32

Is this an error on my part, or in JOGL/Ubuntu?

Charlie