From: Ethan Glasser-C. <gl...@cs...> - 2007-06-13 22:50:25
|
Diez B. Roggisch wrote: > On Wednesday 13 June 2007 06:10, Chris Spencer wrote: >> I don't know if this is related, but I've never been able to get tut3 >> working (and still can't). On Fedora 7, I get the following error: >> >> Traceback (most recent call last): >> File "/builddir/build/BUILD/Python-2.5/Modules/_ctypes/callbacks.c", >> line 206, in 'calling callback function' >> File "ode-tutorial-3.py", line 226, in _drawfunc >> draw_body(b) >> File "ode-tutorial-3.py", line 69, in draw_body >> glPushMatrix() >> File "/usr/lib/python2.5/site-packages/OpenGL/error.py", line 188, >> in glCheckError >> baseOperation = baseOperation, >> OpenGL.error.GLError: GLError( >> err = 1283, >> description = 'stack overflow', >> baseOperation = glPushMatrix, >> cArguments = () >> ) > > Looks as if the glPushMatrix is missing a glPopMatrix somewhere. Shouldn't be > too hard to fix, but I don't have the code here. In the copies of tutorial3 that I have, there's only one call to glPushMatrix and then one to glPopMatrix (lines 69 and 75, respectively). The source is at http://pyode.sourceforge.net/tutorials/tutorial3.py , and I don't get this kind of crash. Chris, where did you get the tutorial from? Does it have both PushMatrix and PopMatrix calls? Ethan |