MergeBlock crashes (infinite loop)
ParaView master crashes with the following steps:
- open this file geometry.vtp
-
Group Datasets
, Apply -
MergeBlocks
, Apply
Cannot reproduce with another dataset. The given one is a polydata with Line cells. Not that a lot of points are not in any cell. No data array, no NaN in coordinates.
gdb backtrace
#0 0x00007ffff1dba257 in std::__detail::_Hashtable_base<char const*, std::pair<char const* const, unsigned int>, std::__detail::_Select1st, std::equal_to<char const*>, std::hash<char const*>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Hashtable_traits<false, false, true> >::_M_eq (this=0x555555633540) at /usr/include/c++/10.2.0/bits/hashtable_policy.h:1815
#1 0x00007ffff1db8eaa in std::__detail::_Hashtable_base<char const*, std::pair<char const* const, unsigned int>, std::__detail::_Select1st, std::equal_to<char const*>, std::hash<char const*>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Hashtable_traits<false, false, true> >::_M_equals (this=0x555555633540, __k=@0x7fffff7ff180: 0x7ffff2c9af85 "vtkIncrementalOctreeNode",
__c=140737266691973, __n=0x555558a77a80) at /usr/include/c++/10.2.0/bits/hashtable_policy.h:1804
#2 0x00007ffff1db9e85 in std::_Hashtable<char const*, std::pair<char const* const, unsigned int>, std::allocator<std::pair<char const* const, unsigned int> >, std::__detail::_Select1st, std::equal_to<char const*>, std::hash<char const*>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<false, false, true> >::_M_find_before_node (
this=0x555555633540, __bkt=252, __k=@0x7fffff7ff180: 0x7ffff2c9af85 "vtkIncrementalOctreeNode", __code=140737266691973) at /usr/include/c++/10.2.0/bits/hashtable.h:1580
#3 0x00007ffff1db8bda in std::_Hashtable<char const*, std::pair<char const* const, unsigned int>, std::allocator<std::pair<char const* const, unsigned int> >, std::__detail::_Select1st, std::equal_to<char const*>, std::hash<char const*>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<false, false, true> >::_M_find_node (
this=0x555555633540, __bkt=252, __key=@0x7fffff7ff180: 0x7ffff2c9af85 "vtkIncrementalOctreeNode", __c=140737266691973) at /usr/include/c++/10.2.0/bits/hashtable.h:693
#4 0x00007ffff1db8030 in std::__detail::_Map_base<char const*, std::pair<char const* const, unsigned int>, std::allocator<std::pair<char const* const, unsigned int> >, std::__detail::_Select1st, std::equal_to<char const*>, std::hash<char const*>, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits<false, false, true>, true>::operator[] (this=0x555555633540, __k=@0x7fffff7ff180: 0x7ffff2c9af85 "vtkIncrementalOctreeNode") at /usr/include/c++/10.2.0/bits/hashtable_policy.h:709
#5 0x00007ffff1db7933 in std::unordered_map<char const*, unsigned int, std::hash<char const*>, std::equal_to<char const*>, std::allocator<std::pair<char const* const, unsigned int> > >::operator[] (
this=0x555555633540, __k=@0x7fffff7ff180: 0x7ffff2c9af85 "vtkIncrementalOctreeNode") at /usr/include/c++/10.2.0/bits/unordered_map.h:984
#6 0x00007ffff1db65ad in vtkDebugLeaksHashTable::IncrementCount (this=0x555555633540, name=0x7ffff2c9af85 "vtkIncrementalOctreeNode") at ../VTK/Common/Core/vtkDebugLeaks.cxx:69
#7 0x00007ffff1db6ace in vtkDebugLeaks::ConstructClass (object=0x5555641d4770) at ../VTK/Common/Core/vtkDebugLeaks.cxx:191
#8 0x00007ffff1e4b80a in vtkObjectBase::InitializeObjectBase (this=0x5555641d4770) at ../VTK/Common/Core/vtkObjectBase.cxx:170
#9 0x00007ffff2a2d6d4 in vtkIncrementalOctreeNode::New () at ../VTK/Common/DataModel/vtkIncrementalOctreeNode.cxx:22
#10 0x00007ffff2a2ebe0 in vtkIncrementalOctreeNode::CreateChildNodes (this=0x5555641d3bd0, points=0x55555b44c640, pntIds=0x555557aee1d0, newPnt=0x555559b14b90, pntIdx=0x7fffffffb538, maxPts=128, ptMode=2)
at ../VTK/Common/DataModel/vtkIncrementalOctreeNode.cxx:381
#11 0x00007ffff2a2ef0b in vtkIncrementalOctreeNode::CreateChildNodes (this=0x5555641d2260, points=0x55555b44c640, pntIds=0x555557aee1d0, newPnt=0x555559b14b90, pntIdx=0x7fffffffb538, maxPts=128, ptMode=2)
at ../VTK/Common/DataModel/vtkIncrementalOctreeNode.cxx:419
#12 0x00007ffff2a2ef0b in vtkIncrementalOctreeNode::CreateChildNodes (this=0x5555641d08f0, points=0x55555b44c640, pntIds=0x555557aee1d0, newPnt=0x555559b14b90, pntIdx=0x7fffffffb538, maxPts=128, ptMode=2)
at ../VTK/Common/DataModel/vtkIncrementalOctreeNode.cxx:419
gdb backtrace before the loop in vtkIncrementalOctreeNode::CreateChildNodes
#0 vtkIncrementalOctreeNode::CreateChildNodes (this=0x55555b723200, points=0x55555b1fae90, pntIds=0x55555b7232c0, newPnt=0x555557acbe10, pntIdx=0x7fffffffb538, maxPts=128, ptMode=2)
at ../VTK/Common/DataModel/vtkIncrementalOctreeNode.cxx:419
#1 0x00007ffff2a2f1b3 in vtkIncrementalOctreeNode::InsertPoint (this=0x55555b723200, points=0x55555b1fae90, newPnt=0x555557acbe10, maxPts=128, pntId=0x7fffffffb538, ptMode=2)
at ../VTK/Common/DataModel/vtkIncrementalOctreeNode.cxx:475
#2 0x00007ffff2a35ef1 in vtkIncrementalOctreePointLocator::InsertUniquePoint (this=0x55555b2f95b0, point=0x555557acbe10, pntId=@0x7fffffffb538: -1)
at ../VTK/Common/DataModel/vtkIncrementalOctreePointLocator.cxx:1240
#3 0x00007ffff30791ec in vtkAppendFilter::RequestData (this=0x55555b043670, inputVector=0x55555b6ef030, outputVector=0x55555b7d5b30) at ../VTK/Filters/Core/vtkAppendFilter.cxx:316
#4 0x00007ffff2f1935c in vtkUnstructuredGridAlgorithm::ProcessRequest (this=0x55555b043670, request=0x55555b28a340, inputVector=0x55555b6ef030, outputVector=0x55555b7d5b30)
at ../VTK/Common/ExecutionModel/vtkUnstructuredGridAlgorithm.cxx:80
#5 0x00007ffff2e8643b in vtkExecutive::CallAlgorithm (this=0x55555b1fe340, request=0x55555b28a340, direction=1, inInfo=0x55555b6ef030, outInfo=0x55555b7d5b30) at ../VTK/Common/ExecutionModel/vtkExecutive.cxx:746
#6 0x00007ffff2e7e3a2 in vtkDemandDrivenPipeline::ExecuteData (this=0x55555b1fe340, request=0x55555b28a340, inInfo=0x55555b6ef030, outInfo=0x55555b7d5b30)
at ../VTK/Common/ExecutionModel/vtkDemandDrivenPipeline.cxx:462
#7 0x00007ffff2e72e17 in vtkCompositeDataPipeline::ExecuteData (this=0x55555b1fe340, request=0x55555b28a340, inInfoVec=0x55555b6ef030, outInfoVec=0x55555b7d5b30)
at ../VTK/Common/ExecutionModel/vtkCompositeDataPipeline.cxx:161
#8 0x00007ffff2e7da8a in vtkDemandDrivenPipeline::ProcessRequest (this=0x55555b1fe340, request=0x55555b28a340, inInfoVec=0x55555b6ef030, outInfoVec=0x55555b7d5b30)
at ../VTK/Common/ExecutionModel/vtkDemandDrivenPipeline.cxx:261
#9 0x00007ffff2f0358e in vtkStreamingDemandDrivenPipeline::ProcessRequest (this=0x55555b1fe340, request=0x55555b28a340, inInfoVec=0x55555b6ef030, outInfoVec=0x55555b7d5b30)
at ../VTK/Common/ExecutionModel/vtkStreamingDemandDrivenPipeline.cxx:343
#10 0x00007ffff2e7e1d1 in vtkDemandDrivenPipeline::UpdateData (this=0x55555b1fe340, outputPort=0) at ../VTK/Common/ExecutionModel/vtkDemandDrivenPipeline.cxx:419
#11 0x00007ffff2f0392a in vtkStreamingDemandDrivenPipeline::Update (this=0x55555b1fe340, port=0, requests=0x0) at ../VTK/Common/ExecutionModel/vtkStreamingDemandDrivenPipeline.cxx:417
#12 0x00007ffff2f037b3 in vtkStreamingDemandDrivenPipeline::Update (this=0x55555b1fe340, port=0) at ../VTK/Common/ExecutionModel/vtkStreamingDemandDrivenPipeline.cxx:380
#13 0x00007ffff2e6a252 in vtkAlgorithm::Update (this=0x55555b043670, port=0) at ../VTK/Common/ExecutionModel/vtkAlgorithm.cxx:1421
#14 0x00007ffff2e6a21d in vtkAlgorithm::Update (this=0x55555b043670) at ../VTK/Common/ExecutionModel/vtkAlgorithm.cxx:1415
#15 0x00007ffff3075ab4 in vtkAppendDataSets::RequestData (this=0x55555a6cdf50, inputVector=0x55555b8157b0, outputVector=0x55555b7f9ed0) at ../VTK/Filters/Core/vtkAppendDataSets.cxx:137
#16 0x00007ffff2eac642 in vtkPointSetAlgorithm::ProcessRequest (this=0x55555a6cdf50, request=0x55555b7bdc50, inputVector=0x55555b8157b0, outputVector=0x55555b7f9ed0)
at ../VTK/Common/ExecutionModel/vtkPointSetAlgorithm.cxx:131
Edited by Nicolas Vuaille