<div dir="ltr">It looks like all threads are attempting to open a display on an xserver but Xlib has not been initialized to use multiple threads.<div><br></div><div>Interestingly, I can execute your code in my development build of pvpython just fine under Ubuntu 14.04.<br><div><br></div><div>May I ask what you are planning to do with the multiprocessing package? Maybe there is another way you can accomplish it without the multiprocessing package?</div></div><div><br></div><div>- Cory</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jul 8, 2015 at 10:05 PM, Sha Mo <span dir="ltr"><<a href="mailto:mosha@ntu.edu.sg" target="_blank">mosha@ntu.edu.sg</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">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:<br>
<br>
import multiprocessing<br>
pool = multiprocessing.Pool(processes=4)<br>
<br>
paraview version 4.3.1<br>
Process PoolWorker-1:<br>
Traceback (most recent call last):<br>
Process PoolWorker-2:<br>
paraview: Fatal IO error 2 (No such file or directory) on X server :0.<br>
File "/usr/lib/python2.7/multiprocessing/process.py", line 249, in _bootstrap<br>
Process PoolWorker-3:<br>
paraview: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.<br>
paraview: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.<br>
Process PoolWorker-4:<br>
paraview: Fatal IO error 2 (No such file or directory) on X server :0.<br>
Process PoolWorker-5:<br>
paraview: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.<br>
Process PoolWorker-6:<br>
paraview: Fatal IO error 2 (No such file or directory) on X server :0.<br>
Process PoolWorker-8:<br>
Process PoolWorker-7:<br>
paraview: Fatal IO error 2 (No such file or directory) on X server :0.<br>
paraview: Fatal IO error 2 (No such file or directory) on X server :0.<br>
[xcb] Unknown sequence number while processing queue<br>
[xcb] Most likely this is a multi-threaded client and XInitThreads has not been called<br>
[xcb] Aborting, sorry about that.<br>
paraview: ../../src/xcb_io.c:274: poll_for_event: Assertion `!xcb_xlib_threads_sequence_lost' failed.<br>
Aborted (core dumped)<br>
<br>
I wonder whether it is wrong way to use parallel programming on pvpython?<br>
[SG50]<br>
________________________________<br>
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.<br>
Towards a sustainable earth: Print only when necessary. Thank you.<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" rel="noreferrer" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=ParaView" rel="noreferrer" target="_blank">http://markmail.org/search/?q=ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/paraview" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/paraview</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Cory Quammen<br>R&D Engineer<br>Kitware, Inc.</div>
</div>