I'm parallelizing a process by using the multiprocessing module. The function that is parallelized does plotting and using savefig
module saves the plot in pdf format.
However, when the code is run, only one of the iterations results in an image while other images although created are of size 0 bytes.
The following error is thrown and the computer freezes:
Gdk-Message: 14:44:50.467: python2.7: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.
I'm using Ubuntu 18.04.2 LTS on a laptop with 4 cores.
xorg
because I'm running Ubuntu 18.04. Could you provide how I could initialize the X library separately in each subprocess? I'm very new to this jargon, thank you for bearing with me. – Sameeresque Jun 20 '19 at 12:58/usr/lib/xorg/Xorg.wrap: Only console users are allowed to run the X server
– Sameeresque Jun 20 '19 at 13:14