Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 82518 - mplayer does not play DVD: "X11 error: BadAlloc"
Summary: mplayer does not play DVD: "X11 error: BadAlloc"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-18 19:56 UTC by Christian Seifert
Modified: 2005-02-27 06:51 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Seifert 2005-02-18 19:56:24 UTC
This is my first posting in Bugzilla. If i do anything wrong, please tell me..

Reproducible: Always
Steps to Reproduce:
1.mplayer dvd://
2.
3.
Actual Results:  
"mplayer dvd://" 
shows the following fault: 
 
"MPlayer 1.0pre5try2-3.3.5 (C) 2000-2004 MPlayer Team 
 
CPU: Intel Celeron 2/Pentium III Coppermine,Geyserville 848.7 MHz (Family: 6, 
Stepping: 6) 
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/share/mplayer/mplayer.conf 
Reading config file /root/.mplayer/config 
Reading /root/.mplayer/codecs.conf: Can't open '/root/.mplayer/codecs.conf': 
No such file or directory 
Reading /usr/share/mplayer/codecs.conf: 73 audio & 180 video codecs 
font: can't open file: /root/.mplayer/font/font.desc 
Font /usr/share/mplayer/font/font.desc loaded successfully! (206 chars) 
Using usleep() timing 
Can't open input config file /root/.mplayer/input.conf: No such file or 
directory 
Input config file /usr/share/mplayer/input.conf parsed: 53 binds 
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 dvd://. 
libdvdread: Using libdvdcss version 1.2.8 for DVD access 
Reading disc structure, please wait... 
There are 11 titles on this DVD. 
There are 36 chapters in this DVD title. 
There are 1 angles in this DVD title. 
 
libdvdread: Attempting to retrieve all CSS keys 
libdvdread: This can take a _long_ time, please be patient 
 
libdvdread: Get key for /VIDEO_TS/VIDEO_TS.VOB at 0x00000130 
libdvdread: Elapsed time 0 
libdvdread: Get key for /VIDEO_TS/VTS_01_1.VOB at 0x000001b6 
libdvdread: Elapsed time 0 
libdvdread: Get key for /VIDEO_TS/VTS_02_0.VOB at 0x0006b0e5 
libdvdread: Elapsed time 0 
libdvdread: Get key for /VIDEO_TS/VTS_02_1.VOB at 0x0007dffb 
libdvdread: Elapsed time 0 
libdvdread: Found 2 VTS's 
libdvdread: Elapsed time 0 
DVD successfully opened. 
Selected DVD audio channel: 129 language: de 
Cache fill: 13.09% (1097728 bytes)    MPEG-PS file format detected. 
VIDEO:  MPEG2  720x576  (aspect 3)  25.000 fps  6799.6 kbps (850.0 kbyte/s) 
========================================================================== 
Opening audio decoder: [liba52] AC3 decoding with liba52 
Using SSE optimized IMDCT transform 
AC3: 5.1 (3f+2r+lfe)  48000 Hz  384.0 kbit/s 
Using MMX optimized resampler 
AUDIO: 48000 Hz, 2 ch, 16 bit (0x10), ratio: 48000->192000 (384.0 kbit) 
Selected audio codec: [a52] afm:liba52 (AC3-liba52) 
========================================================================== 
vo: X11 running at 1024x768 with depth 24 and 32 bpp (":0" => local display) 
Disabling DPMS 
========================================================================== 
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough 
VDec: vo config request - 720 x 576 (preferred csp: 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. 
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 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 - 720 x 576 (preferred csp: Planar YV12) 
VDec: using Planar YV12 as output csp (no 0) 
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect. 
VO: [xv] 720x576 => 1024x576 Planar YV12 
X11 error: BadAlloc (insufficient resources for operation)  0.0% 4 0 23% 
 
 
MPlayer interrupted by signal 6 in module: flip_page 
- 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. 
Successfully enabled DPMS 
Xlib: unexpected async reply (sequence 0x63)!" 
 
If I start with "mplayer dvd:// -vo x11", 
mplayer opens a window and plays the film (with a bad performens and very 
quiet). 
 
In some forums, I read, that ATI-users had the same problem, but I use 
"[SiS] 630/730 PCI/AGP VGA Display Adapter (rev 11)". 
 
Here some infos: 
"Portage 2.0.51-r15 (default-linux/x86/2004.3, gcc-3.3.5, 
glibc-2.3.4.20040808-r1, 2.6.9-gentoo-r1 i686) 
================================================================= 
System uname: 2.6.9-gentoo-r1 i686 Pentium III (Coppermine) 
Gentoo Base System version 1.4.16 
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb  9 2005, 
20:03:57)] 
dev-lang/python:     2.3.4-r1 
sys-devel/autoconf:  2.13, 2.59-r6 
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.4_p6, 1.9.4, 1.8.5-r3 
sys-devel/binutils:  2.15.92.0.2-r1 
sys-devel/libtool:   1.4.3-r4, 1.5.10-r4 
virtual/os-headers:  2.4.21-r1 
ACCEPT_KEYWORDS="x86" 
AUTOCLEAN="yes" 
CFLAGS="-O2 -march=pentium3 -fomit-frame-pointer" 
CHOST="i686-pc-linux-gnu" 
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" 
CXXFLAGS="-O2 -march=pentium3 -fomit-frame-pointer" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms" 
GENTOO_MIRRORS="ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo" 
MAKEOPTS="-j2" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
USE="x86 X aac acpi acpi4linux alsa apm arts avi berkdb bitmap-fonts 
bootsplash cdrom clanJavaScript clanVoice crypt cups curl divx4linux dvd 
dvdread emboss encode f77 fam firebird font-server foomaticdb fortran gcj gdbm 
gpm imlib java javascript joystick jpeg kde libg++ libwww mad mikmod mmx mmx2 
motif mp3 mpeg mysql ncurses network nls oggvorbis opengl oss pam pcmcia 
pdflib perl php png pnp povray ppds python qt quicktime readline samba sdl 
slang spell sse ssl svga tcpd tiff truetype truetype-fonts type1-fonts unicode 
usb v4l v4l2 vcd wmf xinerama xml2 xmms xv xvid xvmc zlib" 
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY"
Comment 1 Reimar Döffinger 2005-02-19 03:04:24 UTC
Hmm... there was once an xorg bug that caused this...Could you upgrade to see if this fixes things (I know, that's quite an effort *g*)?
Comment 2 Christian Seifert 2005-02-19 11:11:37 UTC
I use:
"*  x11-base/xorg-x11
      Latest version available: 6.8.0-r4
      Latest version installed: 6.8.0-r4
      Size of downloaded files: 72,273 kB
      Homepage:    http://xorg.freedesktop.org/
      Description: An X11 implementation maintained by the X.Org Foundation
      License:     Adobe-X CID DEC DEC-2 IBM-X NVIDIA-X NetBSD SGI UCB-LBL XC-2 bigelow-holmes-urw-gmbh-luxi christopher-g-demetriou national-semiconductor nokia tektronix the-open-group todd-c-miller x-truetype xfree86-1.0 MIT SGI-B BSD || ( FTL GPL-2 )"

This is the latest stable package. Should I take one of the test-packages
(6.8.1.901-r1 or 6.8.2)? If I ought to, wich one should I take?
Comment 3 Reimar Döffinger 2005-02-20 02:29:43 UTC
Don't know, I thought it only happened with versions before October or so... Maybe it is caused by something else.
Maybe you can try to scale the image (-vf scale=width:height) and see if it works then? I find it hard to imagine, but maybe you graphics card only supports smaller overlay? and try -nodouble. Maybe older or newer MPlayer versions work? That's about all ideas I have...
Comment 4 Chris White (RETIRED) gentoo-dev 2005-02-25 13:56:15 UTC
Please try the test request and updating your xorg.  I had this same bug at some point and upgrading seemed to work.
Comment 5 Christian Seifert 2005-02-26 11:18:27 UTC
I updated my xorg to 6.8.2 with the same result.
Using -vf scale=width:height or -nodouble flag for mplayer did not help.
I tried the previous stable version of mplayer (1.0_pre4-r7) and the latest testing version (1.0_pre6).
Nothing managed it.
Comment 6 Christian Seifert 2005-02-27 03:57:55 UTC
I tried so different video-outputs (-vo [output]). 
Here are the results:

works (but with bad performens): x11, gl, gl2
does not work (with described error): xv, sdl 

all other video-outputs (written in the mplayer manpage) bring up the following message: "Error opening/initializing the selected video_out (-vo) device."

vesa: forces a big bug (!): the screen moves black and only changed objects (in X11: when you move the mouse over the object) reappear, the mplayer stops without an error message. The Cursor in this terminal is not blinking any more till I logout (,but I'm still able to write). [switching to the bash and back helps bringing the objects back: ALT + CTRL + F2 followed by ALT +F7)]

Once more, I want to focus on the fact, that I use a SiS-Chip (see above).
I use the following driver (/etc/X11/xorg.conf):
Section "Device"
        Identifier "SiS VGA chipset"
        VendorName "SiS"
BoardName "SiS"

Driver "sis"
EndSection
Comment 7 Christian Seifert 2005-02-27 06:51:06 UTC
I held correspondence to the writer of the sis-driver and he wrote me, that my problem is not enough video-memory. I pushed up the video-mem in the BIOS and now it works.
It seems, as if an update of a lib, mplayer or xorg causes a higher need of video-mem for playing DVDs.

Thanks to all and especially to Thomas Winnischofer (the writer of the sis-driver).