More on GtkGLArea bug in pygtk/fink

January 21, 2004

I have apparantly found a workaround for the bug.

The testcode:

import gtk.gl
glarea = gtk.gl.Area((gtk.gl.RGBA, gtk.gl.DOUBLEBUFFER, gtk.gl.DEPTH_SIZE, 1))

implicitly passes a value of None to py_share, the second argument. If one instead explicitly sets this to 0:

import gtk.gl
glarea = gtk.gl.Area((gtk.gl.RGBA, gtk.gl.DOUBLEBUFFER, gtk.gl.DEPTH_SIZE, 1),0)

the code no longer gives a bus error!

Full details are at the bugzilla site for this bug, including my feeble efforts to go through the code.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: