PyCharm 中的 Python 错误消息:无法附加到共享内存段 [英] Python error message in PyCharm: Unable to attach to shared memory segment

查看:35
本文介绍了PyCharm 中的 Python 错误消息:无法附加到共享内存段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开始在 Ubuntu 15.04 中使用 PyCharm 和 Python 2.7 编写代码.同时,我已经安装了 Ubuntu 15.10 和 PyCharm 4.5.4 CE.现在,当我运行代码时,出现此错误:

I started writing my code in Ubuntu 15.04 in PyCharm and Python 2.7. Meanwhile, I have installed Ubuntu 15.10 and PyCharm 4.5.4 CE. Now when I run my code I get this error:

QNativeImage: Unable to attach to shared memory segment. 

(python2.7:8078): Gdk-WARNING **: shmget failed: error 28 (No space left on device)
X Error: BadDrawable (invalid Pixmap or Window parameter) 9
  Major opcode: 62 (X_CopyArea)
  Resource id:  0x0

虽然我每次运行代码时都不会发生这种情况.可能是什么?

Although it doesn't happen every time I run my code. What could it be?

推荐答案

我在使用旧的 Openjdk 包时遇到此错误.sudo apt-get update and upgrade 这个错误消失了.

I got this error with an old Openjdk package. After sudo apt-get update and upgrade this error disappeared.

这篇关于PyCharm 中的 Python 错误消息:无法附加到共享内存段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆