In order to use multi-core cpu well, I want to use multiprocessing module in paraview python script. But following error was occurred when I try to run following code on Paraview Python Shell:
import multiprocessing pool = multiprocessing.Pool(processes=4) paraview version 4.3.1 Process PoolWorker-1: Traceback (most recent call last): Process PoolWorker-2: paraview: Fatal IO error 2 (No such file or directory) on X server :0. File "/usr/lib/python2.7/multiprocessing/process.py", line 249, in _bootstrap Process PoolWorker-3: paraview: Fatal IO error 11 (Resource temporarily unavailable) on X server :0. paraview: Fatal IO error 11 (Resource temporarily unavailable) on X server :0. Process PoolWorker-4: paraview: Fatal IO error 2 (No such file or directory) on X server :0. Process PoolWorker-5: paraview: Fatal IO error 11 (Resource temporarily unavailable) on X server :0. Process PoolWorker-6: paraview: Fatal IO error 2 (No such file or directory) on X server :0. Process PoolWorker-8: Process PoolWorker-7: paraview: Fatal IO error 2 (No such file or directory) on X server :0. paraview: Fatal IO error 2 (No such file or directory) 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. Aborted (core dumped) I wonder whether it is wrong way to use parallel programming on pvpython? [SG50] ________________________________ CONFIDENTIALITY: This email is intended solely for the person(s) named and may be confidential and/or privileged. If you are not the intended recipient, please delete it, notify us and do not copy, use, or disclose its contents. Towards a sustainable earth: Print only when necessary. Thank you. _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Search the list archives at: http://markmail.org/search/?q=ParaView Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/paraview
