[issue9763] Crashes upon run after syntax error encountered in OSX 10.5.8

2010-09-03 Thread William Barr

New submission from William Barr :

Steps for reproduction:
1.  Open a new code window
2.  Enter python code which contains a syntax error
3.  F5 and attempt to run the file (This was done without saving first)
4.  Close the syntax error dialog.  
5.  Fix the syntax error and try to F5 again without saving again.  
6.  IDLE will encounter an error and unexpectedly close.  

I'm reporting this after having tested this on 4 different OSX 10.5.8 machines. 
 I'm not sure if other versions of Python are also susceptible to this as well.

--
components: IDLE
messages: 115491
nosy: Webs961
priority: normal
severity: normal
status: open
title: Crashes upon run after syntax error encountered in OSX 10.5.8
type: crash
versions: Python 3.1

___
Python tracker 
<http://bugs.python.org/issue9763>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10365] IDLE Crashes on File Open Dialog when code window closed before other file opened

2010-11-08 Thread William Barr

New submission from William Barr :

Steps for reproduction:
1.  Open IDLE (Python 3.1.2)
2.  Open a .py file
3.  With the code window (not the shell window) in focus, Ctrl + O to bring up 
the open file dialog.  Do not select a file or press open.  
4.  Close the code window.  
5.  Select a file and try to open it.
6.  The IDLE process will terminate.  

This test was performed on Windows 7 Professional 32-bit as well as Windows XP 
Professional 32-bit.  

Python 3.1.2 (r312:79149, Mar 21 2010, 00:41:52) [MSC v.1500 32 bit (Intel)] on 
win32

--
components: IDLE, Windows
messages: 120793
nosy: william.barr
priority: normal
severity: normal
status: open
title: IDLE Crashes on File Open Dialog when code window closed before other 
file opened
type: crash
versions: Python 3.1

___
Python tracker 
<http://bugs.python.org/issue10365>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10365] IDLE Crashes on File Open Dialog when code window closed before other file opened

2010-11-12 Thread William Barr

William Barr  added the comment:

Ok.  I'll see if I can get some protection around that then.  

I did test the issue with 2.7, and I didn't find it.  The window didn't open, 
but it didn't generate an exception that would kill the IDLE process.

--

___
Python tracker 
<http://bugs.python.org/issue10365>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10365] IDLE Crashes on File Open Dialog when code window closed before other file opened

2010-12-03 Thread William Barr

William Barr  added the comment:

Ok, attached is a patch that should make IDLE silently ignore this happening; 
upon looking into this, it was a rather trivial fix.  The open function was 
waiting on the return input from the askopenfile call, during which the calling 
window was closed, setting the editwin parameter to None according to close.  
The patch just adds another try/except to catch the AttributeError raised when 
the non-extant editwin's flist is referenced.  

I did come up with a method to actually make it continue with the opening 
process (just save a copy of the editwin's flist before the askopenfile call, 
during which the editwin gets closed), but that seemed a bit kludgey and 
possibly dangerous;, however it *seems* to work without issue.  I can upload 
that patch as well if anyone would care to review it in addition to the 
attached patch.

--
keywords: +patch
Added file: http://bugs.python.org/file19922/issue10365.patch

___
Python tracker 
<http://bugs.python.org/issue10365>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com