Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IDLE crashes in macOS Apple chip, maybe completions #87513

Open
rhettinger opened this issue Mar 1, 2021 · 10 comments
Open

IDLE crashes in macOS Apple chip, maybe completions #87513

rhettinger opened this issue Mar 1, 2021 · 10 comments
Assignees

Comments

@rhettinger
Copy link
Contributor

BPO 43347
Nosy @rhettinger, @terryjreedy, @ronaldoussoren, @taleinat, @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 = 'https://github.com/terryjreedy'
closed_at = None
created_at = <Date 2021-03-01.00:44:04.718>
labels = ['expert-IDLE', 'expert-tkinter', '3.10']
title = 'IDLE crashes in macOS Apple chip, maybe completions'
updated_at = <Date 2021-05-03.10:11:05.858>
user = 'https://github.com/rhettinger'

bugs.python.org fields:

activity = <Date 2021-05-03.10:11:05.858>
actor = 'taleinat'
assignee = 'terry.reedy'
closed = False
closed_date = None
closer = None
components = ['IDLE', 'Tkinter']
creation = <Date 2021-03-01.00:44:04.718>
creator = 'rhettinger'
dependencies = []
files = []
hgrepos = []
issue_num = 43347
keywords = []
message_count = 7.0
messages = ['387824', '387839', '387841', '389371', '392766', '392770', '392787']
nosy_count = 5.0
nosy_names = ['rhettinger', 'terry.reedy', 'ronaldoussoren', 'taleinat', 'ned.deily']
pr_nums = []
priority = 'high'
resolution = None
stage = None
status = 'open'
superseder = None
type = None
url = 'https://bugs.python.org/issue43347'
versions = ['Python 3.10']

@rhettinger
Copy link
Contributor Author

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.

@terryjreedy
Copy link
Member

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.

@terryjreedy terryjreedy changed the title IDLE crashes in IDLE crashes in macOS Apple chip, maybe completions Mar 1, 2021
@ned-deily
Copy link
Member

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.

@rhettinger
Copy link
Contributor Author

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.

@taleinat
Copy link
Contributor

taleinat commented May 3, 2021

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.

@rhettinger
Copy link
Contributor Author

There was no command-line error.

@taleinat
Copy link
Contributor

taleinat commented May 3, 2021

Thanks for the info, Raymond.

Anyone with an M-1 Mac able to look into this further?

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
@chrstphrchvz
Copy link
Contributor

If a spindump can be provided for this issue, that may help identify where Tkinter or Tk Aqua are getting stuck.

@zitterbewegung
Copy link
Contributor

zitterbewegung commented Apr 24, 2023

I have an M1 Mac (M1 Max) running Ventura (13.3.1)
Darwin Reformer.local 22.4.0 Darwin Kernel Version 22.4.0: Mon Mar 6 20:59:28 PST 2023; root:xnu-8796.101.5~3/RELEASE_ARM64_T6000 arm64 .

Screenshot 2023-04-24 at 2 44 30 PM

I get some information output to my terminal but I don't have a crash.

Screenshot 2023-04-24 at 2 45 39 PM

https://gist.github.com/zitterbewegung/fe14c1ec6a2fa61f09315bbdd25de1bb

@chrstphrchvz
Copy link
Contributor

@zitterbewegung Thank you for checking, but do you observe IDLE hanging? I think “crashes” in the title of this issue might be misleading; the issue is that IDLE stops responding and must be force quit, rather than IDLE crashing right away.

+[CATransaction synchronize] called within transaction is reportedly a benign message due to an bug in macOS 13 Ventura; see #101895.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

7 participants