Possible mem leak in Display.makeCurrent() on ATI 9700

Started by napier, September 11, 2005, 02:15:47

Previous topic - Next topic

napier

I found an odd problem.  If I add Display.makeCurrent() to my code,

try {
      Display.makeCurrent();
} catch (LWJGLException e) {
     System.out.println("Exception " + e);
}


the app will slowly consume memory until it hangs (in about 36 hours).

I'm running this on an ATI Radeon Mobility 9700 (WinXP, lwjgl .98, drivers are up to date).  The same app causes no problem on other graphics cards.  I think it may be related to this topic at javagaming.org, about the same kind of slow memory leak in JOGL with a Radeon Mobility 9700:

  http://192.18.37.44/forums/index.php?topic=9865.0

In my app I'm using a pbuffer and switch from pbuffer to display each frame.  I narrowed the problem down to the single call Display.makeCurrent().  With that line, I see memory drain.  Without it all is fine.

This is a very specific situation, not a big deal really and I have a work around, but I thought I'd mention it.  The thread above proposed a fix for Jogl.
penGL/Java/LWJGL demos and code: http://potatoland.org/code/gl