Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pygame.event.get() may make android app crash #104

Closed
simonchih opened this issue Jun 9, 2018 · 0 comments
Closed

pygame.event.get() may make android app crash #104

simonchih opened this issue Jun 9, 2018 · 0 comments

Comments

@simonchih
Copy link

simonchih commented Jun 9, 2018

This problem can only reproduce on real android phone, e.g. ASUS zonefone 2. It can't reproduce on android emulator. I make MyGame and port to android by python script on https://github.com/renpytom/rapt-pygame-example.
MyGame had below code:

for event in pygame.event.get():
                if event.type == QUIT:
                    exit()
                elif ...

I find pygame.event.get() may make android phone crash by steps below:

  1. Open MyGame app.
  2. Tap cell phone screen many times.
  3. MyGame app will closed if it's crash.

Since I replace pygame.event.get() with code below:
event = pygame.event.wait()

Then MyGame app won't crash, I suspect there is a bug in pygame.event.get() and it should be critical.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants