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

Memory leak with QtWaylandCompositor

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P2: Important
    • None
    • 5.8.0, 5.9.0, 5.12.0
    • Wayland Compositor
    • None

    Description

      I'm running a QML-based sample compositor to power 4 instances of mpv (with libva for hardware accelerated decoding) displaying the same video, having the mpv instances exit by themselves and being restarted by the compositor application in an infinite loop.

      Sample source is included in the attachment

      In this test case I experience memory leaks (watch10sec txt files) whenever an mpv instance exits by itself, due to video play done.
      It shouldn't be mpv as those processes die and get restarted by the compositor application, so I assume it is some shared resource (shared memory, DRM) issue. Stopping the sample app makes general memory use go back to normal.

      Random note: Without --pages-as-heap=yes massiv reports a constant use of around 30MB, with --pages-as-heap=yes it reports ~600MB.

      Running the sample app with a 10 sec 4k H264 video causes my laptop to completely freeze in under 10 minutes, for example WaylandTestCompositor_watchfree10sec-HANG.txt.

      I believe it's exhausting OS resources somehow (DRM maybe?), looking at the memcheck log file which constantly complains about failed writes. I have also experienced the same issue with Ubuntu 16.04.2.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            dev.beidl Alfred Neumayer
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes