[Paraview] Segfault with simple C++ filter derived from vtkMultiTimeStepAlgorithm

Messner, Mark Christian messner at anl.gov
Tue Nov 28 11:45:32 EST 2017


Utkarsh,


Thanks, that was a very helpful reference to vtkTemporalArrayOperatorFilter.


Mark

________________________________
From: Utkarsh Ayachit <utkarsh.ayachit at kitware.com>
Sent: Monday, November 27, 2017 1:16:22 PM
To: Messner, Mark Christian
Cc: paraview at 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
<messner at anl.gov> 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
> 232            return 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20171128/e3a448ba/attachment.html>


More information about the ParaView mailing list