undo-ing creation of view doesn't release the view
Apply the following patch and build ParaView
diff --git a/ParaViewCore/ClientServerCore/Rendering/vtkPVRenderView.cxx b/ParaViewCore/ClientServerCore/Rendering/vtkPVRenderView.cxx
index 2a3404cc7a..892ad54606 100644
--- a/ParaViewCore/ClientServerCore/Rendering/vtkPVRenderView.cxx
+++ b/ParaViewCore/ClientServerCore/Rendering/vtkPVRenderView.cxx
@@ -327,6 +327,8 @@ vtkPVRenderView::vtkPVRenderView()
, StereoType(VTK_STEREO_RED_BLUE)
, ServerStereoType(VTK_STEREOTYPE_SAME_AS_CLIENT)
{
+ vtkLogF(INFO, "create %s", vtkLogIdentifier(this));
+
this->Internals = new vtkInternals();
this->Internals->FieldAssociation = VTK_SCALAR_MODE_USE_POINT_FIELD_DATA;
this->Internals->FieldNameSet = false;
@@ -562,6 +564,7 @@ vtkPVRenderView::~vtkPVRenderView()
delete this->Internals;
this->Internals = NULL;
+ vtkLogF(INFO, "delete %s", vtkLogIdentifier(this));
}
- start paraview, close active view.
- create render view. You'll see
( 5.384s) [paraview ] vtkPVRenderView.cxx:330 INFO| create vtkPVRenderView (0x5633e3d07c90)
- hit undo. nothing is outputted though the view has been removed.
- close paraview, you'll see the log entry for delete.
this is a bug! Something is holding on to the view even after undo.
Edited by Utkarsh Ayachit