Paraview crashes when trying to open an OpenFOAM mesh file

Hi all,

I am using OpenFOAM only to create a mesh (using blockmesh and snappyhexmesh), to simulate the flow around a vehicle in other software (code_saturne) using FVM. It is a mesh of around 40 million cells. I would like to be able to visualize the mesh using ParaFOAM (or Paraview), prior to using code_saturne.

The problem is that when I run ParaFOAM (or Paraview, and loading the *.foam file), during the loading process the case closes, either from my own PC or from a server with a lot of RAM (in case that was the cause). I did the latter since I have NO problems seeing a mesh of about 10 million cells.

I show four different messages: when using ParaFOAM/Paraview in my PC and in a remote server

Using Paraview in my PC:

Gtk-Message: 15:40:31.656: Failed to load module “canberra-gtk-module”
AutoMPI: SUCCESS: command is:
“/usr/bin/mpiexec” “-np” “4” “/usr/lib/paraview/pvserver” “–server-port=37021”
AutoMPI: starting process server
-------------- server output --------------
Waiting for client…
AutoMPI: server successfully started.
ERROR: In /build/paraview-lH8wFv/paraview-5.4.1+dfsg3/VTK/Common/System/vtkSocket.cxx, line 572
vtkClientSocket (0x55b55ee3dac0): Socket error in call to send. Tubería rota.

ERROR: In /build/paraview-lH8wFv/paraview-5.4.1+dfsg3/VTK/Common/System/vtkSocket.cxx, line 572
vtkClientSocket (0x55b55ee3dac0): Socket error in call to send. Tubería rota.

ERROR: In /build/paraview-lH8wFv/paraview-5.4.1+dfsg3/VTK/Common/System/vtkSocket.cxx, line 572
vtkClientSocket (0x55b55ee3dac0): Socket error in call to send. Tubería rota.

ERROR: In /build/paraview-lH8wFv/paraview-5.4.1+dfsg3/ParaViewCore/ServerManager/Core/vtkSMSessionClient.cxx, line 786
vtkSMSessionClient (0x55b55e3cac70): Server failed to gather information.

ERROR: In /build/paraview-lH8wFv/paraview-5.4.1+dfsg3/VTK/Common/System/vtkSocket.cxx, line 572
vtkClientSocket (0x55b55ee3dac0): Socket error in call to send. Tubería rota.

ERROR: In /build/paraview-lH8wFv/paraview-5.4.1+dfsg3/VTK/Common/System/vtkSocket.cxx, line 572
vtkClientSocket (0x55b55ee3dac0): Socket error in call to send. Tubería rota.

ERROR: In /build/paraview-lH8wFv/paraview-5.4.1+dfsg3/VTK/Common/System/vtkSocket.cxx, line 572
vtkClientSocket (0x55b55ee3dac0): Socket error in call to send. Tubería rota.

ERROR: In /build/paraview-lH8wFv/paraview-5.4.1+dfsg3/VTK/Common/System/vtkSocket.cxx, line 572
vtkClientSocket (0x55b55ee3dac0): Socket error in call to send. Tubería rota.

ERROR: In /build/paraview-lH8wFv/paraview-5.4.1+dfsg3/VTK/Common/System/vtkSocket.cxx, line 572
vtkClientSocket (0x55b55ee3dac0): Socket error in call to send. Tubería rota.

paraview: /build/paraview-lH8wFv/paraview-5.4.1+dfsg3/VTK/Parallel/Core/vtkMultiProcessStream.cxx:777: vtkMultiProcessStream& vtkMultiProcessStream::operator>>(std::__cxx11::string&): La declaración this->Internals->Data.front() == vtkInternals::string_value' no se cumple. Abortado (core’ generado)

Using ParaFOAM in my PC:

Segmentation fault (core dumped)

Using Paraview from a remote server:

[cluster62:110445] *** Process received signal ***
[cluster62:110445] Signal: Violaci�n de segmento (11)
[cluster62:110445] Signal code: Address not mapped (1)
[cluster62:110445] Failing at address: 0x7115000
[cluster62:110445] [ 0] /lib64/libpthread.so.0[0x3d8ac0f7e0]
[cluster62:110445] [ 1] /lib64/libc.so.6(memcpy+0x292)[0x3d8a0899b2]
[cluster62:110445] [ 2] /share/apps/paraview/5.6.0/lib/libvtkIOGeometry-pv5.6.so.1(+0x149788)[0x7fb5e11a0788]
[cluster62:110445] [ 3] /share/apps/paraview/5.6.0/lib/libvtkIOGeometry-pv5.6.so.1(+0x14b091)[0x7fb5e11a2091]
[cluster62:110445] [ 4] /share/apps/paraview/5.6.0/lib/libvtkIOGeometry-pv5.6.so.1(+0x12a004)[0x7fb5e1181004]
[cluster62:110445] [ 5] /share/apps/paraview/5.6.0/lib/libvtkIOGeometry-pv5.6.so.1(+0x13d146)[0x7fb5e1194146]
[cluster62:110445] [ 6] /share/apps/paraview/5.6.0/lib/libvtkIOGeometry-pv5.6.so.1(ZN17vtkOpenFOAMReader11RequestDataEP14vtkInformationPP20vtkInformationVectorS3+0x5cf)[0x7fb5e1196c4d]
[cluster62:110445] [ 7] /share/apps/paraview/5.6.0/lib/libvtkIOParallel-pv5.6.so.1(ZN18vtkPOpenFOAMReader11RequestDataEP14vtkInformationPP20vtkInformationVectorS3+0x55)[0x7fb5e1aa6ec3]
[cluster62:110445] [ 8] /share/apps/paraview/5.6.0/lib/libvtkCommonExecutionModel-pv5.6.so.1(ZN29vtkMultiBlockDataSetAlgorithm14ProcessRequestEP14vtkInformationPP20vtkInformationVectorS3+0xa1)[0x7fb5d8ddfe61]
[cluster62:110445] [ 9] /share/apps/paraview/5.6.0/lib/libvtkCommonExecutionModel-pv5.6.so.1(ZN12vtkExecutive13CallAlgorithmEP14vtkInformationiPP20vtkInformationVectorS3+0x83)[0x7fb5d8dc6ee9]
[cluster62:110445] [10] /share/apps/paraview/5.6.0/lib/libvtkCommonExecutionModel-pv5.6.so.1(ZN23vtkDemandDrivenPipeline11ExecuteDataEP14vtkInformationPP20vtkInformationVectorS3+0x67)[0x7fb5d8dbf0b9]
[cluster62:110445] [11] /share/apps/paraview/5.6.0/lib/libvtkCommonExecutionModel-pv5.6.so.1(ZN24vtkCompositeDataPipeline11ExecuteDataEP14vtkInformationPP20vtkInformationVectorS3+0x492)[0x7fb5d8db5258]
[cluster62:110445] [12] /share/apps/paraview/5.6.0/lib/libvtkCommonExecutionModel-pv5.6.so.1(ZN23vtkDemandDrivenPipeline14ProcessRequestEP14vtkInformationPP20vtkInformationVectorS3+0x46b)[0x7fb5d8dbe7e7]
[cluster62:110445] [13] /share/apps/paraview/5.6.0/lib/libvtkCommonExecutionModel-pv5.6.so.1(ZN32vtkStreamingDemandDrivenPipeline14ProcessRequestEP14vtkInformationPP20vtkInformationVectorS3+0x932)[0x7fb5d8e0133c]
[cluster62:110445] [14] /share/apps/paraview/5.6.0/lib/libvtkCommonExecutionModel-pv5.6.so.1(_ZN24vtkCompositeDataPipeline15ForwardUpstreamEP14vtkInformation+0x2d8)[0x7fb5d8db792e]
[cluster62:110445] [15] /share/apps/paraview/5.6.0/lib/libvtkCommonExecutionModel-pv5.6.so.1(ZN23vtkDemandDrivenPipeline14ProcessRequestEP14vtkInformationPP20vtkInformationVectorS3+0x3da)[0x7fb5d8dbe756]
[cluster62:110445] [16] /share/apps/paraview/5.6.0/lib/libvtkCommonExecutionModel-pv5.6.so.1(ZN32vtkStreamingDemandDrivenPipeline14ProcessRequestEP14vtkInformationPP20vtkInformationVectorS3+0x932)[0x7fb5d8e0133c]
[cluster62:110445] [17] /share/apps/paraview/5.6.0/lib/libvtkCommonExecutionModel-pv5.6.so.1(_ZN23vtkDemandDrivenPipeline10UpdateDataEi+0x315)[0x7fb5d8dbef15]
[cluster62:110445] [18] /share/apps/paraview/5.6.0/lib/libvtkCommonExecutionModel-pv5.6.so.1(_ZN32vtkStreamingDemandDrivenPipeline6UpdateEiP20vtkInformationVector+0x172)[0x7fb5d8e0164a]
[cluster62:110445] [19] /share/apps/paraview/5.6.0/lib/libvtkCommonExecutionModel-pv5.6.so.1(_ZN32vtkStreamingDemandDrivenPipeline6UpdateEi+0x30)[0x7fb5d8e014d6]
[cluster62:110445] [20] /share/apps/paraview/5.6.0/lib/libvtkPVServerImplementationCore-pv5.6.so.1(_ZN16vtkSISourceProxy14UpdatePipelineEidb+0x1b8)[0x7fb5e8ad8b94]
[cluster62:110445] [21] /share/apps/paraview/5.6.0/lib/libvtkPVServerManagerApplication-pv5.6.so.1(_Z23vtkSISourceProxyCommandP26vtkClientServerInterpreterP13vtkObjectBasePKcRK21vtkClientServerStreamRS5_Pv+0x712)[0x7fb5ec096082]
[cluster62:110445] [22] /share/apps/paraview/5.6.0/lib/libvtkClientServer-pv5.6.so.1(ZN26vtkClientServerInterpreter19CallCommandFunctionEPKcP13vtkObjectBaseS1_RK21vtkClientServerStreamRS4+0x315)[0x7fb5e6b5986f]
[cluster62:110445] [23] /share/apps/paraview/5.6.0/lib/libvtkClientServer-pv5.6.so.1(_ZN26vtkClientServerInterpreter20ProcessCommandInvokeERK21vtkClientServerStreami+0x1c5)[0x7fb5e6b58043]
[cluster62:110445] [24] /share/apps/paraview/5.6.0/lib/libvtkClientServer-pv5.6.so.1(_ZN26vtkClientServerInterpreter17ProcessOneMessageERK21vtkClientServerStreami+0x135)[0x7fb5e6b5764d]
[cluster62:110445] [25] /share/apps/paraview/5.6.0/lib/libvtkClientServer-pv5.6.so.1(_ZN26vtkClientServerInterpreter13ProcessStreamERK21vtkClientServerStream+0x2f)[0x7fb5e6b574e7]
[cluster62:110445] [26] /share/apps/paraview/5.6.0/lib/libvtkPVServerImplementationCore-pv5.6.so.1(_ZN16vtkPVSessionCore21ExecuteStreamInternalERK21vtkClientServerStreamb+0xde)[0x7fb5e8a8b2d4]
[cluster62:110445] [27] /share/apps/paraview/5.6.0/lib/libvtkPVServerImplementationCore-pv5.6.so.1(_ZN16vtkPVSessionCore13ExecuteStreamEjRK21vtkClientServerStreamb+0x1f5)[0x7fb5e8a8b0d3]
[cluster62:110445] [28] /share/apps/paraview/5.6.0/lib/libvtkPVServerImplementationCore-pv5.6.so.1(_ZN16vtkPVSessionBase13ExecuteStreamEjRK21vtkClientServerStreamb+0x5a)[0x7fb5e8a87700]
[cluster62:110445] [29] /share/apps/paraview/5.6.0/lib/libvtkPVServerManagerCore-pv5.6.so.1(_ZN10vtkSMProxy13ExecuteStreamERK21vtkClientServerStreambj+0xaa)[0x7fb5e8f5bad6]
[cluster62:110445] *** End of error message ***
Violaci�n de segmento

Using ParaFOAM from a remote server:

[cluster62:115389] *** Process received signal ***
[cluster62:115389] Signal: Segmentation fault (11)
[cluster62:115389] Signal code: Address not mapped (1)
[cluster62:115389] Failing at address: 0x6ed6000
[cluster62:115389] [ 0] /lib64/libpthread.so.0[0x3d8ac0f7e0]
[cluster62:115389] [ 1] /lib64/libc.so.6(memcpy+0x2e3)[0x3d8a089a03]
[cluster62:115389] [ 2] /share/apps/paraview/5.6.0/lib/libvtkIOGeometry-pv5.6.so.1(+0x149788)[0x7fcf8a9d7788]
[cluster62:115389] [ 3] /share/apps/paraview/5.6.0/lib/libvtkIOGeometry-pv5.6.so.1(+0x14b091)[0x7fcf8a9d9091]
[cluster62:115389] [ 4] /share/apps/paraview/5.6.0/lib/libvtkIOGeometry-pv5.6.so.1(+0x12a004)[0x7fcf8a9b8004]
[cluster62:115389] [ 5] /share/apps/paraview/5.6.0/lib/libvtkIOGeometry-pv5.6.so.1(+0x13d146)[0x7fcf8a9cb146]
[cluster62:115389] [ 6] /share/apps/paraview/5.6.0/lib/libvtkIOGeometry-pv5.6.so.1(ZN17vtkOpenFOAMReader11RequestDataEP14vtkInformationPP20vtkInformationVectorS3+0x5cf)[0x7fcf8a9cdc4d]
[cluster62:115389] [ 7] /share/apps/paraview/5.6.0/lib/libvtkIOParallel-pv5.6.so.1(ZN18vtkPOpenFOAMReader11RequestDataEP14vtkInformationPP20vtkInformationVectorS3+0x55)[0x7fcf8b2ddec3]
[cluster62:115389] [ 8] /share/apps/paraview/5.6.0/lib/libvtkCommonExecutionModel-pv5.6.so.1(ZN29vtkMultiBlockDataSetAlgorithm14ProcessRequestEP14vtkInformationPP20vtkInformationVectorS3+0xa1)[0x7fcf82615e61]
[cluster62:115389] [ 9] /share/apps/paraview/5.6.0/lib/libvtkCommonExecutionModel-pv5.6.so.1(ZN12vtkExecutive13CallAlgorithmEP14vtkInformationiPP20vtkInformationVectorS3+0x83)[0x7fcf825fcee9]
[cluster62:115389] [10] /share/apps/paraview/5.6.0/lib/libvtkCommonExecutionModel-pv5.6.so.1(ZN23vtkDemandDrivenPipeline11ExecuteDataEP14vtkInformationPP20vtkInformationVectorS3+0x67)[0x7fcf825f50b9]
[cluster62:115389] [11] /share/apps/paraview/5.6.0/lib/libvtkCommonExecutionModel-pv5.6.so.1(ZN24vtkCompositeDataPipeline11ExecuteDataEP14vtkInformationPP20vtkInformationVectorS3+0x492)[0x7fcf825eb258]
[cluster62:115389] [12] /share/apps/paraview/5.6.0/lib/libvtkCommonExecutionModel-pv5.6.so.1(ZN23vtkDemandDrivenPipeline14ProcessRequestEP14vtkInformationPP20vtkInformationVectorS3+0x46b)[0x7fcf825f47e7]
[cluster62:115389] [13] /share/apps/paraview/5.6.0/lib/libvtkCommonExecutionModel-pv5.6.so.1(ZN32vtkStreamingDemandDrivenPipeline14ProcessRequestEP14vtkInformationPP20vtkInformationVectorS3+0x932)[0x7fcf8263733c]
[cluster62:115389] [14] /share/apps/paraview/5.6.0/lib/libvtkCommonExecutionModel-pv5.6.so.1(_ZN24vtkCompositeDataPipeline15ForwardUpstreamEP14vtkInformation+0x2d8)[0x7fcf825ed92e]
[cluster62:115389] [15] /share/apps/paraview/5.6.0/lib/libvtkCommonExecutionModel-pv5.6.so.1(ZN23vtkDemandDrivenPipeline14ProcessRequestEP14vtkInformationPP20vtkInformationVectorS3+0x3da)[0x7fcf825f4756]
[cluster62:115389] [16] /share/apps/paraview/5.6.0/lib/libvtkCommonExecutionModel-pv5.6.so.1(ZN32vtkStreamingDemandDrivenPipeline14ProcessRequestEP14vtkInformationPP20vtkInformationVectorS3+0x932)[0x7fcf8263733c]
[cluster62:115389] [17] /share/apps/paraview/5.6.0/lib/libvtkCommonExecutionModel-pv5.6.so.1(_ZN23vtkDemandDrivenPipeline10UpdateDataEi+0x315)[0x7fcf825f4f15]
[cluster62:115389] [18] /share/apps/paraview/5.6.0/lib/libvtkCommonExecutionModel-pv5.6.so.1(_ZN32vtkStreamingDemandDrivenPipeline6UpdateEiP20vtkInformationVector+0x172)[0x7fcf8263764a]
[cluster62:115389] [19] /share/apps/paraview/5.6.0/lib/libvtkCommonExecutionModel-pv5.6.so.1(_ZN32vtkStreamingDemandDrivenPipeline6UpdateEi+0x30)[0x7fcf826374d6]
[cluster62:115389] [20] /share/apps/paraview/5.6.0/lib/libvtkPVServerImplementationCore-pv5.6.so.1(_ZN16vtkSISourceProxy14UpdatePipelineEidb+0x1b8)[0x7fcf9230eb94]
[cluster62:115389] [21] /share/apps/paraview/5.6.0/lib/libvtkPVServerManagerApplication-pv5.6.so.1(_Z23vtkSISourceProxyCommandP26vtkClientServerInterpreterP13vtkObjectBasePKcRK21vtkClientServerStreamRS5_Pv+0x712)[0x7fcf958cd082]
[cluster62:115389] [22] /share/apps/paraview/5.6.0/lib/libvtkClientServer-pv5.6.so.1(ZN26vtkClientServerInterpreter19CallCommandFunctionEPKcP13vtkObjectBaseS1_RK21vtkClientServerStreamRS4+0x315)[0x7fcf9038f86f]
[cluster62:115389] [23] /share/apps/paraview/5.6.0/lib/libvtkClientServer-pv5.6.so.1(_ZN26vtkClientServerInterpreter20ProcessCommandInvokeERK21vtkClientServerStreami+0x1c5)[0x7fcf9038e043]
[cluster62:115389] [24] /share/apps/paraview/5.6.0/lib/libvtkClientServer-pv5.6.so.1(_ZN26vtkClientServerInterpreter17ProcessOneMessageERK21vtkClientServerStreami+0x135)[0x7fcf9038d64d]
[cluster62:115389] [25] /share/apps/paraview/5.6.0/lib/libvtkClientServer-pv5.6.so.1(_ZN26vtkClientServerInterpreter13ProcessStreamERK21vtkClientServerStream+0x2f)[0x7fcf9038d4e7]
[cluster62:115389] [26] /share/apps/paraview/5.6.0/lib/libvtkPVServerImplementationCore-pv5.6.so.1(_ZN16vtkPVSessionCore21ExecuteStreamInternalERK21vtkClientServerStreamb+0xde)[0x7fcf922c12d4]
[cluster62:115389] [27] /share/apps/paraview/5.6.0/lib/libvtkPVServerImplementationCore-pv5.6.so.1(_ZN16vtkPVSessionCore13ExecuteStreamEjRK21vtkClientServerStreamb+0x1f5)[0x7fcf922c10d3]
[cluster62:115389] [28] /share/apps/paraview/5.6.0/lib/libvtkPVServerImplementationCore-pv5.6.so.1(_ZN16vtkPVSessionBase13ExecuteStreamEjRK21vtkClientServerStreamb+0x5a)[0x7fcf922bd700]
[cluster62:115389] [29] /share/apps/paraview/5.6.0/lib/libvtkPVServerManagerCore-pv5.6.so.1(_ZN10vtkSMProxy13ExecuteStreamERK21vtkClientServerStreambj+0xaa)[0x7fcf92792ad6]
[cluster62:115389] *** End of error message ***
/share/apps/OpenFOAM/OpenFOAM-8/bin/paraFoam: line 63: 115389 Segmentation fault LD_LIBRARY_PATH=$LD_LIBRARY_PATH:ParaView_LIB_DIR/mesa paraview "@"

Versions of software:
OpenFOAM: v7 (.org) (for mesh creation; for ParaFOAM I tried to use versions 2.0 to 9.0)
Paraview: 5.4.1 (local computer) and 5.6.0 (remote server)

Any ideas on what could be the problem?

Hi @finzeo

Please share your data.

Paraview: 5.4.1 (local computer) and 5.6.0 (remote server)

You need to use the same version between client and server, also please update, your version are very old. 5.11 is coming out today.

Hi @mwestphal, thanks for your answer.

When you said data, you mean the OpenFOAM case folder? Here it is:

Data

About Paraview versions: I think there was a confusion in using the word “server”. In both cases, both on the remote computer and on mine, I use paraview client, sorry if I was confused on that point. There is no connection between the two paraviews. I just tried to open the mesh with one PC and then with another, remotely.
On the other hand, the fact that it’s not a very recent version may imply something, but considering, as I explained previously, that I can open the other mesh with 10 million cells without problems, I don’t think the problem is related to that.
Thank you again.

I also add the commands I use to create the mesh (I do it on the remote computer):

blockMesh
surfaceFeatures
decomposePar -copyZero
mpirun snappyHexMesh -parallel -overwrite -dict …/system/snappyHexMeshDict > logpart1.snappyHexMesh
mpirun snappyHexMesh -parallel -overwrite -dict …/system/snappyHexMeshLayersDict > logpart2.snappyHexMesh
reconstructParMesh -mergeTol 1e-6 -constant > log.reconstructPar1
reconstructPar -constant > log.reconstructPar2
renumberMesh -latestTime > renumberMesh.log
checkMesh > checkMesh.log

Please share the resulting folder with the generated mesh.

Thanks.

Hi @mwestphal, here it is (this is about 4 GBs, that’s why I didn’t upload it at first):

Data

Thank you again!