<font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2"> <span>Hi,<br><br>I am running into an issue with a source that I set to invisible in the code. The following code starts with a source and a filter, then swaps the source against an new source and changes the visibility of the new source to invisible. When I manually change the visibility in the pipeline browser, ParaView breaks. Similarly, when I delete the filter, ParaView breaks. I am currently developing against ParaView 3.98.1.<br><br>I start with a pipeline which looks like: <br><br>src1 --> filter<br><br>Then I create a second source <i>src2</i> and run:<br>-----------------------------------------------------------<br><i>pqPipelineFilter* filter = qobject_cast<pqPipelineFilter*>(src1->getConsumer(0));<br><br>vtkSMPropertyHelper(filter->getProxy(), "Input").Set(src2->getProxy());</i><br><br>// Set src2 invisible<br><i>pqRepresentation* representation = qobject_cast<pqRepresentation*>(src2->getRepresentation(pqActiveObjects::instance().activeView()));<br><br>representation->setVisible(false);</i><br><br>// Update the pipeline<br><i>filter->updateHelperProxies();<br>filter->updatePipeline();<br><br>vtkSMProxy* proxy = filter->getProxy();<br>proxy->UpdateVTKObjects();<br>proxy->UpdatePropertyInformation();</i><br><br>// Render the active view to make the changes visible.<br><i>pqActiveObjects::instance().activeView()->render();</i><br>-------------------------------------------------------------<br><br>When I manually change the visibility of src2 in the pipeline browser, ParaView breaks in the method <i>vtkPainterPolyDataMapper::ComputeBounds()</i> at<i> this->GetInput()->GetBounds(this->Bounds);. </i>The problem is that the vtkDatSet pointer that is being retrieved with <i>GetInput</i> is NULL. The same thing happens when I manually delete the filter.<br><br>Note that this problem vanishes when I set <i>representation->setVisible(true) (</i>which I don't really want)<br><br>Does anyone have an idea what is going wrong here? <br><br><br>Many thanks and with best regards, <br><br>Anton<br><br><br><br></span><div><p><font size="1" face="arial">This message is commercial in confidence and may be privileged.  It is intended for the <br>addressee(s) only.  Access to this message by anyone else is unauthorized and strictly prohibited.  <br>If you have received this message in error, please inform the sender immediately.  Please note that <br>messages sent or received by the Tessella e-mail system may be monitored and stored in an <br>information retrieval system.</font></p><br><br></div></font>