[Idle-dev] [ idlefork-Bugs-677263 ] On W32 Can't Terminate Subprocess Not Doing IO
SourceForge.net
noreply@sourceforge.net
Fri, 16 May 2003 15:15:11 -0700
- Previous message: [Idle-dev] [ idlefork-Bugs-677263 ] On W32 Can't Terminate Subprocess Not Doing IO
- Next message: [Idle-dev] CVS: idle CREDITS.txt,1.5,1.6 NEWS.txt,1.17,1.18 idle,1.9,1.10 idle.py,1.7,1.8 idle.pyw,1.6,1.7
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Bugs item #677263, was opened at 2003-01-29 23:02
Message generated for change (Comment added) made by kbk
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=109579&aid=677263&group_id=9579
Category: None
Group: None
Status: Open
Resolution: Fixed
Priority: 7
Submitted By: Bruce Sherwood (bsherwood)
Assigned to: Kurt B. Kaiser (kbk)
Summary: On W32 Can't Terminate Subprocess Not Doing IO
Initial Comment:
With 0.9a2 it is still the case that something is very
wrong with the run environment for VPython programs,
at least on Windows. I run the simplest program
from visual import *
sphere()
Next I kill the graphics display window (by clicking in the
close box), then type in the shell "2+2". I get the
following:
Traceback (most recent call last):
File "C:\Python23\Lib\site-packages\idleforklib\rpc.py",
line 187, in asynccall
self.putmessage((seq, request))
File "C:\Python23\Lib\site-packages\idleforklib\rpc.py",
line 289, in putmessage
n = self.sock.send(s)
File "<string>", line 1, in send
error: (10054, 'Connection reset by peer')
I then try to kill the shell window and get a dialog box
asking this:
"The program is still running; do you want to kill it?"
I say I want to kill it, the dialog box goes away, but
nothing happens to the shell window. The only way I can
kill Python is with the Windows task manager. Even
independent of what may be special about a VPython
program, shouldn't IDLE honor the request to kill?
I emphasize that with the original idlefork when one
killed a VPython graphics window you were in a good
state. Another possible hint at the source of the new
problem is that with the original idlefork after F5 to run I
could press F5 and the existing graphics window would
be killed and I'd get a new spawned process. Now I
seem to get two spawned processes in this situation.
http://vpython.org is a place to get the VPython stuff. I
have no idea whether the problem is in some sense with
VPython or with the new idlefork.
----------------------------------------------------------------------
>Comment By: Kurt B. Kaiser (kbk)
Date: 2003-05-16 17:15
Message:
Logged In: YES
user_id=149084
It's critical that you have run.py Rev 1.17
which was checked in 2003/05/14 18:15:40to fix this
problem.
The relevant line is run.py:65 except KeyboardInterrupt:
This line and the except clause following must be present.
Without this, the restart doesn't work because the
subprocess SockThreadstops servicing the socket while
the MainThread is trying to print an exception.
I was seeing the same before the fix. Freddy's baaack?
----------------------------------------------------------------------
Comment By: Bruce Sherwood (bsherwood)
Date: 2003-05-16 16:44
Message:
Logged In: YES
user_id=34881
On Windows XP I installed Python 2.3 and idlefork from CVS.
I see massive problems. Minimal program "print 2+2" takes
30 seconds or more after pressing F5 before I see the output
(consuming 100% of the CPU all the while), and even after
seeing the output the system monitor shows me consuming
100% of the CPU. I then close both windows (source and
output), and I'm left with two instances of python.exe which
together or singly consume 100% of the CPU, and I have to
kill them in the system monitor. Is there something I'm
missing about installation? I have the idlefork package in
C:\Python23\idle. I did run C:\Python23\python.exe setup.py
install inside the idle directory in order to get the interrupt
module compiled. I assume that I have all the pieces in that I
did get output.
----------------------------------------------------------------------
Comment By: Kurt B. Kaiser (kbk)
Date: 2003-05-14 22:48
Message:
Logged In: YES
user_id=149084
Please try current CVS and report any problems.
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Date: 2003-04-01 00:51
Message:
Logged In: NO
More on run/kill issues:
When I'm running my Tkinter app and editing the source code,
idlefork will sometimes hang when looking up a CallTip. The
IDLE windows won't redraw until I kill my app, and then the
editor is in a confused state. I can't evaluate expressions
in the shell or restart the program. I also can't restart
the shell. I'm using Win32. I think I'll get around to
investigating this more and typing up a bug report, but I
was hoping this little bit would help some.
Randall Farmer, rfarmer@simons-rock.spam.edu
----------------------------------------------------------------------
Comment By: Kurt B. Kaiser (kbk)
Date: 2003-01-30 11:24
Message:
Logged In: YES
user_id=149084
I changed the title, this isn't just a VPython issue.
I can confirm what you are seeing, and I have some
ideas on how to fix it.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=109579&aid=677263&group_id=9579
- Previous message: [Idle-dev] [ idlefork-Bugs-677263 ] On W32 Can't Terminate Subprocess Not Doing IO
- Next message: [Idle-dev] CVS: idle CREDITS.txt,1.5,1.6 NEWS.txt,1.17,1.18 idle,1.9,1.10 idle.py,1.7,1.8 idle.pyw,1.6,1.7
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]