[Paraview] [Paraview-developers] Segmentation fault

Cory Quammen cory.quammen at kitware.com
Tue Aug 26 09:49:00 EDT 2014


Girish,

Can you run ParaView with your plugin through a debugger to find out
where it is segfaulting? That will point out where the segfault occurs
which is often a clue to why it is occurring.

Thanks,
Cory

On Tue, Aug 26, 2014 at 9:41 AM, Girish Ramesh <rgirish28 at gmail.com> wrote:
> Hi,
>
> I am writing my own plugin but each time I try to add another check box, the
> plugin suddenly segfaults. I have no idea why. The XML and C++ code are
> attached.
>
> XML:
>
> <IntVectorProperty
>          name="FieldLoadStatus"
>          command="SetFieldLoadStatus"
>          number_of_elements="1"
>          default_values="0"
>          panel_visibility="default" >
>         <BooleanDomain name="bool"/>
>         <Documentation>
>           The values of this property sets the run number.
>         </Documentation>
>       </IntVectorProperty>
> C++:
>
> public:
>   vtkTypeMacro(ReadUALGrid, vtkUnstructuredGridAlgorithm);
>   void PrintSelf(ostream& os, vtkIndent indent);
>
>   static ReadUALGrid *New();
>
>   vtkGetMacro(Shot,int)
>   vtkSetMacro(Shot,int);
>
>   vtkGetMacro(Run,int);
>   vtkSetMacro(Run,int);
>
>   vtkGetMacro(RefRun,int);
>   vtkSetMacro(RefRun,int);
>
>   vtkGetMacro(CPOLoad,int);
>   vtkSetMacro(CPOLoad,int);
>
>   vtkGetMacro(FieldLoadStatus,int);
>   vtkSetMacro(FieldLoadStatus,int);
>
> protected:
>   ReadUALGrid();
>   ~ReadUALGrid(){}
>
>   int Shot;
>   int Run;
>   int RefRun;
>   int CPOLoad;
>   int FieldLoadStatus;
>
> I have no idea why because it worked perfectly for other check boxes. Thank
> you.
>
> Regards,
> Girish
>
> _______________________________________________
> Paraview-developers mailing list
> Paraview-developers at paraview.org
> http://public.kitware.com/mailman/listinfo/paraview-developers
>


More information about the ParaView mailing list