Opened 9 years ago

Last modified 9 years ago

#1834 new defect

another pulseaudio freeze bug

Reported by: marticak@… Owned by: reimar
Priority: normal Component: core
Version: HEAD Severity: normal
Keywords: Cc: compn
Blocked By: Blocking:
Reproduced by developer: Analyzed by developer:

Description

Playback stops when playing certain type of mp3s.

It stops either in xmms or in mplayer, so it probably is not a problem in mplayer itself. This happens just on my i686 machine. On my x86_64 machine this does not happen. It happened either using debian lenny or fedora14 Laughlin.

I'm attaching the strace output(strace -f -p mplayer).

$ uname -r
2.6.35.9-64.fc14.i686.PAE

$ cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel?
cpu family : 15
model : 6
model name : Intel(R) Pentium(R) D CPU 2.80GHz
stepping : 2
cpu MHz : 2813.739
cache size : 2048 KB
physical id : 0
siblings : 2
core id : 0
cpu cores : 2
apicid : 0
initial apicid : 0
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 6
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe lm constant_tsc pebs bts pni dtes64 monitor ds_cpl vmx cid cx16 xtpr pdcm lahf_lm tpr_shadow
bogomips : 5627.47
clflush size : 64
cache_alignment : 128
address sizes : 36 bits physical, 48 bits virtual
power management:

processor : 1
vendor_id : GenuineIntel?
cpu family : 15
model : 6
model name : Intel(R) Pentium(R) D CPU 2.80GHz
stepping : 2
cpu MHz : 2813.739
cache size : 2048 KB
physical id : 0
siblings : 2
core id : 1
cpu cores : 2
apicid : 1
initial apicid : 1
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 6
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe lm constant_tsc pebs bts pni dtes64 monitor ds_cpl vmx cid cx16 xtpr pdcm lahf_lm tpr_shadow
bogomips : 5627.03
clflush size : 64
cache_alignment : 128
address sizes : 36 bits physical, 48 bits virtual
power management:

Attachments (1)

strace.txt.gz (3.8 KB) - added by marticak@… 9 years ago.
strace output

Download all attachments as: .zip

Change History (10)

Changed 9 years ago by marticak@…

strace output

comment:1 Changed 9 years ago by marticak@…

Console output looks like this:

$ mplayer xxxx.mp3
MPlayer SVN-r31628-4.4.4 (C) 2000-2010 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

xxxx.mp3.
Audio only file format detected.
Clip info:

Title:
Artist:
Album:
Year:
Comment:
Track: 1
Genre:

==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 44100 Hz, 2 ch, s16le, 320.0 kbit/22.68% (ratio: 40000->176400)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
AO: [pulse] 44100Hz 2ch s16le (2 bytes per sample)
Video: no video

big_values too large! 444.0 (07:24.0) 0.7%
Blocktype == 0 and window-switching == 1 not allowed.
Blocktype == 0 and window-switching == 1 not allowed.
A: 129.7 (02:09.6) of 444.0 (07:24.0) 25.8%

Exiting... (End of file)
$

comment:2 Changed 9 years ago by reimar

Your MPlayer version is nearly half a year old, we do not support such old versions.
The issue is probably some bug in mp3lib, which MPlayer no longer uses by default.

comment:3 Changed 9 years ago by marticak@…

Well then your website [1] points to repositories which aren't up-to-date. From [1] I went to [2] and followed "Command Line Setup using rpm" for Fedora 14.

Where can I get up-to-date RPMs for Fedora 14 then?

[1] http://www.mplayerhq.hu/design7/dload.html
[2] http://rpmfusion.org/Configuration

comment:4 Changed 9 years ago by reimar

No idea, we are only responsible for the source, which you can obviously compile yourself.
Otherwise you can test -ac ffmp3 or -ac ffmp3float, maybe it already works with your binary.

comment:5 Changed 9 years ago by marticak@…

Hm, with both of those codecs the result is the same:

$ mplayer xxxx.mp3 -ac ffmp3float


MPlayer SVN-r31628-4.4.4 (C) 2000-2010 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing xxxx.mp3.
Audio only file format detected.
Clip info:
...
==========================================================================
Forced audio codec: ffmp3float
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 2 ch, floatle, 320.0 kbit/11.34% (ratio: 40000->352800)
Selected audio codec: [ffmp3float] afm: ffmpeg (FFmpeg MPEG layer-3 audio)
==========================================================================
AO: [pulse] 44100Hz 2ch floatle (4 bytes per sample)
Video: no video

[mp3float @ 0xa048370] big_values too big4%
[mp3float @ 0xa048370] invalid block type
A: 129.8 (02:09.8) of 444.0 (07:24.0) 123.7%

Exiting... (End of file)

$ mplayer xxxx.mp3 -ac ffmp3


MPlayer SVN-r31628-4.4.4 (C) 2000-2010 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing xxxx.mp3.
Audio only file format detected.
Clip info:
...
==========================================================================
Forced audio codec: ffmp3
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 2 ch, s16le, 320.0 kbit/22.68% (ratio: 40000->176400)
Selected audio codec: [ffmp3] afm: ffmpeg (FFmpeg MPEG layer-3 audio)
==========================================================================
AO: [pulse] 44100Hz 2ch s16le (2 bytes per sample)
Video: no video

[mp3 @ 0xaa6e370] big_values too big) 1.2%
[mp3 @ 0xaa6e370] invalid block type
A: 129.8 (02:09.8) of 444.0 (07:24.0) 62.8%

Exiting... (End of file)

Do you think recompilation could help here?

comment:6 Changed 9 years ago by marticak@…

Checked out from svn and recompiled, but the problem persists:

$ ./mplayer xxxx.mp3 -ac ffmp3
MPlayer SVN-r32681-4.5.1 (C) 2000-2010 MPlayer Team

Playing xxxx.mp3.
Audio only file format detected.
Clip info:
....
==========================================================================
Forced audio codec: ffmp3
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 2 ch, s16le, 320.0 kbit/22.68% (ratio: 40000->176400)
Selected audio codec: [ffmp3] afm: ffmpeg (FFmpeg MPEG layer-3 audio)
==========================================================================
[AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory
AO: [alsa] 44100Hz 2ch s16le (2 bytes per sample)
Video: no video

A: 119.0 (01:59.0) of 444.0 (07:24.0) 0.7%
[AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory
AO: [alsa] 44100Hz 1ch s16le (2 bytes per sample)
A: 119.6 (01:59.5) of 444.0 (07:24.0) 0.7%
[mp3 @ 0x894a120]big_values too big
[AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory
AO: [alsa] 44100Hz 2ch s16le (2 bytes per sample)
A: 119.6 (01:59.6) of 444.0 (07:24.0) 0.7%
[AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory
AO: [alsa] 44100Hz 1ch s16le (2 bytes per sample)
A: 119.6 (01:59.6) of 444.0 (07:24.0) 0.7%
[mp3 @ 0x894a120]invalid block type
[AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory
AO: [alsa] 44100Hz 2ch s16le (2 bytes per sample)
A: 129.3 (02:09.2) of 444.0 (07:24.0) 1.1%
[AO_ALSA] Write error: Broken pipe
[AO_ALSA] Trying to reset soundcard.
A: 129.8 (02:09.7) of 444.0 (07:24.0) 85.0%

Exiting... (End of file)
$

With the default
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
I'm getting same results.

comment:7 Changed 9 years ago by marticak@…

  • Version changed from unspecified to HEAD

comment:8 Changed 9 years ago by compn

  • Cc patriotact@… added
  • Summary changed from playback freezes while playing certain types of mp3s on i686 to another pulseaudio freeze bug

i asked fedora mplayer dev, and he said new fedora packages soon.

btw freezing mplayer is almost always caused by pulseaudio audio output. try disabling it (even alsa can be set to use it, so it might be hard to disable).

imo mplayer should just rm its pulseaudio driver until things get fixed.

comment:9 Changed 9 years ago by compn

btw can you report what version of pulse you have installed and try upgrading that?

Note: See TracTickets for help on using tickets.