This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: IDLE crashes in macOS Apple chip, maybe completions
Type: Stage:
Components: IDLE, Tkinter Versions: Python 3.10
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: terry.reedy Nosy List: ned.deily, rhettinger, ronaldoussoren, taleinat, terry.reedy
Priority: high Keywords:

Created on 2021-03-01 00:44 by rhettinger, last changed 2022-04-11 14:59 by admin.

Messages (7)
msg387824 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2021-03-01 00:44
I'm running a python.org Mac build on Apple silicon.

Python 3.10.0a5 (v3.10.0a5:b0478d738a, Feb  2 2021, 16:30:44) 
[Clang 12.0.0 (clang-1200.0.32.29)] on darwin

Periodically, Python freezes and requires a force quit.  I'm not certain but think the trigger event is the display of a pop-up box showing attribute completions.  The box is correctly shaped but filled with a solid light gray.

I suspect the problem is partly in the O/S because after the freeze, I see something similar when clicking the system  icon, so the effect extends beyond Python.  However, the problem does not occur on my Mac with Intel silicon and it does not happen with Python 3.9 running on Apple silicon.  

This has been occurring for a while and has persisted through O/S updates.  Today, it happened on Big Sur 11.2.2.   

Will try to get a screen shot and more details when this happens again.

The event occurs often enough to make IDLE unusable for classroom demonstrations or for development.
msg387839 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2021-03-01 04:38
Completions are in a Listbox.  listboxes are used for completions, stackviewer, and a few places in the settings dialog, in particular the keys list.  And maybe the drop down list for themes and keysets.  The latter two are the only one normally gray.  Try the different settings tabs.
msg387841 - (view) Author: Ned Deily (ned.deily) * (Python committer) Date: 2021-03-01 04:53
What version of Python (and Tcl/Tk) are you running on your Intel Macn that does not fail? Currently, we use Tcl/Tk 8.6.11 with the macOS 64-bit universal2 installer variant as of Python 3.9.2 and 3.10.0a4; previously, they used 8.6.10. All other current installer variants use 8.6.8.
msg389371 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2021-03-23 04:52
This time I got a screen shot showing the gray completion box that appeared just as IDLE stopped responding and froze:

https://www.dropbox.com/s/eu3wd13vytz6tt8/Screen%20Shot%202021-03-22%20at%209.37.56%20PM.png?dl=0

Am now running Python 3.10.0a6 on Big Sur 11.2.3 running on a 2020 M-1 MacBook Air.
msg392766 - (view) Author: Tal Einat (taleinat) * (Python committer) Date: 2021-05-03 05:55
I'd be happy to look into this but I haven't access to any M-1 Macs at the moment.

It would be helpful if someone with an M-1 could try running IDLE from the command line to see if an error message is written when this issue occurs.
msg392770 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2021-05-03 06:49
There was no command-line error.
msg392787 - (view) Author: Tal Einat (taleinat) * (Python committer) Date: 2021-05-03 10:11
Thanks for the info, Raymond.

Anyone with an M-1 Mac able to look into this further?
History
Date User Action Args
2022-04-11 14:59:42adminsetgithub: 87513
2021-05-03 10:11:05taleinatsetmessages: + msg392787
2021-05-03 06:49:24rhettingersetmessages: + msg392770
2021-05-03 05:55:49taleinatsetnosy: + taleinat
messages: + msg392766
2021-03-23 04:52:34rhettingersetmessages: + msg389371
2021-03-01 04:53:31ned.deilysetmessages: + msg387841
2021-03-01 04:38:28terry.reedysetpriority: normal -> high
2021-03-01 04:38:07terry.reedysetnosy: + ned.deily

messages: + msg387839
title: IDLE crashes in -> IDLE crashes in macOS Apple chip, maybe completions
2021-03-01 00:44:04rhettingercreate