Hello!

I am facing a segfault with a custom filter. Here a minimalistic setup
to reproduce the problem, Ubuntu 10.10 64bit:

I have copied the original vtkImageClip class, as well as its
ServerManager xml part, merely renaming it to vtkMyImageResample. I
have added a plugin like


ADD_PARAVIEW_PLUGIN(MyImageResample_Plugin "1.0"
   SERVER_MANAGER_XML MyImageResample.xml
   SERVER_MANAGER_SOURCES vtkMyImageResample.cxx
   GUI_RESOURCE_FILES MyImageResampleGUI.xml)

The GUI part can not be simpler:

<ParaViewFilters>
 <Category name="My Filters">
  <Filter name="MyImageResample"/>
 </Category>
</ParaViewFilters>

Now I create an image using Sources->Wavelet (default options) and
call my filter. ParaView crashes with the backtrace pasted below.
Does anyone have any hints how to proceed from here?

Many thanks and best regards,
Dominik


Program received signal SIGSEGV, Segmentation fault.
0x00007fffe8386dae in
vtkInformationVector::GetNumberOfInformationObjects (this=0x0)
    at /home/domel/pack/ParaView-3.10.1/VTK/Common/vtkInformationVector.h:43
43        int GetNumberOfInformationObjects() { return
this->NumberOfInformationObjects; };
(gdb) bt
#0  0x00007fffe8386dae in
vtkInformationVector::GetNumberOfInformationObjects (this=0x0)
    at /home/domel/pack/ParaView-3.10.1/VTK/Common/vtkInformationVector.h:43
#1  0x00007fffe8384176 in vtkAlgorithm::GetNumberOfOutputPorts
(this=0x1fbaa60) at
/home/domel/pack/ParaView-3.10.1/VTK/Filtering/vtkAlgorithm.cxx:733
#2  0x00007ffff187ab36 in
vtkPVAlgorithmPortsInformation::CopyFromObject (this=0x1fbcf70,
obj=0x1fbaa60)
    at 
/home/domel/pack/ParaView-3.10.1/Servers/Common/vtkPVAlgorithmPortsInformation.cxx:73
#3  0x00007ffff18e08cb in vtkSelfConnection::GatherInformation
(this=0x15d46b0, info=0x1fbcf70, id=...)
    at /home/domel/pack/ParaView-3.10.1/Servers/Common/vtkSelfConnection.cxx:149
#4  0x00007ffff185fd9c in
vtkProcessModuleConnectionManager::GatherInformation (this=0x1044d80,
connectionID=5, serverFlags=1, info=0x1fbcf70, id=...)
    at 
/home/domel/pack/ParaView-3.10.1/Servers/Common/vtkProcessModuleConnectionManager.cxx:570
#5  0x00007ffff1867d98 in vtkProcessModule::GatherInformation
(this=0xccefc0, connectionID=5, serverFlags=1, info=0x1fbcf70, id=...)
    at /home/domel/pack/ParaView-3.10.1/Servers/Common/vtkProcessModule.cxx:310
_______________________________________________
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

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview

Reply via email to