You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 13, 2025. It is now read-only.
Repository navigation
This repository was archived by the owner on Feb 13, 2025. It is now read-only.
thank you for the report. The exit code 0xC0000005 indicates an access violation. Could you please provide the source code of D:/tttt/hello.py. Does the crash also happen without the debugger attached?
PyCharm - more precisely the debugger component pydevd - optionally uses the frame evaluation API "eval_frame" defined in PEP 523. Stackless can't support this API, because it evaluates frames quite differently than regular C-Python.
Fortunately there is a simple workaround: set the environment variable PYDEVD_USE_FRAME_EVAL=NO:
set PYDEVD_USE_FRAME_EVAL=NO
"\Program Files\JetBrains\PyCharm Community Edition 2021.1.1\bin\pycharm64.exe"
A patch for pydevd to disable frame eval for Stackless would be good too.
First, double check, that Python actually sees the environment setting. Run:
import os
print(os.environ.get('PYDEVD_USE_FRAME_EVAL'))
You may also try the set the environment variable PYDEVD_USE_CYTHON=NO. Previous versions of cython were not compatible with Stackless Python (see #168) and Pycharm uses cython.
In the 'set environment variables' part of the run/debug dialog in PyCharm, i was separating the variables with "; " (space) instead of ";" (no space). This set the wrong (or no) variable. Umpfff.
Activity
akruis commentedon Apr 20, 2021
Hello egmkang,
thank you for the report. The exit code 0xC0000005 indicates an access violation. Could you please provide the source code of D:/tttt/hello.py. Does the crash also happen without the debugger attached?
Regards
Anselm
egmkang commentedon Apr 21, 2021
just one line
print("hello world"), and use PyCharm todebugthis file, it will crash.runthis file is okakruis commentedon Apr 22, 2021
I can reproduce the crash.
akruis commentedon Apr 23, 2021
PyCharm - more precisely the debugger component pydevd - optionally uses the frame evaluation API "eval_frame" defined in PEP 523. Stackless can't support this API, because it evaluates frames quite differently than regular C-Python.
Fortunately there is a simple workaround: set the environment variable
PYDEVD_USE_FRAME_EVAL=NO:A patch for pydevd to disable frame eval for Stackless would be good too.
[-]PyCharm debug crash[/-][+]PyCharm pydevd debug crash[/+]akruis commentedon Apr 23, 2021
pull request for pydevd created
gemerden commentedon May 10, 2021
I have this issue (i think) but setting PYDEVD_USE_FRAME_EVAL=NO did not work for me. I have created an issue: https://youtrack.jetbrains.com/issue/PY-48739
akruis commentedon May 10, 2021
First, double check, that Python actually sees the environment setting. Run:
You may also try the set the environment variable
PYDEVD_USE_CYTHON=NO. Previous versions of cython were not compatible with Stackless Python (see #168) and Pycharm uses cython.gemerden commentedon May 10, 2021
Perfect, thanks, that solved my problem!
In the 'set environment variables' part of the run/debug dialog in PyCharm, i was separating the variables with "; " (space) instead of ";" (no space). This set the wrong (or no) variable. Umpfff.
Will also report to PyCharm issues.