Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.8.0, 5.9.1, 5.9.2
-
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
- relates to
-
QTBUG-79796 Video Player developed using QMediaPlayer having memory leak issue
-
- Closed
-