Cannot recreate GLCanvas

Hi!

I have a problem that I can’t solve for 3 full days.
I’m using JOGL 1.1b07 on JDK5 in WinXP using
Eclipse 3.1M3. Hardware is ATI Mobility Radeon
9000 with latest Omega drivers.

I have an application that hosts OpenGL projects.

Each time a project is opened, a new GLCanvas
is created and displayed in a Frame. When the
project is closed, the Frame is disposed and the
GLCanvas released.

Now here’s the problem: after the first project
has been opened and closed, a new GLContext
can’t be created anymore. I get a ‘Unable to
set pixel format’ GLException when JOGL is trying
to realise the GLContext.

If I restart the application, things work again,
but like before, only for the first project session.
Opening a second project will fail.

So I tried to cache a GLCanvas to be shared
across project sessions. The GLCanvas is contained
in a Frame and the Frame is never disposed
until the application exits. But alas, this didn’t
work either: I get a ‘Out of heap space’ exception
from the JVM! I’ve set the JVM parameter
-Xmx128M which is more than enough for the
application.

Anyone who can help, please do! Thanks!

.rex

Could you try specifying -DATI_WORKAROUND=false and -Dsun.java2d.noddraw=true on the command line?

If this doesn’t help, could you please try to boil down your app into a small test case and file a bug with the JOGL Issue Tracker? Thanks.