Memory leak in JOGL 2

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

Memory leak in JOGL 2

gouessej
Administrator
Hi!

I have just compiled JOGL 2 from source and I have a memory leak. GLException instances containing the following message are constantly created:
Java2D OpenGL pipeline not active (or necessary support not present)

What can I do? I can enable the OpenGL pipeline on Linux but it might cause some problems on Windows. This source code is the root cause of this problem:
private static void checkActive() {
    if (!isOGLPipelineActive()) {
      throw new GLException("Java2D OpenGL pipeline not active (or necessary support not present)");
    }
  }

Couldn't we create this instance once only and throw it each time?
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: Memory leak in JOGL 2

gouessej
Administrator
This post was updated on .
Using the same instance solves the problem. I will enable the OpenGL pipeline by default.

Why are there so much StructAccessor instances in memory??

Edit.: now I understand why using NEWT would be better... StructAccessor instances are called at each frame by the NativeWindow API in the JAWT surface.
Julien Gouesse | Personal blog | Website