segfault and failure to find codec for some .mpg's
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
totem (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Binary package hint: totem
Packages: totem-xine and totem-gstreamer
Ubuntu 8.04
System: 32 bit intel (mobile celeron)
Some mpg's don't play in totem-xine and totem-gstreamer on my system, while gmplayer does play the same files properly.
totem-* will start asking to search for a codec, try, and then report it didn't find the right codec.
Sometimes totem-* will crash (segfault). Attached is the core dump from totem-xine.
Strange thing is, gmplayer and the 'file' command report the same codecs and everything for mpg files that do play, and those that don't. (output of gmplayer below)
$ file plays-OK.mpg
plays-OK.mpg: MPEG sequence, v2, program multiplex
$ file DOESNT-play.mpg
DOESNT-play.mpg: MPEG sequence, v2, program multiplex
Here are stack traces from the core dump:
*******
Reading symbols from /usr/lib/
done.
Loaded symbols for /usr/lib/
Reading symbols from /usr/lib/
done.
Loaded symbols for /usr/lib/
Core was generated by `./totem muziko.mpg'.
Program terminated with signal 11, Segmentation fault.
[New process 20148]
[New process 20151]
[New process 20149]
#0 0xb7bfc9b2 in xine_get_param (stream=0x83ba9b0, param=16777221) at xine_interface.
654 xine_interface.c: No such file or directory.
in xine_interface.c
(gdb) thread 1
[Switching to thread 1 (process 20148)]#0 0xb7bfc9b2 in xine_get_param (stream=0x83ba9b0, param=16777221) at xine_interface.
654 in xine_interface.c
(gdb) backtrace
#0 0xb7bfc9b2 in xine_get_param (stream=0x83ba9b0, param=16777221) at xine_interface.
#1 0x080795e2 in bacon_video_
at /home/joostje/
#2 0x080674c9 in totem_setup_
#3 0x08064549 in main (argc=Cannot access memory at address 0x0
) at /home/joostje/
(gdb) thread 2
[Switching to thread 2 (process 20151)]#0 0xb7f25410 in __kernel_vsyscall ()
(gdb) backtrace
#0 0xb7f25410 in __kernel_vsyscall ()
#1 0xb724daa5 in pthread_
#2 0xb7bf5cc4 in xine_event_wait (queue=0x83d2740) at events.c:56
#3 0xb7bf5d58 in listener_loop (queue_
#4 0xb72494fb in start_thread () from /lib/tls/
#5 0xb71cbe5e in clone () from /lib/tls/
(gdb) thread 3
[Switching to thread 3 (process 20149)]#0 0xb7f25410 in __kernel_vsyscall ()
(gdb) backtrace
#0 0xb7f25410 in __kernel_vsyscall ()
#1 0xb724ddd2 in pthread_
#2 0xb7be1bbb in metronom_sync_loop (this=0x83b1368) at metronom.c:871
#3 0xb72494fb in start_thread () from /lib/tls/
#4 0xb71cbe5e in clone () from /lib/tls/
(gdb) thread 1
[Switching to thread 1 (process 20148)]#0 0xb7bfc9b2 in xine_get_param (stream=0x83ba9b0, param=16777221) at xine_interface.
654 in xine_interface.c
(gdb) l
649 in xine_interface.c
(gdb) up
#1 0x080795e2 in bacon_video_
at /home/joostje/
3770 return xine_get_param (bvw->priv->stream, video_props[type]);
(gdb) l
3765 {
3766 g_return_
3767 g_return_
3768 g_return_
3769
3770 return xine_get_param (bvw->priv->stream, video_props[type]);
3771 }
3772
3773 void
3774 bacon_video_
(gdb) p *(bvw->
$3 = {xine = 0x8382400, metronom = 0x83bb5a0, input_plugin = 0x0, content_
audio_out = 0x0, audio_fifo = 0x83bba18, osd_renderer = 0x0, master = 0x83ba9b0, slave = 0x0, spu_decoder_plugin = 0x0, video_driver = 0x0,
audio_
(gdb) p video_props
$4 = {16777221, 16777220, 16777219, 16777218}
(gdb) p type
$5 = BVW_VIDEO_
(gdb) p (int) type
$6 = 0
*******
$ mplayer plays-OK.mpg
MPlayer 1.0rc2-4.2.3 (C) 2000-2007 MPlayer Team
CPU: Intel(R) Celeron(R) CPU 540 @ 1.86GHz (Family: 6, Model: 22, Stepping: 1)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
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 plays-OK.mpg.
MPEG-PS file format detected.
VIDEO: MPEG2 720x576 (aspect 2) 25.000 fps 9200.0 kbps (1150.0 kbyte/s)
xscreensaver_
GNOME screensaver disabled
=======
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 720 x 576 (preferred colorspace: 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.
Try appending the scale filter to your filter list,
e.g. -vf spp,scale instead of -vf spp.
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))
=======
=======
Forced audio codec: mad
Opening audio decoder: [libmad] libmad mpeg audio decoder
AUDIO: 48000 Hz, 2 ch, s16le, 192.0 kbit/12.50% (ratio: 24000->192000)
Selected audio codec: [mad] afm: libmad (libMAD MPEG layer 1-2-3)
=======
AO: [pulse] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
VDec: vo config request - 720 x 576 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO: [xv] 720x576 => 768x576 Planar YV12
GNOME screensaver enabled.008 ct: -0.012 22/ 22 23% 5% 1.7% 0 0
*******
$ mplayer DOESNT-play.mpg
MPlayer 1.0rc2-4.2.3 (C) 2000-2007 MPlayer Team
CPU: Intel(R) Celeron(R) CPU 540 @ 1.86GHz (Family: 6, Model: 22, Stepping: 1)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
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 DOESNT-play.mpg.
MPEG-PS file format detected.
VIDEO: MPEG2 640x576 (aspect 2) 25.000 fps 10000.0 kbps (1250.0 kbyte/s)
xscreensaver_
GNOME screensaver disabled
=======
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 640 x 576 (preferred colorspace: 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.
Try appending the scale filter to your filter list,
e.g. -vf spp,scale instead of -vf spp.
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))
=======
=======
Forced audio codec: mad
Opening audio decoder: [liba52] AC3 decoding with liba52
Using SSE optimized IMDCT transform
Using MMX optimized resampler
AUDIO: 48000 Hz, 2 ch, s16le, 384.0 kbit/25.00% (ratio: 48000->192000)
Selected audio codec: [a52] afm: liba52 (AC3-liba52)
=======
AO: [pulse] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
VDec: vo config request - 640 x 576 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO: [xv] 640x576 => 768x576 Planar YV12
GNOME screensaver enabled.005 ct: 0.044 18/ 18 19% 4% 0.9% 0 0
Exiting... (Quit)
ProblemType: Bug
Architecture: i386
Date: Thu Jun 12 00:09:32 2008
DistroRelease: Ubuntu 8.04
ExecutablePath: /usr/bin/totem-xine
Package: totem-xine 2.22.1-0ubuntu2
PackageArchitec
ProcEnviron:
SHELL=/bin/bash
PATH=/
LANG=en_US.UTF-8
SourcePackage: totem
Uname: Linux 2.6.24-16-generic i686
Thank you for taking the time to report this bug and helping to make Ubuntu better. However, your crash report is either missing or challenging to deal with as a ".crash" file. Please follow these instuctions to have apport report a new bug about your crash that can be dealt with by the automatic retracer.
If you are running the Ubuntu Stable Release you might need to enable apport in /etc/default/apport and restart.
If you are using Ubuntu with the Gnome desktop environment - launch nautilus and navigate to your /var/crash directory and double click on the crash report you wish to submit.
I'm closing this bug report since the process outlined above will automatically open a new bug report which can then dealt with more efficiently. Thanks in advance for your cooperation and understanding.