Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 126832 - mplayer-1.0.20060217 does not work with -vo xv
Summary: mplayer-1.0.20060217 does not work with -vo xv
Status: RESOLVED FIXED
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:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-19 09:59 UTC by James Bowlin
Modified: 2006-03-19 16:20 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 James Bowlin 2006-03-19 09:59:03 UTC
The older mplayer-1.0_pre7-r1 works reliably but can allow remote code
execution so I would prefer not to use it.  Here is the typical output from
mplayer-1.0.20060217:

~~~~~~~~~~~~~~~~~~~~~~~
MPlayer dev-CVS-060217-03:46-3.4.5 (C) 2000-2006 MPlayer Team
CPU: Intel Pentium 4/Celeron 4 Northwood; Pentium 4 EE/Xeon Prestonia,Gallatin (Family: 15, Stepping: 4)
MMX2 supported but disabled
CPUflags:  MMX: 1 MMX2: 0 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX SSE SSE2


Warning unknown option cache-prefill at line 147

91 audio & 206 video codecs
Playing logo.mpg.
Cache fill:  0.36% (30586 bytes)
VIDEO:  MPEG2  800x600  (aspect 1)  25.000 fps    0.0 kbps ( 0.0 kbyte/s)
X11 error: BadMatch (invalid parameter attributes)


MPlayer interrupted by signal 6 in module: preinit_libvo
- 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.
~~~~~~~~~~~~~~~~~~~~~~

This is on a Gentoo system emerged from the stage-3 tarball about 10 days ago.  I have the same failure on a much older Gentoo system running on the same hardware (Dell Inspiron 8200 laptop with an Nvidia GeForce 2 Go card).  The older system runs a 2.4.xx kernel.  Here is emerge --info:

~~~~~~~~~~~~~~~~~~~~~~~
$ sudo emerge --info
Portage 2.0.54 (default-linux/x86/2006.0, gcc-3.4.5, glibc-2.3.5-r2, 2.6.15-gentoo-r1 i686)
=================================================================
System uname: 2.6.15-gentoo-r1 i686 Intel(R) Pentium(R) 4 Mobile CPU 1.60GHz
Gentoo Base System version 1.6.14
dev-lang/python:     2.4.2
sys-apps/sandbox:    1.2.12
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
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/alias /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium4 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.mirrors.easynews.com/linux/gentoo/ http://cudlug.cudenver.edu/gentoo/ http://www.gtlib.gatech.edu/pub/gentoo"
LANG="en_US"
LC_ALL="en_US"
LINGUAS="en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="x86 X a52 aac aalib acpi alsa audiofile avi bash-completion bcmath berkdb bitmap-fonts blas bzip2 cdb cdparanoia cdr cli crypt ctype cups curl curlwrappers dba dbus dio directfb doc dri dvd dvdr dvdread encode examples exif expat fam fastbuild fbcon ffmpeg fftw flac foomaticdb force-cgi-redirect fortran ftp gd gif gmp gpm gstreamer hal idn ieee1394 imagemagick imlib jack jpeg jpeg2k kde kdeenablefinal kdexdeltas lapack lcms libg++ libwww mad maildir memlimit mime mmap mmx mng mp3 mpeg ncurses nptl nvidia offensive ogg oggvorbis opengl pam pcmcia pcre pdf pdflib perl plotutils png posix python qmail qt quicktime readline real recode ruby session simplexml slang soap sockets spell spl sse sse2 ssl subversion symlink sysvipc tcpd tetex tidy tiff tokenizer truetype truetype-fonts type1-fonts udev unicode usb userlocales vorbis wifi win32codecs wxwindows xine xinerama xml xml2 xosd xpm xsl xv xvid zlib linguas_en userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LDFLAGS
~~~~~~~~~~~~~~~~~~~~~~~~

I've posted about this problem in the forums but have not gotten any help there
nor from Google.  At least a couple of other people in the forums seem to have
related problems.  One person thought it might have to do with KDE hogging the
xv but I doubt it is a KDE problem because xine works fine as well as the older
mplayer.

The newer mplayer will work if I don't use -vo xv, but none of the non-xv
outputs is satisfactory.  For example -vo gl causes my computer to hang forcing
me to remove the battery and unplug it in order to get going again.  I didn't
omit my frame pointer and I am willing to do some work to help track down this
problem if someone can give me a little direction.

I think this is a serious problem since the obvious work-around is to use
the older version of mplayer which allows remote code execution.
Comment 1 Luca Barbato gentoo-dev 2006-03-19 12:27:54 UTC
there is a newer version available, still I couldn't experience your issue.
Comment 2 James Bowlin 2006-03-19 13:49:18 UTC
Thanks for the rapid reply.  I just did an emerge sync and then emerged
mplayer-1.0.20060302.  It has the same problem.  I realize that most people
don't have this problem.  I didn't report it on my older 2.4.x system because
it was old and crufty.  I was surprised that I had the same problem on a
freshly installed Gentoo system.  Everything on my system is from the stable
branch (except mplayer, which I unmasked to try the latest version).

The problem may be due to a quirk in my system, perhaps a strange xorg configuration or a strange combination of USE flags.  But I don't know where
to look.  Strace doesn't provide any useful clues, there doesn't seem to be
anything reported in the log files, and a diff of the mplayer-x.x.x/libvo/ directories (between working and non-working versions) is 10,000 lines long.

I am willing to dig around if you can give me a clue as to where to look.
I am using the stable monolithic xorg-x11-6.8.2-r6.  Since it seems to be an X11 error: 

    11 error: BadMatch (invalid parameter attributes)

perhaps I should try to emerge a different X11 server.  I am also intrigued by
the earlier warning:

    Warning unknown option cache-prefill at line 147

Perhaps this is related to the xv problem or perhaps they have a common cause.
I'm willing to work on this if you have any suggestions.  I realize that this
problem is probably not a high priority for you since it is not currently
affecting many people.
Comment 3 James Bowlin 2006-03-19 16:20:09 UTC
I discovered the xvinfo command which told me the major (142) and minor (??)
opcodes of the X11 error.  Google then led to a thread that suggested checking
my video drivers.  Since I have an older nvidia card, this raised my
suspicions especially since I had already been around the block with Nvidia
drivers vs. the 2.6.15 kernel.

I emerged the 1.0.7174-rX versions of nvidia-glx and nvidia-kernel.  This was
just a guess because I couldn't re-find the forum thread that I thought had
recommended this driver.

Anyway, the problem is now gone.  The newer mplayer had unearthed a problem
in the older nvidia driver: 1.0.6629-r?, the one that is currently marked
stable. I don't think the problem has anything to do with the kernel (even
though there are other problems with nvidia in the 2.6.15 kernel) because
I had the same problem with the newer mplayer under a 2.4.xx kernel as well
as the 2.6.15.