Details
-
Bug
-
Resolution: Invalid
-
P2: Important
-
None
-
5.8.0, 5.9.0, 5.12.0
-
None
-
OS: Ubuntu 17.10
Kernel: 4.10
Qt: Custom 5.8.0 & 5.9.0 (desktop OpenGL, built on xenial)
CPU: i7-5500U
GPU: Intel HD 5500
RAM: 8GB RAM
Mesa:
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) HD Graphics 5500 (Broadwell GT2)
OpenGL core profile version string: 4.5 (Core Profile) Mesa 17.1.2
OpenGL core profile shading language version string: 4.50
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.0 Mesa 17.1.2OS: Ubuntu 17.10 Kernel: 4.10 Qt: Custom 5.8.0 & 5.9.0 (desktop OpenGL, built on xenial) CPU: i7-5500U GPU: Intel HD 5500 RAM: 8GB RAM Mesa: OpenGL vendor string: Intel Open Source Technology Center OpenGL renderer string: Mesa DRI Intel(R) HD Graphics 5500 (Broadwell GT2) OpenGL core profile version string: 4.5 (Core Profile) Mesa 17.1.2 OpenGL core profile shading language version string: 4.50 OpenGL core profile context flags: (none) OpenGL core profile profile mask: core profile OpenGL core profile extensions: OpenGL version string: 3.0 Mesa 17.1.2
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.