Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python error message in PyCharm: Unable to attach to shared memory segment

Tags:

python

ubuntu

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?

like image 923
Hrvoje T Avatar asked Sep 08 '26 23:09

Hrvoje T


1 Answers

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

like image 190
Orsox Avatar answered Sep 10 '26 12:09

Orsox



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!