Hi,
I noticed that the bug http://paraview.org/Bug/view.php?id=10835 has been
updated and fixed. As I wanted to confirm the resolution on my machine, I
tried to load some XML plugins and received the following message :

 ERROR: In
> /home/euHeart/Codes/ParaView/ParaViewCore/ClientServerCore/vtkPVPluginLoader.cxx,
> line 184
>
> vtkPVPluginLoader (0x26b01b0):
> /home/euHeart/Codes/Peavip/Plugins/Filters/ImageCast.xml: invalid ELF header
>

The wiki has a section entitled "Invalid ELF header" but it is empty.

The plugin is successfully loaded when using a compilation step. Please find
attached an XML that triggers the error (it simply exposes vtkImageCast
filter to paraview). Maybe some things has changed in PV-3.10.x and my XML
is not ParaView compliant anymore ? In this case, why the compiled plugin
does work ??? I encoutnered this error with PV-3.10.1 and pv 3.11.1

Thanks a lot !

Jerome
<ServerManagerConfiguration>
  <ProxyGroup name="filters">
    <SourceProxy name="ImageCast"
    class="vtkImageCast"
      label="Image Cast">
      <Documentation
      long_help="vtkImageCast filter casts the input type to
      match the output type in the image processing pipeline. The filter does nothing
      if the input already has the correct type. To specify the CastTo type, use
      SetOutputScalarType method.
      Warning: As vtkImageCast only casts values without rescaling them, its use is
      not recommented. vtkImageShiftScale is the recommented way to change the type of
      an image data." 
	short_help="Image Data type Casting Filter"> 
      </Documentation>
      <InputProperty
      name="Input"
	command="SetInputConnection">
	  <ProxyGroupDomain name="groups">
	    <Group name="sources"/>
	    <Group name="filters"/>
	  </ProxyGroupDomain>
	  <DataTypeDomain name="input_type">
	    <DataType value="vtkImageData"/>
	  </DataTypeDomain>
	  <Documentation>
	    Set the input to the Image Cast filter.
	  </Documentation>
	</InputProperty>
	
	<IntVectorProperty
	name="OutputScalarType"
	command="SetOutputScalarType"
	number_of_elements="1"
	  default_values="7">
	    <EnumerationDomain name="enum">
	      <Entry value="10" text="Float"/>
	      <Entry value="11" text="Double"/>
	      <Entry value="6" text="Int"/>
	      <Entry value="7" text="UnsignedInt"/>
	      <Entry value="8" text="Long"/>
	      <Entry value="9" text="UnsignedLong"/>
	      <Entry value="6" text="Short"/>
	      <Entry value="5" text="UnsignedShort"/>
	      <Entry value="3" text="UnsignedChar"/>
	      <Entry value="2" text="Char"/>
	    </EnumerationDomain>
	    <Documentation>
	      Set the desired output scalar type to cast to. 
	    </Documentation>
	  </IntVectorProperty>
	  <IntVectorProperty
	  name="ClampOverflow"
	  command="SetClampOverflow"
	  number_of_elements="1"
	    default_values="1">
	      <BooleanDomain name="boolean"/>
	      <Documentation>
		When the ClampOverflow flag is on, the data is thresholded so that the output
		value does not exceed the max or min of the data type. By default ClampOverflow
		is off. 
	      </Documentation>
	    </IntVectorProperty>
	    <IntVectorProperty
	    name="ReleaseDataFlag"
	    command="SetReleaseDataFlag"
	    number_of_elements="1"
	    default_values="0"
	      animateable="0">
		<BooleanDomain name="boolean"/>
		<Documentation>
		  Turn release data flag on or off for all output ports.
		</Documentation>
	      </IntVectorProperty>
	    </SourceProxy>
	  </ProxyGroup> 
	</ServerManagerConfiguration>
	
_______________________________________________
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

Reply via email to