PyCharm Debugging: Python Quit Unexpectedly
Similar to 360010029379-Pycharm-Python-quit-unexpectedly but a bit more nuance.
1. I have a project. It does nothing special, uses files and PySimpleGUI. It was running and debugging a few minutes ago.
2. The project will Run just fine, inside or outside PyCharm; I conclude this is a PyCharm bug.
3. If I debug, the program runs normally until a particular button triggers a "Python Quit Unexpectedly" dialog, with the report including:
```
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000008
Exception Codes: 0x0000000000000001, 0x0000000000000008
Exception Note: EXC_CORPSE_NOTIFY
Termination Reason: Namespace SIGNAL, Code 11 Segmentation fault: 11
Terminating Process: exc handler [15814]
VM Region Info: 0x8 is not in any region. Bytes before following region: 140737486458872
REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
UNUSED SPACE AT START
--->
VM_ALLOCATE 7fffffe31000-7fffffe32000 [ 4K] r-x/r-x SM=ALI
0 python3.10 0x1027ac20b _PyEval_EvalFrameDefault + 33307
1 pydevd_frame_evaluator_darwin_310_64.cpython-310-darwin.so 0x102e08f95 __pyx_f_18_pydevd_frame_eval_36pydevd_frame_evaluator_darwin_310_64_get_bytecode_while_frame_eval + 6053
2 python3.10 0x1027a2588 _PyEval_Vector + 376
3 python3.10 0x1027b395e call_function + 798
4 python3.10 0x1027a8cd3 _PyEval_EvalFrameDefault + 19683
5 pydevd_frame_evaluator_darwin_310_64.cpython-310-darwin.so 0x102e08f95 __pyx_f_18_pydevd_frame_eval_36pydevd_frame_evaluator_darwin_310_64_get_bytecode_while_frame_eval + 6053
6 python3.10 0x1027a2588 _PyEval_Vector + 376
7 python3.10 0x10279c979 builtin_exec + 345
8 python3.10 0x1026d95a5 cfunction_vectorcall_FASTCALL + 85
9 python3.10 0x1027b395e call_function + 798
10 python3.10 0x1027a8cd3 _PyEval_EvalFrameDefault + 19683
11 pydevd_frame_evaluator_darwin_310_64.cpython-310-darwin.so 0x102e08f95 __pyx_f_18_pydevd_frame_eval_36pydevd_frame_evaluator_darwin_310_64_get_bytecode_while_frame_eval + 6053
12 python3.10 0x1027a2588 _PyEval_Vector + 376
13 python3.10 0x1027b395e call_function + 798
14 python3.10 0x1027aafec _PyEval_EvalFrameDefault + 28668
15 pydevd_frame_evaluator_darwin_310_64.cpython-310-darwin.so 0x102e08f95 __pyx_f_18_pydevd_frame_eval_36pydevd_frame_evaluator_darwin_310_64_get_bytecode_while_frame_eval + 6053
```
For the completionists: MacOS 12.5.1, Python 3.10.4, PyCharm 2022.2.1 (Professional) build #PY-222.3739.56
Please sign in to leave a comment.
Hi,
Looks similar to https://youtrack.jetbrains.com/issue/PY-54932/cython-debugging-crashes-when-there-is-a-breakpoint
Please try disabling Cython speedups as noted in https://youtrack.jetbrains.com/issue/PY-54932/cython-debugging-crashes-when-there-is-a-breakpoint#focus=Comments-27-6253477.0-0
If it helps, I'd say it's a duplicate. Please vote for the issue.