[issue35209] Crash with tkinter text on osx
New submission from remi bertholet : Hello, If I press the key "Alt-Shift-F" with script it crash all times. I reproduces the same crash with Python 2.7. To reproduce it, on terminal osx 10.13.6 (17G3025) : - run "python3 ScrollFrame.py" - Click one time on tk window (it show on foreground) - Press "Ctrl-Alt-F" (all other alt produce the same crash) - And you obtain the crash next : The crash on python 3.7 : 2018-11-10 11:50:30.702 Python[3095:292595] *** Terminating app due to uncaught exception 'NSRangeException', reason: '-[__NSCFConstantString characterAtIndex:]: Range or index out of bounds' *** First throw call stack: ( 0 CoreFoundation 0x7fff2b04123b __exceptionPreprocess + 171 1 libobjc.A.dylib 0x7fff522d2c76 objc_exception_throw + 48 2 CoreFoundation 0x7fff2b0d2d5d +[NSException raise:format:] + 205 3 CoreFoundation 0x7fff2afbd236 -[__NSCFString characterAtIndex:] + 102 4 Tk 0x7fff37721343 TkpInitKeymapInfo + 731 5 Tk 0x7fff377271a1 Tk_MacOSXSetupTkNotifier + 798 6 Tcl 0x7fff37621a50 Tcl_DoOneEvent + 300 7 _tkinter.cpython-37m-darwin.so 0x00010dd957ac _tkinter_tkapp_mainloop + 256 8 Python 0x00010d3d4f42 _PyMethodDef_RawFastCallKeywords + 525 9 Python 0x00010d3d981e _PyMethodDescr_FastCallKeywords + 82 10 Python 0x00010d46b1a2 call_function + 615 11 Python 0x00010d4622ec _PyEval_EvalFrameDefault + 2579 12 Python 0x00010d46bad1 _PyEval_EvalCodeWithName + 1837 13 Python 0x00010d3d4474 _PyFunction_FastCallKeywords + 225 14 Python 0x00010d46b17a call_function + 575 15 Python 0x00010d462305 _PyEval_EvalFrameDefault + 2604 16 Python 0x00010d46bad1 _PyEval_EvalCodeWithName + 1837 17 Python 0x00010d461851 PyEval_EvalCode + 42 18 Python 0x00010d490a5f run_mod + 54 19 Python 0x00010d48fa7a PyRun_FileExFlags + 164 20 Python 0x00010d48f159 PyRun_SimpleFileExFlags + 283 21 Python 0x00010d4a6842 pymain_main + 5114 22 Python 0x00010d4a6fd4 _Py_UnixMain + 104 23 libdyld.dylib 0x7fff52eec015 start + 1 ) libc++abi.dylib: terminating with uncaught exception of type NSException Abort trap: 6 The crash on python 2.7 : 2018-11-10 11:51:34.728 Python[3104:294757] *** Terminating app due to uncaught exception 'NSRangeException', reason: '-[__NSCFConstantString characterAtIndex:]: Range or index out of bounds' *** First throw call stack: ( 0 CoreFoundation 0x7fff2b04123b __exceptionPreprocess + 171 1 libobjc.A.dylib 0x7fff522d2c76 objc_exception_throw + 48 2 CoreFoundation 0x7fff2b0d2d5d +[NSException raise:format:] + 205 3 CoreFoundation 0x7fff2afbd236 -[__NSCFString characterAtIndex:] + 102 4 Tk 0x7fff37721343 TkpInitKeymapInfo + 731 5 Tk 0x7fff377271a1 Tk_MacOSXSetupTkNotifier + 798 6 Tcl 0x7fff37621a50 Tcl_DoOneEvent + 300 7 _tkinter.so 0x0001026cca77 Tkapp_MainLoop + 354 8 Python 0x00010236a357 PyEval_EvalFrameEx + 19822 9 Python 0x0001023653d2 PyEval_EvalCodeEx + 1562 10 Python 0x00010236e4d7 fast_function + 290 11 Python 0x00010236a25a PyEval_EvalFrameEx + 19569 12 Python 0x0001023653d2 PyEval_EvalCodeEx + 1562 13 Python 0x000102364db2 PyEval_EvalCode + 32 14 Python 0x00010238679b run_mod + 49 15 Python 0x000102386842 PyRun_FileExFlags + 130 16 Python 0x0001023863c4 PyRun_SimpleFileExFlags + 706 17 Python
[issue35209] Crash with tkinter text on osx
remi bertholet added the comment: Yes I use homebrew. I have done : brew update brew upgrade python 3.7.1 installed : Python 3.7.1 (default, Nov 6 2018, 18:45:35) [Clang 10.0.0 (clang-1000.11.45.5)] on darwin Type "help", "copyright", "credits" or "license" for more information. but I still have the crash with this version : 2018-11-10 15:37:54.784 Python[35388:488345] *** Terminating app due to uncaught exception 'NSRangeException', reason: '-[__NSCFConstantString characterAtIndex:]: Range or index out of bounds' *** First throw call stack: ( 0 CoreFoundation 0x7fff2b04123b __exceptionPreprocess + 171 1 libobjc.A.dylib 0x7fff522d2c76 objc_exception_throw + 48 2 CoreFoundation 0x7fff2b0d2d5d +[NSException raise:format:] + 205 3 CoreFoundation 0x7fff2afbd236 -[__NSCFString characterAtIndex:] + 102 4 Tk 0x7fff37721343 TkpInitKeymapInfo + 731 5 Tk 0x7fff377271a1 Tk_MacOSXSetupTkNotifier + 798 6 Tcl 0x7fff37621a50 Tcl_DoOneEvent + 300 7 _tkinter.cpython-37m-darwin.so 0x000106b877ab _tkinter_tkapp_mainloop + 256 8 Python 0x0001061e3313 _PyMethodDef_RawFastCallKeywords + 496 9 Python 0x0001061e7caa _PyMethodDescr_FastCallKeywords + 82 10 Python 0x000106278bd0 call_function + 801 11 Python 0x000106271758 _PyEval_EvalFrameDefault + 6991 12 Python 0x000106279432 _PyEval_EvalCodeWithName + 1835 13 Python 0x0001061e2874 _PyFunction_FastCallKeywords + 225 14 Python 0x000106278ba0 call_function + 753 15 Python 0x000106271771 _PyEval_EvalFrameDefault + 7016 16 Python 0x000106279432 _PyEval_EvalCodeWithName + 1835 17 Python 0x00010626fb81 PyEval_EvalCode + 42 18 Python 0x00010629e6ed run_mod + 54 19 Python 0x00010629d708 PyRun_FileExFlags + 164 20 Python 0x00010629cdc2 PyRun_SimpleFileExFlags + 266 21 Python 0x0001062b4adc pymain_main + 5665 22 Python 0x0001062b50ff _Py_UnixMain + 75 23 libdyld.dylib 0x7fff52eec015 start + 1 24 ??? 0x0002 0x0 + 2 ) libc++abi.dylib: terminating with uncaught exception of type NSException > Le 10 nov. 2018 à 15:26, Karthikeyan Singaravelan a > écrit : > > > Karthikeyan Singaravelan added the comment: > > Thanks for the report. I added Ned since it seemed similar to issue32481 but > from Python 3.7 the Mac installers from python.org ship with in-built Tcl/Tk > 8.6.8 as in which was the reported version > https://www.python.org/download/mac/tcltk/#built-in-8-6-8 . I was able to > reproduce the crash with attached file on 3.6 which was installed from > Homebrew. I was not able to reproduce the crash on Python 3.7.1RC2 installed > from python.org. I don't know if installing 3.7 from Homebrew might cause > problems with my existing virtual environments to validate my assumption. > > 1. @remi_bertholet Is Python 3.7 installed with Homebrew? > 2. Ned, does Python 3.7 that is installed from Homebrew ship with in-built > Tcl/Tk similar to Mac installers from python.org? > > -- > nosy: +xtreak > > ___ > Python tracker > <https://bugs.python.org/issue35209> > ___ -- ___ Python tracker <https://bugs.python.org/issue35209> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue35209] Crash with tkinter text on osx
remi bertholet added the comment: with the python installer I do not have the problem... -- ___ Python tracker <https://bugs.python.org/issue35209> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue35209] Crash with tkinter text on osx
remi bertholet added the comment: The problem is due to an old version of tk. I deleted the python3 from homebrew. With version 3.7.1 python.org, the crash is no longer, but the keyboard shortcuts tkinter on the menus (accelerator), seems to be capricious, they work once, then it does not work anymore. I did not have this problem before, is it a regression of version 3.7.1? -- ___ Python tracker <https://bugs.python.org/issue35209> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com