<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 - Xorg memory leak when using llvmpipe/softpipe"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=109958">109958</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Xorg memory leak when using llvmpipe/softpipe
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>18.3
          </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>major
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>Drivers/Gallium/vmwgfx
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>j.eymann@gmx.net
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>mesa-dev@lists.freedesktop.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Hello,

there seems to be a major memory leak in Xorg in combination with the VMware
driver and the llvmpipe/softpipe renderer. It can be easily reproduced using
glxgears. This works even on some real hardware systems when forcing software
rendering (depending on the graphics driver which is used):

export GALLIUM_DRIVER="llvmpipe"
export LIBGL_ALWAYS_SOFTWARE="true"
glxgears -info

When glxgears is using llvmpipe or softpipe as renderer, it should be
reproducible. Grab a corner of the glxgears window and quickly move it around
(i.e., resize the window continuously) while watching Xorg memory which rapidly
starts to grow. When stopping the resizing, memory usage stays constant and
drops again after closing the window.

On my systems running in VirtualBox and vSphere, llvmpipe was used by default,
so the exports are not necessary and the problem always occurs. In VirtualBox,
the problem did not occur when I enabled 3D acceleration (VM settings ->
Display -> Screen) as then SVGA3D is used as renderer.

I could observe this behavior on Ubuntu 18.04 (with stock Mesa 18.2.2 and also
using the Ubuntu-X team PPA with Mesa 18.3.3), Ubuntu 18.10, Fedora 29
(Xwayland) and Debian 9, so I suspect it might be something in Mesa. I could
not find an existing bug report that seems to match this problem so I opened
this one.</pre>
        </div>
      </p>


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

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