Page 1 of 1

Invalid Window parameter - tutorial code problems [SOLVED]

Posted: Sat Jul 09, 2011 6:25 pm
by spartacus
Friends,

I just came across Love two days ago, and met with the following error while attempting to run the hello world example:
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: 0x4c0000f
Serial number of failed request: 34
Current serial number in output stream: 34
AL lib: ALc.c:1879: exit(): closing 1 Device
AL lib: ALc.c:1808: alcCloseDevice(): destroying 1 Context(s)
AL lib: ALc.c:1420: alcDestroyContext(): deleting 64 Source(s)
I have checked around for possible solutions and I am certain that the problem is not the code which matches that on the wiki verbatim, nor is it the .love package which I made sure to create with the zip utility (and I didn't zip up the parent folder, only the main.lua). Running it from the parent folder as specified in the example does not work either.

For reference, I am on Linux Mint 10, and I am running a GeForce GTX 460M. Sorry I don't have more detailed information to give; any help with this would be greatly appreciated!

Re: Invalid Window parameter - tutorial code problems

Posted: Sat Jul 09, 2011 6:46 pm
by bartbes
It looks like something is wrong with your version of SDL or X11. (Or the communication between those two.)

Re: Invalid Window parameter - tutorial code problems

Posted: Sat Jul 09, 2011 7:02 pm
by thelinx
Try installing proprietary video drivers for your graphics card.

Re: Invalid Window parameter - tutorial code problems

Posted: Sat Jul 09, 2011 7:30 pm
by spartacus
welp that was it - hadn't updated the driver since the last kernel update.

thanks for the help! much appreciated