简体   繁体   English

进程以退出代码 -1073741819 (0xC0000005) Pycharm 结束

[英]Process finished with exit code -1073741819 (0xC0000005) Pycharm

I'm completly stuck on this.我完全坚持这一点。 I keep getting error message我不断收到错误消息

Process finished with exit code -1073741819 (0xC0000005)进程以退出代码 -1073741819 (0xC0000005) 结束

I'm using pycharm with pyqt5.6 and qt5.6.2 and the problem started when I upgraded to these versions.我正在使用 pycharm 和 pyqt5.6 和 qt5.6.2,当我升级到这些版本时问题就开始了。

I've tried searching as much as I can, but have not been able to find an answer.我已尝试尽可能多地搜索,但无法找到答案。 Can anyone help please?有人可以帮忙吗?

Assume you are running under Windows.假设您在 Windows 下运行。 Application Error code 0xc0000005, also known as Access Violation error, is a common problem experienced by Windows users, regardless of os version.应用程序错误代码0xc0000005,也称为访问冲突错误,是Windows用户遇到的常见问题,无论操作系统版本如何。 There are various causes to trigger Application Error 0xc0000005.触发应用程序错误 0xc0000005 的原因有多种。 For my case, I'm running debug mode in PyCharm (or Eclipse) with code that includes the following:就我而言,我在 PyCharm(或 Eclipse)中运行调试模式,代码包括以下内容:

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

It was perfectly fine if execute the same piece of code through PyCharm in non-debug (Run) mode.如果在非调试(运行)模式下通过 PyCharm 执行同一段代码,那就太好了。 Disabled the above code in debug mode, issue resolved.在调试模式下禁用上述代码,问题已解决。

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

Not sure if this is the 'right' way to do it but I ended up completely uninstalling anaconda and rebuilding it.不确定这是否是“正确”的方法,但我最终完全卸载了 anaconda 并重建它。 When I then made a new virtual environment the problem resolved.当我创建一个新的虚拟环境时,问题就解决了。 If others have the same issue this might work too.如果其他人有同样的问题,这也可能有效。 By the way the problem first occurred with an update to pyqt5.顺便说一句,问题首先出现在 pyqt5 的更新中。

我刚刚遇到这个错误,发现它是由使用比我的 venv 配置的新版本 Python 的方法引起的(3.10.0 中的匹配/大小写,3.8 作为解释器)

Not sure if related.不确定是否相关。 Came here by Google for Process finished with exit code -1073741571 (0xC00000FD)谷歌来到这里Process finished with exit code -1073741571 (0xC00000FD)

Problem was recursion in Debug mode in PyCharm using Anaconda environment:问题是在 PyCharm 中使用 Anaconda 环境在调试模式下递归:

class DemoClass:

    _some_hidden_variable = None

    def __init__(self):
        self.some_variable = 'some_input'

    @property
    def some_variable(self):
        return self._some_hidden_variable

    @some_variable.setter
    def some_variable(self, new_value):
        self.some_variable = new_value  # this row should set _some_hidden_variable 


demo_obj = DemoClass()

If I run it normally, I get:如果我正常运行它,我会得到:

Traceback (most recent call last):
  File "xxx/minimal_example.py", line 17, in <module>
    demo_obj = DemoClass()
  File "xxx/minimal_example.py", line 6, in __init__
    self.some_variable = 'some_input'
  File "xxx/minimal_example.py", line 14, in some_variable
    self.some_variable = new_value
  File "xxx/minimal_example.py", line 14, in some_variable
    self.some_variable = new_value
  File "xxx/minimal_example.py", line 14, in some_variable
    self.some_variable = new_value
  [Previous line repeated 994 more times]
RecursionError: maximum recursion depth exceeded

Process finished with exit code 1

I had the same problem solve it by updating my tensorflow.我有同样的问题通过更新我的张量流来解决。 There is probably some kind of compatibility problem.可能存在某种兼容性问题。 I realize the problem was from my "import tensorflow" because i was not getting an obvious error right after the import line.我意识到问题出在我的“导入 tensorflow”,因为在导入行之后我没有收到明显的错误。

I encountered the same issue today.我今天遇到了同样的问题。 I found this question while Googling for an answer!我在谷歌搜索时发现了这个问题! By luck, I found the root cause in my code.幸运的是,我在代码中找到了根本原因。

When I tried to expand a self pointer in the IntelliJ Python debugger, my Python interpreter would crash with: Process finished with exit code -1073741819 (0xC0000005)当我尝试在 IntelliJ Python 调试器中扩展self指针时,我的 Python 解释器会崩溃: Process finished with exit code -1073741819 (0xC0000005)

Here is the code that caused the issue:这是导致问题的代码:

@property
def prop(self):
    return self.prop  # Facepalm: I meant to write: self._prop

When expanding self in the debugger, IntelliJ iterates all properties in the object.在调试器中扩展self时,IntelliJ 会迭代对象中的所有属性。 If there is infinite loop/recursion, the Python interpreter will crash.如果存在无限循环/递归,Python 解释器将崩溃。

I had the same problem today when plotting a simple matrix.我今天在绘制一个简单的矩阵时遇到了同样的问题。 For me just changing the Python interpreter helped.对我来说,只需更改 Python 解释器即可。 I am not sure why, but I could imagine it has something to do with the installed libraries.我不知道为什么,但我可以想象它与安装的库有关。

Same problem, this resolved in my case:同样的问题,这在我的情况下解决了:

  • try run from command line (no pycharm), it works ( exception only in debug )尝试从命令行运行(没有pycharm),它可以工作(仅在调试中出现异常)
  • closed pycharm封闭的pycharm
  • deleted ".idea" folder inside project path删除了项目路径中的“.idea”文件夹
  • opened pycharm打开pycharm
  • reconfigure python runtime version and command line parameter重新配置python运行时版本和命令行参数
  • debug works调试工作

While developing SQLAlchemy application I run into the same issue.在开发 SQLAlchemy 应用程序时,我遇到了同样的问题。

I've added the -X dev ( https://docs.python.org/3/using/cmdline.html#miscellaneous-options ) Interpreter options in PyCharm Run/Debug Configurations which resulted in new exceptions instead of crashing with -1073741819 (0xc0000005).在 PyCharm 运行/调试配置中添加了-X devhttps://docs.python.org/3/using/cmdline.html#miscellaneous-options )解释器选项,这导致了新的异常,而不是与 -1073741819 一起崩溃(0xc0000005)。 These exceptions did not appear before.这些异常以前没有出现过。

Use faulthandler it will show the stack trace when application crashes through which u can debug the issue使用faulthandler它会在应用程序崩溃时显示堆栈跟踪,您可以通过它来调试问题

import faulthandler

if __name__ == "__main__":

    faulthandler.enable() #start @ the beginning

    ... # application logic

Where's the tensor flow plz? 张量流plz在哪里? I am using Pycharm and I,'ve been experiencing this 我正在使用Pycharm,而且我一直在经历

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 进程在 Pycharm 中以退出代码 -1073741819 (0xC0000005) 完成 - Process finished with exit code -1073741819 (0xC0000005) in Pycharm 进程完成,退出代码 -1073741819 (0xC0000005) - Rpy2 - Process finished with exit code -1073741819 (0xC0000005) - Rpy2 进程在 PyCharm 中以退出代码 -1073741819 (0xC0000005) 结束,重新启动:空闲状态下的 Shell,并关闭控制台 - Process finished with exit code -1073741819 (0xC0000005) in PyCharm, RESTART: Shell in IDLE, and closes console 在 PyCharm 上使用 PyWavelets 完成退出代码 -1073741819 (0xC0000005) - Process finished with exit code -1073741819 (0xC0000005) using PyWavelets on PyCharm Pycharm 调试器无法启动:完成退出代码 -1073741819 (0xC0000005) - Pycharm debugger can't start: finished with exit code -1073741819 (0xC0000005) 流程结束,退出代码为-1073741819(0xC0000005)(Cython,TeamSpeak3) - Process finished with exit code -1073741819 (0xC0000005) (Cython, TeamSpeak3) Python:进程已完成,退出代码为 -1073741819 (0xC0000005)。 如何调试? - Python: Process finished with exit code -1073741819 (0xC0000005). How to Debug? 'import quandl'生成'流程已完成退出代码-1073741819(0xC0000005)' - 'import quandl' produces 'Process finished with exit code -1073741819 (0xC0000005)' 使用 numba.jit 以退出代码 -1073741819 (0xC0000005) 完成的过程 - Process finished with exit code -1073741819 (0xC0000005) with numba.jit 如何修复错误“进程以退出代码-1073741819(0xC0000005)完成” - How to fix the error `Process finished with exit code -1073741819 (0xC0000005)`
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM