[Paraview] Plugin Crashing on PV 3.12 RC2

Michael Jackson mike.jackson at bluequartz.net
Wed Oct 12 13:16:27 EDT 2011


#-------------------------------------------------------------------------------
#
#  Copyright (c) 2009, 2010, Michael A. Jackson. BlueQuartz Software
#  All rights reserved.
#  BSD License: http://www.opensource.org/licenses/bsd-license.html
#
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
# ParaDis Server Side CMake Code
#-------------------------------------------------------------------------------

set (DD3D_CONFIGURATION_FILE_NAME "ParaDisConfiguration.h")
set (DD3D_TYPES_FILE_NAME "ParaDisTypes.h")
get_filename_component(DD3D_CONFIGURATION_HEADER_GUARD ${DD3D_CONFIGURATION_FILE_NAME} NAME_WE)
get_filename_component(DD3D_TYPES_HEADER_GUARD ${DD3D_TYPES_FILE_NAME} NAME_WE)

include (${PVDislocation_SOURCE_DIR}/Resources/cmp/CoreTests/cmpConfigureChecks.cmake)

configure_file( ${PVDislocation_SOURCE_DIR}/Resources/cmp/ConfiguredFiles/cmpConfiguration.h.in
                ${ParaView_BINARY_DIR}/Plugins/PVDislocation/ParaDis/${DD3D_CONFIGURATION_FILE_NAME})
configure_file( ${PVDislocation_SOURCE_DIR}/Resources/cmp/ConfiguredFiles/cmpPrimitiveTypes.h.in
                ${ParaView_BINARY_DIR}/Plugins/PVDislocation/ParaDis/${DD3D_TYPES_FILE_NAME})


include (${PVDislocation_SOURCE_DIR}/Code/Server/ParaDis/Common/SourceList.cmake)



IF (QT_USE_FILE)
  INCLUDE(${QT_USE_FILE})
ENDIF (QT_USE_FILE)

# --------------------------------------------------------------------
INCLUDE_DIRECTORIES( ${HDF5_INCLUDE_DIR}
                  ${VTK_INCLUDE_DIR}
                  ${ParaView_SOURCE_DIR}/Qt/Core
                  ${ParaView_BINARY_DIR}/Qt/Core
                  ${ParaView_SOURCE_DIR}/Utilities/VTKClientServer
                  ${ParaView_BINARY_DIR}/Utilities/VTKClientServer
                  ${ParaView_SOURCE_DIR}/Servers/Common
                  ${ParaView_BINARY_DIR}/Plugins/PVDislocation
                  ${PVH5Vtk_INCLUDE_DIRS}
                  ${PVDislocation_SOURCE_DIR}/Code/Server/ParaDis/Readers
                  ${PVDislocation_SOURCE_DIR}/Code/Server/ParaDis/Filters
                  ${PVDislocation_SOURCE_DIR}/Code/Server/ParaDis
                  ${PVDislocation_SOURCE_DIR}/Code/Server               
)

set (DD3D_DIR ${PVDislocation_SOURCE_DIR}/Code/Server/ParaDis)
set (DD3D_READERS_DIR ${PVDislocation_SOURCE_DIR}/Code/Server/ParaDis/Readers)

set (DD3DReaders_SM_Wrapped_SRCS   
    ${DD3D_READERS_DIR}/vtkDD3DGeoPrecipitateReader.cpp
    ${DD3D_READERS_DIR}/vtkH5GPVoxelReader.cpp
    ${DD3D_READERS_DIR}/vtkH5VizFileReader.cpp
    ${DD3D_READERS_DIR}/vtkParaDisPlotReader.cpp
    ${DD3D_READERS_DIR}/vtkPrdsArbPrecipitateReader.cpp
    ${DD3D_READERS_DIR}/vtkPrdsBVoxPrecipitateReader.cpp
  #  ${DD3D_READERS_DIR}/vtkPrdsDislocationReader.cpp
    ${DD3D_READERS_DIR}/vtkPrdsMultiOutDislocationReader.cpp
    )
SOURCE_GROUP("DD3D\\\\Readers" FILES ${DD3DReaders_SM_Wrapped_SRCS} )

set (DD3DReaders_SM_HDRS   
    ${DD3D_READERS_DIR}/vtkDD3DGeoPrecipitateReader.h 
    ${DD3D_READERS_DIR}/vtkParaDisPlotReader.h
    ${DD3D_READERS_DIR}/vtkH5VizFileReader.h
    ${DD3D_READERS_DIR}/vtkH5GPVoxelReader.h
    ${DD3D_READERS_DIR}/vtkPrdsBVoxPrecipitateReader.h
    ${DD3D_READERS_DIR}/vtkPrdsArbPrecipitateReader.h
  #  ${DD3D_READERS_DIR}/vtkPrdsDislocationReader.h
    ${DD3D_READERS_DIR}/vtkPrdsMultiOutDislocationReader.h
)
SOURCE_GROUP("DD3D\\\\Readers" FILES ${DD3DReaders_SM_HDRS} )

set (ArbPrecip_SRCS
    ${DD3D_DIR}/ArbPrecip/ArbPrecipFileHeader.cpp
    ${DD3D_DIR}/ArbPrecip/ArbPrecipIndex.cpp
    ${DD3D_DIR}/ArbPrecip/ArbPrecipitateRecord.cpp
    ${DD3D_DIR}/ArbPrecip/ArbPrecipReader.cpp
)
set (ArbPrecip_HDRS
    ${DD3D_DIR}/ArbPrecip/ArbPrecipFileHeader.h
    ${DD3D_DIR}/ArbPrecip/ArbPrecipIndex.h
    ${DD3D_DIR}/ArbPrecip/ArbPrecipIndexEntry.h
    ${DD3D_DIR}/ArbPrecip/ArbPrecipitateConstants.h
    ${DD3D_DIR}/ArbPrecip/ArbPrecipitateRecord.h
    ${DD3D_DIR}/ArbPrecip/ArbPrecipReader.h
)   
SOURCE_GROUP("DD3D\\\\ArbPrecip" FILES "${ArbPrecip_SRCS}" )
SOURCE_GROUP("DD3D\\\\ArbPrecip" FILES "${ArbPrecip_HDRS}" )

set (DislReaders_SRCS
    ${DD3D_DIR}/DislReaders/DislocationReader.cpp
    ${DD3D_DIR}/DislReaders/H5DislocationReader.cpp
)
set (DislReaders_HDRS
    ${DD3D_DIR}/DislReaders/DislocationReader.h
    ${DD3D_DIR}/DislReaders/DislocationReader.txx
    ${DD3D_DIR}/DislReaders/H5DislocationReader.h
    ${DD3D_DIR}/DislReaders/DislocationConstants.h
)   
SOURCE_GROUP("DD3D\\\\DislReaders" FILES "${DislReaders_SRCS}" )
SOURCE_GROUP("DD3D\\\\DislReaders" FILES "${DislReaders_HDRS}" )


set (GeoPrecip_SRCS  
    ${DD3D_DIR}/GeoPrecip/DD3DGeoPrecipReader.cpp
    
)   
set (GeoPrecip_HDRS  
    ${DD3D_DIR}/GeoPrecip/DD3DGeoPrecipReader.h
    ${DD3D_DIR}/GeoPrecip/GeoPrecipConstants.h

)
SOURCE_GROUP("DD3D\\\\GeoPrecip" FILES "${GeoPrecip_SRCS}" )
SOURCE_GROUP("DD3D\\\\GeoPrecip" FILES "${GeoPrecip_HDRS}" )

set (GPVoxel_SRCS
    ${DD3D_DIR}/GPVoxel/GPVXRecord.cpp
    ${DD3D_DIR}/GPVoxel/GPVXRecordCache.cpp
    ${DD3D_DIR}/GPVoxel/H5GPVoxelReader.cpp
)
set (GPVoxel_HDRS
    ${DD3D_DIR}/GPVoxel/GPVXRecord.h
    ${DD3D_DIR}/GPVoxel/GPVXRecordCache.h
    ${DD3D_DIR}/GPVoxel/H5GPVoxelReader.h
)   
SOURCE_GROUP("DD3D\\\\GPVoxel" FILES "${GPVoxel_SRCS}" )
SOURCE_GROUP("DD3D\\\\GPVoxel" FILES "${GPVoxel_HDRS}" )

# --------------------------------------------------------------------

set (DD3D_FILTERS_DIR ${PVDislocation_SOURCE_DIR}/Code/Server/ParaDis/Filters)

set (DD3DFilters_SM_Wrapped_SRCS   
    ${DD3D_FILTERS_DIR}/vtkFCCSlipSystemFilter.cpp
    ${DD3D_FILTERS_DIR}/vtkCutFillingFilter.cpp
    ${DD3D_FILTERS_DIR}/vtkGPVoxelToPolyDataFilter.cpp
)
SOURCE_GROUP("DD3D\\\\Filters" FILES ${DD3DFiltersSM_Wrapped_SRCS} )

set (DD3DFilters_SM_HDRS
    ${DD3D_FILTERS_DIR}/vtkFCCSlipSystemFilter.h
    ${DD3D_FILTERS_DIR}/vtkCutFillingFilter.h
    ${DD3D_FILTERS_DIR}/vtkGPVoxelToPolyDataFilter.h 
)
SOURCE_GROUP("DD3D\\\\Filters" FILES ${DD3DFiltersSM_HDRS} )

set (DD3DFilters_SRCS  
    ${DD3D_FILTERS_DIR}/DiscreteParticleFilter.cpp
    ${DD3D_FILTERS_DIR}/vtkDecimate.cpp
    ${DD3D_FILTERS_DIR}/vtkQuakeDelauney2DTriangulationFilter.cpp
)   
set (DD3DFilters_HDRS
    ${DD3D_FILTERS_DIR}/DiscreteParticleFilter.h
    ${DD3D_FILTERS_DIR}/vtkDecimate.h
    ${DD3D_FILTERS_DIR}/vtkQuakeDelauney2DTriangulationFilter.h
)         
SOURCE_GROUP("DD3D\\\\Filters" FILES "${DD3DFilters_SRCS}" )
SOURCE_GROUP("DD3D\\\\Filters" FILES "${DD3DFilters_HDRS}" )


set (Utilities_SRCS  
    ${DD3D_DIR}/Utilities/LoopTools.cpp
    ${DD3D_DIR}/Utilities/vtkMergePoints2.cpp
    ${DD3D_DIR}/Utilities/QuakeTriangulate.c
)   
set (Utilities_HDRS  
    ${DD3D_DIR}/Utilities/LoopTools.h
    ${DD3D_DIR}/Utilities/vtkMergePoints2.h
    ${DD3D_DIR}/Utilities/QuakeTriangulate.h
)         
SOURCE_GROUP("DD3D\\\\Utilities" FILES "${DD3DFilters_SRCS}" )
SOURCE_GROUP("DD3D\\\\Utilities" FILES "${DD3DFilters_HDRS}" )



add_definitions(-DTRILIBRARY)

set(ParaDis_SM_XML     
    ${DD3D_DIR}/Resources/ParaDis_Filters_PVSM.xml
    ${DD3D_DIR}/Resources/ParaDis_Readers_PVSM.xml
)


# create a plugin
#  A plugin may contain only server code, only gui code, or both.
#  SERVER_MANAGER_SOURCES will be wrapped
#  SERVER_MANAGER_XML will be embedded and give to the client when loaded
#  SERVER_SOURCES is for other source files
#  PYTHON_MODULES allows you to embed python sources as modules
#  GUI_INTERFACES is to specify which GUI plugin interfaces were implemented
#  GUI_RESOURCES is to specify qrc files
#  GUI_RESOURCE_FILES is to specify xml files to create a qrc file from
#  GUI_SOURCES is to other GUI sources
#  SOURCES is deprecated, please use SERVER_SOURCES or GUI_SOURCES
#  REQUIRED_ON_SERVER is to specify whether this plugin should be loaded on server
#  REQUIRED_ON_CLIENT is to specify whether this plugin should be loaded on client
#  REQUIRED_PLUGINS is to specify the plugin names that this plugin depends on

    
# -- Add the Server Manager XML
PARAVIEW_INCLUDE_SERVERMANAGER_RESOURCES( "${ParaDis_SM_XML}" )
# -- Add the Client side xml
PARAVIEW_INCLUDE_GUI_RESOURCES( "${PVDislocation_SOURCE_DIR}/Code/Client/Resources/ParaDis_Readers_GUI.xml;${PVDislocation_SOURCE_DIR}/Code/Client/Resources/ParaDis_Filters_GUI.xml" )
# PARAVIEW_INCLUDE_GUI_RESOURCES( "${DD3DFiltersClient_XML}" )

PARAVIEW_INCLUDE_WRAPPED_SOURCES("${DD3DReaders_SM_Wrapped_SRCS}")
PARAVIEW_INCLUDE_WRAPPED_SOURCES("${DD3DFilters_SM_Wrapped_SRCS}")

PARAVIEW_INCLUDE_SOURCES("${ArbPrecip_SRCS}")
PARAVIEW_INCLUDE_SOURCES("${MXA_Common_SRCS}")
PARAVIEW_INCLUDE_SOURCES("${DislReaders_SRCS}")
PARAVIEW_INCLUDE_SOURCES("${GeoPrecip_SRCS}")
PARAVIEW_INCLUDE_SOURCES("${GPVoxel_SRCS}")
PARAVIEW_INCLUDE_SOURCES("${Utilities_SRCS}")
PARAVIEW_INCLUDE_SOURCES("${DD3DFilters_SRCS}")



___________________________________________________________
Mike Jackson                    Principal Software Engineer
BlueQuartz Software                            Dayton, Ohio
mike.jackson at bluequartz.net              www.bluequartz.net

On Oct 12, 2011, at 12:07 PM, Utkarsh Ayachit wrote:

> Mike,
> 
> Can you include the CMakeLists.txt?
> 
> Utkarsh
> 
> On Wed, Oct 12, 2011 at 10:40 AM, Michael Jackson
> <mike.jackson at bluequartz.net> wrote:
>> I have a custom reader plugin that I am trying to update for ParaView 3.12. Everything seems to compile OK and ParaView launches Ok. When I try to open one of my files I get the following:
>> 
>> ERROR: In /Users/Shared/Kitware-CVS/ParaView/ParaViewCore/ServerImplementation/vtkSIProxy.cxx, line 240
>> vtkSISourceProxy (0x121a07e60): Failed to create vtkH5VizFileReader. Aborting for debugging purposes.
>> 
>> Which is down in this section of the vtkSIProxy:
>> 
>>  if (className && className[0])
>>    {
>>    this->SetVTKClassName(className);
>>    vtkObjectBase* obj = this->Interpreter->NewInstance(className);
>>    if (!obj)
>>      {
>>      vtkErrorMacro("Failed to create " << className
>>        << ". Aborting for debugging purposes.");
>>      abort();
>>      }
>>    this->VTKObject.TakeReference(obj);
>>    }
>> 
>> 
>> In my "Gui XML" code I have this:
>>   <Reader name="H5VizFileReader"
>>          extensions="ddviz"
>>          file_description="ParaDis Vizualization File Reader">
>>  </Reader>
>> 
>> and in the Server Manager XML I have this:
>>  <!-- ************************************************************ -->
>>    <!-- MultiBlock Reader For the dd3d Vizualization Files (.ddviz extension) -->
>>    <!-- ************************************************************ -->
>>    <SourceProxy name="H5VizFileReader"
>>      class="vtkH5VizFileReader">
>>      <OutputPort name="Nodal Data" index="0" />
>>      <OutputPort name="Simulation Limits" index="1" />
>>      <OutputPort name="Glide Planes" index="2" />
>>      <OutputPort name="Node Density Vs Time" index="3" />
>>      <OutputPort name="Stress Vs. Total Strain" index="4">
>> 
>>     </OutputPort>
>>      <StringVectorProperty name="FileName" command="SetFileName"
>>        number_of_elements="1">
>>        <FileListDomain name="files" />
>>      </StringVectorProperty>
>> 
>>      <IntVectorProperty name="TimeStepRangeInfo"
>>        command="GetTimeStepRange" information_only="1">
>>        <SimpleIntInformationHelper />
>>      </IntVectorProperty>
>> 
>>      <DoubleVectorProperty name="TimestepValues"
>>        information_only="1">
>>        <TimeStepsInformationHelper />
>>      </DoubleVectorProperty>
>> 
>>      <IntVectorProperty name="Filter Glide Planes"
>>        command="SetFilterGlidePlanes" number_of_elements="1"
>>        default_values="0">
>>      <BooleanDomain name="Enable Glide Plane Filter"></BooleanDomain>
>>      <Documentation>
>>          Setting this value will filter the glide planes by the supplied
>>          index value. The values can NOT be less than Zero (0).
>>        </Documentation>
>>      </IntVectorProperty>
>> 
>>      <IntVectorProperty name="Glide Plane Index"
>>        command="SetGlidePlaneIndex" number_of_elements="1"
>>        default_values="1">
>>        <Documentation>
>>          This is the value by which the glide planes will be filtered. The
>>          value should always be greater than 0.
>>        </Documentation>
>>      </IntVectorProperty>
>> 
>>      <IntVectorProperty name="Filter Nodes By Glide Plane"
>>        command="SetFilterNodesByGlidePlane" number_of_elements="1"
>>        default_values="0">
>>      <BooleanDomain name="Filter Nodes By Glide Plane"></BooleanDomain>
>>       <Documentation>Filter the Nodes by a given glide plane index. This index
>>       is different than the above index.</Documentation>
>>      </IntVectorProperty>
>> 
>>      <IntVectorProperty name="Nodal Glide Plane Index"
>>        command="SetNodalGlidePlaneIndex" number_of_elements="1"
>>        default_values="1">
>>        <Documentation>
>>          This is the value by which the glide planes will be filtered. The
>>          value should always be greater than 0.
>>        </Documentation>
>>      </IntVectorProperty>
>> 
>>            <!-- This is the toggle for the SP111 variable.-->
>>      <IntVectorProperty name="Filter GPVoxels by 111 Slip Planes"
>>        command="SetSP111_GPVoxel_Filter" number_of_elements="1"
>>        default_values="0">
>>        <BooleanDomain name="bool" />
>>        <Documentation>
>>          When checked the filter will include VoxelData on the
>>          {111} slip plane
>>        </Documentation>
>>      </IntVectorProperty>
>> 
>>      <!-- This is the toggle for the SPBar111 variable.-->
>>      <IntVectorProperty name="Filter GPVoxels by -111 Slip Planes"
>>        command="SetSPBar111_GPVoxel_Filter" number_of_elements="1"
>>        default_values="0">
>>        <BooleanDomain name="bool" />
>>        <Documentation>
>>          When checked the filter will include VoxelData on the
>>          {-111} slip plane
>>        </Documentation>
>>      </IntVectorProperty>
>> 
>>      <!-- This is the toggle for the SP1Bar11 variable.-->
>>      <IntVectorProperty name="Filter GPVoxels by 1-11 Slip Planes"
>>        command="SetSP1Bar11_GPVoxel_Filter" number_of_elements="1"
>>        default_values="0">
>>        <BooleanDomain name="bool" />
>>        <Documentation>
>>          When checked the filter will include VoxelData on the
>>          {1-11} slip plane
>>        </Documentation>
>>      </IntVectorProperty>
>> 
>>      <!-- This is the toggle for the SP11Bar1 variable.-->
>>      <IntVectorProperty name="Filter GPVoxels by 11-1 Slip Planes"
>>        command="SetSP11Bar1_GPVoxel_Filter" number_of_elements="1"
>>        default_values="0">
>>        <BooleanDomain name="bool" />
>>        <Documentation>
>>          When checked the filter will include VoxelData on the
>>          {11-1} slip plane
>>        </Documentation>
>>      </IntVectorProperty>
>> 
>>      <DoubleVectorProperty name="Youngs Modulas"
>>        command="SetYoungsModulas" number_of_elements="1"
>>        default_values="200.0e9">
>>        <Documentation>
>>          This value will be used for the calculation of the Stress/Strain curves.
>>        </Documentation>
>>      </DoubleVectorProperty>
>> 
>>    </SourceProxy>
>> 
>> I have cleaned the build directory a few times in the hopes that there was something weird with the configuration/compilation but that did not seem to help. I have not been keeping up with the changes going on with ParaView lately so this is all new to me.
>> 
>> Any help would be appreciated.
>> 
>> Thanks
>> ___________________________________________________________
>> Mike Jackson                    Principal Software Engineer
>> BlueQuartz Software                            Dayton, Ohio
>> mike.jackson at bluequartz.net              www.bluequartz.net
>> 
>> _______________________________________________
>> 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