<div dir="ltr">What I should have said is I have never written anything in Mesa. I tried making a small C program reproducing the problem, but I couldn't get the same result (Not entirely sure what the JRE is doing). <div>I have run valgrind on the sample Java program, which produces a lot of extraneous data, but I hope there is enough there to find the problem. At the time the program was stopped, it's memory consumption exceeded 1.5GB, only about 200MB of them accounted for by the JVM (which means about 1.3GB were in native/mesa code). </div><div>This was run using Mesa 12.0.2-1 on Debian testing. Attached is the GZipped valgrind output, with hope it could help to find the problem, or at least write a proper (non-Java) test case</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Aug 18, 2016 at 6:08 AM, Michel Dänzer <span dir="ltr"><<a href="mailto:michel@daenzer.net" target="_blank">michel@daenzer.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 18/08/16 05:39 AM, Itai wrote:<br>
> (Posted initially in mesa-users, but got no reply - the list seems dead.<br>
> Couldn't find any bug report, and sadly not well versed enough in mesa<br>
> to file one myself).<br>
<br>
</span>FWIW, there's no need to be versed in Mesa to file a bug report. :)<br>
<span class=""><br>
<br>
> Following an investigation of a memory leak with JavaFX on some Linux<br>
> configuration, it looks like there is a possible memory leak when using<br>
> `glxMakeCurrent`.<br>
> Sadly, I myself don't know enough about OpenGL/Mesa to describe it<br>
> fully, but I'm hoping someone here can understand it well enough to make<br>
> a proper bug report.<br>
><br>
> Here is a link to the discussion on the openjfx-dex list:<br>
> <a href="http://mail.openjdk.java.net/pipermail/openjfx-dev/2016-August/019577.html" rel="noreferrer" target="_blank">http://mail.openjdk.java.net/<wbr>pipermail/openjfx-dev/2016-<wbr>August/019577.html</a><br>
><br>
> Here is a forum post describing a non-Java way to reproduce this same<br>
> issue:<br>
> <a href="http://www.gamedev.net/topic/679705-glxmakecurrent-slowly-leaks-memory/" rel="noreferrer" target="_blank">http://www.gamedev.net/topic/<wbr>679705-glxmakecurrent-slowly-<wbr>leaks-memory/</a><br>
><br>
><br>
> This was possibly not an issue in older versions of Mesa, as the bug<br>
> does not appear on older Linux installations (I'm using Mesa 11.2.2,<br>
> where the bug is present)<br>
<br>
</span>Does it still happen with current Git master? There have been some fixes<br>
in this area recently.<br>
<br>
If it still happens, the output of running an affected application in<br>
valgrind --leak-check=full (with debugging symbols available for at<br>
least all Mesa binaries) would be useful.<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
--<br>
Earthling Michel Dänzer | <a href="http://www.amd.com" rel="noreferrer" target="_blank">http://www.amd.com</a><br>
Libre software enthusiast | Mesa and X developer<br>
</font></span></blockquote></div><br></div>