PyCharm 调试分段错误(信号 11) [英] PyCharm debug segmentation fault (signal 11)
问题描述
在 PyCharm(社区版 2016.2.3)中,使用 anaconda2 + ubuntu 14.04,import matplotlib
在调试模式下导致信号 11 错误.在release模式下执行脚本没有问题.
In PyCharm (community edition 2016.2.3), using anaconda2 + ubuntu 14.04, import matplotlib
causes a signal 11 error during the debug mode. There is no problem when executing the script in release mode.
python代码:
import matplotlib as pt
调试控制台:
连接到pydev调试器(build 162.1967.10)GLib-GIO-Message:使用内存"GSettings 后端.您的设置不会被保存或与其他应用程序共享.后端 Qt4Agg 是交互式后端.开启交互模式.
Connected to pydev debugger (build 162.1967.10) GLib-GIO-Message: Using the 'memory' GSettings backend. Your settings will not be saved or shared with other applications. Backend Qt4Agg is interactive backend. Turning interactive mode on.
进程以退出代码 139 结束(被信号 11:SIGSEGV 中断)
Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)
推荐答案
我有同样的错误信息.我删除了anaconda并安装了miniconda并重新安装了pycharm.退出代码 139 在我运行 python 控制台和调试控制台时都出现了.
I had the same error message. I deleted anaconda and installed miniconda instead and reinstalled pycharm. The exit code 139 came both when I was running a python console as well as the debugging console.
现在当我导入 matplotlib 时,我仍然收到消息:
Now when I import matplotlib, I still get the messages:
后端 Qt4Agg 是交互式后端.开启交互模式.
Backend Qt4Agg is interactive backend. Turning interactive mode on.
GLib-GIO-Message:使用内存"GSettings 后端.您的设置不会保存或与其他应用程序共享.
GLib-GIO-Message: Using the 'memory' GSettings backend. Your settings will not be saved or shared with other applications.
我想那不太理想,但我没有收到退出代码,而且一切似乎都正常.这是一个解决方案,但必须有更健壮的方法.
I guess thats not ideal but I am not getting an exit code and everything seems to work. It is a solution, but there must be a more robust way.
这篇关于PyCharm 调试分段错误(信号 11)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!