[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] Pygame crashes reliably when clicking away.
- To: pygame-users@xxxxxxxx
- Subject: [pygame] Pygame crashes reliably when clicking away.
- From: Dan Uznanski <duznanski@xxxxxxxxx>
- Date: Sat, 17 Mar 2012 15:51:40 -0400
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Sat, 17 Mar 2012 15:51:46 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=sK8eNH5QRAXb152DgYl5V8uwpUEQS2BQ2/bHZ+5ClbM=; b=dnUtG+b7RLm0ObAU0l6dFxurnk01xWfF4XNaXZNW5m1Ect1k18PdzLcmi/smZtHRq7 KO+CPRqxQ48buFEe81bGuGtbUittScLiv57OiI7ubcL0JMdg/qj68WOP6WXi88535h/K GgiVqLhHHbZiGetDKgc1I8wc6ZeL6qP2bTI64qsHZljKwTyQYTsRlrIJIRhHCYY7B4Rb LsoN3RkkmfjFVsIRqrxQkw3SEaLG1ocMzKQO5ywUcF5tmjQoap8dHSM5RwVznTP/eUyz 6SykGzCBfgirDR6WJ0DX/t9o78dr6ovhFelbVzmht2PbXOFW723A3JEPpH0cd8+x0os0 UlOQ==
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
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---