Page 1 of 1

Memory leaks with 0.7.0-test3

Posted: 31 Dec 2003 11:38
by tsar
Using xwwindows interface on win386/XP and running latest 0.7.0-test3 binaries as downloaded from VLC site.

I think there are leaks of memory while viewing repeatedly simple video files. The easier way to reproduce the problem is to set up loop display on any single file in a reading list and go. Video works fine and display output loops ok repeatedly. However, system memory allocation grows slowly up to the max before swapping...

I am looping as an exercice on an AVI file and have tried on both Hardware YUV overlay and Software RGB DirectX ouput types... same problem.

Posted: 31 Dec 2003 23:35
by Dnumgis
How bad is this leak? Is it a show stopper that need to be fixed before a release? And could you provide us with a sample file that has this behaviour?

Posted: 01 Jan 2004 15:37
by tsar
Yes I think it should get fixed.

Where can I ftp/post a test avi file for you?

In any case, I think the bug is reproductible with any file potentially.

a) add one or many files in the reader list
b) check repeat all box
c) go display
d) look the memory growing and growing...

Happy new year !!

Posted: 01 Jan 2004 17:25
by Anil
Where can I ftp/post a test avi file for you?
If you can't put it online somewhere, upload it to ftp.videolan.org/incoming (a few Mbytes should be enough)
In any case, I think the bug is reproductible with any file potentially.
Can you narrow the leak to one specific module (like video output, audio output...) ?
To track this down, try to play only the audio track of your file,
or only the video, or none of them
(you can disable audio and/or video in the prefs panel)

Thanks

I also noticed leakage problem

Posted: 01 Jan 2004 18:31
by irkuck
I am running vlc 0.7.0-test2 on
Win XP.

On 01.01.2004 European HDTV started broadcast from Astra satellite and I am testing it.
The streams are of course MPEG-2
transport with bit rate about 18 Mb/s.

What I noticed is that vlc plays fine but when broadcast of one piece stops and switches to another I can see from task manager that page memory usage starts growing and grows all the time until bad problems appear like breaks in audio and video.

This may correspond to the loop
video problem report above. It might be something arising when
player is activated and starts playing new piece of video stream.

When player plays one piece of video stream however long it is playing it fine.

Posted: 01 Jan 2004 21:30
by zorglub
The leak is in input buffers management

The buffer allocated on line 195 of src/input/input_ext-plugins.c doesn't seem to be released correctly. This seems to happen on every types of streams.

Posted: 02 Jan 2004 21:02
by tsar
Then, no need to upload an AVI file for you I guess, it happends well to any files. The problem is easily seen I agree with small files displayed repeatedly. Let me know if you need me to test a fix for this.

Posted: 03 Jan 2004 01:45
by Gibalou
Should be fixed now :)

Posted: 03 Jan 2004 11:10
by tsar
Thank you sir.
What binaries shall we use to test ?

Posted: 03 Jan 2004 14:58
by Gibalou
VLC 0.7.0 will be announced within a few hours... stay tuned :)

Posted: 05 Jan 2004 12:44
by tsar
However, (part of) the bug remains in 0.7.0...

Please use ftp.videolan.org/incoming/DANGER.avi as an example file.

Playing that file repeatedly is enough to highlight memory growth.

Posted: 05 Jan 2004 21:31
by Anil
Please use ftp.videolan.org/incoming/DANGER.avi as an example file.
File moved to ftp://ftp.videolan.org/pub/streams/DANGER.avi

Posted: 27 Apr 2004 04:17
by chenvc
Yes. The vlc-0.7.1 yet have the memory leak! Indeed the vlc-0.7.2-test1 yet have the meomry leak. It will be growing and growing when play file.