[Idle-dev] [ idlefork-Bugs-834136 ] Subprocess hangs when using Tk with both pack and grid

SourceForge.net noreply at sourceforge.net
Sun Nov 30 15:26:39 EST 2003


Bugs item #834136, was opened at 2003-11-01 09:59
Message generated for change (Comment added) made by kbk
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=109579&aid=834136&group_id=9579

Category: None
Group: None
Status: Open
>Resolution: Later
>Priority: 3
Submitted By: Egon Frerich (efrerich)
>Assigned to: Nobody/Anonymous (nobody)
>Summary: Subprocess hangs when using Tk with both pack and grid

Initial Comment:
(IDLE 1.0 - Python 2.3 -Windows XP)
I put a never ending loop into my python program.
control-c didn't stop the Run-Command. Then I choosed
the exit option in the File Menu of the Shell-Window.

Then I h've got the message, that the program is still
running and if I would like to kill the program. After
saying "yes" (or "ok" IDLE disappeared. 

But I cannot start IDLE again. I have to reboot my
system. When I shutdown the system there is a program
"Menu Window" which I have to destroy.

----------------------------------------------------------------------

>Comment By: Kurt B. Kaiser (kbk)
Date: 2003-11-30 15:26

Message:
Logged In: YES 
user_id=149084

Thanks for the code.  I may get to this someday :-)

----------------------------------------------------------------------

Comment By: Egon Frerich (efrerich)
Date: 2003-11-18 05:15

Message:
Logged In: YES 
user_id=40342

I have written two programs and upload them as one text
file. After separating the program with only the
pack-geometry manager works. The other program has some
functions with calls to the grid manager. With this program
you get 95% - 99% cpu-processing and you stop IDLE with ctrl-c.

----------------------------------------------------------------------

Comment By: Kurt B. Kaiser (kbk)
Date: 2003-11-17 22:19

Message:
Logged In: YES 
user_id=149084

Nonetheless, if you could post the code (or even better,
a cut-down) which causes the error, it might be useful.
There are some internal IDLE problems which can cause
hangs.

Otherwise, I'll go ahead and close this.

----------------------------------------------------------------------

Comment By: Egon Frerich (efrerich)
Date: 2003-11-17 12:00

Message:
Logged In: YES 
user_id=40342

Python program: actually I used Tkinter with two geometry
manager (pack and grid) . Afterwards I read I shouldn't do this.

Task Manager: Yes this works.  If the geometry managers come
to no end and I say Ctrl-C then nothing happens. Then if I
kill the 99% cpu-process and afterwards push ctrl-c I get
the KeyboardInterrupt in IDLE (and have not to reboot XP).

Thanks

Egon Frerich

----------------------------------------------------------------------

Comment By: Kurt B. Kaiser (kbk)
Date: 2003-11-16 22:59

Message:
Logged In: YES 
user_id=149084

Please post a copy of your program and any pertinent
data so I can reproduce it.  Ctrl-C works for me on the
code I've tried.  There are cases involving blocking
I/O which can't be interrupted.  

It does sound like the main thread (which runs your code)
is blocked.

It should not be necessary to reboot XP.  Use the Task
Manager to kill the python subprocess, they are the
(usually two threads) small ones.  Kill the one which is
getting 100% of the cpu first.  

If you do that, the GUI will re-spawn the subprocess.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=109579&aid=834136&group_id=9579



More information about the IDLE-dev mailing list