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

Memory leaks in QMediaPlayer and QVideoWidget

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.11.0
    • 5.8.0, 5.9.1, 5.9.2
    • Multimedia
    • None

    Description

      When using QMediaplayer and QVideoWidget to loop videos, memory usage increases and never get released. 

      I attached a little QWidget based application which loops a small video with atwo second  gaps between the repeats.

      Every repeat allocates memory via a QScopedPointer.

      It is possible to activate QVideoWidget separatly to get a bigger leak.

      Click Autoplay-checkbox to start.

      Max shows the maximum memory consumption with the time it occurs and "Now" the current. 

      I dicovered further, that even when if the QMediaplayer/QVideoWidget-Instances are created once and only videos changed it produces memory leaks.

      Valgrind reports issues in gstreamer-libs and qtmultimedia-libs.

       

      Reproduced under:
      Kubuntu 16.04, 17.04 17.10
      I got the same behavior with a QML (QQuickitem) based video player in Android.
      Android 5.1.1 Android 6.0 Android 7.1
      It seems, that every repeated allocation/deallocation of memory or even loading a file in QtMultimedia produced memory leaks.

      Attachments

        Issue Links

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

          Activity

            People

              valentyn.doroshchuk Valentyn Doroshchuk
              sagiadinos Nikolaos Saghiadinos
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes