[Paraview] Aborted (6) when using pvserver, help setting up?

Gavin Ridley gavin.keith.ridley at gmail.com
Thu Mar 15 01:53:57 EDT 2018


Hi Utkarsh,

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

import paraview
> from paraview import *
> from paraview.simple import *
> from paraview import servermanager
>
> servermanager.Connect()
>
> sphere=servermanager.sources.Sphere()
> view = servermanager.CreateRenderView()
> repSphere = servermanager.CreateRepresentation(sphere, view)
> SetActiveView(GetRenderView())
>
>
Using the command

mpirun -np 48 /opt/OpenFOAM/ThirdParty-5.0/paraview_build/bin/pvserver
> --mpi --force-offscreen-rendering &
>

with

pvbatch test.py --mpi
>

in the background. I then get

[node0:10234] *** Process received signal ***
> [node0:10234] Signal: Segmentation fault (11)
> [node0:10234] Signal code: Address not mapped (1)
> [node0:10234] Failing at address: (nil)
> [node0:10234] [ 0] /lib64/libpthread.so.0(+0x12420)[0x7f218bfda420]
> [node0:10234] [ 1]
> /usr/lib64/openmpi/lib/paraview/libvtkPVServerManagerCore.so.1(_ZN19vtkSMPropertyHelperC1EP10vtkSMProxyPKcb+0x29)[0x7f2190c8f7c9]
> [node0:10234] [ 2]
> /usr/lib64/openmpi/lib/paraview/libvtkPVServerManagerCore.so.1(_ZN31vtkSMParaViewPipelineController17RegisterViewProxyEP10vtkSMProxyPKc+0xca)[0x7f2190c7f6da]
> [node0:10234] [ 3]
> /usr/lib64/openmpi/lib/paraview/libvtkPVServerManagerRendering.so.1(_ZN44vtkSMParaViewPipelineControllerWithRendering17RegisterViewProxyEP10vtkSMProxyPKc+0x25)[0x7f21846b30d5]
> [node0:10234] [ 4]
> /usr/lib64/openmpi/lib/paraview/libvtkPVServerManagerRenderingPython27D.so.1(+0x51d27)[0x7f2149d19d27]
> [node0:10234] [ 5]
> /lib64/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x6517)[0x7f218acf8227]
> [node0:10234] [ 6]
> /lib64/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x7d8)[0x7f218acfb198]
> [node0:10234] [ 7]
> /lib64/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x6483)[0x7f218acf8193]
> [node0:10234] [ 8]
> /lib64/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x7d8)[0x7f218acfb198]
> [node0:10234] [ 9] /lib64/libpython2.7.so.1.0(+0xb7037)[0x7f218ac47037]
> [node0:10234] [10]
> /lib64/libpython2.7.so.1.0(PyObject_Call+0x43)[0x7f218ac31343]
> [node0:10234] [11]
> /lib64/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x4c6f)[0x7f218acf697f]
> [node0:10234] [12]
> /lib64/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x7d8)[0x7f218acfb198]
> [node0:10234] [13]
> /lib64/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x6483)[0x7f218acf8193]
> [node0:10234] [14]
> /lib64/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x7d8)[0x7f218acfb198]
> [node0:10234] [15]
> /lib64/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x6483)[0x7f218acf8193]
> [node0:10234] [16]
> /lib64/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x7d8)[0x7f218acfb198]
> [node0:10234] [17]
> /lib64/libpython2.7.so.1.0(PyEval_EvalCode+0x19)[0x7f218acfb3a9]
> [node0:10234] [18] /lib64/libpython2.7.so.1.0(+0x17139f)[0x7f218ad0139f]
> [node0:10234] [19]
> /lib64/libpython2.7.so.1.0(PyRun_FileExFlags+0x8a)[0x7f218ad0134a]
> [node0:10234] [20]
> /lib64/libpython2.7.so.1.0(PyRun_SimpleFileExFlags+0x19e)[0x7f218ad0123e]
> [node0:10234] [21]
> /lib64/libpython2.7.so.1.0(Py_Main+0x689)[0x7f218ad07519]
> [node0:10234] [22]
> /usr/lib64/openmpi/lib/paraview/pvbatch(_ZN14ParaViewPython3RunEiiPPc+0x200)[0x565241ad4250]
> [node0:10234] [23] /lib64/libc.so.6(__libc_start_main+0xea)[0x7f2189f1888a]
> [node0:10234] [24]
> /usr/lib64/openmpi/lib/paraview/pvbatch(_start+0x2a)[0x565241ad3e8a]
> [node0:10234] *** End of error message ***
> Segmentation fault
>
>
Do you have any insight on this segfault?

Thanks, and have a nice day,

Gavin

On Tue, Mar 13, 2018 at 1:45 PM, Utkarsh Ayachit <
utkarsh.ayachit at kitware.com> wrote:

> Gavin,
>
> Your ParaView build is not OSMesa enabled. You'll need to build your
> own version with OSMesa enabled.
>
> For ParaView 5.5, this page summarizes how to do that:
> https://www.paraview.org/ParaView3/Doc/Nightly/www/cxx-doc/Offscreen.html
>
> Utkarsh
>
>
> On Tue, Mar 13, 2018 at 1:25 PM, Gavin Ridley
> <gavin.keith.ridley at gmail.com> wrote:
> > Hi all,
> >
> > I'd like to use MPI pvserver to take advantage of some 48 core nodes we
> have
> > on our cluster. There's not much in the way of GPUs, so I've been trying
> to
> > take the route of using OSMesa with --use-offscreen-rendering. The
> pvserver
> > seems to start well, but as soon as a client connects, the thing aborts.
> In
> > particular, if I try to use pvbatch with a basic sphere rendering, the
> > pvserver crashes on running the Render(view) part of the script. Pasted
> > below is the error.
> >
> > Does anyone have any insight on this?
> >
> >> Waiting for client...
> >> Connection URL: cs://node0:11111
> >> Accepting connection(s): node0:11111
> >> [node0:55287] 47 more processes have sent help message
> >> help-mpi-btl-base.txt / btl:no-nics
> >> [node0:55287] Set MCA parameter "orte_base_help_aggregate" to 0 to see
> all
> >> help / error messages
> >> d^LClient connected.
> >> [node0:55292] *** Process received signal ***
> >> [node0:55292] Signal: Aborted (6)
> >> [node0:55292] Signal code:  (-6)
> >> [node0:55292] [ 0] /lib64/libpthread.so.0(+0x12420)[0x7fbf80742420]
> >> [node0:55292] [ 1] /lib64/libc.so.6(gsignal+0xcb)[0x7fbf7e2f69fb]
> >> [node0:55292] [ 2] /lib64/libc.so.6(abort+0x1b0)[0x7fbf7e2f8800]
> >> [node0:55292] [ 3]
> >> /opt/OpenFOAM/ThirdParty-5.0/ParaView-5.4.0/build/lib/
> libvtkRenderingOpenGL2-pv5.4.so.1(_ZN22vtkXOpenGLRenderWindow13Cr
> eateAWindowEv+0x4e2)[0x7fbf6adf6964]
> >> [node0:55292] [ 4]
> >> /opt/OpenFOAM/ThirdParty-5.0/ParaView-5.4.0/build/lib/
> libvtkRenderingOpenGL2-pv5.4.so.1(_ZN21vtkOpenGLRenderWindow29Cre
> ateHardwareOffScreenWindowEii+0xa2)[0x7fbf6ad5aa1c]
> >> [node0:55292] [ 5]
> >> /opt/OpenFOAM/ThirdParty-5.0/ParaView-5.4.0/build/lib/
> libvtkRenderingOpenGL2-pv5.4.so.1(_ZN22vtkXOpenGLRenderWindow21Cr
> eateOffScreenWindowEii+0x32)[0x7fbf6adf7be6]
> >> [node0:55292] [ 6]
> >> /opt/OpenFOAM/ThirdParty-5.0/ParaView-5.4.0/build/lib/
> libvtkRenderingOpenGL2-pv5.4.so.1(_ZN22vtkXOpenGLRenderWindow10In
> itializeEv+0xaa)[0x7fbf6adf7ffc]
> >> [node0:55292] [ 7]
> >> /opt/OpenFOAM/ThirdParty-5.0/ParaView-5.4.0/build/lib/
> libvtkRenderingOpenGL2-pv5.4.so.1(_ZN21vtkOpenGLRenderWindow14Sup
> portsOpenGLEv+0x105)[0x7fbf6ad5beb7]
> >> [node0:55292] [ 8]
> >> /opt/OpenFOAM/ThirdParty-5.0/ParaView-5.4.0/build/lib/
> libvtkPVClientServerCoreRendering-pv5.4.so.1(_
> ZN23vtkPVDisplayInformation21SupportsOpenGLLocallyEv+0xeb)[0x7fbf78223b81]
> >> [node0:55292] [ 9]
> >> /opt/OpenFOAM/ThirdParty-5.0/ParaView-5.4.0/build/lib/
> libvtkPVClientServerCoreRendering-pv5.4.so.1(_
> ZN23vtkPVDisplayInformation14CopyFromObjectEP9vtkObject+
> 0x31)[0x7fbf78223c05]
> >> [node0:55292] [10]
> >> /opt/OpenFOAM/ThirdParty-5.0/ParaView-5.4.0/build/lib/
> libvtkPVServerImplementationCore-pv5.4.so.1(_
> ZN16vtkPVSessionCore25GatherInformationInternalEP16vtkPVInfo
> rmationj+0x38)[0x7fbf85c8a890]
> >> [node0:55292] [11]
> >> /opt/OpenFOAM/ThirdParty-5.0/ParaView-5.4.0/build/lib/
> libvtkPVServerImplementationCore-pv5.4.so.1(_
> ZN16vtkPVSessionCore17GatherInformationEjP16vtkPVInformation
> j+0x8d)[0x7fbf85c8ab45]
> >> [node0:55292] [12]
> >> /opt/OpenFOAM/ThirdParty-5.0/ParaView-5.4.0/build/lib/
> libvtkPVServerImplementationCore-pv5.4.so.1(_
> ZN16vtkPVSessionBase17GatherInformationEjP16vtkPVInformation
> j+0x3e)[0x7fbf85c866fc]
> >> [node0:55292] [13]
> >> /opt/OpenFOAM/ThirdParty-5.0/ParaView-5.4.0/build/lib/
> libvtkPVServerImplementationCore-pv5.4.so.1(_
> ZN18vtkPVSessionServer25GatherInformationInternalEjPKcjR21vt
> kMultiProcessStream+0xb7)[0x7fbf85c974b9]
> >> [node0:55292] [14]
> >> /opt/OpenFOAM/ThirdParty-5.0/ParaView-5.4.0/build/lib/
> libvtkPVServerImplementationCore-pv5.4.so.1(_
> ZN18vtkPVSessionServer24OnClientServerMessageRMIEPvi+0x561)[
> 0x7fbf85c97225]
> >> [node0:55292] [15]
> >> /opt/OpenFOAM/ThirdParty-5.0/ParaView-5.4.0/build/lib/
> libvtkPVServerImplementationCore-pv5.4.so.1(+0xa537a)[0x7fbf85c9537a]
> >> [node0:55292] [16]
> >> /opt/OpenFOAM/ThirdParty-5.0/ParaView-5.4.0/build/lib/
> libvtkParallelCore-pv5.4.so.1(_ZN25vtkMultiProcessController1
> 0ProcessRMIEiPvii+0x356)[0x7fbf826a06ea]
> >> [node0:55292] [17]
> >> /opt/OpenFOAM/ThirdParty-5.0/ParaView-5.4.0/build/lib/
> libvtkParallelCore-pv5.4.so.1(_ZN25vtkMultiProcessController1
> 1ProcessRMIsEii+0x6b5)[0x7fbf826a02bb]
> >> [node0:55292] [18]
> >> /opt/OpenFOAM/ThirdParty-5.0/ParaView-5.4.0/build/lib/
> libvtkPVClientServerCoreCore-pv5.4.so.1(_ZN26vtkTCPNetworkAccessManager
> 21ProcessEventsInternalEmb+0x46d)[0x7fbf85986311]
> >> [node0:55292] [19]
> >> /opt/OpenFOAM/ThirdParty-5.0/ParaView-5.4.0/build/lib/
> libvtkPVClientServerCoreCore-pv5.4.so.1(_ZN26vtkTCPNetworkAccessManager
> 13ProcessEventsEm+0x28)[0x7fbf85985ea2]
> >> [node0:55292] [20] ./pvserver[0x401acb]
> >> [node0:55292] [21] ./pvserver(main+0x25)[0x401b7f]
> >> [node0:55292] [22]
> >> /lib64/libc.so.6(__libc_start_main+0xea)[0x7fbf7e2e088a]
> >> [node0:55292] [23] ./pvserver(_start+0x2a)[0x4017ca]
> >> [node0:55292] *** End of error message ***
> >>
> >
> > --
> > Thanks,
> > Gavin Ridley
> >
> > _______________________________________________
> > 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:
> > https://public.kitware.com/mailman/listinfo/paraview
> >
>



-- 
Thanks,
Gavin Ridley
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://public.kitware.com/pipermail/paraview/attachments/20180315/0eb3954b/attachment.html>


More information about the ParaView mailing list