[Paraview] ParaView Crashes with Custom Reader

Moreland, Kenneth kmorel at sandia.gov
Tue Feb 5 11:48:13 EST 2008


It might be a problem with the wrapping of the SetVOI method.  What happens if you change int32 to int in the vtkH5RoboMetReader.h header file?

For more details, take a look at the vtkH5RoboMetReaderClientServer.cxx wrapper source created from the header file.  Set a breakpoint in the command function to see what conditions are not being met for matching the SetVOI method.

-Ken

> -----Original Message-----
> From: paraview-bounces+kmorel=sandia.gov at paraview.org [mailto:paraview-
> bounces+kmorel=sandia.gov at paraview.org] On Behalf Of Mike Jackson
> Sent: Tuesday, February 05, 2008 9:35 AM
> To: ParaView
> Subject: [Paraview] ParaView Crashes with Custom Reader
>
> I am developing a Custom reader for our data set. I would like to
> have some "information" type widgets and a Region of Interest widget.
> I believe I have the correct XML in my server manager file. When I
> run Paraview and select my data file I get some debug output then
> ParaView crashes. This is with PV 3.2.1 on OS X 10.4.11 using gcc.
>
> The error output is:
>
>
> ERROR: In /Users/Shared/OpenSource/ParaView3.2.1/Servers/Common/
> vtkProcessModule.cxx, line 1001
> vtkProcessModule (0x8a5ce50): Object type: vtkH5RoboMetReader, could
> not find requested method: "SetVOI"
> or the method was called with incorrect arguments.
>
> while processing
> Message 0 = Invoke
>    Argument 0 = id_value {84}
>    Argument 1 = string_value {SetVOI}
>    Argument 2 = int32_value {0}
>    Argument 3 = int32_value {100}
>    Argument 4 = int32_value {0}
>    Argument 5 = int32_value {100}
>    Argument 6 = int32_value {100}
>    Argument 7 = int32_value {102}
>
> In vtkH5RoboMetReader.h I have the following:
>
> public:
>    vtkSetVector6Macro(VOI, int32);
>    vtkGetVector6Macro(VOI, int32);
>
> private:
>   int32     VOI[6];
>
>
> My pvsm file is as follows:
>
> <ServerManagerConfiguration>
>   <ProxyGroup name="sources">
>    <SourceProxy name="H5RoboMetReader"
>     class="vtkH5RoboMetReader">
>     <StringVectorProperty name="FileName" command="SetFileName"
>      number_of_elements="1">
>      <FileListDomain name="files" />
>     </StringVectorProperty>
>
>     <IntVectorProperty name="VOI" command="SetVOI"
>      number_of_elements="6" default_values="0 100 0 100 100 102">
>      <ExtentDomain name="extent">
>       <RequiredProperties>
>        <Property name="Input" function="Input" />
>       </RequiredProperties>
>      </ExtentDomain>
>      <Documentation>
>       This property specifies the minimum and maximum
>       point indices along each of the I, J, and K axes;
>       these values indicate the volume of interest (VOI).
>       The output will have the (I,J,K) extent specified
>       here.
>      </Documentation>
>     </IntVectorProperty>
>
>
>     <IntVectorProperty name="DataExtent"
>      command="GetDataExtent" number_of_elements="6" information_only="1"
>      default_values="0 1000 0 1000 0 10">
>      <SimpleIntInformationHelper />
>     </IntVectorProperty>
>
>     <IntVectorProperty name="FramesPerSlice"
>       command="GetFramesPerSlice" number_of_elements="1"
> information_only="1"
>       default_values="0">
>       <SimpleIntInformationHelper />
>     </IntVectorProperty>
>
>    </SourceProxy>
>   </ProxyGroup>
> </ServerManagerConfiguration>
>
>
> What am I not doing correctly?
>
> Thanks
> --
> Mike Jackson
> imikejackson & gmail * com
>
>
>
>
> _______________________________________________
> ParaView mailing list
> ParaView at paraview.org
> http://www.paraview.org/mailman/listinfo/paraview




More information about the ParaView mailing list