PyCharm 调试器因“Windows 致命异常:访问冲突”而终止

kon*_*tin 17 debugging pycharm

简短的介绍

我正在使用 PyCharm 并正在编写 pytest 单元测试。我可以正常运行测试,但如果我尝试调试它,调试器就会崩溃。

Windows 致命异常:访问冲突

堆栈跟踪:

线程0x00003588(最近一次调用首先):文件“C:\ Users \ MyUserName \ AppData \ Local \ Programs \ Python \ Python310 \ lib \ threading.py”,等待文件“C:\ Users \ MyUserName \ AppData \”中的第324行Local\Programs\Python\Python310\lib\threading.py”,等待文件中的第 600 行“C:\Program Files\JetBrains\PyCharm 2021.1\plugins\python\helpers\pydev\pydevd.py”,_on_run 文件中的第 150 行“C:\Program Files\JetBrains\PyCharm 2021.1\plugins\python\helpers\pydev_pydevd_bundle\pydevd_comm.py”,运行文件“C:\Users\MyUserName\AppData\Local\Programs\Python\Python310\lib\”中的第 218 行threading.py”,_bootstrap_inner 中的第 1009 行 文件“C:\Users\MyUserName\AppData\Local\Programs\Python\Python310\lib\threading.py”,_bootstrap 中的第 966 行

线程 0x000023f0(最近一次调用首先):文件“C:\Program Files\JetBrains\PyCharm 2021.1\plugins\python\helpers\pydev_pydevd_bundle\pydevd_comm.py”,_on_run 文件“C:\Program Files\JetBrains\PyCharm 中的第 292 行” 2021.1\plugins\python\helpers\pydev_pydevd_bundle\pydevd_comm.py”,运行文件中的第 218 行“C:\Users\MyUserName\AppData\Local\Programs\Python\Python310\lib\threading.py”,_bootstrap_inner 文件中的第 1009 行“C:\ Users \ MyUserName \ AppData \ Local \ Programs \ Python \ Python310 \ lib \ threading.py”,_bootstrap中的第966行...文件“C:\ Program Files \ JetBrains \ PyCharm 2021.1 \ plugins \ python \ helpers \pydev_pydev_imps_pydev_execfile.py”,execfile 文件“C:\Program Files\JetBrains\PyCharm 2021.1\plugins\python\helpers\pydev\pydevd.py”中的第 18 行,_exec 文件“C:\Program Files\JetBrains\”中的第 1483 行PyCharm 2021.1\plugins\python\helpers\pydev\pydevd.py”,运行文件“C:\Program Files\JetBrains\PyCharm 2021.1\plugins\python\helpers\pydev\pydevd.py”中的第 1476 行,在 main 中的第 2164 行文件“C:\Program Files\JetBrains\PyCharm 2021.1\plugins\python\helpers\pydev\pydevd.py”,第 2173 行

进程已完成,退出代码为 -1073741819 (0xC0000005)

kon*_*tin 19

禁用所有断点为我解决了这个问题: 在此输入图像描述

然后我就可以设置新的了。

  • 我仍然在 2022 年 5 月 31 日(专业版)构建的 Build #PY-221.5787.24 中看到此问题,但尚未解决。我确认重新安装 Python 和 IDE 没有帮助。 (2认同)