Catalyst2 with GhostCellsGenerator : crash
When I use the pipeline below on the Examples/Catalyst2/CxxFullExample example with more than 1 process, a crash happens with the following output. Am I doing something wrong? Is this supposed to work?
Error message (click to expand)
executing (cycle=0, time=0.0)
-----------------------------------
executing (cycle=0, time=0.0)
bounds: (0.0, 35.0, 0.0, 64.9, 0.0, 55.9)
velocity-magnitude-range: (0.0, 0.0)
pressure-range: (1.0, 1.0)
bounds: (35.0, 69.0, 0.0, 64.9, 0.0, 55.9)
velocity-magnitude-range: (0.0, 0.0)
pressure-range: (1.0, 1.0)
( 3.361s) [pvbatch.0 ] vtkDIYUtilities.cxx:394 ERR| Error while receiving array: wrong flag.
( 3.361s) [pvbatch.0 ] vtkDIYUtilities.cxx:394 ERR| Error while receiving array: wrong flag.
( 3.361s) [pvbatch.0 ] vtkAbstractArray.cxx:482 WARN| Unsupported data type: 16438! Setting to VTK_DOUBLE
( 3.362s) [pvbatch.1 ] vtkDIYUtilities.cxx:394 ERR| Error while receiving array: wrong flag.
( 3.362s) [pvbatch.1 ] vtkDIYUtilities.cxx:394 ERR| Error while receiving array: wrong flag.
( 3.362s) [pvbatch.1 ] vtkAbstractArray.cxx:482 WARN| Unsupported data type: 16438! Setting to VTK_DOUBLE
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
Loguru caught a signal: SIGABRT
Loguru caught a signal: SIGABRT
Stack trace (click to expand)
88 0x40354e /tmp/build-paraview/Examples/Catalyst2/CxxFullExample/bin/CxxFullExampleV2() [0x40354e]
87 0x15555215b493 __libc_start_main + 243
86 0x408ab0 /tmp/build-paraview/Examples/Catalyst2/CxxFullExample/bin/CxxFullExampleV2() [0x408ab0]
85 0x4080b0 /tmp/build-paraview/Examples/Catalyst2/CxxFullExample/bin/CxxFullExampleV2() [0x4080b0]
84 0x155554e036da catalyst_execute + 85
83 0x15547e8ff426 /tmp/build-paraview/lib64/catalyst/libcatalyst-paraview.so(+0x10426) [0x15547e8ff426]
82 0x15547dd31f21 vtkInSituInitializationHelper::ExecutePipelines(int, double, std::vector<std::string> const&) + 705
81 0x15547dd2e0e7 vtkInSituPipelinePython::Execute(int, double) + 73
80 0x15547584290c vtkCPPythonScriptV2Helper::CatalystExecute(int, double, std::vector<std::string> const&) + 1356
79 0x155479f183ba PyObject_CallMethodObjArgs + 250
78 0x155479ec9cce _PyObject_FastCallDict + 1806
77 0x155479ec8ef2 _PyFunction_FastCallDict + 290
76 0x155479f6bb68 _PyEval_EvalFrameDefault + 1176
75 0x155479f6af27 /lib64/libpython3.6m.so.1.0(+0x19cf27) [0x155479f6af27]
74 0x155479f479e8 /lib64/libpython3.6m.so.1.0(+0x1799e8) [0x155479f479e8]
73 0x155479f6bb68 _PyEval_EvalFrameDefault + 1176
72 0x155479f6af27 /lib64/libpython3.6m.so.1.0(+0x19cf27) [0x155479f6af27]
71 0x155479f47bd0 /lib64/libpython3.6m.so.1.0(+0x179bd0) [0x155479f47bd0]
70 0x155479ec7a14 /lib64/libpython3.6m.so.1.0(+0xf9a14) [0x155479ec7a14]
69 0x155479f6bb68 _PyEval_EvalFrameDefault + 1176
68 0x155479f6ac87 /lib64/libpython3.6m.so.1.0(+0x19cc87) [0x155479f6ac87]
67 0x15545a2d42d7 /tmp/build-paraview/lib64/python3.6/site-packages/paraview/modules/vtkRemotingServerManager.so(+0x1b82d7) [0x15545a2d42d7]
66 0x15545a2d4104 /tmp/build-paraview/lib64/python3.6/site-packages/paraview/modules/vtkRemotingServerManager.so(+0x1b8104) [0x15545a2d4104]
65 0x15547d7301c9 vtkSMWriterProxy::UpdatePipeline() + 329
64 0x15547d631790 vtkSMProxy::ExecuteStream(vtkClientServerStream const&, bool, unsigned int) + 218
63 0x15547d4512d6 vtkPVSessionBase::ExecuteStream(unsigned int, vtkClientServerStream const&, bool) + 118
62 0x15547d4546b6 vtkPVSessionCore::ExecuteStream(unsigned int, vtkClientServerStream const&, bool) + 702
61 0x15547d458f69 vtkPVSessionCore::ExecuteStreamInternal(vtkClientServerStream const&, bool) + 299
60 0x15547bc5f227 vtkClientServerInterpreter::ProcessStream(vtkClientServerStream const&) + 87
59 0x15547bc5f3ea vtkClientServerInterpreter::ProcessOneMessage(vtkClientServerStream const&, int) + 426
58 0x15547bc63e16 vtkClientServerInterpreter::ProcessCommandInvoke(vtkClientServerStream const&, int) + 876
57 0x15547bc616dd vtkClientServerInterpreter::CallCommandFunction(char const*, vtkObjectBase*, char const*, vtkClientServerStream const&, vtkClientServerStream&) + 1363
56 0x155473c12d09 vtkFileSeriesWriterCommand(vtkClientServerInterpreter*, vtkObjectBase*, char const*, vtkClientServerStream const&, vtkClientServerStream&, void*) + 4482
55 0x15546da744f0 vtkFileSeriesWriter::Write() + 842
54 0x15547a6aa146 vtkAlgorithm::Update() + 84
53 0x15547a6aa0ed vtkAlgorithm::Update(int) + 75
52 0x15547a7da25f vtkStreamingDemandDrivenPipeline::Update(int) + 63
51 0x15547a7da59a vtkStreamingDemandDrivenPipeline::Update(int, vtkInformationVector*) + 482
50 0x15547a6cd0de vtkDemandDrivenPipeline::UpdateData(int) + 1422
49 0x15547a7d9fac vtkStreamingDemandDrivenPipeline::ProcessRequest(vtkInformation*, vtkInformationVector**, vtkInformationVector*) + 4890
48 0x15547a6cb637 vtkDemandDrivenPipeline::ProcessRequest(vtkInformation*, vtkInformationVector**, vtkInformationVector*) + 2095
47 0x15547a6bbe12 vtkCompositeDataPipeline::ForwardUpstream(vtkInformation*) + 1432
46 0x15547a7d9fac vtkStreamingDemandDrivenPipeline::ProcessRequest(vtkInformation*, vtkInformationVector**, vtkInformationVector*) + 4890
45 0x15547a6cb637 vtkDemandDrivenPipeline::ProcessRequest(vtkInformation*, vtkInformationVector**, vtkInformationVector*) + 2095
44 0x15547a6bbe12 vtkCompositeDataPipeline::ForwardUpstream(vtkInformation*) + 1432
43 0x15547a7d9fac vtkStreamingDemandDrivenPipeline::ProcessRequest(vtkInformation*, vtkInformationVector**, vtkInformationVector*) + 4890
42 0x15547a6cb637 vtkDemandDrivenPipeline::ProcessRequest(vtkInformation*, vtkInformationVector**, vtkInformationVector*) + 2095
41 0x15547a6bbe12 vtkCompositeDataPipeline::ForwardUpstream(vtkInformation*) + 1432
40 0x15547a7d9fac vtkStreamingDemandDrivenPipeline::ProcessRequest(vtkInformation*, vtkInformationVector**, vtkInformationVector*) + 4890
39 0x15547a6cb81f vtkDemandDrivenPipeline::ProcessRequest(vtkInformation*, vtkInformationVector**, vtkInformationVector*) + 2583
38 0x15547a6be4de vtkCompositeDataPipeline::ExecuteData(vtkInformation*, vtkInformationVector**, vtkInformationVector*) + 2704
37 0x15547a6cd5a7 vtkDemandDrivenPipeline::ExecuteData(vtkInformation*, vtkInformationVector**, vtkInformationVector*) + 157
36 0x15547a6d7e7f vtkExecutive::CallAlgorithm(vtkInformation*, int, vtkInformationVector**, vtkInformationVector*) + 231
35 0x15547a70e47b vtkPassInputTypeAlgorithm::ProcessRequest(vtkInformation*, vtkInformationVector**, vtkInformationVector*) + 141
34 0x1554669c7e49 vtkGhostCellsGenerator::RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*) + 6597
33 0x1554630b47d4 vtkDIYGhostUtilities::GenerateGhostCellsUnstructuredGrid(std::vector<vtkUnstructuredGrid*>&, std::vector<vtkUnstructuredGrid*>&, int, vtkMultiProcessController*) + 58
32 0x15546314a9c1 int vtkDIYGhostUtilities::GenerateGhostCells<vtkUnstructuredGrid>(std::vector<vtkUnstructuredGrid*>&, std::vector<vtkUnstructuredGrid*>&, int, vtkMultiProcessController*) + 3945
31 0x15546314d8e5 void vtkDIYGhostUtilities::ExchangeGhosts<vtkUnstructuredGrid>(vtkdiy2::Master&, std::vector<vtkUnstructuredGrid*>&) + 269
30 0x15546318d117 /tmp/build-paraview/lib64/catalyst/../libvtkParallelDIY-pv5.10.so.1(+0x23c117) [0x15546318d117]
29 0x15546318c3dc /tmp/build-paraview/lib64/catalyst/../libvtkParallelDIY-pv5.10.so.1(+0x23b3dc) [0x15546318c3dc]
28 0x155463087f91 /tmp/build-paraview/lib64/catalyst/../libvtkParallelDIY-pv5.10.so.1(+0x136f91) [0x155463087f91]
27 0x15546308c494 /tmp/build-paraview/lib64/catalyst/../libvtkParallelDIY-pv5.10.so.1(+0x13b494) [0x15546308c494]
26 0x15546318e07a /tmp/build-paraview/lib64/catalyst/../libvtkParallelDIY-pv5.10.so.1(+0x23d07a) [0x15546318e07a]
25 0x15546317e96a std::function<void (vtkDIYGhostUtilities::Block<vtkDIYGhostUtilities::UnstructuredGridBlockStructure, vtkDIYGhostUtilities::UnstructuredGridInformation>*, vtkdiy2::Master::ProxyWithLink const&)>::operator()(vtkDIYGhostUtilities::Block<vtkDIYGhostUtilities::UnstructuredGridBlockStructure, vtkDIYGhostUtilities::UnstructuredGridInformation>*, vtkdiy2::Master::ProxyWithLink const&) const + 118
24 0x1554631856b3 std::_Function_handler<void (vtkDIYGhostUtilities::Block<vtkDIYGhostUtilities::UnstructuredGridBlockStructure, vtkDIYGhostUtilities::UnstructuredGridInformation>*, vtkdiy2::Master::ProxyWithLink const&), vtkDIYGhostUtilities::ExchangeGhosts<vtkUnstructuredGrid>(vtkdiy2::Master&, std::vector<vtkUnstructuredGrid*>&)::{lambda(vtkDIYGhostUtilities::Block<vtkDIYGhostUtilities::UnstructuredGridBlockStructure, vtkDIYGhostUtilities::UnstructuredGridInformation>*, vtkdiy2::Master::ProxyWithLink const&)#2}>::_M_invoke(std::_Any_data const&, vtkDIYGhostUtilities::Block<vtkDIYGhostUtilities::UnstructuredGridBlockStructure, vtkDIYGhostUtilities::UnstructuredGridInformation>*&&, vtkdiy2::Master::ProxyWithLink const&) + 67
23 0x1554630bd7c7 /tmp/build-paraview/lib64/catalyst/../libvtkParallelDIY-pv5.10.so.1(+0x16c7c7) [0x1554630bd7c7]
22 0x1554630b619b vtkDIYGhostUtilities::DequeueGhosts(vtkdiy2::Master::ProxyWithLink const&, int, vtkDIYGhostUtilities::UnstructuredGridBlockStructure&) + 143
21 0x155463130883 /tmp/build-paraview/lib64/catalyst/../libvtkParallelDIY-pv5.10.so.1(+0x1df883) [0x155463130883]
20 0x15546318d486 /tmp/build-paraview/lib64/catalyst/../libvtkParallelDIY-pv5.10.so.1(+0x23c486) [0x15546318d486]
19 0x1554631b45b7 /tmp/build-paraview/lib64/catalyst/../libvtkParallelDIY-pv5.10.so.1(+0x2635b7) [0x1554631b45b7]
18 0x15546318e2d7 /tmp/build-paraview/lib64/catalyst/../libvtkParallelDIY-pv5.10.so.1(+0x23d2d7) [0x15546318e2d7]
17 0x1554631bc9ed vtkDIYUtilities::Load(vtkdiy2::BinaryBuffer&, vtkDataArray*&) + 137
16 0x1554631bf7b5 /tmp/build-paraview/lib64/catalyst/../libvtkParallelDIY-pv5.10.so.1(+0x26e7b5) [0x1554631bf7b5]
15 0x1554631bf82d /tmp/build-paraview/lib64/catalyst/../libvtkParallelDIY-pv5.10.so.1(+0x26e82d) [0x1554631bf82d]
14 0x1554631bf93e /tmp/build-paraview/lib64/catalyst/../libvtkParallelDIY-pv5.10.so.1(+0x26e93e) [0x1554631bf93e]
13 0x1554631bfa18 /tmp/build-paraview/lib64/catalyst/../libvtkParallelDIY-pv5.10.so.1(+0x26ea18) [0x1554631bfa18]
12 0x1554631be6a0 /tmp/build-paraview/lib64/catalyst/../libvtkParallelDIY-pv5.10.so.1(+0x26d6a0) [0x1554631be6a0]
11 0x1554631c6a67 /tmp/build-paraview/lib64/catalyst/../libvtkParallelDIY-pv5.10.so.1(+0x275a67) [0x1554631c6a67]
10 0x1554631c51c6 /tmp/build-paraview/lib64/catalyst/../libvtkParallelDIY-pv5.10.so.1(+0x2741c6) [0x1554631c51c6]
9 0x1554630abee3 /tmp/build-paraview/lib64/catalyst/../libvtkParallelDIY-pv5.10.so.1(+0x15aee3) [0x1554630abee3]
8 0x15546308df6e /tmp/build-paraview/lib64/catalyst/../libvtkParallelDIY-pv5.10.so.1(+0x13cf6e) [0x15546308df6e]
7 0x15546fbd8245 /tmp/build-paraview/lib64/catalyst/../libvtkFiltersExtraction-pv5.10.so.1(+0x21c245) [0x15546fbd8245]
6 0x15546fbfb62f /tmp/build-paraview/lib64/catalyst/../libvtkFiltersExtraction-pv5.10.so.1(+0x23f62f) [0x15546fbfb62f]
5 0x15546fbfc67a /tmp/build-paraview/lib64/catalyst/../libvtkFiltersExtraction-pv5.10.so.1(+0x24067a) [0x15546fbfc67a]
4 0x15546fbfc6c4 /tmp/build-paraview/lib64/catalyst/../libvtkFiltersExtraction-pv5.10.so.1(+0x2406c4) [0x15546fbfc6c4]
3 0x15546fbfc720 /tmp/build-paraview/lib64/catalyst/../libvtkFiltersExtraction-pv5.10.so.1(+0x240720) [0x15546fbfc720]
2 0x15546fbfc77e /tmp/build-paraview/lib64/catalyst/../libvtkFiltersExtraction-pv5.10.so.1(+0x24077e) [0x15546fbfc77e]
1 0x155554ef9f5d char* std::__copy_move<false, true, std::random_access_iterator_tag>::__copy_m<char>(char const*, char const*, char*) + 85
0 0x155553042c20 /lib64/libpthread.so.0(+0x12c20) [0x155553042c20]
( 1.735s) [pvbatch.0 ] :0 FATL| Signal: SIGSEGV
Pipeline:
from paraview.simple import *
# Greeting to ensure that ctest knows this script is being imported
print("executing catalyst_pipeline")
# registrationName must match the channel name used in the
# 'CatalystAdaptor'.
grid = TrivialProducer(registrationName="grid")
def catalyst_execute(info):
global grid
grid.UpdatePipeline()
print("-----------------------------------")
print("executing (cycle={}, time={})".format(info.cycle, info.time))
print("bounds:", grid.GetDataInformation().GetBounds())
print("velocity-magnitude-range:", grid.PointData["velocity"].GetRange(-1))
print("pressure-range:", grid.CellData["pressure"].GetRange(0))
gid = GenerateGlobalIds(Input=grid)
ghc = GhostCellsGenerator(Input=gid)
filename = "grid_ghost_{0:03d}.vtpd".format(info.cycle)
w = servermanager.writers.XMLPPartitionedDataSetWriter(Input=ghc, FileName=filename)
w.UpdatePipeline()
Edited by Menno Deij - van Rijswijk