[MPlayer-users] memory leak while playing .wmv file

Nilmoni Deb ndeb at ece.cmu.edu
Tue Oct 22 18:07:01 CEST 2002


I am using ElectricFence to debug for memory leak. While playing:

	ef mplayer -v -v -vo x11 sample2.wmv

mplayer quits with this error message:

	MPlayer interrupted by signal 11 in module: decode_video

As such, mplayer plays the file just fine which means its a case of
(typical) memory leaks that are only detected by tools like EFence.

I have uploaded the file sample2.wmv in ftp.mplayerhq.hu/MPlayer/incoming
.

Here's the complete mplayer output:
---------------------------------------------------------------------

  Electric Fence 2.2.0 Copyright (C) 1987-1999 Bruce Perens <bruce at perens.com>
Using GNU internationalization
Original domain: messages
Original dirname: /usr/share/locale
Current domain: mplayer
Current dirname: /opt/mplayer//share/locale


MPlayer CVS-021021-21:57-3.2 (C) 2000-2002 Arpad Gereoffy (see DOCS)

CPU: Advanced Micro Devices Duron SF Spitfire (Family: 6, Stepping: 1)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 0 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx

Reading /home/ndeb/.mplayer/codecs.conf: 38 audio & 110 video codecs
CommandLine: '-v' '-v' '-vo' 'x11' '/home/ndeb/402157ip.wmv'
get_path('font/font.desc') -> '/home/ndeb/.mplayer/font/font.desc'
font: can't open file: /home/ndeb/.mplayer/font/font.desc
font: can't open file: /opt/mplayer//share/mplayer/font/font.desc
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
Failed to open /dev/rtc: Permission denied (mplayer should be setuid root or /dev/rtc should be readable by the user.)
Using usleep() timing
get_path('input.conf') -> '/home/ndeb/.mplayer/input.conf'
Can't open input config file /home/ndeb/.mplayer/input.conf : No such file or directory
Can't open input config file /opt/mplayer//etc/mplayer/input.conf : No such file or directory
Falling back on default (hardcoded) input config

[[[init getch2]]]

Playing /home/ndeb/402157ip.wmv
Not an URL!
File size is 6124074 bytes
Checking for YUV4MPEG2
Failed: YUV4MPEG2
DEMUXER: freeing demuxer at 0x40be07a0  
Detected ASF file format!

 Title: 
 Author: 
 Copyright: 
 Comment: 
 Rating: 

============ ASF Stream group == START ===
 object size = 38
 stream count=[0x2][2]
   stream id=[0x1][1]
   max bitrate=[0x863f][34367]
   stream id=[0x2][2]
   max bitrate=[0x2ec66][191590]
============ ASF Stream group == END ===
ASF: packets: 2167  flags: 2  max_packet_size: 2825  min_packet_size: 2825  max_bitrate: 225957  preroll: 5100
stream type: guid_audio_stream
stream concealment: guid_audio_conceal_interleave
type: 28 bytes,  stream: 8 bytes  ID: 1
unk1: 0  unk2: 70
FILEPOS=0x154
==> Found audio stream: 1
======= WAVE Format =======
Format Tag: 353 (0x161)
Channels: 2
Samplerate: 22050
avg byte/sec: 4006
Block align: 744
bits/sample: 16
cbSize: 10
Unknown extra header dump: [0] [44] [0] [0] [17] [0] [41] [17] [0] [0] 
ASF: audio scrambling: 1 x 1 x 744
stream type: guid_video_stream
stream concealment: unknown guid 0057fb20-555b-cf11-a8fd00805f5c442b
type: 51 bytes,  stream: 0 bytes  ID: 2
unk1: 0  unk2: 70
FILEPOS=0x1C6
==> Found video stream: 2
======= VIDEO Format ======
  biSize 40
  biWidth 208
  biHeight 160
  biPlanes 1
  biBitCount 24
  biCompression 827739479='WMV1'
  biSizeImage 0
===========================
Found movie at 0x389 - 0x5D6CB8
ASF: 1 audio and 1 video streams found
 82 00 00 11 5D 3E 06 00 00 00 00 65 00 82 01 02
Invalid plen type! assuming plen=0
seg 0: 01 02 00 00 00 00 08 E8 02 00 00 EC 13 00 00 E8
Auto-selected ASF audio ID = 1
seg 1: 82 01 EC 13 00 00 01 32 BA 01 D4 09 8A 0B AD 03
Auto-selected ASF video ID = 2
VIDEO:  [WMV1]  208x160  24bpp
ASF: Searching for audio stream (id:1)
 82 00 00 11 5D 0A 07 64 00 00 00 65 00 82 01 03
Invalid plen type! assuming plen=0
seg 0: 01 03 00 00 00 00 08 E8 02 00 00 48 14 00 00 E8
seg 1: 02 04 92 14 00 00 01 22 EE 00 67 45 08 3D C7 2B
[V] filefmt:6  fourcc:0x31564D57  size:208x160  fps:1000.00  ftime:=0.0010
Clip info: 
 name: 
 author: 
 copyright: 
 comments: 
get_path('sub/') -> '/home/ndeb/.mplayer/sub/'
==========================================================================
Opening audio decoder: [acm] Win32/ACM decoders
======= Win32 (ACM) AUDIO Codec init =======
Input format:
======= WAVE Format =======
Format Tag: 353 (0x161)
Channels: 2
Samplerate: 22050
avg byte/sec: 4006
Block align: 744
bits/sample: 16
cbSize: 10
Unknown extra header dump: [0] [44] [0] [0] [17] [0] [41] [17] [0] [0] 
Output format:
======= WAVE Format =======
Format Tag: 1 (0x1)
Channels: 2
Samplerate: 22050
avg byte/sec: 88200
Block align: 4
bits/sample: 16
cbSize: 0
Loading codec DLL: 'divxa32.acm'
Loaded DLL driver divxa32.acm
Audio codec opened OK! ;-)
Audio ACM output buffer min. size: 139264
Audio ACM input buffer min. size: 1488
INFO: Win32/ACM audio codec init OK!
dec_audio: Allocating 2976 bytes for input buffer
dec_audio: Allocating 139264 + 65536 = 204800 bytes for output buffer
acm converted 744 -> 8192
AUDIO: 22050 Hz, 2 ch, 16 bit (0x10), ratio: 4006->88200 (32.0 kbit)
Selected audio codec: [divx] afm:acm (DivX audio (WMA))
==========================================================================
X11 opening display: :0
vo: X11 color mask:  FFFFFF  (R:FF0000 G:FF00 B:FF)
vo: X11 running at 1024x768 with depth 24 and 32 bpp (":0" => local display)
Disabling DPMS
DPMSDisable stat: 1
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
INFO: libavcodec init OK!
Selected video codec: [ffwmv1] vfm:ffmpeg (FFmpeg M$ WMV1/WMV7)
==========================================================================
ao2: 22050 Hz  2 chans  Signed 16-bit (Little-Endian)
audio_setup: using '/dev/dsp' dsp device
audio_setup: sample format: Signed 16-bit (Little-Endian) (requested: Signed 16-bit (Little-Endian))
audio_setup: using 2 channels (requested: 2)
audio_setup: using 22050 Hz samplerate (requested: 22050)
audio_setup: frags:  32/32  (2048 bytes/frag)  free:  65536
AO: [oss] 22050Hz 2ch Signed 16-bit (Little-Endian)
AO: Description: OSS/ioctl audio output
AO: Author: A'rpi
Building audio filter chain for 22050Hz/2ch/16bit -> 22050Hz/2ch/16bit...
[dummy] Was reinitialized, rate=22050Hz, nch = 2, format = 0x00000010 and bps = 2
[dummy] Was reinitialized, rate=22050Hz, nch = 2, format = 0x00000010 and bps = 2
Start playing...

decaudio: minlen=65536 maxlen=65536 declen=65536 (max=204800)
decaudio: decoding 57344 bytes, max: 196608 (139264)
 82 00 00 10 5D F6 09 C8 00 00 00 65 00 02 06 F6
Invalid plen type! assuming plen=0
seg 0: 02 06 F6 14 00 00 01 22 8A 45 08 EC FE 27 EA 15
 82 00 00 11 5D 01 07 2C 01 00 00 65 00 82 01 04
Invalid plen type! assuming plen=0
seg 0: 01 04 00 00 00 00 08 E8 02 00 00 02 15 00 00 E8
seg 1: 02 08 5B 15 00 00 01 21 F7 00 6F 45 04 38 DF F4
acm converted 744 -> 16384
decaudio: decoding 40960 bytes, max: 180224 (139264)
 82 00 00 11 5D 95 04 90 01 00 00 65 00 82 02 0A
Invalid plen type! assuming plen=0
seg 0: 02 0A BF 15 00 00 01 00 91 00 90 44 07 1F FE B9
seg 1: 02 0B 00 00 00 00 08 BA 05 00 00 E0 15 00 00 BA
 82 00 00 01 5D F4 01 00 00 65 00 82 01 05 00 00
Invalid plen type! assuming plen=0
seg 0: 01 05 00 00 00 00 08 E8 02 00 00 BC 15 00 00 E8
seg 1: 02 0C 00 00 00 00 08 BE 0F 00 00 23 16 00 00 F3
acm converted 744 -> 16384
decaudio: decoding 24576 bytes, max: 163840 (139264)
 82 00 00 01 5D 58 02 00 00 65 00 82 02 0C F3 07
Invalid plen type! assuming plen=0
seg 0: 02 0C F3 07 00 00 08 BE 0F 00 00 23 16 00 00 CB
seg 1: 02 0D 00 00 00 00 08 CC 07 00 00 44 16 00 00 10
 82 00 00 01 5D BC 02 00 00 65 00 83 01 06 00 00
Invalid plen type! assuming plen=0
seg 0: 01 06 00 00 00 00 08 E8 02 00 00 81 16 00 00 E8
seg 1: 02 0D 10 03 00 00 08 CC 07 00 00 44 16 00 00 BC
seg 2: 02 0E 00 00 00 00 08 62 0C 00 00 87 16 00 00 26
acm converted 744 -> 16384
decaudio: decoding 8192 bytes, max: 147456 (139264)
 82 00 00 01 5D 20 03 00 00 65 00 82 01 07 00 00
Invalid plen type! assuming plen=0
seg 0: 01 07 00 00 00 00 08 E8 02 00 00 2F 17 00 00 E8
seg 1: 02 0E 26 03 00 00 08 62 0C 00 00 87 16 00 00 F3
acm converted 744 -> 16384
decaudio: declen=65536 out=65536 (max 65536)
VDec: vo config request - 208 x 160 (preferred csp: Planar YV12)
vo_x11: query_format was called: 32315659 (Planar YV12)
vo_debug: query(Planar YV12) returned 0x445 (i=0) 
vo_x11: query_format was called: 30323449 (Planar I420)
vo_debug: query(Planar I420) returned 0x445 (i=1) 
vo_x11: query_format was called: 56555949 (Planar IYUV)
vo_debug: query(Planar IYUV) returned 0x445 (i=2) 
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO Config (208x160->208x160,flags=0,'MPlayer',0x32315659)
VO: [x11] 208x160 => 208x160 Planar YV12 
VO: Description: X11 ( XImage/Shm )
VO: Author: Aaron Holtzman <aholtzma at ess.engr.uvic.ca>
vo_x11: query_format was called: 32315659 (Planar YV12)
Sharing memory.
1.000                                                             |
1.000                                                             |
Using MMX2 for colorspace transform
SwScaler: using unscaled Planar YV12 -> BGR 32-bit special converter
using IP
*** [vo] Allocating mp_image_t, 208x160x12bpp YUV planar, 49920 bytes
(imgfmt: 32315659, planes: 415a4a80,415aed00,415acc80 strides: 208,104,104, chroma: 104x80, shift: h:1,v:1)


OSD chg: 3  V: no  pb:-1  
OSD chg: 2  V: no  pb:-1  
A:   5.4 V:   5.1 A-V:  0.267 ct:  0.000    1/  1   0%  0%  0.0% 0 0 0%
decaudio: minlen=22528 maxlen=65536 declen=22528 (max=204800)
decaudio: decoding 14336 bytes, max: 196608 (139264)
 82 00 00 01 5D 84 03 00 00 65 00 84 02 0E 19 0B
Invalid plen type! assuming plen=0
seg 0: 02 0E 19 0B 00 00 08 62 0C 00 00 87 16 00 00 49
seg 1: 02 0F 00 00 00 00 08 F5 02 00 00 A8 16 00 00 F5
seg 2: 02 10 00 00 00 00 08 67 06 00 00 CA 16 00 00 67
seg 3: 02 11 00 00 00 00 08 56 0A 00 00 0C 17 00 00 14
 82 00 00 01 5D E8 03 00 00 65 00 82 01 08 00 00
Invalid plen type! assuming plen=0
seg 0: 01 08 00 00 00 00 08 E8 02 00 00 FB 17 00 00 E8
seg 1: 02 11 14 00 00 00 08 56 0A 00 00 0C 17 00 00 F3
acm converted 744 -> 16384
decaudio: declen=22528 out=22528 (max 65536)
using IP
*** [vo] Allocating mp_image_t, 208x160x12bpp YUV planar, 49920 bytes
(imgfmt: 32315659, planes: 415c2a80,415ccd00,415cac80 strides: 208,104,104, chroma: 104x80, shift: h:1,v:1)


A:   5.4 V:   5.1 A-V:  0.264 ct:  0.000    2/  2   0%  0%  0.0% 1 0 0%
avg. framerate: 6 fps             
using IP


A:   5.4 V:   5.1 A-V:  0.280 ct:  0.000    3/  3   0%  0%  0.0% 2 0 0%
decaudio: minlen=2048 maxlen=65536 declen=2048 (max=204800)
decaudio: declen=2048 out=2048 (max 65536)
using IP


A:   5.4 V:   5.3 A-V:  0.118 ct:  0.012    4/  4   0%  0%  0.0% 2 0 0%
using IP


A:   5.4 V:   5.3 A-V:  0.137 ct:  0.026    5/  5   0%  0%  0.0% 3 0 0%
decaudio: minlen=2048 maxlen=65536 declen=2048 (max=204800)
decaudio: decoding 2048 bytes, max: 204800 (139264)
 82 00 00 01 5D 4C 04 00 00 65 00 83 02 11 07 08
Invalid plen type! assuming plen=0
seg 0: 02 11 07 08 00 00 08 56 0A 00 00 0C 17 00 00 4F
seg 1: 02 12 00 00 00 00 08 16 03 00 00 2E 17 00 00 16
seg 2: 02 13 00 00 00 00 08 30 12 00 00 70 17 00 00 65
 82 00 00 01 5D B0 04 00 00 65 00 82 01 09 00 00
Invalid plen type! assuming plen=0
seg 0: 01 09 00 00 00 00 08 E8 02 00 00 AE 18 00 00 E8
seg 1: 02 13 65 05 00 00 08 30 12 00 00 70 17 00 00 F3
acm converted 744 -> 16384
decaudio: declen=2048 out=2048 (max 65536)
using IP


A:   5.4 V:   5.4 A-V:  0.063 ct:  0.032    6/  6   0%  0%  0.0% 3 0 0%
using IP


A:   5.4 V:   5.4 A-V:  0.078 ct:  0.040    7/  7   0%  0%  0.0% 3 0 0%
decaudio: minlen=2048 maxlen=65536 declen=2048 (max=204800)
decaudio: declen=2048 out=2048 (max 65536)
using IP


A:   5.4 V:   5.5 A-V: -0.020 ct:  0.038    8/  8   0%  0%  0.0% 3 0 0%
using IP


A:   5.5 V:   5.5 A-V:  0.001 ct:  0.038    9/  9   0%  0%  0.0% 3 0 0%
decaudio: minlen=2048 maxlen=65536 declen=2048 (max=204800)
decaudio: declen=2048 out=2048 (max 65536)
using IP


A:   5.5 V:   5.6 A-V: -0.022 ct:  0.036   10/ 10   0%  0%  0.0% 3 0 0%
decaudio: minlen=6144 maxlen=65536 declen=6144 (max=204800)
decaudio: declen=6144 out=6144 (max 65536)
using IP


A:   5.6 V:   5.6 A-V: -0.015 ct:  0.034   11/ 11   0%  0%  0.0% 3 0 0%
decaudio: minlen=4096 maxlen=65536 declen=4096 (max=204800)
decaudio: declen=4096 out=4096 (max 65536)
using IP


MPlayer interrupted by signal 11 in module: decode_video 
- MPlayer crashed by bad usage of CPU/FPU/RAM. Recompile MPlayer with --enable-debug and make a 'gdb' backtrace and disassembly. For details, see DOCS/bugreports.html section 5.b.
- MPlayer crashed. This shouldn't happen. It can be a bug in the MPlayer code _or_ in your drivers _or_ in your gcc version. If you think it's MPlayer's fault, please read DOCS/bugreports.html and follow instructions there. We can't and won't help unless 
you provide these informations when reporting a possible bug.



*** uninit(0xECB)
Uninit audio filters...
uninit audio: acm  
Total Unfree 4096 bytes cnt 1 [(nil),0]
uninit video: ffmpeg  
DEMUXER: freeing demuxer at 0x40be07a0  
DEMUXER: freeing sh_audio at 0x40bfef5c  
DEMUXER: freeing sh_video at 0x40c02f7c  
Successfully enabled DPMS

[[[uninit getch2]]]
vo: uninit ...
max framesize was 4030 bytes






thanks
- Nil




More information about the MPlayer-users mailing list