Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-132208

Small memory deficiency in wl_buffer in linux-dmabuf

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.9
    • Wayland Compositor
    • None
    • Linux/Wayland

    Description

      When using the linux-dmabuf integration and deleting buffers, the LinuxDmabufWlBuffer and its wl_buffer remains in memory until the client disconnects. While this is very little memory per instance, it can accumulate over time.

      It happens because the object is not deleted when the wl_buffer::destroy request is received, but only later when wl_resource_destroy() is called.

      Comparing to e.g. the brcm plugin, this calls wl_resource_destroy() from the wl_buffer::destroy() handler. It may be complicated by the fact that there are pointers to the LinuxDmabufWlBuffer objects kept in other places which also need to be cleaned up.

      Possible fix here: https://codereview.qt-project.org/c/qt/qtwayland/+/611586

      Attachments

        For Gerrit Dashboard: QTBUG-132208
        # Subject Branch Project Status CR V

        Activity

          People

            qt.team.graphics.and.multimedia Qt Graphics Team
            esabraha Eskil Abrahamsen Blomfeldt
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There is 1 open Gerrit change