[Paraview-developers] Problem with plugins build from an inherited class

Joe Ping-Lin Hsiao phsiao at cs.unc.edu
Mon May 5 13:32:08 EDT 2014


I am having trouble loading my custom plugins, which have an internal ITK
pipeline. Everything works fine if I only load one of them. As soon as I
load a second one, the program crashes. The error message I get from debug
mode is

Unhandled exception at 0x000007feeb86275d (vtkClientServer-pv4.1.dll) in
ImageSurfer2.exe: 0xC0000005: Access violation reading location
0x0000000000000000.


The call stack:

  vtkClientServer-pv4.1.dll!std::operator<<<std::char_traits<char>
>(std::basic_ostream<char,std::char_traits<char> > & _Ostr={...}, const
char * _Val=0x000007feeb8aaec8)  Line 747 + 0x8 bytes C++

> vtkClientServer-pv4.1.dll!vtkClientServerInterpreter::AddNewInstanceFunction(const
char * name=0x000007feed4920d0, vtkObjectBase * (void *)*
f=0x000007feed301cfd, void * ctx=0x0000000000000000, void (void *)*
freeFunction=0x0000000000000000)  Line 851 + 0x1b bytes C++

  Hessian3DToVesselnessMeasureImageFilter.dll!000007feed34e8c2()

  [Frames below may be incorrect and/or missing, no symbols loaded for
Hessian3DToVesselnessMeasureImageFilter.dll]

  000000000480f170()

  Hessian3DToVesselnessMeasureImageFilter.dll!000007feed4920d0()

  Hessian3DToVesselnessMeasureImageFilter.dll!000007feed301cfd()


Here is my class hierarchy:


vtkITKImageFilter  -> class inherits from vtkImageAlgorithm. Use
vtkImageExport, itk::VTKImageImport, itk::VTKImageExport, and
vtkImageImport inside to convert between VTK and ITK.


MyITKFilter -> my ITK plugin inheriting from vtkITKImageFilter.



I include source code from both classes in CMake:


ADD_PARAVIEW_PLUGIN(${PLUGIN} 1.0

  SERVER_MANAGER_XML ${XML}

  SERVER_MANAGER_SOURCES vtkHessian3DToVesselnessMeasureImageFilter.cxx
../Common/vtkITKImageFilter.cxx

  SOURCES ${XML}

)


and link the plugin with ITK


TARGET_LINK_LIBRARIES(${PLUGIN} ${ITK_LIBRARIES})


ITK was built in static.


Any idea what might cause the trouble?



Thanks,

Joe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20140505/e5c5cd5f/attachment.html>


More information about the Paraview-developers mailing list