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
IDLE processes don't close #52340
Comments
So I started 3.1.2... Python 3.1.2rc1 (r312rc1:78742, Mar 7 2010, 07:49:40) [MSC v.1500 32 bit (Intel)] on win32
And monitored Windows Task Manager (XP): Image Name User Name CPU Mem Usage I assume this is normal. I deliberately do something stupid:
Ok, that will run for a while, long enough for me to watch the Task Manager: Image Name User Name CPU Mem Usage So I do [Restart Shell] from IDLE's [Shell] menu:
And try it again.
But now it's different: Image Name User Name CPU Mem Usage Looks like the previous process was never stopped. Trying to Restart Shell again and running same creates a 5th instance
Image Name User Name CPU Mem Usage Only this time I got an error trying to re-start.
Now I'm stuck, so I close the "Python Shell" window. But closing the window only stopped one of the pythonw.exe instances. This appears to be a process leak in addition to it being a memory leak. Also, had one of the processes that won't stop opened a script from a USB |
I reproduced this with 3.1.1 on xp. It took a while to get the shell menu to restart as the calculation process is hogging the cpu 99%. Two processes is normal - one for the shell and one for calculations. The 'normal' behavior of Restart Shell (^F6) is to start a third process. Watching in task manager, the abandoned calculation process dies in 3-4 seconds. A stuck process does not end on its own though. Bad bug. |
For the record: In 2.7-alpha you do not even get to press [Restart Shell], since IDLE is |
Not sure if this is related, but for me none of the F5 processes (command line "pythonw.exe -c __import__('idlelib.run').run.main(True) <num>") ever exit on either 2.7.2 or 3.2.1rc1. |
This issue should be closed since bpo-12540 fixes it. I verified that the bug exists with 3.1.4 on Vista. It does not exist with 3.2.2 on Vista. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: