[MPlayer-users] [BUG][CRASH] -vo x11 -vf spp=1, scale with current CVS.

Jan Knutar jknutar at nic.fi
Sun Oct 24 06:24:50 CEST 2004


This bug has been present for a longer time..

To reproduce:

mplayer -v -vo x11 -vf spp=1,scale anyvideofile.avi

(verboselog attached)

(gdb) bt
#0  0x00a5e691 in malloc_consolidate () from /lib/tls/libc.so.6
#1  0x00a5dcaa in _int_malloc () from /lib/tls/libc.so.6
#2  0x00a5ebbd in _int_memalign () from /lib/tls/libc.so.6
#3  0x00a5d467 in memalign () from /lib/tls/libc.so.6
#4  0x08100aa8 in vf_get_image (vf=0x8777200, outfmt=1111970336, mp_imgtype=2, mp_imgflag=24, w=352, h=288) at vf.c:335
#5  0x08103646 in put_image (vf=0x8777250, mpi=0x8871220) at vf_scale.c:301
#6  0x08101355 in vf_next_put_image (vf=0x87773d8, mpi=0x8871220) at vf.c:543
#7  0x0811d107 in put_image (vf=0x87773d8, mpi=0x886f618) at vf_spp.c:504
#8  0x080f8310 in decode_video (sh_video=0x875a000, start=0x875ee68 "", in_size=1335, drop_frame=0) at dec_video.c:332
#9  0x0808405e in main (argc=7, argv=0xfefff884) at mplayer.c:2163
(gdb) bt full
#0  0x00a5e691 in malloc_consolidate () from /lib/tls/libc.so.6
No symbol table info available.
#1  0x00a5dcaa in _int_malloc () from /lib/tls/libc.so.6
No symbol table info available.
#2  0x00a5ebbd in _int_memalign () from /lib/tls/libc.so.6
No symbol table info available.
#3  0x00a5d467 in memalign () from /lib/tls/libc.so.6
No symbol table info available.
#4  0x08100aa8 in vf_get_image (vf=0x8777200, outfmt=1111970336, mp_imgtype=2, mp_imgflag=24, w=352, h=288) at vf.c:335
        mpi = (mp_image_t *) 0x40
        w2 = 11616252
#5  0x08103646 in put_image (vf=0x8777250, mpi=0x8871220) at vf_scale.c:301
        vf = (struct vf_instance_s *) 0x8777250
        mpi = (mp_image_t *) 0x8871220
        dmpi = (mp_image_t *) 0x0
#6  0x08101355 in vf_next_put_image (vf=0x87773d8, mpi=0x8871220) at vf.c:543
        vf = (struct vf_instance_s *) 0x81818181
        mpi = (mp_image_t *) 0xb157c8
#7  0x0811d107 in put_image (vf=0x87773d8, mpi=0x886f618) at vf_spp.c:504
        dmpi = (mp_image_t *) 0x8871220
#8  0x080f8310 in decode_video (sh_video=0x875a000, start=0x875ee68 "", in_size=1335, drop_frame=0) at dec_video.c:332
        start = (unsigned char *) 0x886f618 "\033�004\fYV12`\001"
        in_size = 142046168
        vf = (vf_instance_t *) 0x87773d8
        mpi = (mp_image_t *) 0x886f618
        t = 3189
        t2 = 251992338
        ret = 143062552
#9  0x0808405e in main (argc=7, argv=0xfefff884) at mplayer.c:2163
        start = (unsigned char *) 0x875ee68 ""
        in_size = 1335
        frame_time = 0.0399999991
        aq_sleep_time = 0
        osd_text_buffer = "\000K\000HK\000\220\002�000\000\000\000&�021\000\000\000\000\000\200�235\000\021\a\022\000\000\000\000\000�\022\000�\001\000\000\000\204�[�021\000�\022\000�"
        next_frame_time = 0.0399999991
        frame_time_remaining = 0
        time_frame = -0.331519276
        osd_show_text_buffer = "\000\000\000\000�\022\000@�\002\000\000\000\034�\027\b\022\000\b\000\000\000\024\000\000\000�\022\000�T\021\000\024\000\000\000$\000\000\000\216�021\000\000\000\000\000�\022"
        drop_frame = 0
        dropped_frames = 1
        AV_delay = -nan(0x40013f)
        blit_frame = 0
        mem_ptr = 0x537 <Address 0x537 out of bounds>
        d_audio = (demux_stream_t *) 0x8759de0
        d_video = (demux_stream_t *) 0x8759e48
        d_dvdsub = (demux_stream_t *) 0x8759eb0
        file_format = 0
        osd_function = 1
        osd_last_pts = 0
        osd_show_av_delay = 0
        osd_show_text = 0
        osd_show_speed = 0
        osd_show_sub_delay = 0
        osd_show_sub_pos = 0
        osd_show_sub_visibility = 0
        osd_show_sub_alignment = 0
        osd_show_vobsub_changed = 0
        osd_show_sub_changed = 0
        osd_show_percentage = 0
        osd_show_tv_channel = 25
        osd_show_ontop = 0
        osd_show_rootwin = 0
        osd_show_framedropping = 0
        rtc_fd = 7
        i = 1335
        tmp = 0x537 <Address 0x537 out of bounds>
        gui_no_filename = 0

-------------- next part --------------
Starting program: /extra/mplayer2/main/mplayer -v -vo x11 -vf spp=1,scale overthehills.avi
[Thread debugging using libthread_db enabled]
[New Thread -151139808 (LWP 17393)]
Using GNU internationalization
Original domain: messages
Original dirname: /usr/share/locale
Current domain: mplayer
Current dirname: /usr/local/share/locale

MPlayer dev-CVS-041021-17:02-2.95.3 (C) 2000-2004 MPlayer Team

CPU: Intel Celeron 2/Pentium III Coppermine,Geyserville (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 for x86 CPU with extensions: MMX MMX2 SSE

Reading config file /usr/local/etc/mplayer/mplayer.conf: No such file or directory
Reading config file /home/jan/.mplayer/config
Reading /home/jan/.mplayer/codecs.conf: Can't open '/home/jan/.mplayer/codecs.conf': No such file or directory
Reading /usr/local/etc/mplayer/codecs.conf: Can't open '/usr/local/etc/mplayer/codecs.conf': No such file or directory
Using built-in default codecs.conf.
CommandLine: '-v' '-vo' 'x11' '-vf' 'spp=1,scale' 'overthehills.avi'
init_freetype
get_path('font/font.desc') -> '/home/jan/.mplayer/font/font.desc'
Font /home/jan/.mplayer/font/font.desc loaded successfully! (206 chars)
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
Using Linux hardware RTC timing (1024Hz).
get_path('input.conf') -> '/home/jan/.mplayer/input.conf'
Parsing input config file /home/jan/.mplayer/input.conf
Input config file /home/jan/.mplayer/input.conf parsed: 52 binds
get_path('overthehills.avi.conf') -> '/home/jan/.mplayer/overthehills.avi.conf'

Playing overthehills.avi.
[file] File size is 19492348 bytes
STREAM: [file] overthehills.avi
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
AVI file format detected.
list_end=0x146
======= AVI Header =======
us/frame: 40000  (fps=25.000)
max bytes/sec: 0
padding: 0
MainAVIHeader.dwFlags: (2320) HAS_INDEX IS_INTERLEAVED TRUST_CKTYPE
frames  total: 5799   initial: 0
streams: 2
Suggested BufferSize: 0
Size:  352 x 288
==========================
list_end=0xD4
==> Found video stream: 0
====== STREAM Header =====
Type: vids   FCC:  (0)
Flags: 0
Priority: 0   Language: 0
InitialFrames: 0
Rate: 250000/10000 = 25.000
Start: 0   Len: 5799
Suggested BufferSize: 29788
Quality 0
Sample size: 0
==========================
found 'bih', 40 bytes of 40
======= VIDEO Format ======
  biSize 40
  biWidth 352
  biHeight 288
  biPlanes 1
  biBitCount 24
  biCompression 1482049860='DIVX'
  biSizeImage 304128
===========================
Regenerating keyframe table for MPEG4 video
list_end=0x146
==> Found audio stream: 1
====== STREAM Header =====
Type: auds   FCC:  (0)
Flags: 0
Priority: 0   Language: 0
InitialFrames: 0
Rate: 44100/1152 = 38.281
Start: 0   Len: 8899
Suggested BufferSize: 835
Quality 0
Sample size: 0
==========================
found 'wf', 30 bytes of 18
======= WAVE Format =======
Format Tag: 85 (0x55)
Channels: 2
Samplerate: 44100
avg byte/sec: 14668
Block align: 1152
bits/sample: 0
cbSize: 12
mp3.wID=1
mp3.fdwFlags=0x2
mp3.nBlockSize=1152
mp3.nFramesPerBlock=1
mp3.nCodecDelay=0
===========================
list_end=0x125D754
Found movie at 0x80C - 0x125D754
Reading INDEX block, 14698 chunks for 5799 frames (fpos=0x125d75c)
AVI index offset: 0x808 (movi=0x80C idx0=0x4 idx1=0x74)
Auto-selected AVI audio ID = 1
Auto-selected AVI video ID = 0
AVI: Searching for audio stream (id:1)
AVI video size=15716220 (5799) audio size=3409782 (8899)
VIDEO:  [DIVX]  352x288  24bpp  25.000 fps  542.0 kbps (66.2 kbyte/s)
[V] filefmt:3  fourcc:0x58564944  size:352x288  fps:25.00  ftime:=0.0400
get_path('sub/') -> '/home/jan/.mplayer/sub/'
get_path('default.sub') -> '/home/jan/.mplayer/default.sub'
==========================================================================
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 MMX optimized decore!
MP3lib: init layer2&3 finished, tables done
MPEG 1.0, Layer III, 44100 Hz 32 kbit Joint-Stereo, BPF: 104
Channels: 2, copyright: No, original: Yes, CRC: No, emphasis: 0
AUDIO: 44100 Hz, 2 ch, 16 bit (0x10), ratio: 4000->176400 (32.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 1152x864 with depth 24 and 32 bpp (":0.0" => local display)
[x11] Detected wm supports NetWM.
[x11] Detected wm supports FULLSCREEN state.
[x11] Detected wm supports ABOVE state.
[x11] Detected wm supports BELOW state.
[x11] Current fstype setting honours FULLSCREEN ABOVE BELOW X atoms
Disabling DPMS
DPMSDisable stat: 1
xscreensaver_disable: xscreensaver wid=10485761.
Detaching after fork from child process 17420.
Opening video filter: [scale]
SwScale params: -1 x -1 (-1=no scaling)
Opening video filter: [spp=1]
[scale] query(Planar YVU9) -> 1
[scale] query(Planar IF09) -> 1
[scale] query(Planar YV12) -> 1
[scale] query(Planar I420) -> 1
[scale] query(Planar IYUV) -> 1
[scale] query(Planar CLPL) -> 0
[scale] query(Planar Y800) -> 1
[scale] query(Planar Y8) -> 1
[scale] query(Planar NV12) -> 0
[scale] query(Planar 444P) -> 1
[scale] query(Planar 422P) -> 1
[scale] query(Planar 411P) -> 1
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
INFO: libavcodec init OK!
Selected video codec: [ffodivx] vfm:ffmpeg (FFmpeg MPEG-4)
==========================================================================
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: using '/dev/mixer' mixer device
audio_setup: using 'pcm' mixer 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  (8192 bytes/frag)  free:  65536
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...
XXX initial  v_pts=0.000  a_pos=7978 (0.544)
[ffmpeg] aspect_ratio: 1.222222
VDec: vo config request - 352 x 288 (preferred csp: Planar YV12)
[PP] Using external postprocessing filter, max q = 6.
Trying filter chain: spp scale vo
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.22:1 - prescaling to correct movie aspect.
VO Config (352x288->352x288,flags=0,'MPlayer',0x32315659)
REQ: flags=0x4C5  req=0x0
SwScaler: using unscaled Planar YV12 -> BGRA special converter
REQ: flags=0x4C7  req=0x0
VO: [x11] 352x288 => 352x288 BGRA
VO: Description: X11 ( XImage/Shm )
VO: Author: Aaron Holtzman <aholtzma at ess.engr.uvic.ca>
Sharing memory.
*** [spp] Allocating mp_image_t, 352x288x12bpp YUV planar, 152064 bytes
*** [spp] Allocating mp_image_t, 352x288x12bpp YUV planar, 152064 bytes.00x
*** [scale] Allocating mp_image_t, 352x288x9bpp YUV planar, 114048 bytes



More information about the MPlayer-users mailing list