Geometry cache using uninitialized memory?
I'm seeing this from valgrind
when debugging what is happening in cmb!734 (merged).
==26766== Conditional jump or move depends on uninitialised value(s)
==26766== at 0x2BC74D72: smtk::geometry::Cache<smtk::extension::vtk::source::Geometry, smtk::session::polygon::vtk::Geometry>::geometry(std::shared_ptr<smtk::resource::PersistentObject> const&) const (Cache.h:188)
==26766== by 0x29B5EF50: smtk::extension::vtk::source::Backend::geometry(std::shared_ptr<smtk::resource::PersistentObject> const&) (Backend.cxx:49)
==26766== by 0x29CE6F31: vtkResourceMultiBlockSource::RequestDataFromGeometry(vtkInformation*, vtkInformationVector*, smtk::extension::vtk::source::Geometry const&)::{lambda(std::shared_ptr<smtk::resource::PersistentObject> const&, unsigned long)#1}::operator()(std::shared_ptr<smtk::resource::PersistentObject> const&, unsigned long) const (vtkResourceMultiBlockSource.cxx:254)
==26766== by 0x29CE9417: std::_Function_handler<bool (std::shared_ptr<smtk::resource::PersistentObject> const&, unsigned long), vtkResourceMultiBlockSource::RequestDataFromGeometry(vtkInformation*, vtkInformationVector*, smtk::extension::vtk::source::Geometry const&)::{lambda(std::shared_ptr<smtk::resource::PersistentObject> const&, unsigned long)#1}>::_M_invoke(std::_Any_data const&, std::shared_ptr<smtk::resource::PersistentObject> const&, unsigned long&&) (std_function.h:285)
==26766== by 0x2BC76315: std::function<bool (std::shared_ptr<smtk::resource::PersistentObject> const&, unsigned long)>::operator()(std::shared_ptr<smtk::resource::PersistentObject> const&, unsigned long) const (std_function.h:690)
==26766== by 0x2BC73C7D: smtk::geometry::Cache<smtk::extension::vtk::source::Geometry, smtk::session::polygon::vtk::Geometry>::visit(std::function<bool (std::shared_ptr<smtk::resource::PersistentObject> const&, unsigned long)>) const (Cache.h:238)
==26766== by 0x29CE7F07: vtkResourceMultiBlockSource::RequestDataFromGeometry(vtkInformation*, vtkInformationVector*, smtk::extension::vtk::source::Geometry const&) (vtkResourceMultiBlockSource.cxx:248)
==26766== by 0x29CA97C5: vtkModelMultiBlockSource::RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*) (vtkModelMultiBlockSource.cxx:985)
==26766== by 0x96940C8: vtkMultiBlockDataSetAlgorithm::ProcessRequest(vtkInformation*, vtkInformationVector**, vtkInformationVector*) (vtkMultiBlockDataSetAlgorithm.cxx:85)
==26766== by 0x967871D: vtkExecutive::CallAlgorithm(vtkInformation*, int, vtkInformationVector**, vtkInformationVector*) (vtkExecutive.cxx:746)
==26766== by 0x9670CB5: vtkDemandDrivenPipeline::ExecuteData(vtkInformation*, vtkInformationVector**, vtkInformationVector*) (vtkDemandDrivenPipeline.cxx:462)
==26766== by 0x9665FFD: vtkCompositeDataPipeline::ExecuteData(vtkInformation*, vtkInformationVector**, vtkInformationVector*) (vtkCompositeDataPipeline.cxx:161)
==26766==
Cc: @tjcorona