Python crash with SIGSEV on my pc too. It happens with all OpenGL/GLUT script. For example:
from OpenGL.GLUT import * from OpenGL.GL import *
def init(): glClearColor(0,0,0,0) glMatrixMode(GL_PROJECTION) glLoadIdentity() glOrtho(0,1,0,1,-1,1)
def display(): glClear(GL_COLOR_BUFFER_BIT) glColor3f(1,1,1) glBegin(GL_POLYGON) glVertex3f(0.25, 0.25, 0) glVertex3f(0.75, 0.25, 0) glVertex3f(0.75, 0.75, 0) glVertex3f(0.25, 0.75, 0) glEnd() glFlush()
if __name__ == '__main__' : glutInit() glutInitDisplayMode(GLUT_SINGLE | GLUT_RGB) glutInitWindowSize(250, 250) glutInitWindowPosition(100, 100) glutCreateWindow("Hello World") init() glutDisplayFunc(display) glutMainLoop()
Python crash with SIGSEV on my pc too. It happens with all OpenGL/GLUT script. For example:
from OpenGL.GLUT import *
from OpenGL.GL import *
def init(): r(0,0,0, 0) e(GL_PROJECTION ) ity() 0,1,0,1, -1,1)
glClearColo
glMatrixMod
glLoadIdent
glOrtho(
def display(): GL_COLOR_ BUFFER_ BIT) 1,1,1) GL_POLYGON) 0.25, 0.25, 0) 0.75, 0.25, 0) 0.75, 0.75, 0) 0.25, 0.75, 0)
glClear(
glColor3f(
glBegin(
glVertex3f(
glVertex3f(
glVertex3f(
glVertex3f(
glEnd()
glFlush()
if __name__ == '__main__' : playMode( GLUT_SINGLE | GLUT_RGB) dowSize( 250, 250) dowPosition( 100, 100) indow(" Hello World") Func(display)
glutInit()
glutInitDis
glutInitWin
glutInitWin
glutCreateW
init()
glutDisplay
glutMainLoop()