[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] This program breaks on my Linux
- To: pygame-users@xxxxxxxx
- Subject: Re: [pygame] This program breaks on my Linux
- From: Sam Bull <sam.hacking@xxxxxxxx>
- Date: Sat, 28 Jun 2014 13:29:35 +0100
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Sat, 28 Jun 2014 08:29:49 -0400
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=sent.com; h= message-id:subject:from:to:date:in-reply-to:references :content-type:mime-version; s=mesmtp; bh=cprC8g6wqLK5UnoItQK+hVF k7go=; b=g7/CQaB7qhc71a//d1Ro1EgYK163sFtXBKwB/3NXch5YIeAAPODA5Pd THLx0ynFYNsHy36TM3pVL6WhHxDo5mZOMICS8gRc3BTfYhk3jj34JDRPJRIyYfaU Ya04Q2hnFZJEoan23OidvJXOKpIi5YAN+D2CXTUfL19wRx1v/aic=
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:subject:from:to:date :in-reply-to:references:content-type:mime-version; s=smtpout; bh=cprC8g6wqLK5UnoItQK+hVFk7go=; b=ZT2xsPpMyz7StU7owFmEFR2+mSJW tJcVRJlUVukzjFVxulRq9cb995tNGdBu3Vmjb2l1TKYMjTwSGn0oxF61v9BTrK4V 29mNSnPEc787YOYcZ3nTBZk37sJGK9wc2hFFbPDP5+hB0u27hZdF+yCd49PV7NQj uA+GshhcC3j6RRw=
- In-reply-to: <53AE5436.4030109@xxxxxxxxx>
- References: <53AE5436.4030109@xxxxxxxxx>
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
On ven, 2014-06-27 at 22:35 -0700, bw wrote:
> I attached the small program. I'm curious if anyone can run it and
> reproduce the problem. I plan on upgrading Ubuntu soon, when I am ready
> to risk it: maybe the problem will go away. I'll post the outcome--but
> I've been too busy to risk the upgrade, so don't hold yer breath. =)
No idea what the problem could be. I can't reproduce it, but also not
getting more than 130 FPS on my old laptop. I'm curious as to exactly
when it crashes though, can you add some print statements to find
exactly where it crashes?
if e.key == K_ESCAPE:
print("Before")
pygame.quit()
print("After Pygame exit")
quit()
print("Never reached")
I'd also experiment with a couple of different exit functions, to see if
that makes any difference. For example, try removing the pygame.quit()
call (Pygame will exit safely with Python anyway, so it's a redundant
call here), and using sys.exit() instead of the builtin.
Attachment:
signature.asc
Description: This is a digitally signed message part