[Paraview] BUG in vtkPVDataSetAttributesInformation on Linux ?

Utkarsh Ayachit utkarsh.ayachit at kitware.com
Mon Nov 29 09:35:35 EST 2010


That check should be fixed. In any case, you should ensure that your
filter/reader names all arrays it produces. Unnamed arrays are not
recognized by ParaView.

Utkarsh

On Mon, Nov 29, 2010 at 7:40 AM, R M <mlokida at yahoo.fr> wrote:
> Hi,
>
> I use paraview 3.9.0 on a Centos 5 32 bits and also Windows XP.
>
> Here' my problem. I have developed a plugin with temporal data and with
> windows XP it works. But under linux I have a crash of paraview during some
> time step change.
> In Debug I have the following error message:
>
> ///////////////
>
> Program received signal SIGSEGV, Segmentation fault.
> 0x04b2d863 in strcasecmp () from /lib/libc.so.6
> (gdb) bt
> #0  0x04b2d863 in strcasecmp () from /lib/libc.so.6
> #1  0x0129e45a in
> vtkPVDataSetAttributesInfromationAlphabeticSorting(vtkPVDataSetAttributesInformationSortArray
> const&, vtkPVDataSetAttributesInformationSortArray const&) ()
>    from /home/loki/paraview/ParaView-build/bin/libvtkPVServerCommon.so
> #2  0x0129fb33 in void
> std::__introsort_loop<__gnu_cxx::__normal_iterator<vtkPVDataSetAttributesInformationSortArray*,
> std::vector<vtkPVDataSetAttributesInformationSortArray,
> std::allocator<vtkPVDataSetAttributesInformationSortArray> > >, int, bool
> (*)(vtkPVDataSetAttributesInformationSortArray const&,
> vtkPVDataSetAttributesInformationSortArray
> const&)>(__gnu_cxx::__normal_iterator<vtkPVDataSetAttributesInformationSortArray*,
> std::vector<vtkPVDataSetAttributesInformationSortArray,
> std::allocator<vtkPVDataSetAttributesInformationSortArray> > >,
> __gnu_cxx::__normal_iterator<vtkPVDataSetAttributesInformationSortArray*,
> std::vector<vtkPVDataSetAttributesInformationSortArray,
> std::allocator<vtkPVDataSetAttributesInformationSortArray> > >, int, bool
> (*)(vtkPVDataSetAttributesInformationSortArray const&,
> vtkPVDataSetAttributesInformationSortArray const&)) () from
> /home/mra/dev_mra/melodie/paraview_vtk/ParaView-build/bin/libvtkPVServerCommon.so
> #3  0x0129ebeb in
> vtkPVDataSetAttributesInformation::CopyFromDataSetAttributes(vtkDataSetAttributes*)
> () from
> /home/mra/dev_mra/melodie/paraview_vtk/ParaView-build/bin/libvtkPVServerCommon.so
> #4  0x01296dbd in vtkPVDataInformation::CopyFromDataSet(vtkDataSet*) () from
> /home/mra/dev_mra/melodie/paraview_vtk/ParaView-build/bin/libvtkPVServerCommon.so
> #5  0x01296a9c in vtkPVDataInformation::CopyFromObject(vtkObject*) () from
> /home/mra/dev_mra/melodie/paraview_vtk/ParaView-build/bin/libvtkPVServerCommon.so
> #6  0x01290a94 in vtkPVCompositeDataInformation::CopyFromObject(vtkObject*)
> () from
> /home/mra/dev_mra/melodie/paraview_vtk/ParaView-build/bin/libvtkPVServerCommon.so
> #7  0x01295ed4 in
> vtkPVDataInformation::CopyFromCompositeDataSet(vtkCompositeDataSet*) () from
> /home/mra/dev_mra/melodie/paraview_vtk/ParaView-build/bin/libvtkPVServerCommon.so
> #8  0x01296a12 in vtkPVDataInformation::CopyFromObject(vtkObject*) () from
> /home/mra/dev_mra/melodie/paraview_vtk/ParaView-build/bin/libvtkPVServerCommon.so
> #9  0x012dc60c in vtkSelfConnection::GatherInformation(unsigned int,
> vtkPVInformation*, vtkClientServerID) () from
> /home/mra/dev_mra/melodie/paraview_vtk/ParaView-build/bin/libvtkPVServerCommon.so
> #10 0x01274447 in vtkProcessModuleConnectionManager::GatherInformation(int,
> unsigned int, vtkPVInformation*, vtkClientServerID) ()
> ///////////////
>
> bool    vtkPVDataSetAttributesInfromationAlphabeticSorting
> ( const vtkPVDataSetAttributesInformationSortArray & thisArray,
>   const vtkPVDataSetAttributesInformationSortArray & thatArray )
> {
>
> #if defined(_WIN32)
>   return  (  stricmp( thisArray.arrayName, thatArray.arrayName )  <=  0  )
>           ?  true  :  false;
> #else
>   return  (  strcasecmp( thisArray.arrayName, thatArray.arrayName )  <=  0
> )
>           ?  true  :  false;
> #endif
> }
>
> In linux it use: (  strcasecmp( thisArray.arrayName, thatArray.arrayName )
> <=  0  ) an d when it crashed, the size of thisArray.arrayName.arrayName is
> 0 (and thatArrayName.arrayName is OK).
>
> So what can it be bone to avoid this crash with Linux ?
>
>
> _______________________________________________
> 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
>
>


More information about the ParaView mailing list