JOGL on Linux - Freezes

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

JOGL on Linux - Freezes

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

Re: JOGL on Linux - Freezes

gouessej
Administrator
Hi!

I frequently test JOGL on several Linux distros (KUbuntu, Mandriva, Mageia, Cent OS, Debian, etc...) and I have never experienced such problems. However, there might be some problems with some particular drivers but they concern all OpenGL applications, not only those using JOGL. For example, the Nouveau driver on NVIDIA graphics card gives me a black screen with JOGL 1.1.1a on Mageia Linux 1 whereas the proprietary driver works fine.

ATI Radeon HD drivers work bad sometimes, try to use an ATI Radeon driver instead. Which driver do you use?
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: JOGL on Linux - Freezes

gouessej
Administrator
In reply to this post by charlie
Some French Linux Debian users had to use Vesa drivers which work reliably but are quite slow in order to work around this problem :( I remind you that it is not a problem specific to JOGL.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: JOGL on Linux - Freezes

gouessej
Administrator
In reply to this post by charlie
Do you call initSingleton ?
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: JOGL on Linux - Freezes

Sven Gothel
Administrator
In reply to this post by charlie
On Monday, June 20, 2011 02:38:03 AM charlie [via jogamp] wrote:
>
> 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.

https://jogamp.org/bugzilla/show_bug.cgi?id=502

let's say it stutters :(

yup, already known.

will push a workaround ..

~Sven
Reply | Threaded
Open this post in threaded view
|

Re: JOGL on Linux - Freezes

gouessej
Administrator
Is thig bug reproducible with GLCanvas?
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: JOGL on Linux - Freezes

Sven Gothel
Administrator
On Monday, June 20, 2011 03:45:12 PM gouessej [via jogamp] wrote:
>
> Is thig bug reproducible with GLCanvas?

no, because AWT utilization is not multi threaded :)

~Sven