I've started building a little pygame program. Unfortunately I've been having a huge problem: the second time I click out of the window on another thing that completely obscures the pygame window, using pygame.event.get() crashes with a segfault.
I'm running Windows XP/32 latest on 2009 mac pro hardware, Python 2.7.2, Pygame 1.9.1. Here's code: #---begin code--- import pygame from time import sleep, time start = time() pygame.init() SCREEN_SIZE = (640,480) screen = pygame.display.set_mode(SCREEN_SIZE) while True: for event in pygame.event.get(): if event.type != pygame.MOUSEMOTION: print "%0.3f" % (time() - start), event if event.type == pygame.QUIT: exit() sleep(0.01) # ---end code--- And here's logs of one attempt: #---begin logs--- D:\vornda>C:\python27\python.exe cheese.py 0.156 <Event(17-VideoExpose {})> 0.156 <Event(1-ActiveEvent {'state': 1, 'gain': 0})> 1.344 <Event(1-ActiveEvent {'state': 2, 'gain': 0})> 5.938 <Event(17-VideoExpose {})> 5.938 <Event(1-ActiveEvent {'state': 6, 'gain': 1})> 5.938 <Event(5-MouseButtonDown {'button': 1, 'pos': (356, 479)})> 7.109 <Event(5-MouseButtonDown {'button': 1, 'pos': (356, 479)})> Fatal Python error: (pygame parachute) Segmentation Fault This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. #---end logs---