Re: [Paraview] Segfault with simple C++ filter derived from vtkMultiTimeStepAlgorithm
Utkarsh, Thanks, that was a very helpful reference to vtkTemporalArrayOperatorFilter. Mark From: Utkarsh Ayachit Sent: Monday, November 27, 2017 1:16:22 PM To: Messner, Mark Christian Cc: paraview@paraview.org Subject: Re: [Paraview] Segfault with simple C++ filter derived from vtkMultiTimeStepAlgorithm Mark, You're simply missing a call to `this->SetNumberOfOutputPorts(1)` in your constructor. That will get past the segfault. Besides that, look at `vtkTemporalArrayOperatorFilter` as an example for how to overload `RequestDataObject` to create correct output dataset type, `RequestInformation` to determine which timesteps are available, and `RequestUpdateExtent` to request a set of timesteps. Utkarsh On Mon, Nov 27, 2017 at 11:41 AM, Messner, Mark Christian wrote: > In my ongoing quest to get a filter to process multiple time steps worth of > data into a single result field I've attempted to derive a C++ vtk filter > from vtkMultiTimeStepAlgorithm. However, the attached simple example > segfaults out when I try to apply it in paraview. All it should do is a > shallow copy of input to output for now. I don't have much luck getting a > stacktrace from paraview but it appears to be bombing at: > > > Program received signal SIGSEGV, Segmentation fault. > getIconType (this=0x4109120) > at > /home/messner/Downloads/ParaView-v5.4.1/Qt/Components/pqPipelineModel.cxx:232 > 232return this->getIconType(source->getOutputPort(0)) > > > Can someone please help or point me to a minimal working example of a > vtkMultiTimeStepAlgorithm filter? > > > Thanks, > > > Mark > > > > ___ > Powered by www.kitware.com<http://www.kitware.com> > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the ParaView Wiki at: > http://paraview.org/Wiki/ParaView > > Search the list archives at: http://markmail.org/search/?q=ParaView > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/paraview > ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Search the list archives at: http://markmail.org/search/?q=ParaView Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/paraview
Re: [Paraview] Segfault with simple C++ filter derived from vtkMultiTimeStepAlgorithm
Mark, You're simply missing a call to `this->SetNumberOfOutputPorts(1)` in your constructor. That will get past the segfault. Besides that, look at `vtkTemporalArrayOperatorFilter` as an example for how to overload `RequestDataObject` to create correct output dataset type, `RequestInformation` to determine which timesteps are available, and `RequestUpdateExtent` to request a set of timesteps. Utkarsh On Mon, Nov 27, 2017 at 11:41 AM, Messner, Mark Christian wrote: > In my ongoing quest to get a filter to process multiple time steps worth of > data into a single result field I've attempted to derive a C++ vtk filter > from vtkMultiTimeStepAlgorithm. However, the attached simple example > segfaults out when I try to apply it in paraview. All it should do is a > shallow copy of input to output for now. I don't have much luck getting a > stacktrace from paraview but it appears to be bombing at: > > > Program received signal SIGSEGV, Segmentation fault. > getIconType (this=0x4109120) > at > /home/messner/Downloads/ParaView-v5.4.1/Qt/Components/pqPipelineModel.cxx:232 > 232return this->getIconType(source->getOutputPort(0)) > > > Can someone please help or point me to a minimal working example of a > vtkMultiTimeStepAlgorithm filter? > > > Thanks, > > > Mark > > > > ___ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the ParaView Wiki at: > http://paraview.org/Wiki/ParaView > > Search the list archives at: http://markmail.org/search/?q=ParaView > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/paraview > ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Search the list archives at: http://markmail.org/search/?q=ParaView Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/paraview
[Paraview] Segfault with simple C++ filter derived from vtkMultiTimeStepAlgorithm
In my ongoing quest to get a filter to process multiple time steps worth of data into a single result field I've attempted to derive a C++ vtk filter from vtkMultiTimeStepAlgorithm. However, the attached simple example segfaults out when I try to apply it in paraview. All it should do is a shallow copy of input to output for now. I don't have much luck getting a stacktrace from paraview but it appears to be bombing at: Program received signal SIGSEGV, Segmentation fault. getIconType (this=0x4109120) at /home/messner/Downloads/ParaView-v5.4.1/Qt/Components/pqPipelineModel.cxx:232 232return this->getIconType(source->getOutputPort(0)) Can someone please help or point me to a minimal working example of a vtkMultiTimeStepAlgorithm filter? Thanks, Mark strainrangeaxi.tar.bz2 Description: strainrangeaxi.tar.bz2 ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Search the list archives at: http://markmail.org/search/?q=ParaView Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/paraview