AppendAtributes fails and segfault with two Multiblock that do not have the same structure
AppendAttributes rely on CopyData hence it fails on two Multiblock that do not have the same structure. But then ParaView segfaults.
How to reproduce :
- Open ParaView
- Create a Cone, Apply
- Create a Sphere, Apply
- Group the Cone and Sphere together, Apply,
- Create a Wavelet, Apply
- Group the wavelet by itself, Apply,
- AppendAtrributes the two group filters together
ParaView segfaults with the following :
ERROR: In /home/glow/work/paraview/paraviewThird/paraview/VTK/Common/DataModel/vtkDataObjectTree.cxx, line 377
vtkMultiBlockDataSet (0x55555df75c70): Structure does not match. You must use CopyStructure before calling this method.
Thread 1 "paraview" received signal SIGSEGV, Segmentation fault.
0x00007ffff15b45a8 in vtkMergeArrays::MergeDataObjectFields (this=0x55555df60250, input=0x55555af36500, idx=1, output=0x0)
at /home/glow/work/paraview/paraviewThird/paraview/ParaViewCore/VTKExtensions/Default/vtkMergeArrays.cxx:96
96 checks[attr] = output->GetNumberOfElements(attr) == input->GetNumberOfElements(attr) ? 0 : 1;
(gdb) bt
#0 0x00007ffff15b45a8 in vtkMergeArrays::MergeDataObjectFields (this=0x55555df60250, input=0x55555af36500, idx=1, output=0x0)
at /home/glow/work/paraview/paraviewThird/paraview/ParaViewCore/VTKExtensions/Default/vtkMergeArrays.cxx:96
#1 0x00007ffff15b4b0b in vtkMergeArrays::RequestData (this=0x55555df60250, inputVector=0x55555d9f83c0, outputVector=
0x55555df727d0)
at /home/glow/work/paraview/paraviewThird/paraview/ParaViewCore/VTKExtensions/Default/vtkMergeArrays.cxx:179
#2 0x00007fffe1d60234 in vtkPassInputTypeAlgorithm::ProcessRequest (this=0x55555df60250, request=0x55555bd867f0,
inputVector=0x55555d9f83c0, outputVector=0x55555df727d0)
at /home/glow/work/paraview/paraviewThird/paraview/VTK/Common/ExecutionModel/vtkPassInputTypeAlgorithm.cxx:163
#3 0x00007fffe1d42d8d in vtkExecutive::CallAlgorithm (this=0x55555df72ae0, request=0x55555bd867f0, direction=1,
inInfo=0x55555d9f83c0, outInfo=0x55555df727d0)
at /home/glow/work/paraview/paraviewThird/paraview/VTK/Common/ExecutionModel/vtkExecutive.cxx:773
#4 0x00007fffe1d3aaab in vtkDemandDrivenPipeline::ExecuteData (this=0x55555df72ae0, request=0x55555bd867f0,
inInfo=0x55555d9f83c0, outInfo=0x55555df727d0)
at /home/glow/work/paraview/paraviewThird/paraview/VTK/Common/ExecutionModel/vtkDemandDrivenPipeline.cxx:491
#5 0x00007fffe1d30333 in vtkCompositeDataPipeline::ExecuteData (this=0x55555df72ae0, request=0x55555bd867f0,
inInfoVec=0x55555d9f83c0, outInfoVec=0x55555df727d0)
at /home/glow/work/paraview/paraviewThird/paraview/VTK/Common/ExecutionModel/vtkCompositeDataPipeline.cxx:171