[MPlayer-users] MPlayer crashes when font.desc does not exist

BUCHMULLER Norbert norbi.lists at nix.hu
Sun May 23 23:00:48 CEST 2004


Hello,

when upgrading MPlayer I did a mistake, which resulted in
/usr/share/mplayer/font being a dangling symlink. Fortunately MPlayer
complains about it, unfortunately it crashes at the first few subtitle.
Giving a non-existent font.desc path on the command line (with -font
option) yields the same effect.

norbi


norbi at leo:~$ gdb /usr/bin/mplayer
Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) r -nofs Wings_of_Desire.CD1-eleje.avi
Starting program: /usr/bin/mplayer -nofs Wings_of_Desire.CD1-eleje.avi
[Thread debugging using libthread_db enabled]
[New Thread 16384 (LWP 31741)]
Using GNU internationalization
Original domain: messages
Original dirname: /usr/share/locale
Current domain: mplayer
Current dirname: /usr/share/locale

MPlayer dev-CVS-040523-20:20-2.95.4 (C) 2000-2004 MPlayer Team

CPU: Intel Celeron 2/Pentium III Coppermine,Geyserville 568.4 MHz (Family:
6, Stepping: 3)
Detected cache-line size is 32 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 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 /etc/mplayer/mplayer.conf
Reading config file /home/norbi/.mplayer/config
Reading /home/norbi/.mplayer/codecs.conf: Can't open
'/home/norbi/.mplayer/codecs.conf': No such file or directory
Reading /etc/mplayer/codecs.conf: 61 audio & 157 video codecs
font: can't open file: /home/norbi/.mplayer/font/font.desc
font: can't open file: /usr/share/mplayer/font/font.desc
Using Linux hardware RTC timing (1024Hz).
Can't open input config file /home/norbi/.mplayer/input.conf: No such file
or directory
Can't open input config file /etc/mplayer/input.conf: No such file or
directory
Falling back on default (hardcoded) input config

Playing Wings_of_Desire.CD1-eleje.avi.
AVI file format detected.
VIDEO:  [XVID]  640x384  24bpp  23.976 fps  1528.5 kbps (186.6 kbyte/s)
Clip info:
 Software: Nandub v1.0rc2
SUB: Detected subtitle file format: microdvd
SUB: Read 484 subtitles.
SUB: Adjusted 46 subtitle(s).
SUB: added subtitle file (1): ./Wings_of_Desire.CD1-eleje.sub
==========================================================================
Opening audio decoder: [liba52] AC3 decoding with liba52
Using SSE optimized IMDCT transform
AC3: 2.0 (stereo)  48000 Hz  192.0 kbit/s
Using MMX optimized resampler
AUDIO: 48000 Hz, 2 ch, 16 bit (0x10), ratio: 24000->192000 (192.0 kbit)
Selected audio codec: [a52] afm:liba52 (AC3-liba52)
==========================================================================
vo: X11 running at 1024x768 with depth 16 and 16 bpp (":1.0" => local
display)
Disabling DPMS
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffodivx] vfm:ffmpeg (FFmpeg MPEG-4)
==========================================================================
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)
AO: [oss] 48000Hz 2ch Signed 16-bit (Little-Endian) (2 bps)
Building audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
Starting playback...
VDec: vo config request - 640 x 384 (preferred csp: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.67:1 - prescaling to correct movie aspect.
VO: [xv] 640x384 => 640x384 Planar YV12 
New_Face failed. Maybe the font path is wrong.
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
A:  14.1 V:  14.1 A-V:  0.000 ct:  0.031  339/339  13%  2%  1.7% 5 0 0%
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 31741)]
0x080b7f89 in vo_update_osd (dxs=640, dys=384) at sub.c:610
610                 obj->y = dys - ((obj->params.subtitle.lines - 1) *
vo_font->height + vo_font->pic_a[vo_font->font[40]]->h);
(gdb) bt
#0  0x080b7f89 in vo_update_osd (dxs=640, dys=384) at sub.c:610
#1  0x080b8e79 in vo_draw_text (dxs=640, dys=384, 
    draw_alpha=0x80a4af0 <draw_alpha_yv12>) at sub.c:865
#2  0x080a5976 in draw_osd () at vo_xv.c:448
#3  0x080f8cd2 in control (vf=0x8621070, request=7, data=0x0) at
#vf_vo.c:67 4  0x080f0006 in decode_video (sh_video=0x8613f48,
#start=0x872b628 "", 
    in_size=3159, drop_frame=0) at dec_video.c:333
#5  0x0807e0be in main (argc=3, argv=0xbffff974) at mplayer.c:2094
(gdb) 


kernel: Linux leo 2.4.24 #1 Wed Mar 3 21:16:10 CET 2004 i686 GNU/Linux

libc:
-rw-r--r--    1 root     root      1243792 Apr 21 20:58 /lib/libc-2.3.2.so
lrwxrwxrwx    1 root     root           14 May 18 17:48 /lib/libc.so.5 ->
libc.s
o.5.4.46
-rw-r--r--    1 root     root       565940 Sep 22  2003
/lib/libc.so.5.4.46
lrwxrwxrwx    1 root     root           13 May 17 21:14 /lib/libc.so.6 ->
libc-2
.3.2.so

gcc: gcc version 2.95.4 20011002 (Debian prerelease)

ld: GNU ld version 2.14.90.0.7 20031029 Debian GNU/Linux

as: GNU assembler 2.14.90.0.7 20031029 Debian GNU/Linux

CPU:
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 8
model name      : Celeron (Coppermine)
stepping        : 3
cpu MHz         : 567.969
cache size      : 128 KB
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 2
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca
cmov 
pat pse36 mmx fxsr sse
bogomips        : 1133.77


video card:
nVidia Riva TNT2 Vanta 8MB SDRAM

X version:
XFree86 Version 4.3.0.1 (Debian 4.3.0.dfsg.1-1 20040428170728
fabbione at trider-g7
.int.fabbione.net)
Release Date: 15 August 2003
X Protocol Version 11, Revision 0, Release 6.6
Build Operating System: Linux 2.4.23 i686 [ELF] 
Build Date: 28 April 2004
        Before reporting problems, check http://www.XFree86.Org/
        to make sure that you have the latest version.
Module Loader present
OS Kernel: Linux version 2.4.24 (norbi at leo) (gcc version 2.95.4 20011002
(Debian
 prerelease)) #1 Wed Mar 3 21:16:10 CET 2004 T

X driver: nvidia (commercial, NVIDIA-Linux-x86-1.0-4496-pkg2)

sound card: Yamaha OPL3-SA3 (ISA PnP)

sound driver: OSS


MPlayer configuration:
./configure --prefix=/usr --confdir=/etc/mplayer \
--enable-runtime-cpudetection --enable-gui --enable-largefiles \
--enable-menu --enable-xmms --cc=gcc-2.95 --enable-debug=3

/etc/mplayer/mplayer.conf:
vo=xv
ffactor=0.9
fs=1
osdlevel=0
skin=slim

/home/norbi/.mplayer/config: empty




More information about the MPlayer-users mailing list