Tk Source Code

View Ticket
Login
Ticket UUID: 5849df7852c48cb763b11a11d848a68482b0f828
Title: Cmd+` crashes Tk on Mac with Spanish or French keyboard
Type: Bug Version: 8.6.8
Submitter: anonymous Created on: 2019-10-03 06:30:01
Subsystem: (unused) Assigned To: nobody
Priority: 5 Medium Severity: Minor
Status: Closed Last Modified: 2019-10-21 00:35:10
Resolution: Fixed Closed By: marc_culler
    Closed on: 2019-10-21 00:35:10
Description:
Pressing this combination closes the application and gives the crash report below. 

I have experienced it via Tkinter with official Python 3.7.4 in Mojave (https://github.com/thonny/thonny/issues/886), others have reproduced it in Wish: https://bugs.python.org/issue34455


2019-10-03 09:25:48.184 Python[1101:36803] -[TKMenu submenuAction:]: unrecognized selector sent to instance 0x7ffbfedb6700
2019-10-03 09:25:48.289 Python[1101:36803] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[TKMenu submenuAction:]: unrecognized selector sent to instance 0x7ffbfedb6700'
*** First throw call stack:
(
	0   CoreFoundation                      0x00007fff4f594b79 __exceptionPreprocess + 256
	1   libobjc.A.dylib                     0x00007fff79d2e3c6 objc_exception_throw + 48
	2   CoreFoundation                      0x00007fff4f60f27b -[NSObject(NSObject) __retain_OA] + 0
	3   CoreFoundation                      0x00007fff4f536658 ___forwarding___ + 1478
	4   CoreFoundation                      0x00007fff4f536008 _CF_forwarding_prep_0 + 120
	5   AppKit                              0x00007fff4cdb8644 -[NSApplication(NSResponder) sendAction:to:from:] + 312
	6   AppKit                              0x00007fff4cfed088 -[NSCarbonMenuImpl performMenuAction:withTarget:] + 155
	7   AppKit                              0x00007fff4ce137cb -[NSMenu _performKeyEquivalentWithDelegate:] + 196
	8   AppKit                              0x00007fff4ce13327 -[NSMenu performKeyEquivalent:] + 68
	9   AppKit                              0x00007fff4d298d5f routeKeyEquivalent + 860
	10  AppKit                              0x00007fff4cad1128 -[NSApplication(NSEvent) sendEvent:] + 1064
	11  libtk8.6.dylib                      0x00000001026493ee -[TKApplication(TKNotify) sendEvent:] + 39
	12  libtk8.6.dylib                      0x0000000102649787 TkMacOSXEventsCheckProc + 434
	13  libtcl8.6.dylib                     0x00000001024e0d06 Tcl_DoOneEvent + 316
	14  _tkinter.cpython-37m-darwin.so      0x000000010241101d _tkinter_tkapp_mainloop + 269
	15  Python                              0x0000000101ae10de _PyMethodDef_RawFastCallKeywords + 430
	16  Python                              0x0000000101ae6d42 _PyMethodDescr_FastCallKeywords + 82
	17  Python                              0x0000000101b9f8ec call_function + 780
	18  Python                              0x0000000101b9c873 _PyEval_EvalFrameDefault + 25155
	19  Python                              0x0000000101ba0413 _PyEval_EvalCodeWithName + 2467
	20  Python                              0x0000000101ae05a1 _PyFunction_FastCallKeywords + 257
	21  Python                              0x0000000101b9f8c2 call_function + 738
	22  Python                              0x0000000101b9c88d _PyEval_EvalFrameDefault + 25181
	23  Python                              0x0000000101ae0a10 function_code_fastcall + 128
	24  Python                              0x0000000101b9f8c2 call_function + 738
	25  Python                              0x0000000101b9c92e _PyEval_EvalFrameDefault + 25342
	26  Python                              0x0000000101ba0413 _PyEval_EvalCodeWithName + 2467
	27  Python                              0x0000000101b96554 PyEval_EvalCode + 100
	28  Python                              0x0000000101b93abd builtin_exec + 557
	29  Python                              0x0000000101ae10de _PyMethodDef_RawFastCallKeywords + 430
	30  Python                              0x0000000101ae05da _PyCFunction_FastCallKeywords + 42
	31  Python                              0x0000000101b9f8b4 call_function + 724
	32  Python                              0x0000000101b9c92e _PyEval_EvalFrameDefault + 25342
	33  Python                              0x0000000101ba0413 _PyEval_EvalCodeWithName + 2467
	34  Python                              0x0000000101ae05a1 _PyFunction_FastCallKeywords + 257
	35  Python                              0x0000000101b9f8c2 call_function + 738
	36  Python                              0x0000000101b9c92e _PyEval_EvalFrameDefault + 25342
	37  Python                              0x0000000101ba0413 _PyEval_EvalCodeWithName + 2467
	38  Python                              0x0000000101ae017b _PyFunction_FastCallDict + 523
	39  Python                              0x0000000101bf2f23 pymain_run_module + 147
	40  Python                              0x0000000101bf230f pymain_main + 5391
	41  Python                              0x0000000101bf2e6a _Py_UnixMain + 58
	42  libdyld.dylib                       0x00007fff7b4f33d5 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
User Comments: marc_culler (claiming to be Marc Culler) added on 2019-10-21 00:35:10:
There is no crash with the current core-8-6-branch tip on Catalina either.
I think this has been fixed, and the ticket can be closed.

kevin_walzer added on 2019-10-03 10:50:00:
Cannot reproduce on the tip of core-8-6-branch.