【问题标题】:Pycharm 4.0.3 crash any PyQt program while using DebugPycharm 4.0.3 在使用调试时使任何 PyQt 程序崩溃
【发布时间】:2015-06-02 06:51:20
【问题描述】:

在使用 Pycharm 4.0.3 调试任何 PyQt5 程序时,它会导致 Python.exe 进程崩溃。

最初,它会很好地显示self 变量。

点击self左侧的+后,会显示“正在收集数据”:

然后立即使 Python.exe 崩溃,打印:

C:\Anaconda3\python.exe "C:\Program Files (x86)\JetBrains\PyCharm 4.0.3\helpers\pydev\pydevd.py" --multiproc --client 127.0.0.1 --port 62848 --file D:/My_Program/PyQt/TLC_Python34/TLC_Processor_Py34.py
pydev debugger: process 7536 is connecting

Connected to pydev debugger (build 139.781)

Process finished with exit code -1073741819 (0xC0000005)

我在 google 上找到了几个类似的报告,但我找不到任何解决方案。

【问题讨论】:

    标签: python pyqt pycharm pyqt5


    【解决方案1】:

    我在 File > Settings > Build, Execution, Deployment > Python Debugger 中发现 PyQt 框被选中。取消选中它可以解决问题。 要解决每个程序的问题,请在文件 > 默认设置 > (...) 中执行相同操作。

    【讨论】:

      【解决方案2】:

      我遇到了类似的问题,并通过从 virtualenv 中删除 PySide 来解决。看来他们不喜欢一起工作(PyQt5 和 PySide)。

      【讨论】:

        猜你喜欢
        • 2021-03-17
        • 1970-01-01
        • 2010-11-04
        • 1970-01-01
        • 2017-02-07
        • 2017-10-14
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多