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

Kernel complains non-freed memory when video playback ends/starts again in loop

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Out of scope
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 5.12.3
    • Multimedia
    • None
    • Yocto Linux 4.14.78, imx6
    • Linux/Yocto

      The bug is already reported and closed in https://bugreports.qt.io/browse/QTBUG-73084 and https://bugreports.qt.io/browse/QTBUG-83663 but even with all relevant patches I am still getting the same kernel warnings about pages still in use whenever I stop a video before it is finished and play another one.

      The patches (https://codereview.qt-project.org/c/qt/qtmultimedia/+/273602, https://codereview.qt-project.org/c/qt/qtmultimedia/+/298634)  seem to rely on checking if the buffer address is in physical memory or not. But in my tests the buffer was never in physical memory, therefore the patch does nothing.

       

      The only way I can get rid of the kernel warnings is by forcing mMappable to false in 
      QSGVivanteVideoMaterial, therefore the alternative "copy" path is taken.
       
       
       

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

            timblechmann tim blechmann
            nukular David Tondorf
            Veli-Pekka Heinonen Veli-Pekka Heinonen
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes