[MPlayer-dev-eng] [BUG] sig11 if no font (bitmap/ttf) specified!
Gabucino
gabucino at mplayerhq.hu
Sun Jan 19 19:30:17 CET 2003
This is a very 1000l bug.. Just rm -f ~/.mplayer/font ~/.mplayer/subfont.ttf
and use the -sub option with a subtitle.. MPlayer throws sig11 at the first
sub.
(Interestingly, I still have OSD even after I removed all my fonts. Why?? And
why doesn't it work? And where does it load it in the following output?)
GNU gdb 2002-04-01-cvs
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-linux"...
(gdb) run ~/x/lotr-cd1.avi -sub ~/.mplayer/sub/Snatch.sub -v -idx
Starting program: /home/gabucino/mplayer/src/mplayer ~/x/lotr-cd1.avi -sub ~/.mplayer/sub/Snatch.sub -v -idx
Using GNU internationalization
Original domain: messages
Original dirname: /usr/share/locale
Current domain: mplayer
Current dirname: /usr/local/share/locale
MPlayer CVS-030119-07:20-2.95.4 (C) 2000-2003 Arpad Gereoffy (see DOCS)
CPU: Advanced Micro Devices K6-2 (Family: 5, Stepping: 12)
Detected cache-line size is 32 bytes
CPUflags: MMX: 1 MMX2: 0 3DNow: 1 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: No such file or directory
Reading config file /home/gabucino/.mplayer/config
Reading /home/gabucino/.mplayer/codecs.conf: 49 audio & 126 video codecs
CommandLine: '/home/gabucino/x/lotr-cd1.avi' '-sub' '/home/gabucino/.mplayer/sub/Snatch.sub' '-v' '-idx'
get_path('font/font.desc') -> '/home/gabucino/.mplayer/font/font.desc'
font: can't open file: /home/gabucino/.mplayer/font/font.desc
font: can't open file: /usr/local/share/mplayer/font/font.desc
init_freetype
Using MMX (with tiny bit 3DNow) Optimized OnScreenDisplay
Using usleep() timing
get_path('input.conf') -> '/home/gabucino/.mplayer/input.conf'
Parsing input config file /home/gabucino/.mplayer/input.conf
Input config file /home/gabucino/.mplayer/input.conf parsed : 50 binds
get_path('lotr-cd1.avi.conf') -> '/home/gabucino/.mplayer/lotr-cd1.avi.conf'
Playing /home/gabucino/x/lotr-cd1.avi
Not an URL!
File size is 17993728 bytes
AVI file format detected.
list_end=0x2292
======= AVI Header =======
us/frame: 41708 (fps=23.976)
max bytes/sec: 0
padding: 0
MainAVIHeader.dwFlags: (272) HAS_INDEX IS_INTERLEAVED
frames total: 128205 initial: 0
streams: 2
Suggested BufferSize: 0
Size: 640 x 272
list_end=0x10F4
==> Found video stream: 0
======= STREAM Header =======
Type: vids FCC: div3 (33766964)
Flags: 0
Priority: 0 Language: 0
InitialFrames: 0
Rate: 23976/1000 = 23.976
Start: 0 Len: 128205
Suggested BufferSize: 50030
Quality 10000
Sample size: 0
found 'bih', 40 bytes of 40
======= VIDEO Format ======
biSize 40
biWidth 640
biHeight 272
biPlanes 1
biBitCount 24
biCompression 861292868='DIV3'
biSizeImage 522240
===========================
Regenerating keyframe table for DIVX 3 video
list_end=0x2186
==> Found audio stream: 1
======= STREAM Header =======
Type: auds FCC: (0)
Flags: 0
Priority: 0 Language: 0
InitialFrames: 1
Rate: 48000/1152 = 41.667
Start: 0 Len: 222798
Suggested BufferSize: 480
Quality -1
Sample size: 0
found 'wf', 30 bytes of 18
======= WAVE Format =======
Format Tag: 85 (0x55)
Channels: 2
Samplerate: 48000
avg byte/sec: 18098
Block align: 1152
bits/sample: 0
cbSize: 12
mp3.wID=1
mp3.fdwFlags=0x2
mp3.nBlockSize=434
mp3.nFramesPerBlock=1
mp3.nCodecDelay=0
list_end=0x2292
list_end=0x22B6
hdr=Software size=15
Software : Nandub v1.0rc2
Broken chunk? chunksize=1346 (id=JUNK)
list_end=0x2B4C68C6
Found movie at 0x280C - 0x2B4C68C6
stream_seek: WARNING! Can't seek to 0x2B4C68C6 !
Generating Index: 1 %
Generating Index: 2 %
stream_seek: WARNING! Can't seek to 0x112A318 !
AVI: Generated index table for 10903 chunks!
AVI index offset: 0x0 (movi=0x280C idx0=0x280C idx1=0x2994)
Auto-selected AVI audio ID = 1
Auto-selected AVI video ID = 0
AVI: Searching for audio stream (id:1)
AVI video size=14948176 (3976) audio size=2950656 (6927)
VIDEO: [DIV3] 640x272 24bpp 23.98 fps 721.1 kbps (88.0 kbyte/s)
[V] filefmt:3 fourcc:0x33564944 size:640x272 fps:23.98 ftime:=0.0417
Clip info:
Software: Nandub v1.0rc2
SUB: Detected subtitle file format: microdvd
SUB: Read 1349 subtitles.
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
dec_audio: Allocating 4608 + 65536 = 70144 bytes for output buffer
mp3lib: made decode tables with MMX optimization
mp3lib: using 3DNow! optimized decore!
MP3lib: init layer2&3 finished, tables done
MPEG 1.0, Layer III, 48000 Hz 128 kbit Joint-Stereo, BPF: 384
Channels: 2, copyright: No, original: Yes, CRC: No, emphasis: 0
AUDIO: 48000 Hz, 2 ch, 16 bit (0x10), ratio: 16000->192000 (128.0 kbit)
Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
X11 opening display: :0.0
vo: X11 color mask: FFFFFF (R:FF0000 G:FF00 B:FF)
vo: X11 running at 1024x768 with depth 24 and 32 bpp (":0.0" => local display)
[x11] Detected wm supports layers.
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
INFO: libavcodec init OK!
Selected video codec: [ffdivx] vfm:ffmpeg (FFmpeg DivX ;-) (MS MPEG-4 v3))
==========================================================================
AutoQ: setting quality to 0
Checking audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
[libaf] Adding filter dummy
[dummy] Was reinitialized, rate=48000Hz, nch = 2, format = 0x00000001 and bps = 2
AF_pre: af format: 2 bps, 2 ch, 48000 hz, little endian signed int
AF_pre: 48000Hz 2ch Signed 16-bit (Little-Endian)
ao2: 48000 Hz 2 chans Signed 16-bit (Little-Endian)
audio_setup: using '/dev/dsp' dsp device
audio_setup: sample format: Signed 16-bit (Little-Endian) (requested: Signed 16-bit (Little-Endian))
audio_setup: using 2 channels (requested: 2)
audio_setup: using 48000 Hz samplerate (requested: 48000)
audio_setup: frags: 16/16 (4096 bytes/frag) free: 65536
AO: [oss] 48000Hz 2ch Signed 16-bit (Little-Endian) (2 bps)
AO: Description: OSS/ioctl audio output
AO: Author: A'rpi
Building audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
[dummy] Was reinitialized, rate=48000Hz, nch = 2, format = 0x00000001 and bps = 2
[dummy] Was reinitialized, rate=48000Hz, nch = 2, format = 0x00000001 and bps = 2
Starting playback...
[ffmpeg] aspect_ratio: 0.000000
VDec: vo config request - 640 x 272 (preferred csp: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO Config (640x272->640x272,flags=1,'MPlayer',0x32315659)
VO: [xmga] 640x272 => 640x272 Planar YV12 [fs]
VO: Description: Matrox G200/G4x0/G550 overlay in X11 window (using /dev/mga_vid)
VO: Author: Zoltan Ponekker <pontscho at makacs.poliod.hu>
[mga] Using 3 buffers.
[x11] Detected wm supports layers.
[x11] Detected wm supports layers.
[x11] Layered style stay on top ( layer 10 ).
[x11] Layered style stay on top ( layer 10 ).
[xmga] x: 0 y: 19 w: 1024 h: 768
[xmga] dcx: 0 dcy: 0 dx: 0 dy: 0 dw: 1024 dh: 768
[xmga-fs] dcx: 0 dcy: 166 dx: 0 dy: 166 dw: 1024 dh: 436
*** [vo] Allocating mp_image_t, 640x272x12bpp YUV planar, 261120 bytes
get_path('subfont.ttf') -> '/home/gabucino/.mplayer/subfont.ttf'
New_Face failed. Maybe the font path is wrong.
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
[xmga] x: 0 y: 19 w: 1024 h: 768
[xmga] dcx: 0 dcy: 0 dx: 0 dy: 0 dw: 1024 dh: 768
[xmga-fs] dcx: 0 dcy: 166 dx: 0 dy: 166 dw: 1024 dh: 436
A: 0.2 V: 0.0 A-V: 0.154 ct: 0.000 1/ 1 0% 0% 0.0% 0 0 0%
XXX initial v_pts=0.000 a_pos=8064 (0.446)
*** [vo] Allocating mp_image_t, 640x272x12bpp YUV planar, 261120 bytes
A: 0.2 V: 0.0 A-V: 0.132 ct: 0.004 2/ 2 0% 0% 0.0% 1 0 0%
A: 0.2 V: 0.1 A-V: 0.096 ct: 0.008 3/ 3 0% 0% 0.0% 1 0 0%
A: 0.2 V: 0.1 A-V: 0.060 ct: 0.013 4/ 4 0% 0% 0.0% 1 0 0%
A: 0.2 V: 0.2 A-V: 0.027 ct: 0.015 5/ 5 0% 0% 0.0% 1 0 0%
A: 0.2 V: 0.2 A-V: -0.005 ct: 0.015 6/ 6 0% 0% 0.0% 1 0 0%
A: 0.2 V: 0.3 A-V: -0.011 ct: 0.014 7/ 7 0% 0% 0.0% 1 0 0%
A: 0.3 V: 0.3 A-V: -0.012 ct: 0.012 8/ 8 0% 0% 0.0% 1 0 0%
A: 0.3 V: 0.3 A-V: -0.014 ct: 0.011 9/ 9 0% 0% 0.0% 1 0 0%
A: 0.4 V: 0.4 A-V: -0.016 ct: 0.009 10/ 10 0% 0% 0.0% 1 0 0%
A: 0.4 V: 0.4 A-V: -0.007 ct: 0.009 11/ 11 0% 0% 0.0% 1 0 0%
A: 0.4 V: 0.5 A-V: -0.009 ct: 0.008 12/ 12 0% 0% 0.0% 1 0 0%
A: 0.5 V: 0.5 A-V: -0.011 ct: 0.007 13/ 13 48% 5% 5.5% 1 0 0%
A: 0.5 V: 0.5 A-V: -0.003 ct: 0.006 14/ 14 46% 4% 5.2% 1 0 0%
A: 0.6 V: 0.6 A-V: -0.004 ct: 0.006 15/ 15 45% 4% 5.3% 1 0 0%
A: 0.6 V: 0.6 A-V: 0.000 ct: 0.006 16/ 16 43% 4% 5.2% 1 0 0%
A: 0.7 V: 0.7 A-V: -0.007 ct: 0.005 17/ 17 42% 3% 5.0% 1 0 0%
A: 0.7 V: 0.7 A-V: -0.009 ct: 0.004 18/ 18 41% 3% 4.9% 1 0 0%
A: 0.8 V: 0.8 A-V: 0.020 ct: 0.006 19/ 19 40% 3% 4.8% 1 0 0%
SEEK: idx=4278 (a:4278 v:4310) v.skip=11 a.skip=0/0.000
[New Thread 1024 (LWP 5018)]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 5018)]
0x080a7a76 in vo_update_osd (dxs=640, dys=272) at sub.c:432
432 if(suboverlap_enabled) obj->y -= vo_font->pic_a[vo_font->font[40]]->h - vo_font->height;
(gdb) bt
#0 0x080a7a76 in vo_update_osd (dxs=640, dys=272) at sub.c:432
#1 0x080a880d in vo_draw_text (dxs=640, dys=272,
draw_alpha=0x8097070 <draw_alpha>) at sub.c:642
#2 0x0809716b in draw_osd () at mga_common.c:47
#3 0x080c59d8 in control (vf=0x8408898, request=7, data=0x0) at vf_vo.c:61
#4 0x080b9576 in decode_video (sh_video=0x83cad00,
start=0x851e378 "\t\212ŔóJż7ŢŻ4\026ž\002;lHśŚ\0237Ýi\v\233ű\023üˇ:?Šżâ\177ţ`\bE,S(Şnn.\035\200O\"ď\210\022\177\231áÂ*Ő\203e\203\t_éB\220q\210đ\215˙\b\003Y.X(IGö\224Ĺ\220xQ\206\216˘G4\032rĐë\201U+do\224đŚâÜ\030¨\n8\231o\006Hť\1777i\005ö\233f˘\226Üýúl\221Ş\2163t'\206ÁąmŃÚav)Ľ\232\022Ś&e\034Ş\216{$Ĺ\001\213\fv\fví4\tĺw\026VD/\005JdŹfÂ7ňŮÄ\227ý\223\222\027ę7\221`ň\216Uď˘ROĘţŻôĄź"...,
in_size=12092, drop_frame=0) at dec_video.c:330
#5 0x0806c9f4 in main (argc=6, argv=0xbffffa84) at mplayer.c:1843
(gdb)
#0 0x080a7a76 in vo_update_osd (dxs=640, dys=272) at sub.c:432
#1 0x080a880d in vo_draw_text (dxs=640, dys=272,
draw_alpha=0x8097070 <draw_alpha>) at sub.c:642
#2 0x0809716b in draw_osd () at mga_common.c:47
#3 0x080c59d8 in control (vf=0x8408898, request=7, data=0x0) at vf_vo.c:61
#4 0x080b9576 in decode_video (sh_video=0x83cad00,
start=0x851e378 "\t\212ŔóJż7ŢŻ4\026ž\002;lHśŚ\0237Ýi\v\233ű\023üˇ:?Šżâ\177ţ`\bE,S(Şnn.\035\200O\"ď\210\022\177\231áÂ*Ő\203e\203\t_éB\220q\210đ\215˙\b\003Y.X(IGö\224Ĺ\220xQ\206\216˘G4\032rĐë\201U+do\224đŚâÜ\030¨\n8\231o\006Hť\1777i\005ö\233f˘\226Üýúl\221Ş\2163t'\206ÁąmŃÚav)Ľ\232\022Ś&e\034Ş\216{$Ĺ\001\213\fv\fví4\tĺw\026VD/\005JdŹfÂ7ňŮÄ\227ý\223\222\027ę7\221`ň\216Uď˘ROĘţŻôĄź"...,
in_size=12092, drop_frame=0) at dec_video.c:330
#5 0x0806c9f4 in main (argc=6, argv=0xbffffa84) at mplayer.c:1843
(gdb) disass $pc-32 $pc+32
Dump of assembler code from 0x80a7a56 to 0x80a7a96:
0x80a7a56 <vo_update_osd+1282>: incl 0x2dcae03d(%ebx)
0x80a7a5c <vo_update_osd+1288>: or %al,(%eax)
0x80a7a5e <vo_update_osd+1290>: je 0x80a7a83 <vo_update_osd+1327>
0x80a7a60 <vo_update_osd+1292>: mov 0x82f6120,%ebx
0x80a7a66 <vo_update_osd+1298>: movswl 0xe8(%ebx),%ecx
0x80a7a6d <vo_update_osd+1305>: lea 0x18(%ebx),%eax
0x80a7a70 <vo_update_osd+1308>: mov (%eax,%ecx,4),%ecx
0x80a7a73 <vo_update_osd+1311>: mov 0x14(%ebx),%eax
0x80a7a76 <vo_update_osd+1314>: mov 0xc(%ecx),%ecx
0x80a7a79 <vo_update_osd+1317>: sub %eax,%ecx
0x80a7a7b <vo_update_osd+1319>: mov %ecx,%eax
0x80a7a7d <vo_update_osd+1321>: mov 0xffffffec(%ebp),%ecx
0x80a7a80 <vo_update_osd+1324>: sub %eax,0xc(%ecx)
0x80a7a83 <vo_update_osd+1327>: mov 0xffffffec(%ebp),%esi
0x80a7a86 <vo_update_osd+1330>: mov 0xc(%ebp),%ebx
0x80a7a89 <vo_update_osd+1333>: mov %ebx,0xffffffcc(%ebp)
0x80a7a8c <vo_update_osd+1336>: mov 0xc(%esi),%esi
0x80a7a8f <vo_update_osd+1339>: sub %esi,0xffffffcc(%ebp)
0x80a7a92 <vo_update_osd+1342>: mov 0x82f6138,%eax
End of assembler dump.
(gdb) Quit
--
Gabucino
MPlayer Core Team
"not sure how we will proceed here - xine's potential in the video
processing field is imho so great that i certainly don't want to miss
the chance to work into that direction." - Guenter
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20030119/e8f0f274/attachment.pgp>
More information about the MPlayer-dev-eng
mailing list