Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 55822 - media-video/mplayer: -vo xv fails with 'X11 error: BadAlloc (insufficient resources for operation)'
Summary: media-video/mplayer: -vo xv fails with 'X11 error: BadAlloc (insufficient res...
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Media-video project
URL: http://grepped.org/mplayer-1.0pre4-3....
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-01 12:56 UTC by Sig Lange
Modified: 2016-02-16 12:04 UTC (History)
1 user (show)

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 Sig Lange 2004-07-01 12:56:08 UTC
I'm running xorg-x11 (http://freedesktop.org/XOrg), I have no hardware acceleration on my system and xv seems to give the best performance w/ the features I want (like resize and such). I can play the same video file using other output drivers like x11. I'm running mplayer 1.0pre4-3.3.3 and have

USE="3dnow X aalib apache2 apm arts avi berkdb bonobo cdr crypt cups directfb dv                          d encode esd foomaticdb gd gdbm gif gnome gpm gtk gtk2 gtkhtml guile imap imlib                           java jpeg kde ldap libg++ libwww mad mikmod motif mozilla mpeg mysql nas ncurses                           nls oggvorbis opengl oss pam pdflib perl png postgres python qt quicktime readl                          ine samba sdl slang spell sse ssl svga tcpd tiff truetype x86 xml2 xmms xv zlib"



Reproducible: Always
Steps to Reproduce:
1. startx
2. open xterm
3. mplayer -vo xv <any movie file>

Actual Results:  
See details

Expected Results:  
Duh! The movie should have opened and enlightened me of what a nice ride I could
have =)

Portage 2.0.50-r8 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3.20040420-r0, 2.6.5)
=================================================================
System uname: 2.6.5 i686 Intel(R) XEON(TM) CPU 2.20GHz
Gentoo Base System version 1.5.0
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=i686 -funroll-loops -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2
                                         /share/config /usr/kde/3/share/config
/usr/lib/mozilla/defaults/pref /usr/share/                                     
    config /var/bind /var/qmail/alias /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=i686 -funroll-loops -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo ftp://gentoo.netnitco.net/pub/
                                         mirrors/gentoo/source/
http://gentoo.netnitco.net ftp://cudlug.cudenver.edu/pub/                      
                   mirrors/distributions/gentoo/ ftp://gentoo.agsn.ca/"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/bmg-main /usr/local/overlays/bmg-gnome-current.alter
                                         native"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X aalib apache2 apm arts avi berkdb bonobo cdr crypt cups directfb dv
                                         d encode esd foomaticdb gd gdbm gif
gnome gpm gtk gtk2 gtkhtml guile imap imlib                                    
      java jpeg kde ldap libg++ libwww mad mikmod motif mozilla mpeg mysql nas
ncurses                                           nls oggvorbis opengl oss pam
pdflib perl png postgres python qt quicktime readl                             
            ine samba sdl slang spell sse ssl svga tcpd tiff truetype x86 xml2
xmms xv zlib"
Comment 1 J.Taimr 2004-08-21 08:42:01 UTC
I have the same problem, irregularly. Also xorg-x11: mplayer, avidemux2 or xine fail in circa 50% cases with Bad Alloc message. Mplayer -vo x11 works without troubles always. Once it fails, it fails always afterwards, I must restart the X-server and then it is again ok (for certain time). (My videocard: Matrox G450/32MB, DRI used, 24 bpp/1280x1024). No error in xorg.log, nor in kdm.log. I did not find any dependency or regularity, it just happens, under KDE/Enlightenment or IceWM.
Comment 2 Paolo Ornati 2004-09-02 03:22:31 UTC
I have the same problem too... but with different hardware (video card: Voodoo Bashee) so I think it's a problem of xorg-X11 (XV extension).
Comment 3 Chris White (RETIRED) gentoo-dev 2004-11-09 07:10:43 UTC
I haven't heard any problems with this in recent versions of MPlayer and xorg.
Can you still confirm that it exists?
Comment 4 Jan Brinkmann (RETIRED) gentoo-dev 2005-02-06 15:11:34 UTC
please provide the requested info and feel free to reopen this one if this is still an issue
Comment 5 Antek Grzymała (antoszka) 2005-03-19 02:54:26 UTC
Well, yep, looks it's still an issue. I have a:

0000:01:00.0 VGA compatible controller: ATI Technologies Inc Rage Mobility M3 AGP 2x (rev 02)

After upgradeing to xorg-6.8.2-r1 (from 6.8.0-r4), I started getting this error on *all* my video players. In particular I do get it with mplayer -vo xv (do not get it with x11), I also get it with totem and probably get it with xine (it does not exit with that error, but does not play anyway). I'm not using mplayer-1.0pre4 anymore, but this happens on both 1.0pre5-r5 (current stable) and 1.0pre6-r1 (current testing).

The error happens on all those players when I try to play films *larger* than my screen resolution (1024x768). Smaller clips *seem* to play fine, on all the abovementioned players.

For those who may make some use out of it here's my emerge info:

Portage 2.0.51.19 (default-linux/x86/2004.0, gcc-3.3.5, glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r4 i686)
=================================================================
System uname: 2.6.11-gentoo-r4 i686 Celeron (Coppermine)
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb  8 2005, 01:26:03)]
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium3 -O2 -pipe -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/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-march=pentium3 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://mirrors.sec.informatik.tu-darmstadt.de/gentoo http://gentoo.linux.no/ http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://gentoo.inode.at/source/ http://gentoo.inode.at/ ftp://ftp.easynet.nl/mirror/gentoo/"
LANG="pl_PL"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 X aalib acl alsa apache2 apm audiofile avi bash-completion berkdb bitmap-fonts bluetooth bootspla bootsplash bzip2 bzlib calendar caps cdparanoia cdr crypt cscope cups curl curlwrappers dba dvd dvdr eds encode ethereal evo faad flac foomaticdb gcj gd gdbm gif gimp gimpprint gnome gpm gstreamer gtk gtk2 gtkhtml hal howl iconv imagemagick imap imlib ipv6 irda irmc jabber jack java jpeg kdeenablefinal ladcca ladspa lcms ldap libg++ libgda libwww mad mbox mikmod mmx motif mozilla moznocompose moznoirc moznomail mozsvg mp3 mpeg mysql ncurses net nls nptl objc offensive ogg oggvorbis opengl operanom2 pam pcmcia pcre pda pdf pdflib perl png pnp ppds python qt quicktime readline real samba sasl scanner sdl slang slp speex spell sse ssl svg svga tcltk tcpd tetex theora tidy tiff timidity truetype truetype-fonts trusted type1-fonts unicode usb userlocales wifi xine xinerama xml2 xmms xprint xrandr xv xvid zlib video_cards_rage128 linguas_pl"
Unset:  ASFLAGS, CBUILD, CTARGET, LC_ALL, LDFLAGS

Best regards, Antoni.
Comment 6 Wilson M. Michaels 2005-06-26 20:43:24 UTC
This bug appears similar to one at:

https://bugs.freedesktop.org/show_bug.cgi?id=474

The above bug has been repoened.

I am experiencing problems with XV unable to play high definition 1920x1080
video streams under mythtv. Lower resolution video streams play perfectly. When
displaying a HD stream, mythtv repeatedly reports: 

X Error: BadAlloc (insufficient resources for operation) 11
  Major opcode:  142
  Minor opcode:  19
  Resource id:  0x0

I am running linux-2.6.12-gentoo-r1, xorg 6.8.2, ATI binary Radeon X800 XL 256MB 
fglrx version 8.14.13, on a Pentium $ 2.4 GHz system.
Comment 7 Jan Matějka (RETIRED) gentoo-dev 2013-08-31 15:07:28 UTC
I've got the same issue - X11 error: Bad Alloc when using -vo xv, no matter what the video is.

If I set xorg Option "AccelMethod" to "sna" it works for about 2 seconds. Then the mplayer process dies and X process hogs the CPU.

Portage 2.1.12.2 (hardened/linux/amd64, gcc-4.6.3, glibc-2.15-r3, 3.6.11-gentoo x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.6.11-gentoo-x86_64-Intel-R-_Core-TM-_i5-4570S_CPU_@_2.90GHz-with-gentoo-2.2
KiB Mem:    16320252 total,   1455660 free
KiB Swap:    4200960 total,   4200960 free
Timestamp of tree: Mon, 26 Aug 2013 00:45:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.2_p45
dev-lang/python:          2.6.8-r3, 2.7.5-r2, 3.2.5-r2, 3.3.2-r2
dev-util/cmake:           2.8.10.2-r2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.7 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo multimedia x11 gentoo-haskell sunrise yac
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core-avx-i -O2 -pipe "
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa /var/bind"
CONFIG_PROTECT_MASK="${EPREFIX}/etc/gconf /etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=core-avx-i -O2 -pipe "
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch webrsync-gpg xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/multimedia /var/lib/layman/x11 /var/lib/layman/haskell /var/lib/layman/sunrise /var/lib/layman/yac"
SYNC=""
USE="3dnow 3dnowext aalib acl acpi alsa amd64 bash-completion bzip2 cdr cli common-lisp cracklib crypt cxx dri dvd faac ffmpeg gdbm hardened iconv ipv6 justify lame laptop mmx mmxext modules mudflap multilib ncurses nls nptl opengl openmp pam pax_kernel pcre qt3support qt4 readline session sse sse2 ssl ssse3 tcpd theora threads unicode urandom v4l v4l2 vim-syntax xcomposite xft xinerama zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="canon" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en cs ja" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" QEMU_SOFTMMU_TARGETS="x86_64 i386" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="intel i915 i965" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

media-video/mplayer-1.2_pre20130729 was built with the following:
USE="3dnow 3dnowext X aalib alsa dvd dvdnav enca encode faac iconv ipv6 libass mmx mmxext network opengl osdmenu shm sse sse2 ssse3 theora truetype unicode v4l xinerama xscreensaver xv -a52 (-altivec) (-aqua) -bidi -bindist -bl -bluray -bs2b -cddb -cdio -cdparanoia -cpudetection -debug -dga -directfb -doc -dts -dv -dvb -dxr3 -faad -fbcon -ftp -ggi -gif -gsm -jack -joystick -jpeg -jpeg2k -ladspa -libcaca -libmpeg2 -lirc -live -lzo -mad -md5sum -mng -mp3 -nas -nut -openal -oss -png -pnm -pulseaudio -pvr -radio -rar -rtc -rtmp -samba -sdl -speex -tga -toolame -tremor -twolame -vdpau (-vidix) -vorbis -x264 -xanim -xvid -xvmc -zoran" VIDEO_CARDS="-mga -s3virge -tdfx"


media-libs/mesa-9.2.0_rc2 was built with the following:
USE="classic egl gallium llvm nptl pax_kernel xorg xvmc -bindist -debug -gbm -gles1 -gles2 -opencl -openvg -osmesa -pic -r600-llvm-compiler (-selinux) -vdpau -wayland -xa" PYTHON_SINGLE_TARGET="python2_7 -python2_6" PYTHON_TARGETS="python2_7 -python2_6" VIDEO_CARDS="i915 i965 intel -freedreno -ilo -nouveau -r100 -r200 -r300 -r600 -radeon -radeonsi -vmware"


x11-base/xorg-drivers-1.13 was built with the following:
USE="(multilib)" ABI_X86="64" INPUT_DEVICES="evdev joystick -acecad -aiptek -elographics -fpit -hyperpen -keyboard -mouse -mutouch -penmount -synaptics -tslib -vmmouse -void -wacom" VIDEO_CARDS="intel -apm -ark -ast -chips -cirrus -dummy -epson -fbdev -fglrx -geode -glint -i128 -i740 -mach64 -mga -modesetting -neomagic -newport -nouveau -nv -nvidia -omap -omapfb -qxl -r128 -radeon -rendition -s3 -s3virge -savage -siliconmotion -sis -sisusb -sunbw2 -suncg14 -suncg3 -suncg6 -sunffb -sunleo -suntcx -tdfx -tga -trident -tseng -v4l -vesa -via -virtualbox -vmware -voodoo"
CFLAGS="-march=native -O2 -pipe"
CXXFLAGS="-march=native -O2 -pipe"


x11-base/xorg-server-1.13.4 was built with the following:
USE="ipv6 nptl suid udev xorg -dmx -doc -kdrive -minimal (-selinux) -static-libs -tslib -xnest -xvfb"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,lazy"
Comment 8 Pacho Ramos gentoo-dev 2016-02-16 12:04:01 UTC
please retry with recent mplayer and xorg versions