IDLE crashes when you quit a Pygame game without calling pygame.quit().

illume avatarillume created an issue

"""IDLE crashes when you quit a Pygame game without calling pygame.quit().

I know this is probably some generic leftover-references problem, but Pygame is a fairly major library that new programmers use (game making being a big way people get into programming.) But I’d agree with the Raymond Chen/Sim City approach and go ahead and make a specific change to check if Pygame was loaded and pygame.quit() was not called by the time sys.exit() was called. """

Comments (3)

  1. Anonymous

    Can someone provide a test case for IDLE crashing? Is the subprocess being used when starting IDLE?

  2. illume

    Here is a test case.

    It is the same as the normal pygame.examples.chimp... except the pygame.quit() has been commented out at the end.

    Note: there is a report that this configuration works fine:

    • Windows XP Professional SP3
    • Python 2.4.3 (required for work)
    • pygame 1.9.2pre-svn2952 (haven't been doing much pygame lately)
  3. Log in to comment
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.