Bug 42921 - Program received an X Window System error.
Summary: Program received an X Window System error.
Status: RESOLVED INVALID
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/nouveau (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Nouveau Project
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-14 05:15 UTC by Sam Bull
Modified: 2013-08-18 18:10 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Xorg log (30.62 KB, text/plain)
2011-11-14 05:15 UTC, Sam Bull
no flags Details
Kernel log (61.97 KB, text/plain)
2011-11-14 05:16 UTC, Sam Bull
no flags Details

Description Sam Bull 2011-11-14 05:15:08 UTC
Created attachment 53522 [details]
Xorg log

I'm working on a GUI toolkit for Pygame, which can be downloaded at https://launchpad.net/simplegc

Trying to run my example file in the project results in the following error:
s@s-Air:~/Games/Tools/sgc/trunk/sgc/example$ python test.py 
The program 'test.py' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadDrawable (invalid Pixmap or Window parameter)'.
  (Details: serial 36 error_code 9 request_code 137 minor_code 8)
  (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.)

The error doesn't occur until the code hits pygame.display.flip(), which makes it rather difficult to work out exactly which part is causing the problem. I'm using the menu widget in the game I am working on and it works perfectly, so it's obviously not the entire toolkit that's not working.

I'm not sure if this should be in the 3D section, as the bug is when running in OpenGL, but I'm only drawing in 2D. It still works fine the pygame/SDL, just not when I switch it to OpenGL.

I have checked this with the proprietary Nvidia driver and it works fine there, it's just when running the Nouveau driver.

I'm not sure how to find out all the versions, but it's whatever an up-to-date Ubuntu 11.10 is running.

Please tell me if you have any ideas on how to track the bug down. If you want to try to recreate the bug on your machine download the toolkit from above, and ensure you have python 2.x, pygame, pyopengl and pyFTGL installed. Then change the two lines near the top of the test.py file to enable OpenGL, and finally cd into the example folder and run 'python test.py'.
Comment 1 Sam Bull 2011-11-14 05:16:16 UTC
Created attachment 53523 [details]
Kernel log
Comment 2 Ilia Mirkin 2013-08-18 18:10:23 UTC
It appears that this bug report has laid dormant for quite a while. Sorry we haven't gotten to it. Since we fix bugs all the time, chances are pretty good that your issue has been fixed with the latest software. Please give it a shot. (Linux kernel 3.10.7, xf86-video-nouveau 1.0.9, mesa 9.1.6, or their git versions.) If upgrading to the latest isn't an option for you, your distro's bugzilla is probably the right destination for your bug report.

In an effort to clean up our bug list, we're pre-emptively closing all bugs that haven't seen updates since 2011. If the original issue remains, please make sure to provide fresh info, see http://nouveau.freedesktop.org/wiki/Bugs/ for what we need to see, and re-open this one.

Thanks,

The Nouveau Team


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.