In the meantime, you can fix it by replacing the body of vtkSMUtilities::SaveImageOnProcessZero with:<br><br> return SaveImage(image, filename, writerName);<br><br>Pat<br><br><div class="gmail_quote">On Thu, Aug 19, 2010 at 5:22 PM, pat marion <span dir="ltr"><<a href="mailto:pat.marion@kitware.com">pat.marion@kitware.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">I think it may have been buggy ever since the mpi broadcast was added,
but a month and a half ago Utkarsh added a debugging call to Barrier to
expose to help expose these issues. I'll fix.<br><font color="#888888"><br>Pat</font><div><div></div><div class="h5"><br><br><div class="gmail_quote">On Thu, Aug 19, 2010 at 5:12 PM, pat marion <span dir="ltr"><<a href="mailto:pat.marion@kitware.com" target="_blank">pat.marion@kitware.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">I can repeat this. Believe it or not, WriteImage does an mpi broadcast. In the 3.8 release and some time afterward it worked fine, but it doesn't seem to work now.<br>
<font color="#888888"><br>Pat</font><div><div></div><div><br><br><div class="gmail_quote">On Thu, Aug 19, 2010 at 5:09 PM, Eric E. Monson <span dir="ltr"><<a href="mailto:emonson@cs.duke.edu" target="_blank">emonson@cs.duke.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hey Jean,<br>
<br>
I am getting the same behavior on my Mac OS X 10.6 compiled with OpenMPI (but no OSMesa). I can run scripts like yours from the ParaView Python shell when connected to a four-process pvserver just fine, and it works from the same build of pvbatch run in serial (without mpirun), but when I try to run pvbatch with<br>
<br>
mpirun -np 4 ./pvbatch <a href="http://coloredSphere.0.py" target="_blank">coloredSphere.0.py</a><br>
<br>
it hangs after writing the first image and giving me this output:<br>
<br>
vtkSphereSource : [ ...........]<br>
vtkSphereSource(3) : [ ...........]<br>
vtkSphereSource(1) : [ ...........]<br>
vtkSphereSource(2) : [ ...........]<br>
vtkPVGeometryFilter : [ ...........]<br>
vtkPVGeometryFilter(1) : [ ...........]<br>
vtkPainterPolyDataMapper : [ ...........]<br>
vtkPainterPolyDataMapper : [ ...........]<br>
Process id: 2 >> ERROR: In /Users/emonson/Programming/ParaView_git/ParaView/VTK/Parallel/vtkParallelRenderManager.cxx, line 1869<br>
vtkIceTRenderManager (0x10b104a90): Failed to read window information<br>
<br>
Process id: 3 >> ERROR: In /Users/emonson/Programming/ParaView_git/ParaView/VTK/Parallel/vtkParallelRenderManager.cxx, line 1869<br>
vtkIceTRenderManager (0x10be0ec40): Failed to read window information<br>
<br>
Process id: 1 >> ERROR: In /Users/emonson/Programming/ParaView_git/ParaView/VTK/Parallel/vtkParallelRenderManager.cxx, line 1869<br>
vtkIceTRenderManager (0x10b604a10): Failed to read window information<br>
<br>
<br>
Even a simple example like this hangs in the same way:<br>
<br>
from paraview.simple import *<br>
<br>
view = CreateRenderView()<br>
<br>
sphere = Sphere()<br>
Show()<br>
Render()<br>
<br>
WriteImage("sphere.0.png")<br>
WriteImage("sphere.1.png")<br>
<br>
Sorry I don't have any solution, but hopefully this will help someone who knows more figure it out. :)<br>
-Eric<br>
<br>
------------------------------------------------------<br>
Eric E Monson<br>
Duke Visualization Technology Group<br>
<div><div></div><div><br>
<br>
On Aug 19, 2010, at 3:49 PM, Favre Jean wrote:<br>
<br>
><br>
> i am having difficulty with pvbatch - compiled with Mesa 7.6 - running in parallel and hanging after the first WriteImage in my python scripts.<br>
><br>
> I have tested several compilations on different clusters, several MPI (mvapich and openmpi) and still cannot make this work. It writes the first image and then deadlocks or dies somewhere.<br>
><br>
> I have no error messages to give me a clue. The pvserver from the same compilation works fine when connected to a client.<br>
><br>
> This would be a test line:<br>
><br>
> mpirun -np 12 --use-offscreen-rendering -display :0.0 pvbatch <a href="http://coloredSphere.0.py" target="_blank">coloredSphere.0.py</a><br>
><br>
> are there problems with my syntax, or something I overlooked in this simple example?<br>
><br>
> thanks for any tip.<br>
><br>
> -----------------<br>
> Jean M. Favre<br>
> Swiss National Supercomputing Center<br>
><br>
</div></div>> <<a href="http://coloredSphere.0.py" target="_blank">coloredSphere.0.py</a>>_______________________________________________<br>
> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" 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" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" 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" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
</blockquote></div><br>
</div></div></blockquote></div><br>
</div></div></blockquote></div><br>