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

Crash on MacOS #16

Open
programLyrique opened this issue Sep 16, 2016 · 3 comments
Open

Crash on MacOS #16

programLyrique opened this issue Sep 16, 2016 · 3 comments

Comments

@programLyrique
Copy link

With version 217d512 on MacOSX Yosemite 10.10.5

After typing a bit in the main edit box, the program crashed.

2016-09-16 11:41:24.461 Python[25949:1611038] An uncaught exception was raised
2016-09-16 11:41:24.462 Python[25949:1611038] -[__NSCFConstantString characterAtIndex:]: Range or index out of bounds
2016-09-16 11:41:24.462 Python[25949:1611038] (
    0   CoreFoundation                      0x00007fff930d903c __exceptionPreprocess + 172
    1   libobjc.A.dylib                     0x00007fff8e53a76e objc_exception_throw + 43
    2   CoreFoundation                      0x00007fff930d8eed +[NSException raise:format:] + 205
    3   CoreFoundation                      0x00007fff92fac0c6 -[__NSCFString characterAtIndex:] + 102
    4   Tk                                  0x00000001039905a8 TkpInitKeymapInfo + 751
    5   Tk                                  0x000000010399660b Tk_MacOSXSetupTkNotifier + 880
    6   Tcl                                 0x000000010386b49c Tcl_DoOneEvent + 316
    7   _tkinter.cpython-35m-darwin.so      0x00000001032965dd _tkinter_tkapp_mainloop + 255
    8   Python                              0x0000000102d463b5 PyCFunction_Call + 273
    9   Python                              0x0000000102da9ddf PyEval_EvalFrameEx + 22399
    10  Python                              0x0000000102dad26c _PyEval_EvalCodeWithName + 1884
    11  Python                              0x0000000102dadbab fast_function + 341
    12  Python                              0x0000000102da9c74 PyEval_EvalFrameEx + 22036
    13  Python                              0x0000000102dadb2b fast_function + 213
    14  Python                              0x0000000102da9c74 PyEval_EvalFrameEx + 22036
    15  Python                              0x0000000102dadb2b fast_function + 213
    16  Python                              0x0000000102da9c74 PyEval_EvalFrameEx + 22036
    17  Python                              0x0000000102dad26c _PyEval_EvalCodeWithName + 1884
    18  Python                              0x0000000102da45f7 PyEval_EvalCode + 81
    19  Python                              0x0000000102dca17d run_mod + 58
    20  Python                              0x0000000102dca45e PyRun_FileExFlags + 178
    21  Python                              0x0000000102dc9ab2 PyRun_SimpleFileExFlags + 469
    22  Python                              0x0000000102dddac6 Py_Main + 3342
    23  Python                              0x0000000102d00e27 Python + 7719
    24  libdyld.dylib                       0x00007fff8a46d5c9 start + 1
    25  ???                                 0x0000000000000002 0x0 + 2
)
2016-09-16 11:41:24.464 Python[25949:1611038] *** Terminating app due to uncaught exception 'NSRangeException', reason: '-[__NSCFConstantString characterAtIndex:]: Range or index out of bounds'
*** First throw call stack:
(
    0   CoreFoundation                      0x00007fff930d903c __exceptionPreprocess + 172
    1   libobjc.A.dylib                     0x00007fff8e53a76e objc_exception_throw + 43
    2   CoreFoundation                      0x00007fff930d8eed +[NSException raise:format:] + 205
    3   CoreFoundation                      0x00007fff92fac0c6 -[__NSCFString characterAtIndex:] + 102
    4   Tk                                  0x00000001039905a8 TkpInitKeymapInfo + 751
    5   Tk                                  0x000000010399660b Tk_MacOSXSetupTkNotifier + 880
    6   Tcl                                 0x000000010386b49c Tcl_DoOneEvent + 316
    7   _tkinter.cpython-35m-darwin.so      0x00000001032965dd _tkinter_tkapp_mainloop + 255
    8   Python                              0x0000000102d463b5 PyCFunction_Call + 273
    9   Python                              0x0000000102da9ddf PyEval_EvalFrameEx + 22399
    10  Python                              0x0000000102dad26c _PyEval_EvalCodeWithName + 1884
    11  Python                              0x0000000102dadbab fast_function + 341
    12  Python                              0x0000000102da9c74 PyEval_EvalFrameEx + 22036
    13  Python                              0x0000000102dadb2b fast_function + 213
    14  Python                              0x0000000102da9c74 PyEval_EvalFrameEx + 22036
    15  Python                              0x0000000102dadb2b fast_function + 213
    16  Python                              0x0000000102da9c74 PyEval_EvalFrameEx + 22036
    17  Python                              0x0000000102dad26c _PyEval_EvalCodeWithName + 1884
    18  Python                              0x0000000102da45f7 PyEval_EvalCode + 81
    19  Python                              0x0000000102dca17d run_mod + 58
    20  Python                              0x0000000102dca45e PyRun_FileExFlags + 178
    21  Python                              0x0000000102dc9ab2 PyRun_SimpleFileExFlags + 469
    22  Python                              0x0000000102dddac6 Py_Main + 3342
    23  Python                              0x0000000102d00e27 Python + 7719
    24  libdyld.dylib                       0x00007fff8a46d5c9 start + 1
    25  ???                                 0x0000000000000002 0x0 + 2
)
libc++abi.dylib: terminating with uncaught exception of type NSException
Abort trap: 6
@fredokun
Copy link
Collaborator

fredokun commented Sep 16, 2016

this one will be hard to reproduce for me... It seems to be an FFI problem with tkinter...
(there is no python exception here...).
I would suggest trying with another python
interpreter such as active python or the one on macports or brew...

@programLyrique
Copy link
Author

After some more investigations, it seems the crash is triggered by inserting special characters, such as ^ and ` (which are characters that require a second character after them to be displayed).

Characters such that é and è work.

@matthiasbe
Copy link

Same issue occured to me with Mojave 10.14.5
python 3.7.4
MrPython 3.0.1-beta

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants