Opened 13 years ago

Closed 12 years ago

Last modified 12 years ago

#461 closed defect (worksforme)

Mplayer crashes with the new 7.0 X11 (xorg) and SDL

Reported by: gad@… Owned by: alex@…
Priority: normal Component: vo
Version: HEAD Severity: normal
Keywords: Cc: dominik@…
Blocked By: Blocking:
Reproduced by developer: Analyzed by developer:

Description

The player crashes with the new Xwindow system from xorg. But it usually works
with older versions... I think that can be related to new X Extensions...

Here is the info:


Backtrace


(gdb) bt
#0 0x00002aaaae992a69 in kill () from /lib/libc.so.6
#1 0x00002aaaaba26861 in pthread_kill () from /lib/libpthread.so.0
#2 0x00002aaaaba26be2 in raise () from /lib/libpthread.so.0
#3 0x00002aaaae992762 in raise () from /lib/libc.so.6
#4 0x00002aaaae993aa2 in abort () from /lib/libc.so.6
#5 0x000000000046800a in x11_errorhandler (display=0x6a2b,

event=0x7ffffff36a90) at x11_common.c:214

#6 0x00002aaaae3ab224 in _XError () from /usr/lib/libX11.so.6
#7 0x00002aaaae3ab846 in _XReply () from /usr/lib/libX11.so.6
#8 0x00002aaaae38af97 in XGetWindowProperty () from /usr/lib/libX11.so.6
#9 0x00002aaaae389b9d in XGetWMHints () from /usr/lib/libX11.so.6
#10 0x00002aaaae5b03e9 in X11_CheckMouseMode () from /usr/lib/libSDL-1.2.so.0
#11 0x00002aaaae5b1ab2 in X11_CheckMouseMode () from /usr/lib/libSDL-1.2.so.0
#12 0x00002aaaae5a7e86 in SDL_SetVideoMode () from /usr/lib/libSDL-1.2.so.0
#13 0x0000000000480de5 in set_video_mode (width=352, height=282, bpp=32,

sdlflags=1073741841) at vo_sdl.c:639

#14 0x000000000048188f in config (width=352, height=240, d_width=10912096,

d_height=264, flags=0, title=0x7ca901 "MPlayer", format=12320464)
at vo_sdl.c:882

#15 0x00000000004df2a3 in config (vf=0xbec120, width=352, height=240,

d_width=352, d_height=264, flags=0, outfmt=842094169) at vf_vo.c:48

#16 0x00000000004b8d39 in vf_config_wrapper (vf=0xbec120, width=6, height=1,

d_width=-1, d_height=78, flags=0, outfmt=27179) at vf.c:586

#17 0x00000000004b1007 in mpcodecs_config_vo (sh=0xbaf4b0, w=264, h=0,

preferred_outfmt=352) at vd.c:318

#18 0x00000000004b2849 in decode (sh=0xbaf4b0, data=0x2aaab15c1010, len=15876,

flags=-1) at vd_libmpeg2.c:164

#19 0x00000000004b09aa in decode_video (sh_video=0xbaf4b0,

start=0x2aaab15c1010 "", in_size=15872, drop_frame=0) at dec_video.c:316

#20 0x000000000043fda6 in main (argc=12252336, argv=0xdb6d3bbf)

at mplayer.c:2686



Disasm


(gdb) disass $pc-32 $pc+32
Dump of assembler code from 0x2aaaae992a49 to 0x2aaaae992a89:
0x00002aaaae992a49 <sigprocmask+41>: retq
0x00002aaaae992a4a <sigprocmask+42>: (bad)
0x00002aaaae992a4b <sigprocmask+43>: (bad)
0x00002aaaae992a4c <sigprocmask+44>: (bad)
0x00002aaaae992a4d <sigprocmask+45>: push %rdi
0x00002aaaae992a4f <sigprocmask+47>: fimull 0x5bd88910(%rcx)
0x00002aaaae992a55 <sigprocmask+53>: retq
0x00002aaaae992a56 <sigprocmask+54>: nop
0x00002aaaae992a57 <sigprocmask+55>: nop
0x00002aaaae992a58 <sigprocmask+56>: nop
0x00002aaaae992a59 <sigprocmask+57>: nop
0x00002aaaae992a5a <sigprocmask+58>: nop
0x00002aaaae992a5b <sigprocmask+59>: nop
0x00002aaaae992a5c <sigprocmask+60>: nop
0x00002aaaae992a5d <sigprocmask+61>: nop
0x00002aaaae992a5e <sigprocmask+62>: nop
0x00002aaaae992a5f <sigprocmask+63>: nop
0x00002aaaae992a60 <kill+0>: mov $0x3e,%rax
0x00002aaaae992a67 <kill+7>: syscall
0x00002aaaae992a69 <kill+9>: cmp $0xfffffffffffff001,%rax
0x00002aaaae992a6f <kill+15>: jae 0x2aaaae992a72 <kill+18>
0x00002aaaae992a71 <kill+17>: retq
0x00002aaaae992a72 <kill+18>: xor %rdx,%rdx
0x00002aaaae992a75 <kill+21>: sub %rax,%rdx
0x00002aaaae992a78 <kill+24>: push %rdx
0x00002aaaae992a79 <kill+25>: callq 0x2aaaae97faf8 <errno_location@plt>
0x00002aaaae992a7e <kill+30>: pop %rdx
0x00002aaaae992a7f <kill+31>: mov %edx,(%rax)
0x00002aaaae992a81 <kill+33>: or $0xffffffffffffffff,%rax
0x00002aaaae992a85 <kill+37>: jmp 0x2aaaae992a71 <kill+17>
0x00002aaaae992a87 <kill+39>: nop
0x00002aaaae992a88 <kill+40>: nop
End of assembler dump.


Registers AMD64


(gdb) info all-registers
rax 0x0 0
rbx 0x6a2b 27179
rcx 0xffffffffffffffff -1
rdx 0x1 1
rsi 0x6 6
rdi 0x6a2b 27179
rbp 0x2aaaabb31820 0x2aaaabb31820
rsp 0x7ffffff368a8 0x7ffffff368a8
r8 0x4e 78
r9 0x0 0
r10 0xffffffffffffffff -1
r11 0x200202 2097666
r12 0x6 6
r13 0x0 0
r14 0x43 67
r15 0x3e 62
rip 0x2aaaae992a69 0x2aaaae992a69 <kill+9>
eflags 0x200202 2097666
cs 0x33 51
ss 0x2b 43
ds 0x0 0
es 0x0 0
fs 0x0 0
gs 0x0 0
st0 -nan(0x00000ffff) (raw 0xffff000000000000ffff)
st1 0 (raw 0x00000000000000000000)
st2 0 (raw 0x00000000000000000000)
st3 0 (raw 0x00000000000000000000)
st4 0 (raw 0x00000000000000000000)
st5 0 (raw 0x00000000000000000000)
st6 0 (raw 0x00000000000000000000)
st7 0.4067777693271636962890625 (raw 0x3ffdd0452d0000000000)
fctrl 0x37f 895
fstat 0x0 0
ftag 0xffff 65535
fiseg 0x0 0
fioff 0x0 0
foseg 0x0 0
fooff 0x0 0
fop 0x0 0
xmm0 {v4_float = {0x1, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0},

v16_int8 = {0xe7, 0xc5, 0x9f, 0x3f, 0x0 <repeats 12 times>}, v8_int16 = {

0xc5e7, 0x3f9f, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x3f9fc5e7,
0x0, 0x0, 0x0}, v2_int64 = {0x3f9fc5e7, 0x0},

uint128 = 0x0000000000000000000000003f9fc5e7}

xmm1 {v4_float = {0x11a, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0},

v16_int8 = {0x0, 0x0, 0x8d, 0x43, 0x0 <repeats 12 times>}, v8_int16 = {0x0,

0x438d, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x438d0000, 0x0, 0x0,
0x0}, v2_int64 = {0x438d0000, 0x0},

uint128 = 0x000000000000000000000000438d0000}

xmm2 {v4_float = {0x119, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0},

v16_int8 = {0xcd, 0xcc, 0x8c, 0x43, 0x0 <repeats 12 times>}, v8_int16 = {

0xcccd, 0x438c, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x438ccccd,
0x0, 0x0, 0x0}, v2_int64 = {0x438ccccd, 0x0},

uint128 = 0x000000000000000000000000438ccccd}

xmm3 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0},

v16_int8 = {0x0 <repeats 16 times>}, v8_int16 = {0x0, 0x0, 0x0, 0x0, 0x0,

0x0, 0x0, 0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0},

uint128 = 0x00000000000000000000000000000000}

xmm4 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0},

v16_int8 = {0xf3, 0x4, 0x35, 0x3f, 0x0 <repeats 12 times>}, v8_int16 = {

0x4f3, 0x3f35, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x3f3504f3, 0x0,
0x0, 0x0}, v2_int64 = {0x3f3504f3, 0x0},

uint128 = 0x0000000000000000000000003f3504f3}

xmm5 {v4_float = {0x1, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0},

v16_int8 = {0xab, 0xaa, 0xaa, 0x3f, 0x0 <repeats 12 times>}, v8_int16 = {

0xaaab, 0x3faa, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x3faaaaab,
0x0, 0x0, 0x0}, v2_int64 = {0x3faaaaab, 0x0},

uint128 = 0x0000000000000000000000003faaaaab}

xmm6 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0},

v16_int8 = {0xb1, 0xf2, 0x1a, 0x9f, 0x7a, 0x68, 0xc3, 0x3c, 0x0, 0x0, 0x0,

0x0, 0x0, 0x0, 0x0, 0x0}, v8_int16 = {0xf2b1, 0x9f1a, 0x687a, 0x3cc3, 0x0,
0x0, 0x0, 0x0}, v4_int32 = {0x9f1af2b1, 0x3cc3687a, 0x0, 0x0}, v2_int64 = {
0x3cc3687a9f1af2b1, 0x0}, uint128 = 0x00000000000000003cc3687a9f1af2b1}

xmm7 {v4_float = {0x0, 0x2, 0x0, 0x0}, v2_double = {0x8, 0x0},

v16_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x20, 0x40, 0x0, 0x0, 0x0, 0x0,

0x0, 0x0, 0x0, 0x0}, v8_int16 = {0x0, 0x0, 0x0, 0x4020, 0x0, 0x0, 0x0,
0x0}, v4_int32 = {0x0, 0x40200000, 0x0, 0x0}, v2_int64 = {
0x4020000000000000, 0x0}, uint128 = 0x00000000000000004020000000000000}

xmm8 {v4_float = {0x0, 0x1, 0x0, 0x0}, v2_double = {0x0, 0x0},

v16_int8 = {0xcd, 0x3b, 0x7f, 0x66, 0x9e, 0xa0, 0xe6, 0x3f, 0x0, 0x0, 0x0,

0x0, 0x0, 0x0, 0x0, 0x0}, v8_int16 = {0x3bcd, 0x667f, 0xa09e, 0x3fe6, 0x0,
0x0, 0x0, 0x0}, v4_int32 = {0x667f3bcd, 0x3fe6a09e, 0x0, 0x0}, v2_int64 = {
0x3fe6a09e667f3bcd, 0x0}, uint128 = 0x00000000000000003fe6a09e667f3bcd}

xmm9 {v4_float = {0x0, 0x1, 0x0, 0x0}, v2_double = {0x0, 0x0},

v16_int8 = {0xef, 0x39, 0xfa, 0xfe, 0x42, 0x2e, 0xe6, 0x3f, 0x0, 0x0, 0x0,

0x0, 0x0, 0x0, 0x0, 0x0}, v8_int16 = {0x39ef, 0xfefa, 0x2e42, 0x3fe6, 0x0,
0x0, 0x0, 0x0}, v4_int32 = {0xfefa39ef, 0x3fe62e42, 0x0, 0x0}, v2_int64 = {
0x3fe62e42fefa39ef, 0x0}, uint128 = 0x00000000000000003fe62e42fefa39ef}

xmm10 {v4_float = {0x0, 0x1, 0x0, 0x0}, v2_double = {0x0, 0x0},

v16_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xe0, 0x3f, 0x0, 0x0, 0x0, 0x0,

0x0, 0x0, 0x0, 0x0}, v8_int16 = {0x0, 0x0, 0x0, 0x3fe0, 0x0, 0x0, 0x0,
0x0}, v4_int32 = {0x0, 0x3fe00000, 0x0, 0x0}, v2_int64 = {
0x3fe0000000000000, 0x0}, uint128 = 0x00000000000000003fe0000000000000}

xmm11 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0},

v16_int8 = {0x0 <repeats 16 times>}, v8_int16 = {0x0, 0x0, 0x0, 0x0, 0x0,

0x0, 0x0, 0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0},

uint128 = 0x00000000000000000000000000000000}

xmm12 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0},

v16_int8 = {0x0 <repeats 16 times>}, v8_int16 = {0x0, 0x0, 0x0, 0x0, 0x0,

0x0, 0x0, 0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0},

uint128 = 0x00000000000000000000000000000000}

xmm13 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0},

v16_int8 = {0x0 <repeats 16 times>}, v8_int16 = {0x0, 0x0, 0x0, 0x0, 0x0,

0x0, 0x0, 0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0},

uint128 = 0x00000000000000000000000000000000}

xmm14 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0},

v16_int8 = {0x0 <repeats 16 times>}, v8_int16 = {0x0, 0x0, 0x0, 0x0, 0x0,

0x0, 0x0, 0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0},

uint128 = 0x00000000000000000000000000000000}

xmm15 {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0},

v16_int8 = {0x0 <repeats 16 times>}, v8_int16 = {0x0, 0x0, 0x0, 0x0, 0x0,

0x0, 0x0, 0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0},

uint128 = 0x00000000000000000000000000000000}

mxcsr 0x1fa0 8096



And the mplayer output


Using GNU internationalization
Original domain: messages
Original dirname: /usr/share/locale
Current domain: mplayer
Current dirname: /usr/share/locale

MPlayer dev-CVS-060217-11:46-3.4.5 (C) 2000-2006 MPlayer Team
CPU: Advanced Micro Devices Athlon 64 Newcastle; Athlon 64 X2 Manchester (Family
: 15, Stepping: 1)
CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.

Warning unknown option cache-prefill at line 147

91 audio & 206 video codecs
Linux RTC init error in ioctl (rtc_irqp_set 1024): Permission denied
Try adding "echo 1024 > /proc/sys/dev/rtc/max-user-freq" to your system startup
scripts.
Opening joystick device /dev/input/js0
Can't open joystick device /dev/input/js0: No such file or directory
Can't init input joystick
Playing Bruce.Lee_Operacion_Dragon_RAfa.(spanish.CVCD).mpg.
Cache fill: 0.20% (16384 bytes)
MPEG-PS file format detected.
VIDEO: MPEG1 352x240 (aspect 12) 29.970 fps 1150.0 kbps (143.8 kbyte/s)
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 44100 Hz, 2 ch, s16le, 224.0 kbit/15.87% (ratio: 28000->176400)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
SDL: Using driver: x11
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 352 x 240 (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 adding the scale filter, 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))
==========================================================================
alsa-init: 1 soundcard found, using: default
alsa: 44100 Hz/2 channels/4 bpf/60208 bytes buffer/Signed 16 bit Little Endian
AO: [alsa] 44100Hz 2ch s16le (2 bytes per sample)
Starting playback...
VDec: vo config request - 352 x 240 (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: [sdl] 352x240 => 352x264 Planar YV12
X11 error: BadValue? (integer parameter out of range for operation)

MPlayer interrupted by signal 6 in module: decode_video

  • MPlayer crashed. This shouldn't happen. It can be a bug in the MPlayer code _or_ in your drivers _or_ in your gcc version. If you think it's MPlayer's fault, please read DOCS/HTML/en/bugreports.html and follow the instructions there. We can't and won't help unless you provide this information when reporting a possible bug.

X11 error: BadColor? (invalid Colormap parameter)

MPlayer interrupted by signal 6 in module: uninit_vo
alsa-uninit: pcm closed


Machine

Linux azul1 2.6.15-gentoo-r5 #3 SMP PREEMPT Thu Feb 16 00:55:04 CET 2006 x86_64
AMD Athlon(tm) 64 X2 Dual Core Processor 4200+ GNU/Linuxg

Gentoo Base System version 1.12.0_pre16
dev-lang/python: 2.3.5-r2, 2.4.2-r1
sys-apps/sandbox: 1.2.17
sys-devel/autoconf: 2.13, 2.59-r7
sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils: 2.16.1-r1
sys-devel/libtool: 1.5.22
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O3 -march=k8 -pipe"
CHOST="x86_64-pc-linux-gnu"
CXXFLAGS="-O3 -march=k8 -pipe"

And finally I will include some extra information you will need but as
attachments...

Hope it helps... Mplayer is a great player but would be really nice if you
modularize it in order to use inside applications...

Freevo looks great for example but it's a pain to have it opening and closing
mplayer windows all over the screen...

Thank you so much

Attachments (1)

xdpyinfo.output (21.4 KB) - added by gad@… 13 years ago.
xdpyinfo with extensions supported…

Download all attachments as: .zip

Change History (6)

Changed 13 years ago by gad@…

xdpyinfo with extensions supported...

comment:1 Changed 13 years ago by gad@…

I forgot to say that I have a NVIDIA card with latest drivers... And all
options enabled (even DEBUG ones) like XRender Composite, etc...

comment:2 Changed 13 years ago by reimar

This is deep in SDL code. Please first check that any other SDL programs work
fine, at least to me it does not look like this is an MPlayer problem.
(and why are you using -vo sdl and not -vo xv?)

comment:3 Changed 13 years ago by gad@…

Yep, it works with xv but there is a problem with the sound or with sync between
audio and video. But I think this is another issue and I know how to solve.

comment:4 Changed 13 years ago by dominik@…

  • Cc dominik@… added
  • Summary changed from Mplayer crashes with the new 7.0 X11 (xorg) to Mplayer crashes with the new 7.0 X11 (xorg) and SDL

Modified summary accordingly. This seems to be strictly SDL-related.

comment:5 Changed 12 years ago by reimar

  • Resolution set to worksforme
  • Status changed from new to closed

No problem here, probably an intermittent bug in SDL or so. Always feel free to
reopen if you disagree.

Note: See TracTickets for help on using tickets.