You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
IDLE hangs on OS X with Cocoa Tk if encoding dialog is required during save #67086
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:
assignee=Noneclosed_at=<Date2017-06-23.07:09:45.737>created_at=<Date2014-11-18.19:09:04.367>labels= ['expert-IDLE', 'type-bug']
title='IDLE hangs on OS X with Cocoa Tk if encoding dialog is required during save'updated_at=<Date2017-06-23.07:09:45.734>user='https://bugs.python.org/steipe'
When attempting to save a file containing an Å character with the debugger open, IDLE freezes with/or without partially opening the warning window. (Mac OS X 10.9.5, IDLE running python 2.7.5). Reproducible steps:
Create and save file with one line:
1+1 # A
Open IDLE
Open the debugger
Open the file
Delete the "A", type <shift><alt>A
type <command>s to save. This triggers the problem.
Application hangs ("not responding") and needs to force quit. Sometimes the graphics memory of other applications gets corrupted.
Thanks for the report. It appears that all that is needed to trigger the hang is any operation that invokes the IDLE EncodingMessage dialog ("Non-ASCII found, yet no encoding declared. Add a line like [...]") in IOBinding.py during a Save when IDLE is linked with the OS X Cocoa Tk 8.5 (or likely 8.6) as used with the python.org 64-bin/32-bit 10.6+ installers, for example, just opening a new edit window, inserting a non-ASCII character, and then trying to Save. EncodingMessage subclasses the Tkinter SimpleDialog module and creates a new Toplevel root; I seem to recall other problems like this in the past. The problem is not seen with the older Carbon Tk 8.4 or with an X11 Tk on OS X.
changed the title [-]IDLE - MacOS: freeze on non-ASCII save with open debugger[/-][+]IDLE hangs on OS X with Cocoa Tk if encoding dialog is required during save[/+]on Nov 19, 2014
Activity
steipe commentedon Nov 18, 2014
When attempting to save a file containing an Å character with the debugger open, IDLE freezes with/or without partially opening the warning window. (Mac OS X 10.9.5, IDLE running python 2.7.5). Reproducible steps:
1+1 # A
Application hangs ("not responding") and needs to force quit. Sometimes the graphics memory of other applications gets corrupted.
ned-deily commentedon Nov 19, 2014
Thanks for the report. It appears that all that is needed to trigger the hang is any operation that invokes the IDLE EncodingMessage dialog ("Non-ASCII found, yet no encoding declared. Add a line like [...]") in IOBinding.py during a Save when IDLE is linked with the OS X Cocoa Tk 8.5 (or likely 8.6) as used with the python.org 64-bin/32-bit 10.6+ installers, for example, just opening a new edit window, inserting a non-ASCII character, and then trying to Save. EncodingMessage subclasses the Tkinter SimpleDialog module and creates a new Toplevel root; I seem to recall other problems like this in the past. The problem is not seen with the older Carbon Tk 8.4 or with an X11 Tk on OS X.
[-]IDLE - MacOS: freeze on non-ASCII save with open debugger[/-][+]IDLE hangs on OS X with Cocoa Tk if encoding dialog is required during save[/+]terryjreedy commentedon Jun 23, 2017
I am no longer patching IDLE for 2.7