[MPlayer-users] Bug: memory leak in MPlayer

roderick Jansen roderickjansen at hotmail.com
Tue Oct 7 12:10:42 CEST 2003


>
>[Automatic answer: RTFM (read DOCS, FAQ), also read DOCS/bugreports.html]
>* roderick Jansen <roderickjansen at hotmail.com> [2003-09-26 16:26]:
> > I have found a memory leak in MPlayer. It occurs if you run:
> > mplayer -vo svga  -vf scale=640:480 -playlist playlist
> > On a FreeBSD 5.1 machine with svgalib 1.4.2
> > If you run it with -vo null, or with -ao null it will also leak
> > but if you set BOTH the audio and video output to null, the
> > leak will be gone. The leak that I am talking about can be
> > detected by watching the size of the mplayer process
> > growing each time a new file (playlist entry) is started
> > After something like 12 hours of playing short (+/- 10 sec)
> > videoclips it has eaten so much memory that the whole aplication
> > gets terminated because the system's swapspace is full.
>
>Can you try and report success with the latest cvs.
>There should be a memleak fix but maybe you're triggering another...
>

First of all I would like to apologize for my late reaction.

I have tested with the MPlayer-20031002
cvs snapshot and the MPlayer-1.0pre2 release. The problem still exists.
I have tested this bu running at the same time::
while (test 1) do  top >> /tops ;sleep 60 ;done
mplayer -fs -vf scale=640:480 -playlist playlist
(Using svgalib)
Playlist is containing 7 short (+/- 1 minute) videoclips repeated a lot of 
times

(I could not use -loop because that gives me  a segmentation fault. I guess
that is a diferent bug. I have not checked if that is a known bug yet.)

After some time I ran:
root at roadrunner:/usr/videobrick/clips/stresstest> cat tops |grep mplayer
5946 root      56   0 24568K 12180K RUN      0:42 97.95% 86.57% mplayer
5946 root      57   0 24568K 12200K RUN      1:42 98.12% 97.56% mplayer
5946 root      57   0 25764K 13144K RUN      2:41 98.66% 98.63% mplayer
5946 root      58   0 25764K 13188K RUN      3:41 99.02% 99.02% mplayer
5946 root      59   0 25764K 13356K RUN      4:40 97.71% 97.71% mplayer
5946 root      59   0 25764K 13348K RUN      5:40 97.56% 97.56% mplayer
5946 root      60   0 25764K 13344K RUN      6:39 98.44% 98.44% mplayer
5946 root      60   0 25764K 13352K RUN      7:39 98.83% 98.83% mplayer
5946 root      60   0 25892K 13488K RUN      8:38 98.73% 98.73% mplayer
5946 root      61   0 26224K 13796K RUN      9:37 98.29% 98.29% mplayer
5946 root      62   0 26576K 14160K RUN     10:36 97.22% 97.22% mplayer
5946 root      62   0 26360K 13952K RUN     11:36 99.02% 99.02% mplayer
5946 root      62   0 27036K 14632K RUN     12:36 98.58% 98.58% mplayer
5946 root      63   0 27412K 15080K RUN     13:35 98.83% 98.83% mplayer
5946 root      64   0 28232K 15640K RUN     14:34 97.41% 97.41% mplayer
5946 root      64   0 28232K 15648K RUN     15:34 98.88% 98.88% mplayer
5946 root      64   0 28368K 15956K RUN     16:34 98.29% 98.29% mplayer
5946 root      64   0 28624K 16192K RUN     17:33 98.39% 98.39% mplayer
5946 root      64   0 28304K 15888K RUN     18:33 99.02% 99.02% mplayer
5946 root      64   0 28748K 16336K RUN     19:32 98.63% 98.63% mplayer
5946 root      64   0 29416K 17000K RUN     20:32 97.71% 97.71% mplayer
5946 root      64   0 29800K 17460K RUN     21:31 98.10% 98.10% mplayer
5946 root      64   0 29464K 17136K RUN     22:31 99.02% 99.02% mplayer
5946 root      52   0 30608K 18024K RUN     23:30 98.19% 98.19% mplayer
5946 root      52   0 30608K 18024K RUN     24:30 99.02% 99.02% mplayer
5946 root      53   0 30992K 18380K RUN     25:29 97.46% 97.46% mplayer
5946 root      53   0 30672K 18076K RUN     26:29 98.78% 98.78% mplayer
5946 root      53   0 31124K 18524K RUN     27:28 97.75% 97.75% mplayer
5946 root      54   0 31124K 18532K RUN     28:28 99.02% 99.02% mplayer
5946 root      54   0 31960K 19440K RUN     29:27 98.68% 98.68% mplayer
5946 root      55   0 31860K 19352K RUN     30:27 98.39% 98.39% mplayer
5946 root      56   0 33056K 20280K RUN     31:26 99.02% 99.02% mplayer
5946 root      56   0 33056K 20288K RUN     32:26 99.02% 99.02% mplayer
5946 root      57   0 33312K 20720K RUN     33:25 98.19% 98.19% mplayer
5946 root      57   0 33056K 20464K RUN     34:25 98.14% 98.14% mplayer
5946 root      57   0 33708K 21112K RUN     35:24 98.88% 98.88% mplayer
5946 root      58   0 33496K 20908K RUN     36:24 99.02% 99.02% mplayer
5946 root      59   0 34756K 22240K RUN     37:24 97.75% 97.75% mplayer
5946 root      58   0 34756K 22248K RUN     38:23 97.46% 97.46% mplayer
5946 root      59   0 35952K 23020K RUN     39:22 98.44% 98.44% mplayer
5946 root      60   0 35952K 23028K RUN     40:22 99.02% 99.02% mplayer
5946 root      60   0 35952K 23204K RUN     41:22 98.93% 98.93% mplayer
5946 root      61   0 35952K 23192K RUN     42:21 99.02% 99.02% mplayer
5946 root      61   0 36104K 23352K RUN     43:20 98.05% 98.05% mplayer
5946 root      62   0 35952K 23208K RUN     44:20 99.02% 99.02% mplayer
5946 root      62   0 36548K 23796K RUN     45:20 98.63% 98.63% mplayer

As you can see mplayer is still growing.



Kind regards,

Roderick Jansen

_________________________________________________________________
The new MSN 8: smart spam protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail



More information about the MPlayer-users mailing list