[MPlayer-users] 2 bugs in cvs - second

Vladimir Mosgalin mosgalin at VM10124.spb.edu
Sat Apr 12 19:10:18 CEST 2003


Here is about second bug.

mplayer has ability to 'scroll' subtitles using sub_step. I've bound
'sub_step -1' and 'sub_step +1' in input.conf and use it sometimes. If
there are no subtitles, these actions do nothing in 0.90. In current
cvs, they still work fine with subtitles, but if no subs are loaded
mplayer just crashes. Here is backtrace etc, although I'm sure this
could be reproduced easily.

(gdb) run -v Atas.mpg 
Starting program: /mnt/e/mplayer -v Atas.mpg
[New Thread 8192 (LWP 820)]
Using GNU internationalization
Original domain: messages
Original dirname: /usr/share/locale
Current domain: mplayer
Current dirname: /usr/local/share/locale


MPlayer dev-CVS-030411-20:43-3.2.1 (C) 2000-2003 Arpad Gereoffy (see DOCS)

CPU: Advanced Micro Devices  (Family: 6, Stepping: 1)
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE

Reading config file /usr/local/etc/mplayer/mplayer.conf: Нет такого файла или каталога
Reading config file /home/mosgalin/.mplayer/config
Reading /home/mosgalin/.mplayer/codecs.conf: can't open '/home/mosgalin/.mplayer/codecs.conf': Нет такого файла или каталога
Reading /usr/local/etc/mplayer/codecs.conf: 50 audio & 137 video codecs
CommandLine: '-v' 'Atas.mpg'
get_path('font/font.desc') -> '/home/mosgalin/.mplayer/font/font.desc'
font: can't open file: /home/mosgalin/.mplayer/font/font.desc
font: can't open file: /usr/local/share/mplayer/font/font.desc
init_freetype
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
Linux RTC init error in ioctl (rtc_irqp_set 1024): Нет доступа
Try adding "echo 1024 > /proc/sys/dev/rtc/max-user-freq" to your system startup scripts.
Using usleep() timing
get_path('input.conf') -> '/home/mosgalin/.mplayer/input.conf'
Parsing input config file /home/mosgalin/.mplayer/input.conf
Input config file /home/mosgalin/.mplayer/input.conf parsed : 74 binds
get_path('menu.conf') -> '/home/mosgalin/.mplayer/menu.conf'
Menu inited: /home/mosgalin/.mplayer/menu.conf
get_path('Atas.mpg.conf') -> '/home/mosgalin/.mplayer/Atas.mpg.conf'

Playing Atas.mpg
Not an URL!
[file] File size is 13762387 bytes
STREAM: [file] Atas.mpg
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
CACHE_PRE_INIT: 0 [0] 0  pre:0  eof:0  
Cache fill:  0,00% (0 bytes)    Checking for YUV4MPEG2
DEMUXER: freeing demuxer at 0x84fb4c8  
ASF_check: not ASF guid!
DEMUXER: freeing demuxer at 0x84fb4c8  
Checking for NuppelVideo
DEMUXER: freeing demuxer at 0x84fb4c8  
Checking for REAL
DEMUXER: freeing demuxer at 0x84fb4c8  
Checking for SMJPEG
DEMUXER: freeing demuxer at 0x84fb4c8  
Searching demuxer type for filename Atas.mpg ext: .mpg
Checking for MOV
DEMUXER: freeing demuxer at 0x84fbd30  
Checking for VIVO
header block 1 size: 0
DEMUXER: freeing demuxer at 0x84fbd30  
DEMUXER: freeing demuxer at 0x84fbd30  
DEMUXER: freeing demuxer at 0x84fbd30  
DEMUXER: freeing demuxer at 0x84fbd30  
DEMUXER: freeing demuxer at 0x84fbd30  
DEMUXER: freeing demuxer at 0x84fbd30  
SUB: opened iconv descriptor.
DEMUXER: freeing demuxer at 0x84fbd30  
Checking for PVA
DEMUXER: freeing demuxer at 0x84fbd30  
************Checking for TS************
NOT A TS FILE1
TRIED UP TO POSITION 1000000, FUOND ffffffba, packet_size= 0
DEMUXER: freeing demuxer at 0x84fbd30  
system stream synced at 0xB (0)!
==> Found video stream: 0
MPEG-PS file format detected.
==> Found audio stream: 0
Searching for sequence header... OK!
VIDEO:  MPEG1  320x240  (aspect 1)  30,00 fps  655,6 kbps (82,0 kbyte/s)
[V] filefmt:2  fourcc:0x10000001  size:320x240  fps:30,00  ftime:=0,0333
get_path('sub/') -> '/home/mosgalin/.mplayer/sub/'
get_path('default.sub') -> '/home/mosgalin/.mplayer/default.sub'
==========================================================================
Trying to force audio codec driver family dmo ...
Trying to force audio codec driver family  ...
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!Ex optimized decore!
MP3lib: init layer2&3 finished, tables done
MPEG 1.0, Layer II, 44100 Hz 128 kbit Stereo, BPF: 418
Channels: 2, copyright: No, original: No, CRC: No, emphasis: 0
AUDIO: 44100 Hz, 2 ch, 16 bit (0x10), ratio: 16000->176400 (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.
Disabling DPMS
DPMSDisable stat: 1
Opening video filter: [hqdn3d]
Opening video filter: [pp=de/-al]
[hqdn3d] query(Planar YV12) -> 3
==========================================================================
Trying to force video codec driver family dmo ...
Trying to force video codec driver family  ...
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 320 x 240 (preferred csp: Mpeg PES)
[PP] Using external postprocessing filter, max q = 6.
Trying filter chain: pp hqdn3d menu vo
Could not find matching colorspace - retrying with -vop scale...
Opening video filter: [scale]
SwScale params: -1 x -1 (-1=no scaling)
Trying filter chain: scale pp hqdn3d menu vo
The selected video_out device is incompatible with this codec.
VDecoder init failed :(
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.3.1
Selected video codec: [mpeg12] vfm:libmpeg2 (MPEG 1 or 2 (libmpeg2))
==========================================================================
Checking audio filter chain for 44100Hz/2ch/16bit -> 44100Hz/2ch/16bit...
[libaf] Adding filter dummy 
[dummy] Was reinitialized, rate=44100Hz, nch = 2, format = 0x00000001 and bps = 2
AF_pre: af format: 2 bps, 2 ch, 44100 hz, little endian signed int 
AF_pre: 44100Hz 2ch Signed 16-bit (Little-Endian)
ao2: 44100 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 44100 Hz samplerate (requested: 44100)
audio_setup: frags:   8/8  (16384 bytes/frag)  free: 131072
AO: [oss] 44100Hz 2ch Signed 16-bit (Little-Endian) (2 bps)
AO: Description: OSS/ioctl audio output
AO: Author: A'rpi
Building audio filter chain for 44100Hz/2ch/16bit -> 44100Hz/2ch/16bit...
[dummy] Was reinitialized, rate=44100Hz, nch = 2, format = 0x00000001 and bps = 2
[dummy] Was reinitialized, rate=44100Hz, nch = 2, format = 0x00000001 and bps = 2
Starting playback...
VDec: vo config request - 320 x 240 (preferred csp: Planar YV12)
[PP] Using external postprocessing filter, max q = 6.
Trying filter chain: pp hqdn3d menu vo
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO Config (320x240->320x240,flags=0,'MPlayer',0x32315659)
REQ: flags=0x437  req=0x0  
REQ: flags=0x437  req=0x0  
get_path('subfont.ttf') -> '/home/mosgalin/.mplayer/subfont.ttf'
Unicode font: 1157 glyphs.
REQ: flags=0x437  req=0x0  
VO: [xv] 320x240 => 320x240 Planar YV12 
VO: Description: X11/Xv
VO: Author: Gerd Knorr <kraxel at goldbach.in-berlin.de> and others
Xvideo image format: 0x32595559 (YUY2) packed
Xvideo image format: 0x59565955 (UYVY) packed
Xvideo image format: 0x32315659 (YV12) planar
Xvideo image format: 0x30323449 (I420) planar
using Xvideo port 67 for hw scaling
[xv] dx: 0 dy: 0 dw: 320 dh: 240
*** [pp] Allocating mp_image_t, 320x240x12bpp YUV planar, 115200 bytes
*** [pp] Allocating mp_image_t, 320x240x12bpp YUV planar, 115200 bytes9%
*** [hqdn3d] Allocating mp_image_t, 320x240x12bpp YUV planar, 115200 bytes
*** [vo] Allocating mp_image_t, 320x240x12bpp YUV planar, 115200 bytes
*** [menu] Direct Rendering mp_image_t, 320x240x12bpp YUV planar, 115200 bytes
*** [vo] Exporting mp_image_t, 320x240x12bpp YUV planar, 115200 bytes
*** [pp] Allocating mp_image_t, 320x240x12bpp YUV planar, 115200 bytes8%
[xv] dx: 0 dy: 0 dw: 320 dh: 240
A:   0,9 V:   0,9 A-V:  0,018 ct:  0,040   21/ 21   5% 10%  1,0% 1 0 97%
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 8192 (LWP 820)]
0x080a8518 in step_sub (subd=0x0, pts=0.868533313, movement=1) at find_sub.c:26
26          int key = (pts+sub_delay) * (subd->sub_uses_time ? 100 : sub_fps);
(gdb) where
#0  0x080a8518 in step_sub (subd=0x0, pts=0.868533313, movement=1)
    at find_sub.c:26
#1  0x080927df in main (argc=3, argv=0xbffff8d4) at mplayer.c:2484
#2  0x42015a77 in __libc_start_main () from /lib/i686/libc.so.6
(gdb) disass $pc-32 $pc+32
Dump of assembler code from 0x80a84f8 to 0x80a8538:
0x80a84f8 <subcc_process_data+88>:      ret    
0x80a84f9 <subcc_process_data+89>:      nop    
0x80a84fa <subcc_process_data+90>:      nop    
0x80a84fb <subcc_process_data+91>:      nop    
0x80a84fc <subcc_process_data+92>:      nop    
0x80a84fd <subcc_process_data+93>:      nop    
0x80a84fe <subcc_process_data+94>:      nop    
0x80a84ff <subcc_process_data+95>:      nop    
0x80a8500 <step_sub>:   push   %ebp
0x80a8501 <step_sub+1>: mov    %esp,%ebp
0x80a8503 <step_sub+3>: push   %edi
0x80a8504 <step_sub+4>: push   %esi
0x80a8505 <step_sub+5>: push   %ebx
0x80a8506 <step_sub+6>: sub    $0xc,%esp
0x80a8509 <step_sub+9>: mov    0x8(%ebp),%eax
0x80a850c <step_sub+12>:        flds   0xc(%ebp)
0x80a850f <step_sub+15>:        mov    0x10(%ebp),%ebx
0x80a8512 <step_sub+18>:        fadds  0x8382250
0x80a8518 <step_sub+24>:        mov    0x8(%eax),%ecx
0x80a851b <step_sub+27>:        test   %ecx,%ecx
0x80a851d <step_sub+29>:        jne    0x80a85db <step_sub+219>
0x80a8523 <step_sub+35>:        fmuls  0x8382254
0x80a8529 <step_sub+41>:        fstps  0xfffffff0(%ebp)
0x80a852c <step_sub+44>:        mov    0x8(%ebp),%edx
0x80a852f <step_sub+47>:        movss  0xfffffff0(%ebp),%xmm0
0x80a8534 <step_sub+52>:        test   %edx,%edx
0x80a8536 <step_sub+54>:        cvttss2si %xmm0,%esi
End of assembler dump.
(gdb) info all-registers
eax            0x0      0
ecx            0x2      2
edx            0x8672788        140978056
ebx            0x1      1
esp            0xbfffd550       0xbfffd550
ebp            0xbfffd568       0xbfffd568
esi            0x8506828        139487272
edi            0x8672788        140978056
eip            0x80a8518        0x80a8518
eflags         0x10286  66182
cs             0x23     35
ss             0x2b     43
ds             0x2b     43
es             0x2b     43
fs             0x0      0
gs             0x7      7
st0            0.868533313274383544921875       (raw 0x3ffede58330000000000)
st1            -nan(0x8080808080808080) (raw 0xffff8080808080808080)
st2            -nan(0x8080808080808080) (raw 0xffff8080808080808080)
st3            7.0317999822464116732589900493621826     (raw 0x4001e104816578600000)
st4            3.3969999914233994786627590656280518     (raw 0x4000d96872a6eb400000)
st5            0.018206894397735595703125       (raw 0x3ff99526a00000000000)
st6            1.93022358417510986328125        (raw 0x3ffff711910000000000)
st7            0.868533313274383544921875       (raw 0x3ffede58330000000000)
fctrl          0x37f    895
fstat          0x3933   14643
ftag           0x3fff   16383
fiseg          0x0      0
fioff          0x0      0
foseg          0x0      0
fooff          0x0      0
fop            0x0      0
xmm0           {f = {0x0, 0x0, 0x0, 0x0}}       {f = {-nan(0x7fffff), 
    -nan(0x7fffff), -nan(0x7fffff), -nan(0x7fffff)}}
xmm1           {f = {0x0, 0x0, 0x0, 0x0}}       {f = {-nan(0x7fffff), 
    -nan(0x7fffff), -nan(0x7fffff), -nan(0x7fffff)}}
xmm2           {f = {0x0, 0x0, 0x0, 0x0}}       {f = {-nan(0x7fffff), 
    -nan(0x7fffff), -nan(0x7fffff), -nan(0x7fffff)}}
xmm3           {f = {0x0, 0x0, 0x0, 0x0}}       {f = {-nan(0x7fffff), 
    -nan(0x7fffff), -nan(0x7fffff), -nan(0x7fffff)}}
xmm4           {f = {0x0, 0x0, 0x0, 0x0}}       {f = {-nan(0x7fffff), 
    -nan(0x7fffff), -nan(0x7fffff), -nan(0x7fffff)}}
xmm5           {f = {0x0, 0x0, 0x0, 0x0}}       {f = {-nan(0x7fffff), 
    -nan(0x7fffff), -nan(0x7fffff), -nan(0x7fffff)}}
xmm6           {f = {0x0, 0x0, 0x0, 0x0}}       {f = {-nan(0x7fffff), 
    -nan(0x7fffff), -nan(0x7fffff), -nan(0x7fffff)}}
xmm7           {f = {0x0, 0x0, 0x0, 0x0}}       {f = {-nan(0x7fffff), 
    -nan(0x7fffff), -nan(0x7fffff), -nan(0x7fffff)}}
mxcsr          0x1f80   8064
orig_eax       0xffffffff       -1
(gdb)

-- 

Vladimir



More information about the MPlayer-users mailing list