(Huge) Memleak on Fedora 14?

*nix specific usage questions
horazont
New Cone
New Cone
Posts: 3
Joined: 09 Apr 2011 10:29
VLC version: 1.1.8
Operating System: Linux

(Huge) Memleak on Fedora 14?

Postby horazont » 09 Apr 2011 10:39

Hi all,

Before I start, I already did some web research and stumbled upon this possibly related thread, but I did not get any help out of it.
So, here is my problem: I use VLC to play some video. I also have a lot of other stuff running, a normal desktop (firefox, thunderbird, you name it). Everything is fine until rsync backup kicks in. VLC starts to lag (which is okay, as rsync may drain the whole available Harddisk I/O for a second sometimes). But VLC also starts to consume more and more memory. Depending on the amount of the rsync I/O load, I have sometimes only 3 seconds to react on that before vlc has my whole 4 GB of RAM allocated, so this can be pretty severe. As it won't stop allocating, the system is dead at that point, despite having swap, cause everything gets swapped and the attempt to run a killall takes too long, vlc has allocated the swap by that time.
I also notice that problem when I have torrents in the background (mainly when they get written to or read from the harddisk), but its not that severe then.

I would like to help at debugging that, I also have the usual debugging tools available (gdb, valgrind) as I am a dev myself, but I have not found an option to limit valgrinds heap yet, as crashing the system would not help when trying to investigate the problem. So if I can give some input, just ask please.

greetings

Rémi Denis-Courmont
Developer
Developer
Posts: 15267
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: (Huge) Memleak on Fedora 14?

Postby Rémi Denis-Courmont » 09 Apr 2011 11:48

Make sure you are not using PulseAudio.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

horazont
New Cone
New Cone
Posts: 3
Joined: 09 Apr 2011 10:29
VLC version: 1.1.8
Operating System: Linux

Re: (Huge) Memleak on Fedora 14?

Postby horazont » 09 Apr 2011 13:54

Thanks for the fast reply! I will try using alsa. Just curious, what has pulseaudio to do with this?

greetings

Rémi Denis-Courmont
Developer
Developer
Posts: 15267
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: (Huge) Memleak on Fedora 14?

Postby Rémi Denis-Courmont » 09 Apr 2011 14:35

The PulseAudio plugin in VLC is buggy.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

horazont
New Cone
New Cone
Posts: 3
Joined: 09 Apr 2011 10:29
VLC version: 1.1.8
Operating System: Linux

Re: (Huge) Memleak on Fedora 14?

Postby horazont » 09 Apr 2011 22:34

Hmm… With the vlc alsa plugin I get sound interruptions though… Is there a fix expected for the pulseaudio-plugin-problem?

Rémi Denis-Courmont
Developer
Developer
Posts: 15267
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: (Huge) Memleak on Fedora 14?

Postby Rémi Denis-Courmont » 09 Apr 2011 22:41

That (memory leak) problem is fixed in VLC 1.2 already. Then the ALSA plugin is known to work very poorly against PulseAudio. It's really meant to run directly against the hardware.

Unfortunately, PulseAudio came and changed everything in how audio must be output on Linux. But they did not help the VideoLAN project at all in updating, neither did anyone else. It cannot work like that.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

Owyn2
New Cone
New Cone
Posts: 2
Joined: 14 Aug 2011 12:47

Re: (Huge) Memleak on Fedora 14?

Postby Owyn2 » 14 Aug 2011 13:04

Ran into same problem (again) on Ubuntu 10.04. I had switched to Movie Player as my primary and only used VLC when I had problems with a specific video on Movie Player. Got a problem, used VLC, phone rang, paused player...

Anyway, researched problem properly this time and updated to VLC 1.1.11 via lucid-bleed per instructions on site. Unfortunately I think I still have specific need for pulse audio. Still checking options in that area.
http://www.videolan.org/vlc/download-ubuntu.html

The update fixed the specific problem with Movie Player, probably due to the associated updates (lots). An unintended but pleasant consequence. Re-tested after update JIC.

I noticed that you indicated that the problem is fixed in VLC 1.2.git. I assume that this means it is not fixed in VLC 1.1.11. Will VLC 1.2 be backported to lucid-bleed when released?

Rémi Denis-Courmont
Developer
Developer
Posts: 15267
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: (Huge) Memleak on Fedora 14?

Postby Rémi Denis-Courmont » 14 Aug 2011 16:20

The memory leak is fixed in VLC 1.1.11 but there are other issues with PulseAudio anyway.

And I cannot talk for Lucid-bleed people.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

Owyn2
New Cone
New Cone
Posts: 2
Joined: 14 Aug 2011 12:47

Re: (Huge) Memleak on Fedora 14?

Postby Owyn2 » 14 Aug 2011 16:26

Thanks for the feedback.


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 26 guests