TextRenderer memory leak?
Posted by farrellf on Aug 20, 2019; 7:31am
URL: https://forum.jogamp.org/TextRenderer-memory-leak-tp4039967.html
I use a few TextRenderers to draw lots of text every frame. I noticed a slow memory leak, and I believe it is inside the TextRenderers. If I replace them after an hour of rendering (with myRenderer = new TextRenderer(...);) the garbage collector can immediately free up ~20MB for each TextRenderer. If I let my program run overnight, the memory leak gets massive.
I tried flush()'ing each TextRenderer every frame, but that does not seem to help. Am I doing something wrong?
I can provide a minimalist example if needed. I'm using Java 8 on Windows 10.
Thanks,
-Farrell