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

Resize causes recursion and process running after stop #3

Open
quozl opened this issue Aug 10, 2019 · 0 comments
Open

Resize causes recursion and process running after stop #3

quozl opened this issue Aug 10, 2019 · 0 comments

Comments

@quozl
Copy link
Contributor

quozl commented Aug 10, 2019

Resize causes execution recursion, may eventually fail, and leaves a process running after stop.

While in the Pygame main loop run(), a display resize event is handled by Gtk.main_iteration() which calls __configure_cb which calls run() again.

Can be proven by adding a traceback in the size-changed handler;

    def __configure_cb(self, event):
        import sys, traceback
        print traceback.print_stack(file=sys.stderr)
        ...

Activity process keeps running because there is only one QUIT event and the going state is local to each instance of run().

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

1 participant