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.