且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

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

更新时间:2022-03-17 05:36:47

假设您在 Windows 下运行.应用程序错误代码 0xc0000005,也称为访问冲突错误,是 Windows 用户遇到的常见问题,无论操作系统版本如何.触发应用程序错误 0xc0000005 的原因有多种.就我而言,我在 PyCharm(或 Eclipse)中运行调试模式,代码包含以下内容:

Assume you are running under Windows. Application Error code 0xc0000005, also known as Access Violation error, is a common problem experienced by Windows users, regardless of os version. There are various causes to trigger Application Error 0xc0000005. For my case, I'm running debug mode in PyCharm (or Eclipse) with code that includes the following:

from pympler import muppy
all_objects=muppy.get_objects()  # this causes pydev debugger exit with code -1073741819 (0xC0000005)

如果在非调试(运行)模式下通过 PyCharm 执行同一段代码,那就完全没问题了.在调试模式下禁用上述代码,问题已解决.

It was perfectly fine if execute the same piece of code through PyCharm in non-debug (Run) mode. Disabled the above code in debug mode, issue resolved.

环境:PyCharm 社区 2019.3、Anaconda 3、Python 3.7.3、pympler 0.7、Windows 10 Enterprise

Environment: PyCharm Community 2019.3, Anaconda 3, Python 3.7.3, pympler 0.7, Windows 10 Enterprise