Bug 1451

Summary: X Error of failed request: BadWindow (invalid Window parameter)
Product: Fedora Reporter: Roman Rakus <rrakus>
Component: nvidia-kmodAssignee: Nicolas Chauvet <kwizart>
Status: RESOLVED INVALID    
Severity: normal CC: fedora, s.adam
Priority: P5    
Version: 14   
Hardware: All   
OS: GNU/Linux   
namespace:
Attachments: output of nvidia-bug-report.sh

Description Roman Rakus 2010-10-11 23:44:17 CEST
I'm not sure if this bug is related to nvidia module, but trying to run something using GLX results in the error described in $Summary.

# glxinfo 
name of display: :0.0
X Error of failed request:  BadWindow (invalid Window parameter)
  Major opcode of failed request:  138 (NV-GLX)
  Minor opcode of failed request:  4 ()
  Resource id in failed request:  0x4e00003
  Serial number of failed request:  30
  Current serial number in output stream:  30

--
# nvidia-settings

Gdk-ERROR **: The program 'nvidia-settings' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadWindow (invalid Window parameter)'.
  (Details: serial 260 error_code 3 request_code 138 minor_code 4)
  (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 (core dumped)

^after clicking on OpenGL/GLX Information.

--
# lspci | grep VGA
06:00.0 VGA compatible controller: nVidia Corporation G84 [GeForce 9500M GS] (rev a1)

--
# dmesg | grep nvidia
[   14.901298] nvidia: module license 'NVIDIA' taints kernel.
[   15.872404] nvidia 0000:06:00.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
[   15.872416] nvidia 0000:06:00.0: setting latency timer to 64

--
# rpm -q kernel kmod-nvidia
kernel-2.6.32.21-168.fc12.x86_64
kernel-2.6.35.4-28.fc14.x86_64
kernel-2.6.35.6-39.fc14.x86_64
kmod-nvidia-260.19.06-1.fc14.x86_64

--
Any clues how to find appropriate root of this error?
Comment 1 Nicolas Chauvet 2010-10-12 00:10:41 CEST
Please provide an output of nvidia-bug-report.sh
Comment 2 Nicolas Chauvet 2010-10-12 00:11:31 CEST
BTW, a new version of nvidia-settings will appears on the next push.
Comment 3 Roman Rakus 2010-10-12 11:40:40 CEST
Created attachment 510 [details]
output of nvidia-bug-report.sh

Now I see the the root error;
[    38.391] (EE) NVIDIA(0): Failed to initialize the GLX module; please check in your X
[    38.391] (EE) NVIDIA(0):     log file that the GLX module has been loaded in your X
[    38.391] (EE) NVIDIA(0):     server, and that the module is the NVIDIA GLX module.  If
[    38.391] (EE) NVIDIA(0):     you continue to encounter problems, Please try
[    38.391] (EE) NVIDIA(0):     reinstalling the NVIDIA driver.

in the above;
[    38.247] (II) LoadModule: "glx"
[    38.247] (II) Loading /usr/lib64/xorg/modules/extensions/libglx.so
[    38.248] (II) Module glx: vendor="X.Org Foundation"
[    38.248]    compiled for 1.9.0, module version = 1.0.0
[    38.248]    ABI class: X.Org Server Extension, version 4.0
[    38.248] (==) AIGLX enabled
[    38.248] (II) Loading extension GLX
[    38.248] (II) LoadModule: "extmod"
[    38.248] (II) Loading /usr/lib64/xorg/modules/extensions/libextmod.so
[    38.249] (II) Module extmod: vendor="X.Org Foundation"
[    38.249]    compiled for 1.9.0, module version = 1.0.0
[    38.249]    Module class: X.Org Server Extension
[    38.249]    ABI class: X.Org Server Extension, version 4.0

--
maybe it is related to https://bugzilla.redhat.com/show_bug.cgi?id=623742
Can I configure it by hand? (I'm sorry, I know you are not support :) )
Comment 4 Nicolas Chauvet 2010-10-12 12:33:58 CEST
There is a missmatch in the mirror for rpmfusion currently;
give a try with:
yum update --enablerepo=rpmfusion-nonfree-rawhide xorg-x11-nvidia\*

Please verify to have either akmod or kmod-nvidia on the kernel-2.6.36.6-39.fc14

Comment 5 Roman Rakus 2010-10-12 13:06:51 CEST
(In reply to comment #4)
> There is a missmatch in the mirror for rpmfusion currently;
> give a try with:
> yum update --enablerepo=rpmfusion-nonfree-rawhide xorg-x11-nvidia\*
nothing found
> 
> Please verify to have either akmod or kmod-nvidia on the
> kernel-2.6.36.6-39.fc14
> 
This is ok. It was build few days ago, right? Thanks for it :)
Comment 6 Roman Rakus 2010-10-12 13:29:23 CEST
I have installed following nvidia packages:
# rpm -qa '*nvidia*'
xorg-x11-drv-nvidia-260.19.06-1.fc14.x86_64
nvidia-settings-1.0-6.fc14.x86_64
xorg-x11-drv-nvidia-libs-260.19.06-1.fc14.x86_64
nvidia-xconfig-1.0-4.fc14.x86_64
kmod-nvidia-260.19.06-1.fc14.x86_64
kmod-nvidia-2.6.35.6-39.fc14.x86_64-260.19.06-1.fc14.x86_64
Comment 7 Roman Rakus 2010-10-12 13:58:54 CEST
Finally fixed.
I have changed xorg.conf section files to;
Section "Files"
    ModulePath      "/usr/lib64/xorg/modules/extensions/nvidia"
    ModulePath      "/usr/lib64/xorg/modules/drivers"
    ModulePath      "/usr/lib64/xorg/modules"
    FontPath        "catalogue:/etc/X11/fontpath.d"
    FontPath        "built-ins"
EndSection

This is what nvidia-config-display script does. Therefore the bug is not in nvidia module. Sorry for the noise.
When the bug https://bugzilla.redhat.com/show_bug.cgi?id=623742 will be fixed everything will work as expected.