[Python-modules-team] Bug#480657: python-opengl: Using glutDisplayFunc and glutKeyboardFunc causes Segmentation Fault in glutMainLoop
Brendon Higgins
blhiggins at gmail.com
Wed May 21 06:48:38 UTC 2008
Hi,
Some more information I've discovered about this bug:
1) A test on a friend's 32-bit PowerPC machine didn't reproduce it. (Maybe a
64-bit issue?)
2) The following equivalent C code does not reproduce it:
#include <GL/glut.h>
#include <stdio.h>
void disFunc() {
printf("disFunc\n");
fflush(stdout);
}
void keyFunc(unsigned char c, int a, int b) {
printf("keyFunc\n");
fflush(stdout);
}
int main(int argc, char** args) {
glutInit(&argc, args);
glutInitDisplayMode(GLUT_RGB);
glutInitWindowSize(640, 480);
glutCreateWindow("appname");
glutDisplayFunc(disFunc);
glutKeyboardFunc(keyFunc);
glutMainLoop();
return 0;
}
That suggests that it's something about the OpenGL wrapper itself.
Peace,
Brendon
More information about the Python-modules-team
mailing list