<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Constantly increasing memory consumption in JavaFX applications"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=98831">98831</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Constantly increasing memory consumption in JavaFX applications
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Mesa
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>12.0
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86-64 (AMD64)
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Mesa core
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>mesa-dev@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>itaisha@gmail.com
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>mesa-dev@lists.freedesktop.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=128164" name="attach_128164" title="JavaFX test case. Tested with OpenJDK >=8u92, as well as Oracle JRE">attachment 128164</a> <a href="attachment.cgi?id=128164&action=edit" title="JavaFX test case. Tested with OpenJDK >=8u92, as well as Oracle JRE">[details]</a></span>
JavaFX test case. Tested with OpenJDK >=8u92, as well as Oracle JRE

Animations in JavaFX applications cause excessive memory usage (native memory,
not in JVM) when running Mesa >=11.0 . Memory consumption increase can exceed
1GB per minute, quickly making such applications unusable.  

This was discussed on the JavaFX mailing list [1] and determined not to be a
bug in the way JavaFX uses Mesa. This is corroborated by the fact that the leak
seems to be in native memory, and is absent when not using Mesa (e.g. on
Windows or on Linux using nVidia's proprietary OpenGL implementation). The
problem also does not seem to occur in Mesa <=10 

This reportedly can be reproduced outside of Java [2], but my understanding of
the issue isn't enough to allow me to provide a C/C++ example.  

Attached is a source of Java test case exhibiting the problem - results seems
to vary, but on my machine the memory consumption reaches 2GB in about a
minute, and continues to increase until the application is closed. 

Note that [1] contains links to other sources as well.


[1]
<a href="http://openjfx-dev.openjdk.java.narkive.com/8WXN1vRo/memory-leaks-on-linux-with-hardware-renderer">http://openjfx-dev.openjdk.java.narkive.com/8WXN1vRo/memory-leaks-on-linux-with-hardware-renderer</a> 

[2] <a href="http://www.gamedev.net/topic/679705-glxmakecurrent-slowly-leaks-memory/">http://www.gamedev.net/topic/679705-glxmakecurrent-slowly-leaks-memory/</a></pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
          <li>You are the QA Contact for the bug.</li>
      </ul>
    </body>
</html>