vlc leaks memory
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
vlc (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
When I watch movie on VLC memory usage starts growing until memory is full and then oom killer kills some of processes or computer eventually freezes or become very slow (due to usage of swap).
(Virtual memory usage keeps growing, while residual numbers stay relatively low)
I can reproduce this bug every time.
1. Open htop and sort processes based on memory usage
2. Start watching movie in VLC
3. Memory usage keeps growing (I have 8GB of RAM, of which initially only 1.1 GB is used)
4. I pause the player, memory usage stops growing
5. I quit VLC player, memory gets released.
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: vlc 2.2.2-5
ProcVersionSign
Uname: Linux 4.4.0-36-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.1-0ubuntu2.1
Architecture: amd64
CurrentDesktop: KDE
Date: Sun Sep 4 21:29:20 2016
InstallationDate: Installed on 2014-01-13 (964 days ago)
InstallationMedia: Kubuntu 13.10 "Saucy Salamander" - Release amd64 (20131016.1)
SourcePackage: vlc
UpgradeStatus: Upgraded to xenial on 2016-09-03 (1 days ago)
EDIT: I thought initially that this was related to video memory due to kernel log about purging GPU memory, but GPU memory usage reported in kernel was so low (circa 8 MB), that it simply couldn't be it. Thus, I removed comment about being related to kernel video memory.
summary: |
- vlc leaks video memory + vlc leaks memory |
description: | updated |
description: | updated |
I have tried compiling vanilla vlc, both 2.2.2 and 2.2.4 version.
1. I didn't have all libraries, so I have disabled lua and other packages were excluded by configure script. No memory leak.
2. Then I installed lua compiler and lua lib. No memory leak.
3. Then I have installed all build dependencies, with sudo apt-get build-dep vlc. I couldn't build it due to missing backport in qt5:
"You cannot build VLC with Qt-5.5.0. You need to backport I78ef29975181ee 22429c9bd4b11d9 6d9e68b7a9c"
Based on following link, this backport should be already in ubuntu/kubuntu, so I have commented out those three lines in configure.ac. This build did leak memory.
4. I have restored original configure.at and removed qt5-dev libraries in order to force compilation with qt4 libraries. This build did also leak memory.
Check attached dpkg.log for installed libraries (some of this libraries triggers memory leak)