WorldWindJava icon indicating copy to clipboard operation
WorldWindJava copied to clipboard

Memory leak BUG at TextRenderer

Open dedovick opened this issue 7 years ago • 0 comments

In my application, i have a WorldWindowGLJPanel(wwd). I also have a polling that call wwd.redraw() every 2 seconds, but theres a memory leak that i cant clean on textRendererCache that apparently is on the sceneController, inside WorldWindowGLJPanel.

At class TextRenderer, there's a object "private final GlyphProducer mGlyphProducer" and the method getGlyphs(CharSequence inString) is called everytime a string will be plotted. Inside this method, as my string is different everytime, this command is executed "fullGlyphVectorCache.put(inString.toStr ing(), fullRunGlyphVector);". This fullGlyphVectorCache is never cleaned.

dedovick avatar Nov 01 '17 10:11 dedovick