Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 181432 - media-video/gxine-0.5.11 - BadMatch (invalid parameter attributes)
Summary: media-video/gxine-0.5.11 - BadMatch (invalid parameter attributes)
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High critical (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-09 16:50 UTC by Marek Cruz
Modified: 2008-01-06 14:52 UTC (History)
2 users (show)

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


Attachments
/root/atisysteminfo-report.txt (atisysteminfo-report.txt,164.88 KB, text/plain)
2007-06-13 09:56 UTC, Jakob Schiotz
Details
Better debug output from gxine (abc.log,13.92 KB, text/plain)
2007-06-24 11:22 UTC, Marek Cruz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marek Cruz 2007-06-09 16:50:00 UTC
I don't know how to set a breakpoint to get reasonable informations for you, can you please help me?

Reproducible: Always

Steps to Reproduce:
1. run gxine with any file (for example gxine /home/user/anything.avi)

Actual Results:  
 Gxine always writes this:

gtkvideo: failed to get a proxy for gnome-screensaver
The program 'gxine' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadMatch (invalid parameter attributes)'.
  (Details: serial 325 error_code 8 request_code 139 minor_code 14)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)


Expected Results:  
The movie should be played

gxine 0.5.11 (release)
Comment 1 Marek Cruz 2007-06-09 16:54:32 UTC
I use X Window System Version 7.1.1 with Ati Sapphire x1550 and (unfortunatelly) with proprietary drivers because i need to have 3D
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2007-06-09 16:56:01 UTC
emerge --info, please. Also, using xinerama/aixgl or something like that?
Comment 3 Marek Cruz 2007-06-09 17:04:04 UTC
Thank you so much for your interest in this bug,aiglx is on, xinerama is not installed, emerge --info gxine is here:
fr33z user # emerge --info gxine
Portage 2.1.2.7 (default-linux/x86/2006.1/desktop, gcc-4.1.2, glibc-2.5-r2, 2.6.21.1 i686)
=================================================================
                        System Settings
=================================================================
System uname: 2.6.21.1 i686 AMD Sempron(tm) 2600+
Gentoo Base System release 1.12.9
Timestamp of tree: Fri, 08 Jun 2007 22:30:08 +0000
dev-java/java-config: 1.3.7, 2.0.31-r5
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo"
CXXFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS=""
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_EXTRA_OPTS=""
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X acpi alsa arts avi berkdb bitmap-fonts cairo cdr cli cracklib crypt dbus dlloader dri dvd dvdr eds emboss encode esd fam firefox fortran gdbm gif gnome gpm gstreamer gtk hal iconv isdnlog jpeg ldap libg++ mad midi mikmod mmx mmxext mp3 mpeg mudflap ncurses nls nptl nptlonly nsplugin ogg opengl openmp oss pam pcre pdflib perl png postgres ppds pppd python qt3 qt4 quicktime readline reflection sdl session spell spl sse ssl tcpd tiff tk truetype truetype-fonts type1-fonts udev unicode vorbis win32codecs wma x86 xf86-video-ati xml xorg xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i740 i810 imstt mach64 mga neomagic nsc nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Comment 4 Jakob Schiotz 2007-06-13 09:54:25 UTC
I see the same problem - I do not even have to display a file:

schiotz@demokrit ~ $ xine
This is xine (X11 gui) - a free video player v0.99.5.
(c) 2000-2007 The xine Team.
X Error of failed request:  BadMatch (invalid parameter attributes)
  Major opcode of failed request:  140 (XVideo)
  Minor opcode of failed request:  14 ()
  Serial number of failed request:  1738
  Current serial number in output stream:  1738
schiotz@demokrit ~ $ eix xine-ui
[I] media-video/xine-ui
     Available versions:  0.99.5_pre20070303 0.99.5
     Installed versions:  0.99.5(02:52:53 PM 05/30/2007)(X -aalib -curl -debug -libcaca -lirc ncurses nls readline -vdr -xinerama)
     Homepage:            http://xine.sourceforge.net/
     Description:         Xine movie player

schiotz@demokrit ~ $ eix xine-lib
[I] media-libs/xine-lib
     Available versions:  (1)  1.1.2-r3 1.1.3 1.1.4-r2 ~1.1.6
     Installed versions:  1.1.4-r2(1)(02:51:49 PM 05/30/2007)(X -a52 -aac -aalib alsa -altivec -arts -debug -directfb -dts dvd -dxr3 -esd -fbcon -flac -gnome -gtk imagemagick -ipv6 -libcaca -mad -mmap -mng -modplug -musepack nls opengl -oss -pulseaudio -samba -sdl -speex -theora -truetype -v4l -vcd -vidix -vorbis -wavpack -win32codecs -xcb -xinerama xv -xvmc)
     Homepage:            http://xine.sourceforge.net/
     Description:         Core libraries for Xine movie player

I am using an amd64 profile on a laptop with an Intel Core 2 Duo processor, and an ATI Mobility Radeon X1400 graphics card.
Comment 5 Jakob Schiotz 2007-06-13 09:56:45 UTC
Created attachment 121919 [details]
/root/atisysteminfo-report.txt

I attach the result from running atigetsysteminfo.sh in case it helps.
Comment 6 Marek Cruz 2007-06-13 16:58:02 UTC
(In reply to comment #5)
I think we have the same problem, because:
user-fr33z ~ $ gxine
gtkvideo: failed to get a proxy for gnome-screensaver

Gdk-ERROR **: The program 'gxine' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadMatch (invalid parameter attributes)'.
  (Details: serial 312 error_code 8 request_code 139 minor_code 14)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)
aborting...
Aborted

When i simply follow the instructions and set breakpoint on gdk_x_error() function using gdb, the result is:
Function "gdk_x_error" not defined.
Make breakpoint pending on future shared library load? (y or [n]) y
Breakpoint 1 (gdk_x_error) pending.
(gdb) 
run
Starting program: /usr/bin/gxine 
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread -1222039888 (LWP 4340)]
[New Thread -1229771888 (LWP 4343)]
[New Thread -1240224880 (LWP 4344)]
[New Thread -1248887920 (LWP 4345)]
[New Thread -1261519984 (LWP 4346)]
[New Thread -1274012784 (LWP 4347)]
[New Thread -1284293744 (LWP 4348)]
gtkvideo: failed to get a proxy for gnome-screensaver

Gdk-ERROR **: The program 'gxine' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadMatch (invalid parameter attributes)'.
  (Details: serial 312 error_code 8 request_code 139 minor_code 14)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)
aborting...

Program received signal SIGABRT, Aborted.
[Switching to Thread -1222039888 (LWP 4340)]
0xb7fb8410 in __kernel_vsyscall ()
(gdb) bt
#0  0xb7fb8410 in __kernel_vsyscall ()
#1  0xb7821560 in raise () from /lib/libc.so.6
#2  0xb7822c8e in abort () from /lib/libc.so.6
#3  0xb797224e in g_logv () from /usr/lib/libglib-2.0.so.0
#4  0x088434dc in ?? ()
(gdb) 

Was this information useful ?
Comment 7 Jakob Schiotz 2007-06-15 11:52:07 UTC
This bug may be in xorg-x11 or the ATI radeon driver, since the same error is produced by xvinfo (at least on my machine):

schiotz@demokrit ~ $ xvinfo
X-Video Extension version 2.2
screen #0
  Adaptor #0: "ATI Radeon AVIVO Video"
    number of ports: 4
    port base: 115
    operations supported: PutImage
    supported visuals:
      depth 24, visualID 0x23
      depth 24, visualID 0x24
      depth 24, visualID 0x25
      depth 24, visualID 0x26
      depth 24, visualID 0x27
      depth 24, visualID 0x28
      depth 24, visualID 0x29
      depth 24, visualID 0x2a
      depth 24, visualID 0x2b
      depth 24, visualID 0x2c
      depth 24, visualID 0x2d
      depth 24, visualID 0x2e
      depth 24, visualID 0x2f
      depth 24, visualID 0x30
      depth 24, visualID 0x31
      depth 24, visualID 0x32
      depth 24, visualID 0x33
      depth 24, visualID 0x34
      depth 24, visualID 0x35
      depth 24, visualID 0x36
      depth 24, visualID 0x37
      depth 24, visualID 0x38
      depth 24, visualID 0x39
      depth 24, visualID 0x3a
      depth 24, visualID 0x3b
      depth 24, visualID 0x3c
      depth 24, visualID 0x3d
      depth 24, visualID 0x3e
      depth 24, visualID 0x3f
      depth 24, visualID 0x40
      depth 24, visualID 0x41
      depth 24, visualID 0x42
      depth 24, visualID 0x43
      depth 24, visualID 0x44
      depth 24, visualID 0x45
      depth 24, visualID 0x46
      depth 24, visualID 0x47
      depth 24, visualID 0x48
      depth 24, visualID 0x49
      depth 24, visualID 0x4a
      depth 24, visualID 0x4b
      depth 24, visualID 0x4c
      depth 24, visualID 0x4d
      depth 24, visualID 0x4e
      depth 24, visualID 0x4f
      depth 24, visualID 0x50
      depth 24, visualID 0x51
      depth 24, visualID 0x52
      depth 24, visualID 0x53
      depth 24, visualID 0x54
      depth 24, visualID 0x55
      depth 24, visualID 0x56
      depth 24, visualID 0x57
      depth 24, visualID 0x58
      depth 24, visualID 0x59
      depth 24, visualID 0x5a
      depth 24, visualID 0x5b
      depth 24, visualID 0x5c
      depth 24, visualID 0x5d
      depth 24, visualID 0x5e
      depth 24, visualID 0x5f
      depth 24, visualID 0x60
      depth 24, visualID 0x61
      depth 24, visualID 0x62
    number of attributes: 13
      "XV_SET_DEFAULTS" (range 0 to 1)
              client settable attribute
      "XV_DOUBLE_BUFFER" (range 0 to 1)
              client settable attribute
              client gettable attribute (current value is 1)
      "XV_BRIGHTNESS" (range -1000 to 1000)
              client settable attribute
              client gettable attribute (current value is 0)
      "XV_CONTRAST" (range -1000 to 1000)
              client settable attribute
              client gettable attribute (current value is 0)
      "XV_SATURATION" (range -1000 to 1000)
              client settable attribute
              client gettable attribute (current value is 0)
      "XV_COLOR" (range -1000 to 1000)
              client settable attribute
              client gettable attribute (current value is 0)
      "XV_HUE" (range -1000 to 1000)
              client settable attribute
              client gettable attribute (current value is 0)
      "XV_RED_INTENSITY" (range -1000 to 1000)
              client settable attribute
              client gettable attribute (current value is 0)
      "XV_GREEN_INTENSITY" (range -1000 to 1000)
              client settable attribute
              client gettable attribute (current value is 0)
      "XV_BLUE_INTENSITY" (range -1000 to 1000)
              client settable attribute
              client gettable attribute (current value is 0)
      "XV_BLENDING_MODE" (range 0 to 1)
              client settable attribute
X Error of failed request:  BadMatch (invalid parameter attributes)
  Major opcode of failed request:  140 (XVideo)
  Minor opcode of failed request:  14 ()
  Serial number of failed request:  30
  Current serial number in output stream:  30
              client gettable attribute


Comment 8 Marek Cruz 2007-06-15 19:13:14 UTC
My xvinfo works without any error and no other program in my system displays this error message.

I wonder why no developer is interested in this bug.
Comment 9 Marek Cruz 2007-06-15 19:17:26 UTC
When I execute xvinfo in this moment, i got just the same error as you, but it worked good a few seconds ago, how can be this possible.

X-Video Extension version 2.2
screen #0
  Adaptor #0: "ATI Radeon AVIVO Video"
    number of ports: 4
    port base: 115
    operations supported: PutImage 
    supported visuals:
      depth 24, visualID 0x23
      depth 24, visualID 0x24
      depth 24, visualID 0x25
      depth 24, visualID 0x26
      depth 24, visualID 0x27
      depth 24, visualID 0x28
      depth 24, visualID 0x29
      depth 24, visualID 0x2a
      depth 24, visualID 0x2b
      depth 24, visualID 0x2c
      depth 24, visualID 0x2d
      depth 24, visualID 0x2e
      depth 24, visualID 0x2f
      depth 24, visualID 0x30
      depth 24, visualID 0x31
      depth 24, visualID 0x32
      depth 24, visualID 0x33
      depth 24, visualID 0x34
      depth 24, visualID 0x35
      depth 24, visualID 0x36
      depth 24, visualID 0x37
      depth 24, visualID 0x38
      depth 24, visualID 0x39
      depth 24, visualID 0x3a
      depth 24, visualID 0x3b
      depth 24, visualID 0x3c
      depth 24, visualID 0x3d
      depth 24, visualID 0x3e
      depth 24, visualID 0x3f
      depth 24, visualID 0x40
      depth 24, visualID 0x41
      depth 24, visualID 0x42
      depth 24, visualID 0x43
      depth 24, visualID 0x44
      depth 24, visualID 0x45
      depth 24, visualID 0x46
      depth 24, visualID 0x47
      depth 24, visualID 0x48
      depth 24, visualID 0x49
      depth 24, visualID 0x4a
      depth 24, visualID 0x4b
      depth 24, visualID 0x4c
      depth 24, visualID 0x4d
      depth 24, visualID 0x4e
      depth 24, visualID 0x4f
      depth 24, visualID 0x50
      depth 24, visualID 0x51
      depth 24, visualID 0x52
      depth 24, visualID 0x53
      depth 24, visualID 0x54
      depth 24, visualID 0x55
      depth 24, visualID 0x56
      depth 24, visualID 0x57
      depth 24, visualID 0x58
      depth 24, visualID 0x59
      depth 24, visualID 0x5a
      depth 24, visualID 0x5b
      depth 24, visualID 0x5c
      depth 24, visualID 0x5d
      depth 24, visualID 0x5e
      depth 24, visualID 0x5f
      depth 24, visualID 0x60
      depth 24, visualID 0x61
      depth 24, visualID 0x62
    number of attributes: 13
      "XV_SET_DEFAULTS" (range 0 to 1)
              client settable attribute
      "XV_DOUBLE_BUFFER" (range 0 to 1)
              client settable attribute
              client gettable attribute (current value is 1)
      "XV_BRIGHTNESS" (range -1000 to 1000)
              client settable attribute
              client gettable attribute (current value is 0)
      "XV_CONTRAST" (range -1000 to 1000)
              client settable attribute
              client gettable attribute (current value is 0)
      "XV_SATURATION" (range -1000 to 1000)
              client settable attribute
              client gettable attribute (current value is 0)
      "XV_COLOR" (range -1000 to 1000)
              client settable attribute
              client gettable attribute (current value is 0)
      "XV_HUE" (range -1000 to 1000)
              client settable attribute
              client gettable attribute (current value is 0)
      "XV_RED_INTENSITY" (range -1000 to 1000)
              client settable attribute
              client gettable attribute (current value is 0)
      "XV_GREEN_INTENSITY" (range -1000 to 1000)
              client settable attribute
              client gettable attribute (current value is 0)
      "XV_BLUE_INTENSITY" (range -1000 to 1000)
              client settable attribute
              client gettable attribute (current value is 0)
      "XV_BLENDING_MODE" (range 0 to 1)
              client settable attribute
X Error of failed request:  BadMatch (invalid parameter attributes)
  Major opcode of failed request:  139 (XVideo)
  Minor opcode of failed request:  14 ()
  Serial number of failed request:  30
  Current serial number in output stream:  30
              client gettable attribute
Comment 10 Jakob Schiotz 2007-06-22 13:02:19 UTC
(In reply to comment #9)
> When I execute xvinfo in this moment, i got just the same error as you, but it
> worked good a few seconds ago, how can be this possible.
>

If you run xvinfo before running xine it works, after running xine it fails.  Xine does something bad to the X windows system (or X reacts badly to something xine does).

Comment 11 Marek Cruz 2007-06-22 17:34:41 UTC
(In reply to comment #10)
> (In reply to comment #9)
> > When I execute xvinfo in this moment, i got just the same error as you, but it
> > worked good a few seconds ago, how can be this possible.
> >
> 
> If you run xvinfo before running xine it works, after running xine it fails. 
> Xine does something bad to the X windows system (or X reacts badly to something
> xine does).
> 

Yes, that's it. (gxine 0.5.11)
Comment 12 Marek Cruz 2007-06-24 11:21:24 UTC
I did other debugging, now with more informations.

...check the attachment...

Another important new about this bug is, when i execute "strace gxine" gxine works without any error and it's able to play video.
Comment 13 Marek Cruz 2007-06-24 11:22:37 UTC
Created attachment 122960 [details]
Better debug output from gxine
Comment 14 Jakob Schiotz 2007-06-26 13:28:02 UTC
WORKAROUND:

If you run xine with "xine -V opengl" then it works.  Compiling xine without xv support does not help, however (-xv use flag).

/Jakob
Comment 15 Marek Cruz 2007-06-26 21:06:21 UTC
Thank you a lot, the workaround is working. Do you know some hidden .config for gxine to set the implicit video device to opengl?

When I executed "strace -o /home/user/output.txt /usr/bin/gxine" I figured out soon that gxine is using /usr/share/X11/XErrorDB, that file should contain description of your "Major opcode of failed request:  140 (XVideo)".

The latest loaded file by gxine (before the error) is /usr/lib/xine/plugins/1.1.7/xineplug_vo_out_xv.so i think the problem is directly in it.
Comment 16 Marek Cruz 2008-01-06 14:52:55 UTC
I've switched from ATI to nVidia, now it's working. I'm sure the bug is in the ATI proprietary drivers and it can be googled as "ati out xv" without the quotes. I'm changing the status to WONTFIX, because only ATI can fix it. Ran and buy nVidia, everything started to work with it form me, including much better OpenGl 2 support, hardware encoding/decoding of mpeg2 and pretty fast 3D acceleration in GNU/Linux without any crash.