Paraview Python Shell canot create an instance of multiprocessing.Pool
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
In order to use multi-core cpu, i try to create a multiprocessing.Pool instance for multi-processing programming. And the pvpython will crash immediately when creating multiprocessing.Pool instance as followed:
import multiprocessing pool = multiprocessing.Pool(process=4)
Process PoolWorker-1: Process PoolWorker-2: Traceback (most recent call last): paraview: Fatal IO error 2 (No such file or directory) on X server :0. Process PoolWorker-3: paraview: Fatal IO error 11 (Resource temporarily unavailable) on X server :0. Process PoolWorker-4: paraview: Fatal IO error 11 (Resource temporarily unavailable) on X server :0. [xcb] Unknown sequence number while processing queue [xcb] Most likely this is a multi-threaded client and XInitThreads has not been called [xcb] Aborting, sorry about that. paraview: ../../src/xcb_io.c:274: poll_for_event: Assertion `!xcb_xlib_threads_sequence_lost' failed. paraview: Fatal IO error 2 (No such file or directory) on X server :0. Aborted (core dumped)