Crashes when loading DVD

Bug #508 reported by Yagisan
24
Affects Status Importance Assigned to Milestone
mplayer (Ubuntu)
Fix Released
Medium
MOTU Media Team

Bug Description

mplayer crashes with the following output when loading the Aliens Special Edition DVD on amd64, Ubuntu Hoary.

Script started on Thu 28 Apr 2005 18:31:37 EST
]0;jamie@workhorse: /tmp/dvdjamie@workhorse:/tmp/dvd$ gmplayer
MPlayer 1.0pre6-3.3.5 (C) 2000-2004 MPlayer Team
CPU: Advanced Micro Devices (Family: 8, Steppin...

mplayer crashes with the following output when loading the Aliens Special Edition DVD on amd64, Ubuntu Hoary.

Script started on Thu 28 Apr 2005 18:31:37 EST
]0;jamie@workhorse: /tmp/dvdjamie@workhorse:/tmp/dvd$ gmplayer
MPlayer 1.0pre6-3.3.5 (C) 2000-2004 MPlayer Team
CPU: Advanced Micro Devices (Family: 8, Stepping: 0)
Detected cache-line size is 64 bytes
Cannot test OS support for SSE, disabling to be safe.

vo: X11 running at 1024x768 with depth 16 and 16 bpp (":0.0" => local display)
Linux RTC init error in ioctl (rtc_irqp_set 1024): Permission denied
Try adding "echo 1024 > /proc/sys/dev/rtc/max-user-freq" to your system startup scripts.
Opening joystick device /dev/input/js0
Can't open joystick device /dev/input/js0 : No such file or directory
Can't init input joystick
Setting up LIRC support...
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 dvd://1.
libdvdread: Using libdvdcss version 1.2.5 for DVD access
Reading disc structure, please wait...
There are 34 titles on this DVD.
There are 1 chapters in this DVD title.
There are 1 angles in this DVD title.

libdvdread: Attempting to retrieve all CSS keys
libdvdread: This can take a _long_ time, please be patient

libdvdread: Get key for /VIDEO_TS/VIDEO_TS.VOB at 0x00029650
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_01_1.VOB at 0x0002994d
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_02_0.VOB at 0x0009368f
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_02_1.VOB at 0x000ab6a2
libdvdread: Elapsed time 1
libdvdread: Get key for /VIDEO_TS/VTS_03_1.VOB at 0x003a92b3
libdvdread: Elapsed time 0
libdvdread: Found 3 VTS's
libdvdread: Elapsed time 1
DVD successfully opened.

Cache fill: 16.41% (172032 bytes) MPEG-PS file format detected.
VIDEO: MPEG2 720x576 (aspect 2) 25.000 fps 8000.0 kbps (1000.0 kbyte/s)
==========================================================================
Trying to force audio codec driver family libmad...
Opening audio decoder: [liba52] AC3 decoding with liba52
AC3: 5.1 (3f+2r+lfe) 48000 Hz 384.0 kbit/s
No accelerated resampler found
AUDIO: 48000 Hz, 2 ch, 16 bit (0x10), ratio: 48000->192000 (384.0 kbit)
Selected audio codec: [a52] afm:liba52 (AC3-liba52)
==========================================================================
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 720 x 576 (preferred csp: Mpeg PES)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
VDecoder init failed :(
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.4.0b
Selected video codec: [mpeg12] vfm:libmpeg2 (MPEG 1 or 2 (libmpeg2))
==========================================================================
Checking audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
AF_pre: af format: 2 bps, 2 ch, 48000 hz, little endian signed int
AF_pre: 48000Hz 2ch Signed 16-bit (Little-Endian)
alsa-init: got device=0, subdevice=0
alsa-init: 1 soundcard found, using: default
alsa: 48000 Hz/2 channels/4 bpf/65536 bytes buffer/Signed 16 bit Little Endian
AO: [alsa] 48000Hz 2ch Signed 16-bit (Little-Endian) (2 bps)
Building audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
Starting playback...

MPlayer interrupted by signal 11 in module: decode_audio
- MPlayer crashed by bad usage of CPU/FPU/RAM.
  Recompile MPlayer with --enable-debug and make a 'gdb' backtrace and
  disassembly. Details in DOCS/HTML/en/bugreports_what.html#bugreports_crash.
- 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/HTML/en/bugreports.html and follow the instructions there. We can't and
  won't help unless you provide this information when reporting a possible bug.
alsa-uninit: pcm closed
]0;jamie@workhorse: /tmp/dvdjamie@workhorse:/tmp/dvd$ exit
exit

Script done on Thu 28 Apr 2005 18:31:52 EST

Revision history for this message
Rickard Närström (riccetn) wrote :

This seems to be a audiocodec issue - you can play dvd with -nosound (mplayer also resive signal 11 SIGSEGV in decode_audio)

mplayer doesn't depend on liba52 witch is the codec mplayer tries to use to decode the audio track on a dvd.

Revision history for this message
Yagisan (yagisan) wrote :

I can confirm that mplayer can load the Aliens DVD when the -nosound switch is used. Is there any reason mplayer is not linked against liba52 (which is in Ubuntu) ?

Revision history for this message
Danilo Piazzalunga (danilopiazza) wrote :

I suspect this is the same bug fixed by Marillat some time ago (see changelog for pre6-0.1), then reintroduced in pre6-0.3ubuntu2 by using an older version of ffmpeg. Recompiling mplayer against Marillat's ffmpeg fixed the problem for me.

The relevant changelog entries are reported below.

mplayer (1:1.0-pre6-0.3ubuntu2) hoary; urgency=low

  * Use Debian's ffmpeg.

 -- LaMont Jones <email address hidden> Fri, 4 Feb 2005 18:07:44 -0700

mplayer (1:1.0-pre6-0.1) unstable; urgency=low

  * Build agains the latest libavcodeccvs to fix AC3 crash.
  * Add ladspa support.
  * Don't install codecs.conf file in /etc/mplayer Instead put this file in
    the example directory in case somebody wants to do some hacking.

 -- Christian Marillat <email address hidden> Mon, 27 Dec 2004 16:31:23 +0100

Revision history for this message
Mark Wrangham (ptigga) wrote :

Danilo, please can you tell me which version of ffmpeg you recompiled mplayer against to get it to work again?

Revision history for this message
Jorge Daza García-Blanes (jorge-drqueue) wrote :

Please check Bugzilla #11693, I have been trying to debug this problem:

https://bugzilla.ubuntu.com/show_bug.cgi?id=11693

I found out that it seems to be xorg and not mplayer the one that fails. You can reproduce the problem with totem, xine and mplayer.

If you compile the source package with:

fakeroot debian/rules binary

and execute localy, you'll find that:

./mplayer -v xv dvd:// <----- FAILS

./mplayer -v x11 dvd:// <----- WORKS

Acording to daniels that is what shows it to be an xorg bug.

Jorge

Revision history for this message
Soren Hansen (soren) wrote :

It is not an Xorg bug. It's not even a video output bug. In the attachment in the Bugzilla bug, you refer to, you'll see that it's an entirely different error you get.

The problem persists and only happens when playing something that uses the liba52 built into mplayer.

Revision history for this message
Simon Kongshøj (simon-evilgenius) wrote :

The problem can be fixed by removing a few lines in debian/patches/03_configure.dpatch. Specifically, removing the part that makes mplayer NOT compile its own libavcodec will allow a debian/rules build that results in a working mplayer without the liba52 bug.

This patch does the trick:
http://www.evilgenius.dk/files/mplayer-1.0-pre6ubuntu-fix.patch

Changed in mplayer:
assignee: nobody → motu
Revision history for this message
Anders Brander (andersbrander) wrote :

Hoary packages with Simon's patch can be found here:
http://anders.brander.dk/stuff/mplayer-ubuntu-ac3fix/

Disclaimer: These packages will NOT get updated or even remotely maintained. This is ONLY a temporarily solution for the few who happens to end up here looking for a quick fix.

Revision history for this message
Sebastian Dröge (slomo) wrote :

I'm currently trying to fix this for breezy

Changed in mplayer:
assignee: motu → motumedia
status: New → Accepted
Revision history for this message
Sebastian Dröge (slomo) wrote :

Ok, fixed... when it doesn't work in breezy please reopen this bug

Changed in mplayer:
status: Accepted → Fixed
Revision history for this message
Xavier (chantry-xavier) wrote :

If this problem really got fixed, then it's back in edgy, with mplayer 2:0.99+1.0pre8-0ubuntu4

Revision history for this message
Corey Burger (corey.burger) wrote :

Reopening, as per previous comment

Changed in mplayer:
status: Fix Released → Confirmed
Revision history for this message
Lionel Le Folgoc (mrpouit) wrote :

I can confirm this bug.

I rebuilt mplayer packages with the --enable-debug flag, and used strace and gdb (it was the first time I used these tools, but perhaps the logs will be useful)

Revision history for this message
Lionel Le Folgoc (mrpouit) wrote :
Revision history for this message
Petr Tomeš (ptomes) wrote :

I can confirm it on fully updated edgy system. Mplayer, mplayer-686 and maybe else are affected.

Revision history for this message
Petr Tomeš (ptomes) wrote :
Revision history for this message
Xavier (chantry-xavier) wrote :

Last two comments are bug 61222 : undefined symbol: a52_resample
This happened every time you tried to run mplayer.
It's fixed by last mplayer package : 2:0.99+1.0pre8-0ubuntu5

The current bug (508) only happens when you actually use the a52 audio codec, like when playing dvd. It is also fixed by last mplayer package, but only workarounded by using mplayer's internal ffmpeg again, as it was already said by previous comments.

I told one mplayer guy about it, but he couldn't explain the issue (why a52 crash when using external ffmpeg), so I'm not sure if it's enough. It would probably be better to make an upstream bug report.

Or maybe it is ubuntu ffmpeg package which is broken ?
I hate it when bugs are just workarounded and people don't explain why, and when it will really be fixed.

Revision history for this message
Nafallo Bjälevik (nafallo) wrote :

Please check to see if this bug is still present in current feisty. Thanks.

Revision history for this message
Lionel Le Folgoc (mrpouit) wrote :

Hi,

I think this bug isn't present anymore in feisty (mplayer is able to read dvds without crashing).

Revision history for this message
Reinhard Tartler (siretart) wrote :

closing per Lionel's confirmation that this bug seems to be fixed. reopen with additional info if necessary

Changed in mplayer:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.