Skip to content

IDLE hangs on OS X with Cocoa Tk if encoding dialog is required during save #67086

Closed

Description

@steipe
mannequin
BPO 22897
Nosy @terryjreedy, @ned-deily

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 = None
closed_at = <Date 2017-06-23.07:09:45.737>
created_at = <Date 2014-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 = <Date 2017-06-23.07:09:45.734>
user = 'https://bugs.python.org/steipe'

bugs.python.org fields:

activity = <Date 2017-06-23.07:09:45.734>
actor = 'terry.reedy'
assignee = 'none'
closed = True
closed_date = <Date 2017-06-23.07:09:45.737>
closer = 'terry.reedy'
components = ['IDLE']
creation = <Date 2014-11-18.19:09:04.367>
creator = 'steipe'
dependencies = []
files = []
hgrepos = []
issue_num = 22897
keywords = []
message_count = 3.0
messages = ['231338', '231353', '296684']
nosy_count = 3.0
nosy_names = ['terry.reedy', 'ned.deily', 'steipe']
pr_nums = []
priority = 'normal'
resolution = 'wont fix'
stage = 'resolved'
status = 'closed'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue22897'
versions = ['Python 2.7']

Activity

  1. steipe commented on Nov 18, 2014

    steipemannequin
    MannequinAuthor

    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.

  2. added
    type-bug
    on Nov 18, 2014
  3. ned-deily commented on Nov 19, 2014

    @ned-deily
    Member

    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.

  4. 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
  5. terryjreedy commented on Jun 23, 2017

    @terryjreedy
    Member

    I am no longer patching IDLE for 2.7

  6. transferred this issue fromon Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic-IDLEtype-bug

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions