<div dir="ltr"><div><div>Hi Utkarsh,<br><br></div>Thanks for the suggestion. I followed the page you suggested, and made sure to set up my ccmake variables as specified. Unfortunately, there still seems to be some problem in my setup. I'm trying to render the example sphere source. After I run<br><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">import paraview<br>from paraview import *<br>from paraview.simple import *<br>from paraview import servermanager<br><br>servermanager.Connect()<br><br>sphere=servermanager.sources.Sphere()<br>view = servermanager.CreateRenderView()<br>repSphere = servermanager.CreateRepresentation(sphere, view)<br>SetActiveView(GetRenderView())<br><br></blockquote><div><br></div><div>Using the command<br><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">mpirun -np 48 /opt/OpenFOAM/ThirdParty-5.0/paraview_build/bin/pvserver --mpi --force-offscreen-rendering &<br></blockquote><br></div><div>with<br><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">pvbatch test.py --mpi<br></blockquote><div><br></div><div>in the background. I then get <br></div></div><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">[node0:10234] *** Process received signal ***<br>[node0:10234] Signal: Segmentation fault (11)<br>[node0:10234] Signal code: Address not mapped (1)<br>[node0:10234] Failing at address: (nil)<br>[node0:10234] [ 0] /lib64/libpthread.so.0(+0x12420)[0x7f218bfda420]<br>[node0:10234] [ 1] /usr/lib64/openmpi/lib/paraview/libvtkPVServerManagerCore.so.1(_ZN19vtkSMPropertyHelperC1EP10vtkSMProxyPKcb+0x29)[0x7f2190c8f7c9]<br>[node0:10234] [ 2] /usr/lib64/openmpi/lib/paraview/libvtkPVServerManagerCore.so.1(_ZN31vtkSMParaViewPipelineController17RegisterViewProxyEP10vtkSMProxyPKc+0xca)[0x7f2190c7f6da]<br>[node0:10234] [ 3] /usr/lib64/openmpi/lib/paraview/libvtkPVServerManagerRendering.so.1(_ZN44vtkSMParaViewPipelineControllerWithRendering17RegisterViewProxyEP10vtkSMProxyPKc+0x25)[0x7f21846b30d5]<br>[node0:10234] [ 4] /usr/lib64/openmpi/lib/paraview/libvtkPVServerManagerRenderingPython27D.so.1(+0x51d27)[0x7f2149d19d27]<br>[node0:10234] [ 5] /lib64/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x6517)[0x7f218acf8227]<br>[node0:10234] [ 6] /lib64/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x7d8)[0x7f218acfb198]<br>[node0:10234] [ 7] /lib64/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x6483)[0x7f218acf8193]<br>[node0:10234] [ 8] /lib64/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x7d8)[0x7f218acfb198]<br>[node0:10234] [ 9] /lib64/libpython2.7.so.1.0(+0xb7037)[0x7f218ac47037]<br>[node0:10234] [10] /lib64/libpython2.7.so.1.0(PyObject_Call+0x43)[0x7f218ac31343]<br>[node0:10234] [11] /lib64/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x4c6f)[0x7f218acf697f]<br>[node0:10234] [12] /lib64/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x7d8)[0x7f218acfb198]<br>[node0:10234] [13] /lib64/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x6483)[0x7f218acf8193]<br>[node0:10234] [14] /lib64/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x7d8)[0x7f218acfb198]<br>[node0:10234] [15] /lib64/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x6483)[0x7f218acf8193]<br>[node0:10234] [16] /lib64/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x7d8)[0x7f218acfb198]<br>[node0:10234] [17] /lib64/libpython2.7.so.1.0(PyEval_EvalCode+0x19)[0x7f218acfb3a9]<br>[node0:10234] [18] /lib64/libpython2.7.so.1.0(+0x17139f)[0x7f218ad0139f]<br>[node0:10234] [19] /lib64/libpython2.7.so.1.0(PyRun_FileExFlags+0x8a)[0x7f218ad0134a]<br>[node0:10234] [20] /lib64/libpython2.7.so.1.0(PyRun_SimpleFileExFlags+0x19e)[0x7f218ad0123e]<br>[node0:10234] [21] /lib64/libpython2.7.so.1.0(Py_Main+0x689)[0x7f218ad07519]<br>[node0:10234] [22] /usr/lib64/openmpi/lib/paraview/pvbatch(_ZN14ParaViewPython3RunEiiPPc+0x200)[0x565241ad4250]<br>[node0:10234] [23] /lib64/libc.so.6(__libc_start_main+0xea)[0x7f2189f1888a]<br>[node0:10234] [24] /usr/lib64/openmpi/lib/paraview/pvbatch(_start+0x2a)[0x565241ad3e8a]<br>[node0:10234] *** End of error message ***<br>Segmentation fault<br><br></blockquote><div><br></div><div>Do you have any insight on this segfault?<br><br></div><div>Thanks, and have a nice day,<br><br></div><div>Gavin <br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 13, 2018 at 1:45 PM, Utkarsh Ayachit <span dir="ltr"><<a href="mailto:utkarsh.ayachit@kitware.com" target="_blank">utkarsh.ayachit@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Gavin,<br>
<br>
Your ParaView build is not OSMesa enabled. You'll need to build your<br>
own version with OSMesa enabled.<br>
<br>
For ParaView 5.5, this page summarizes how to do that:<br>
<a href="https://www.paraview.org/ParaView3/Doc/Nightly/www/cxx-doc/Offscreen.html" rel="noreferrer" target="_blank">https://www.paraview.org/<wbr>ParaView3/Doc/Nightly/www/cxx-<wbr>doc/Offscreen.html</a><br>
<br>
Utkarsh<br>
<div><div class="h5"><br>
<br>
On Tue, Mar 13, 2018 at 1:25 PM, Gavin Ridley<br>
<<a href="mailto:gavin.keith.ridley@gmail.com">gavin.keith.ridley@gmail.com</a>> wrote:<br>
> Hi all,<br>
><br>
> I'd like to use MPI pvserver to take advantage of some 48 core nodes we have<br>
> on our cluster. There's not much in the way of GPUs, so I've been trying to<br>
> take the route of using OSMesa with --use-offscreen-rendering. The pvserver<br>
> seems to start well, but as soon as a client connects, the thing aborts. In<br>
> particular, if I try to use pvbatch with a basic sphere rendering, the<br>
> pvserver crashes on running the Render(view) part of the script. Pasted<br>
> below is the error.<br>
><br>
> Does anyone have any insight on this?<br>
><br>
>> Waiting for client...<br>
>> Connection URL: cs://node0:11111<br>
>> Accepting connection(s): node0:11111<br>
>> [node0:55287] 47 more processes have sent help message<br>
>> help-mpi-btl-base.txt / btl:no-nics<br>
>> [node0:55287] Set MCA parameter "orte_base_help_aggregate" to 0 to see all<br>
>> help / error messages<br>
>> d^LClient connected.<br>
>> [node0:55292] *** Process received signal ***<br>
>> [node0:55292] Signal: Aborted (6)<br>
>> [node0:55292] Signal code:  (-6)<br>
>> [node0:55292] [ 0] /lib64/libpthread.so.0(+<wbr>0x12420)[0x7fbf80742420]<br>
>> [node0:55292] [ 1] /lib64/libc.so.6(gsignal+0xcb)<wbr>[0x7fbf7e2f69fb]<br>
>> [node0:55292] [ 2] /lib64/libc.so.6(abort+0x1b0)[<wbr>0x7fbf7e2f8800]<br>
>> [node0:55292] [ 3]<br>
>> /opt/OpenFOAM/ThirdParty-5.0/<wbr>ParaView-5.4.0/build/lib/<wbr>libvtkRenderingOpenGL2-pv5.4.<wbr>so.1(_<wbr>ZN22vtkXOpenGLRenderWindow13Cr<wbr>eateAWindowEv+0x4e2)[<wbr>0x7fbf6adf6964]<br>
>> [node0:55292] [ 4]<br>
>> /opt/OpenFOAM/ThirdParty-5.0/<wbr>ParaView-5.4.0/build/lib/<wbr>libvtkRenderingOpenGL2-pv5.4.<wbr>so.1(_<wbr>ZN21vtkOpenGLRenderWindow29Cre<wbr>ateHardwareOffScreenWindowEii+<wbr>0xa2)[0x7fbf6ad5aa1c]<br>
>> [node0:55292] [ 5]<br>
>> /opt/OpenFOAM/ThirdParty-5.0/<wbr>ParaView-5.4.0/build/lib/<wbr>libvtkRenderingOpenGL2-pv5.4.<wbr>so.1(_<wbr>ZN22vtkXOpenGLRenderWindow21Cr<wbr>eateOffScreenWindowEii+0x32)[<wbr>0x7fbf6adf7be6]<br>
>> [node0:55292] [ 6]<br>
>> /opt/OpenFOAM/ThirdParty-5.0/<wbr>ParaView-5.4.0/build/lib/<wbr>libvtkRenderingOpenGL2-pv5.4.<wbr>so.1(_<wbr>ZN22vtkXOpenGLRenderWindow10In<wbr>itializeEv+0xaa)[<wbr>0x7fbf6adf7ffc]<br>
>> [node0:55292] [ 7]<br>
>> /opt/OpenFOAM/ThirdParty-5.0/<wbr>ParaView-5.4.0/build/lib/<wbr>libvtkRenderingOpenGL2-pv5.4.<wbr>so.1(_<wbr>ZN21vtkOpenGLRenderWindow14Sup<wbr>portsOpenGLEv+0x105)[<wbr>0x7fbf6ad5beb7]<br>
>> [node0:55292] [ 8]<br>
>> /opt/OpenFOAM/ThirdParty-5.0/<wbr>ParaView-5.4.0/build/lib/<wbr>libvtkPVClientServerCoreRender<wbr>ing-pv5.4.so.1(_<wbr>ZN23vtkPVDisplayInformation21S<wbr>upportsOpenGLLocallyEv+0xeb)[<wbr>0x7fbf78223b81]<br>
>> [node0:55292] [ 9]<br>
>> /opt/OpenFOAM/ThirdParty-5.0/<wbr>ParaView-5.4.0/build/lib/<wbr>libvtkPVClientServerCoreRender<wbr>ing-pv5.4.so.1(_<wbr>ZN23vtkPVDisplayInformation14C<wbr>opyFromObjectEP9vtkObject+<wbr>0x31)[0x7fbf78223c05]<br>
>> [node0:55292] [10]<br>
>> /opt/OpenFOAM/ThirdParty-5.0/<wbr>ParaView-5.4.0/build/lib/<wbr>libvtkPVServerImplementationCo<wbr>re-pv5.4.so.1(_<wbr>ZN16vtkPVSessionCore25GatherIn<wbr>formationInternalEP16vtkPVInfo<wbr>rmationj+0x38)[0x7fbf85c8a890]<br>
>> [node0:55292] [11]<br>
>> /opt/OpenFOAM/ThirdParty-5.0/<wbr>ParaView-5.4.0/build/lib/<wbr>libvtkPVServerImplementationCo<wbr>re-pv5.4.so.1(_<wbr>ZN16vtkPVSessionCore17GatherIn<wbr>formationEjP16vtkPVInformation<wbr>j+0x8d)[0x7fbf85c8ab45]<br>
>> [node0:55292] [12]<br>
>> /opt/OpenFOAM/ThirdParty-5.0/<wbr>ParaView-5.4.0/build/lib/<wbr>libvtkPVServerImplementationCo<wbr>re-pv5.4.so.1(_<wbr>ZN16vtkPVSessionBase17GatherIn<wbr>formationEjP16vtkPVInformation<wbr>j+0x3e)[0x7fbf85c866fc]<br>
>> [node0:55292] [13]<br>
>> /opt/OpenFOAM/ThirdParty-5.0/<wbr>ParaView-5.4.0/build/lib/<wbr>libvtkPVServerImplementationCo<wbr>re-pv5.4.so.1(_<wbr>ZN18vtkPVSessionServer25Gather<wbr>InformationInternalEjPKcjR21vt<wbr>kMultiProcessStream+0xb7)[<wbr>0x7fbf85c974b9]<br>
>> [node0:55292] [14]<br>
>> /opt/OpenFOAM/ThirdParty-5.0/<wbr>ParaView-5.4.0/build/lib/<wbr>libvtkPVServerImplementationCo<wbr>re-pv5.4.so.1(_<wbr>ZN18vtkPVSessionServer24OnClie<wbr>ntServerMessageRMIEPvi+0x561)[<wbr>0x7fbf85c97225]<br>
>> [node0:55292] [15]<br>
>> /opt/OpenFOAM/ThirdParty-5.0/<wbr>ParaView-5.4.0/build/lib/<wbr>libvtkPVServerImplementationCo<wbr>re-pv5.4.so.1(+0xa537a)[<wbr>0x7fbf85c9537a]<br>
>> [node0:55292] [16]<br>
>> /opt/OpenFOAM/ThirdParty-5.0/<wbr>ParaView-5.4.0/build/lib/<wbr>libvtkParallelCore-pv5.4.so.1(<wbr>_<wbr>ZN25vtkMultiProcessController1<wbr>0ProcessRMIEiPvii+0x356)[<wbr>0x7fbf826a06ea]<br>
>> [node0:55292] [17]<br>
>> /opt/OpenFOAM/ThirdParty-5.0/<wbr>ParaView-5.4.0/build/lib/<wbr>libvtkParallelCore-pv5.4.so.1(<wbr>_<wbr>ZN25vtkMultiProcessController1<wbr>1ProcessRMIsEii+0x6b5)[<wbr>0x7fbf826a02bb]<br>
>> [node0:55292] [18]<br>
>> /opt/OpenFOAM/ThirdParty-5.0/<wbr>ParaView-5.4.0/build/lib/<wbr>libvtkPVClientServerCoreCore-<wbr>pv5.4.so.1(_<wbr>ZN26vtkTCPNetworkAccessManager<wbr>21ProcessEventsInternalEmb+<wbr>0x46d)[0x7fbf85986311]<br>
>> [node0:55292] [19]<br>
>> /opt/OpenFOAM/ThirdParty-5.0/<wbr>ParaView-5.4.0/build/lib/<wbr>libvtkPVClientServerCoreCore-<wbr>pv5.4.so.1(_<wbr>ZN26vtkTCPNetworkAccessManager<wbr>13ProcessEventsEm+0x28)[<wbr>0x7fbf85985ea2]<br>
>> [node0:55292] [20] ./pvserver[0x401acb]<br>
>> [node0:55292] [21] ./pvserver(main+0x25)[<wbr>0x401b7f]<br>
>> [node0:55292] [22]<br>
>> /lib64/libc.so.6(__libc_start_<wbr>main+0xea)[0x7fbf7e2e088a]<br>
>> [node0:55292] [23] ./pvserver(_start+0x2a)[<wbr>0x4017ca]<br>
>> [node0:55292] *** End of error message ***<br>
>><br>
><br>
> --<br>
> Thanks,<br>
> Gavin Ridley<br>
><br>
</div></div>> ______________________________<wbr>_________________<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<br>
> <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
><br>
> Please keep messages on-topic and check the ParaView Wiki at:<br>
> <a href="http://paraview.org/Wiki/ParaView" rel="noreferrer" target="_blank">http://paraview.org/Wiki/<wbr>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=<wbr>ParaView</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="https://public.kitware.com/mailman/listinfo/paraview" rel="noreferrer" target="_blank">https://public.kitware.com/<wbr>mailman/listinfo/paraview</a><br>
><br>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Thanks,<div>Gavin Ridley</div></div></div>
</div>