[MPlayer-users] Re: memleak in cvs

Ed Sweetman safemode at speakeasy.net
Tue Aug 20 03:41:01 CEST 2002


On Mon, 2002-08-19 at 21:09, Ross Lippert wrote:
> 
> Up until my most recent CVS checkout a couple weeks ago, I was using
> mplayer as a screensaver (I kind of thought it was cool to play something
> on infinite repeat when idle -- so I'm weird).
> 
> But recently I have noticed that if I leave it idle all day, then all
> sorts of 'no swap left' messages start to appear on the console.  I have
> since discontinued this practise.
> 
> I'm playing mpeg2's.  Nothing fancy there.
> 
> Anyhow, I just want to put in my $.02 and suggest that yeah there is a leak
> and you can easily demonstrate it by doing something like
> 
> mplayer *.mpg
> 
> in a file full of a few hours of mpg.
> 
> If no one has fixed this recently, I can certainly run it again as my
> screensaver and take detailed readings.
> 
> -r
> 

I'm not sure how many hours it would take for the machine to run out of
memory due to mplayer,  but i know it will consume hundreds of MB of
memory on dvd rips during the course of the movie.  Perhaps it's not the
file loading part but freeing the decoded video data, since the larger
resolution of dvd would consume much more memory than tv
resolution...assuming you're not talking about such clips....god that
would be a huge waste of space :)   

I'm just saying,  I see the memory consumption much more quickly than
mulitple hours of playing but more testing needs to be done and by more
people.   

I've attached my configure output   ./configure --enable-gui 

-------------- next part --------------
Detected operating system: Linux
Detected host architecture: i386
Checking for gcc version ... 2.95.4, ok
Checking for CPU vendor ... AuthenticAMD (6:4:2)
Checking for CPU type ...  AMD Athlon(tm) processor
Checking for GCC & CPU optimization abilities ... i686
Checking for kernel support of mmx ... yes
Checking for kernel support of mmx2 ... yes
Checking for kernel support of 3dnow ... yes
Checking for kernel support of 3dnowex ... yes
Checking for mtrr support ... yes
Checking for assembler (as 2.12.90.0.15) ... ok
Checking for Linux kernel version ... 2.4.19, ok
Checking for awk ... mawk
Checking for extra headers ... none
Checking for extra libs ... none
Checking for i18n ... no
Checking for setlocale() ... yes
Checking for language ... using en
Checking for enable sighandler ... yes
Checking for runtime cpudetection ... no
Checking for restrict keyword ... __restrict
Checking for kstat ... no
Checking for posix4 ... no
Checking for nanosleep ... yes
Checking for socklib ... yes (using -lnsl)
Checking for inet_pton() ... yes (using -lnsl)
Checking for inttypes.h (required) ... yes
Checking for stddef.h ... yes
Checking for malloc.h ... yes
Checking for memalign() ... yes
Checking for alloca.h ... yes
Checking for mman.h ... yes
Checking for dynamic loader ... yes
Checking for pthread ... yes (using -lpthread)
Checking for sys/soundcard.h ... yes
Checking for sys/dvdio.h ... no
Checking for sys/cdio.h ... no
Checking for linux/cdrom.h ... yes
Checking for dvd.h ... no
Checking for BSDI dvd.h ... no
Checking for userspace SCSI headers (Solaris) ... no
Checking for termcap ... yes
Checking for termios ... yes (using sys/termios.h)
Checking for shm ... yes
Checking for linux devfs ... no
Checking for strsep() ... yes
Checking for vsscanf() ... yes
Checking for 3dfx ... no
Checking for tdfxfb ... no
Checking for DirectFB headers presence ... not found
Checking for DirectFB ... no
Checking for X11 headers presence ... yes (using /usr/include)
Checking for X11 libs presence ... yes (using /usr/X11R6/lib)
Checking for X11 ... yes
Checking for DPMS ... yes (using Xdpms 4)
Checking for Xv ... yes
Checking for Xinerama ... yes
Checking for Xxf86vm ... yes
Checking for DGA ... yes (using DGA 2.0)
Checking for OpenGL ... yes
Checking for /dev/mga_vid ... no
Checking for xmga ... no
Checking for GGI ... no
Checking for AA ... no
Checking for SVGAlib ... no
Checking for FBDev ... no
Checking for DVB ... no (specify path to DVB/ost/include with --with-extraincdir=DIR)
Checking for PNG support ... yes
Checking for JPEG support ... yes
Checking for GIF89a support ... yes
Checking for VESA support ... yes
Checking for SDL ... yes (using sdl-config)
Checking for NAS ... yes
Checking for DXR2 ... no
Checking for DXR3/H+ ... no
Checking for libmp1e ... no
Checking for libfame ... no
Checking for OSS Audio ... yes
Checking for aRts ... yes
Checking for ALSA audio ... yes (using alsa 0.9.x and alsa/asoundlib.h)
Checking for Sun audio ... no
Checking for Sun mediaLib ... no
Checking for SGI audio ... no
Checking for VCD support ... ok
Checking for DVD support (libmpdvdkit) ... yes
Checking for DVD support (libcss - old style) ... no
Checking for DVD support (libdvdread - new style) ... disabled by libmpdvdkit
Checking for DVD support (libdvdnav) ... no
Checking for cdparanoia ... no
Checking for zlib ... yes
Checking for RTC ... yes
Checking for mad support ... yes
Checking for OggVorbis support ... yes
Checking for FAAD (AAC) support ... no
Checking for Win32 DLL support ... yes (using /usr/local/lib/win32)
Checking for DirectShow ... yes
Checking for XAnim DLL ... no (no suitable directory found - see DOCS/codecs.html)
Checking for RealPlayer DLL ... no (no suitable directory found - see DOCS/codecs.html)
Checking for LIVE.COM Streaming Media libraries ... no
Checking for iconv ... yes
Checking for FFmpeg libavcodec (static) ... yes
Checking for libdv-0.9.5 (for mencoder) ... no
Checking for zr ... no
Checking for XviD ... no
Checking for DivX4linux/DivX5linux/OpenDivX decore ... DivX5linux (with libdivxdecore.so)
Checking for libmp3lame (for mencoder) ... yes
Checking for XviD/DivX4linux encore (for mencoder) ... DivX4linux (with libdivxencore.so)
Checking for mencoder ... yes
Checking for fastmemcpy ... yes
Checking for TV interface ... yes
Checking for *BSD BrookTree 848 TV interface ... no
Checking for Video 4 Linux TV interface ... yes
Checking for audio select() ... yes
Checking for streaming ... yes
Checking for byte order ... Little Endian
Checking for GUI ... yes
Checking for XShape extension ... yes
Checking for gtk version ... 1.2.10 (using gtk-config)
Checking for glib version ... 1.2.10 (using glib-config)
Creating Gui/config.mak
Checking for ftello() ... yes
Checking for vidix ... yes
Checking for new input ... yes
Checking for joystick ... no
Checking for lirc ... no
Creating config.mak
Creating config.h
Creating libvo/config.mak
Creating libao2/config.mak
Creating help_mp.h

Config files successfully generated by ./configure !

  Install prefix: /usr/local
  Data directory: /usr/local/share/mplayer
  Config direct.: /usr/local/share/mplayer

  Byte order: Little Endian
  Optimizing for: i686 mmx mmx2 3dnow 3dnowex mtrr
  
  Enabled optional drivers:
    Input: network tv-v4l tv mpdvdkit vcd 
    Codecs: divx5linux libavcodec directshow win32 libvorbis libmad 
    Audio output: alsa9 arts oss nas sdl mpegpes(file) 
    Video output: xvidix sdl vesa gif89a jpeg png mpegpes(file) opengl dga xv x11 
  Disabled optional drivers:
    Input: tv-bsdbt848 cdda dvdnav dvdread dvdcss 
    Codecs: divx4linux xvid real xanim 
    Audio output: sgi sun dxr2 
    Video output: zr dxr3 dxr2 fbdev svga aa ggi xmga mga directfb tdfxfb 3dfx 

'config.h' and 'config.mak' contain your configuration options.
Note: If you alter theses files (for instance CFLAGS) MPlayer may no longer
      compile *** DO NOT REPORT BUGS if you tweak these files ***

'make' will now compile MPlayer and 'make install' will install it.
Note: On non-Linux systems you might need to use 'gmake' instead of 'make'.

Please check mtrr settings at /proc/mtrr (see DOCS/video.html#mtrr)


Check configure.log if you wonder why an autodetection failed (check whether the
development headers/packages are installed).

If you suspect a bug, please read DOCS/bugreports.html.



More information about the MPlayer-users mailing list