[MPlayer-users] Re: high cpu load when trying to play mss stream

Jos van den Oever jos at vandenoever.info
Tue Jan 21 17:34:05 CET 2003


Here's some more info on the bug:

The bug also occurs on RedHat 8.0 with gcc 3.2.
Here's the output of running mplayer with valgrand with debug info. It 
basically says that the problem shows up at asf_mmst_streaming.c:93, 
asf_mmst_streaming.c:463 and asf_mmst_streaming.c:478.

When I play the file now, the stream is sometimes played. When the stream is 
not available (too many listeners), the program freezes. This should not lead 
to 100% CPU usage, but it does. Maybe this is unrelated to the memory 
problems valgrind reports.

Also when running with valgrind and after filling the cache the program 
freezes and uses GB's of memory. This might be a valgrind problem though.

oever at pc43:~> valgrind mplayer mms://media2.omroep.nl:1755/radio3live-64
==10275== Memcheck, a.k.a. Valgrind, a memory error detector for x86-linux.
==10275== Copyright (C) 2002, and GNU GPL'd, by Julian Seward.
==10275== Using valgrind-1.9.3, a program instrumentation system for 
x86-linux.
==10275== Copyright (C) 2000-2002, and GNU GPL'd, by Julian Seward.
==10275== Estimated CPU clock rate is 1728 MHz
==10275== For more details, rerun with: -v
==10275==
Using GNU internationalization
Original domain: messages
Original dirname: /usr/share/locale
Current domain: mplayer
Current dirname: /usr/local/share/locale


MPlayer 0.90rc3-2.95.3 (C) 2000-2003 Arpad Gereoffy (see DOCS)

CPU: Intel Pentium P54C (Family: 5, Stepping: 11)
Detected cache-line size is 32 bytes
CPUflags:  MMX: 0 MMX2: 0 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0
Compiled with Runtime CPU Detection - WARNING - this is not optimal!
To get best performance, recompile MPlayer with --disable-runtime-cpudetection
Reading config file /usr/local/etc/mplayer/mplayer.conf
Reading config file /home/oever/.mplayer/config
Reading /home/oever/.mplayer/codecs.conf: can't open 
'/home/oever/.mplayer/codecs.conf': No such file or directory
Reading /usr/local/etc/mplayer/codecs.conf: 49 audio & 130 video codecs
Font /home/oever/.mplayer/font/font.desc loaded successfully! (206 chars)
Failed to open /dev/rtc: Permission denied (mplayer should be setuid root or 
/dev/rtc should be readable by the user.)
Using usleep() timing
Input config file /home/oever/.mplayer/input.conf parsed : 8 binds
Setting up LIRC support...
mplayer: could not connect to socket
mplayer: Permission denied
Failed to open LIRC support.
You will not be able to use your remote control.

Playing mms://media2.omroep.nl:1755/radio3live-64
Resolving media2.omroep.nl ...
Connecting to server media2.omroep.nl[212.153.79.27]:1755 ...
read: Operation now in progress
Resolving media2.omroep.nl ...
Connecting to server media2.omroep.nl[212.153.79.27]:1755 ...
connected
==10275== Syscall param write(buf) contains uninitialised or unaddressable 
byte(s)
==10275==    at 0x405C4324: __libc_write (in /lib/libc.so.6)
==10275==    by 0x814941E: send_command (asf_mmst_streaming.c:93)
==10275==    by 0x8149EAC: asf_mmst_streaming_start (asf_mmst_streaming.c:461)
==10275==    by 0x8147D1B: asf_streaming_start (asf_streaming.c:75)
==10275==    Address 0xBFFE25B4 is on thread 1's stack
==10275==
==10275== Syscall param read(buf) contains unaddressable byte(s)
==10275==    at 0x405C42E4: __libc_read (in /lib/libc.so.6)
==10275==    by 0x8149EC4: asf_mmst_streaming_start (asf_mmst_streaming.c:463)
==10275==    by 0x8147D1B: asf_streaming_start (asf_streaming.c:75)
==10275==    by 0x8137298: streaming_start (network.c:909)
==10275==    Address 0xC0000000 is not stack'd, malloc'd or free'd
==10275==
==10275== Syscall param read(buf) contains unaddressable byte(s)
==10275==    at 0x405C42E4: __libc_read (in /lib/libc.so.6)
==10275==    by 0x8149F21: asf_mmst_streaming_start (asf_mmst_streaming.c:478)
==10275==    by 0x8147D1B: asf_streaming_start (asf_streaming.c:75)
==10275==    by 0x8137298: streaming_start (network.c:909)
==10275==    Address 0xC0000000 is not stack'd, malloc'd or free'd
unknown object
unknown object
file object, packet length = 3002 (3002)
unknown object
stream object, stream id: 1
unknown object
unknown object
data object
mmst packet_length = 3002
Cache size set to 64 KBytes
Connected to server: media2.omroep.nl
Cache fill: 12.50% (8192 bytes)    ASF file format detected.
============ ASF Stream group == START ===
 object size = 32
 stream count=[0x1][1]
   stream id=[0x1][1]
   max bitrate=[0xfc88][64648]
============ ASF Stream group == END ===
Clip info:
 name:
 author:
 copyright:
 comments:
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders


MPlayer interrupted by signal 2 in module: enable_cache


MPlayer interrupted by signal 2 in module: init_audio_codec
==10275==
==10275== ERROR SUMMARY: 3 errors from 3 contexts (suppressed: 33 from 3)
==10275== malloc/free: in use at exit: 1365723 bytes in 2356 blocks.
==10275== malloc/free: 2861 allocs, 505 frees, 6069535 bytes allocated.
==10275== For a detailed leak analysis,  rerun with: --leak-check=yes
==10275== For counts of detected errors, rerun with: -v



More information about the MPlayer-users mailing list