CUDA SDK GLX dependent examples will not run (HELP)

So I’ve been beating my head in for the last couple days trying to figure out what is wrong when I try to run the glx dependent SDK samples.

The following errors occur when I try to run the programs (they compile successfully):

[codebox][ CUDA Smoke Particles ]

freeglut (./smokeParticles): ERROR: Internal error in function fgOpenWindow

X Error of failed request: BadWindow (invalid Window parameter)

Major opcode of failed request: 4 (X_DestroyWindow)

Resource id in failed request: 0x0

Serial number of failed request: 30

Current serial number in output stream: 33

[/codebox]

I’ve noticed this same error in previous posts but the fix didn’t seem to work. Also I get the same error with both direct and indirect rendering

I am running a fresh install of ubuntu 10.04, drivers 195.36.15, and the CUDA 3.0 toolkit. Also using freeglut and the latest mesa libraries (in order to compile the code).

Here is also a copy of my xorg.conf file

[codebox]# nvidia-xconfig: X configuration file generated by nvidia-xconfig

nvidia-xconfig: version 1.0 (buildmeister@builder75) Fri Mar 12 01:42:27 PST 2010

Section “ServerLayout”

Identifier     "Layout0"

Screen      0  "Screen0"

InputDevice    "Keyboard0" "CoreKeyboard"

InputDevice    "Mouse0" "CorePointer"

EndSection

Section “Files”

EndSection

Section “InputDevice”

# generated from default

Identifier     "Mouse0"

Driver         "mouse"

Option         "Protocol" "auto"

Option         "Device" "/dev/psaux"

Option         "Emulate3Buttons" "no"

Option         "ZAxisMapping" "4 5"

EndSection

Section “InputDevice”

# generated from default

Identifier     "Keyboard0"

Driver         "kbd"

EndSection

Section “Monitor”

Identifier     "Monitor0"

VendorName     "Unknown"

ModelName      "Unknown"

HorizSync       28.0 - 33.0

VertRefresh     43.0 - 72.0

Option         "DPMS"

EndSection

Section “Device”

Identifier     "Device0"

Driver         "nvidia"

VendorName     "NVIDIA Corporation"

EndSection

Section “Screen”

Identifier     "Screen0"

Device         "Device0"

Monitor        "Monitor0"

DefaultDepth    24

SubSection     "Display"

    Depth       24

EndSubSection

EndSection

[/codebox]

Any ideas would be great.

Thanks

Yes the same is happening to me, i have a 8600M GT, and i had to do some strange hack to make the driver work in ubuntu 10.04.

I have a 8400M GS, and have the same problem (ubuntu 10.04). What was the “strange hack” that made it work?

I have a 8400M GS, and have the same problem (ubuntu 10.04). What was the “strange hack” that made it work?

Hi

I was having problems with installation I followed this link[http://www.ubuntugeek.com/howto-install-nvidia-drivers-manually-on-ubuntu-10-04-lucid-lynx.html] and now it compiles fine but having problems with freeglut with following error.

freeglut (./nbody): ERROR: Internal error in function fgOpenWindow

X Error of failed request: BadWindow (invalid Window parameter)

Major opcode of failed request: 4 (X_DestroyWindow)

Resource id in failed request: 0x0

Serial number of failed request: 30

Current serial number in output stream: 33

Does anyone has a solution to this?

Thanks

Sal

Hi

I was having problems with installation I followed this link[http://www.ubuntugeek.com/howto-install-nvidia-drivers-manually-on-ubuntu-10-04-lucid-lynx.html] and now it compiles fine but having problems with freeglut with following error.

freeglut (./nbody): ERROR: Internal error in function fgOpenWindow

X Error of failed request: BadWindow (invalid Window parameter)

Major opcode of failed request: 4 (X_DestroyWindow)

Resource id in failed request: 0x0

Serial number of failed request: 30

Current serial number in output stream: 33

Does anyone has a solution to this?

Thanks

Sal

Similar problems here, i’ve even tried downloading and building freeglut and printf-ing through. the only hint i have is that it’s failing somewhere in fgOpenWindow which in turn calls glXChooseFBConfig which I guess is part of GL/GLX?
the sample programs that come w/ freeglut run fine so perhaps there’s some sort of weird interaction w/ cuda?

the setup here is:
Quadro FX 3700, x86_64 Kernel Module 195.36.24
glxinfo returns direct rendering: Yes

thanks,
-s-

Similar problems here, i’ve even tried downloading and building freeglut and printf-ing through. the only hint i have is that it’s failing somewhere in fgOpenWindow which in turn calls glXChooseFBConfig which I guess is part of GL/GLX?
the sample programs that come w/ freeglut run fine so perhaps there’s some sort of weird interaction w/ cuda?

the setup here is:
Quadro FX 3700, x86_64 Kernel Module 195.36.24
glxinfo returns direct rendering: Yes

thanks,
-s-