MantisBT - ParaView
View Issue Details
0012360ParaView(No Category)public2011-07-12 11:412012-02-08 17:24
Burlen 
Utkarsh Ayachit 
normalminorhave not tried
closedfixed 
3.10 
3.12 
TBD
12360_fix_plugins_in_python
incorrect functionality
0012360: Plugin load order hides Surface LIC attributes in python
From a python script, the order in which the plugins are loaded affects the presence of LIC attributes. If the LIC plugin is loaded before other plugins the attributes are present. If it is loaded after then it's attributes aren't present.

The following python script illustrates the issue when run with pvbatch

# -*- coding: utf-8 -*-
try: paraview.simple
except: from paraview.simple import *
paraview.simple._DisableFirstRenderCameraReset()

slacPluginPath = '/work/ext/ParaView/PV3-3.10.0/bin/libSLACTools.so'
licPluginPath = '/work/ext/ParaView/PV3-3.10.0/bin/libSurfaceLIC.so'

showBug = 1

if (showBug):

  LoadPlugin(slacPluginPath, False, globals())
  LoadPlugin(slacPluginPath, False, globals())

  LoadPlugin(licPluginPath, False, globals())
  LoadPlugin(licPluginPath, True, globals())

else:

  LoadPlugin(licPluginPath, False, globals())
  LoadPlugin(licPluginPath,True,globals())

  LoadPlugin(slacPluginPath, False, globals())
  LoadPlugin(slacPluginPath, False, globals())

Cone()
rep = Show()
rep.LICStepSize = 12
No tags attached.
related to 0012415closed Sebastien Jourdain Loading a representation plugin after a representation has been created has no effect. 
Issue History
2011-07-12 11:41BurlenNew Issue
2011-07-27 21:08Utkarsh AyachitRelationship addedrelated to 0012415
2011-08-01 18:10Sebastien JourdainAssigned To => Sebastiennn Jourdain
2011-08-01 18:10Sebastien JourdainStatusbacklog => todo
2011-08-01 18:10Sebastien JourdainStatustodo => active development
2011-08-01 18:11Sebastien JourdainTopic Name => 12415-representation-plugin
2011-08-01 18:11Sebastien JourdainNote Added: 0027190
2011-08-01 18:11Sebastien JourdainStatusactive development => gatekeeper review
2011-08-01 18:11Sebastien JourdainResolutionopen => fixed
2011-08-04 18:08Utkarsh AyachitNote Added: 0027236
2011-08-05 10:52David PartykaNote Added: 0027261
2011-08-05 15:55Utkarsh AyachitStatusgatekeeper review => customer review
2011-08-05 15:55Utkarsh AyachitNote Added: 0027276
2011-08-12 23:40Utkarsh AyachitFixed in Version => 3.12
2011-09-12 10:16Utkarsh AyachitNote Added: 0027469
2011-09-12 10:16Utkarsh AyachitStatuscustomer review => backlog
2011-09-12 10:16Utkarsh AyachitResolutionfixed => reopened
2011-09-12 10:48Utkarsh AyachitTopic Name12415-representation-plugin => 12360_fix_plugins_in_python
2011-09-12 10:48Utkarsh AyachitNote Added: 0027470
2011-09-12 10:48Utkarsh AyachitStatusbacklog => gatekeeper review
2011-09-12 10:48Utkarsh AyachitFixed in Version3.12 => git-next
2011-09-12 10:48Utkarsh AyachitResolutionreopened => fixed
2011-09-12 10:48Utkarsh AyachitAssigned ToSebastiennn Jourdain => Utkarsh Ayachit
2011-09-12 10:48Utkarsh AyachitNote Added: 0027471
2011-09-16 14:35David PartykaStatusgatekeeper review => customer review
2011-11-11 17:08Utkarsh AyachitFixed in Versiongit-next => 3.12
2012-02-08 17:24Utkarsh AyachitStatuscustomer review => closed
2012-02-08 17:24Utkarsh AyachitNote Added: 0028140

Notes
(0027190)
Sebastien Jourdain   
2011-08-01 18:11   
Did not try, that specific code to highlight this issue. But this should be solved in the topic.
(0027236)
Utkarsh Ayachit   
2011-08-04 18:08   
Developer note: Issue slated for gatekeeper review on Aug 7, 2 PM EDT.
(0027261)
David Partyka   
2011-08-05 10:52   
Couldn't get script to run but verified from the gui by loading SurfaceLIC plugin.
(0027276)
Utkarsh Ayachit   
2011-08-05 15:55   
Merged into master (if applicable)
(0027469)
Utkarsh Ayachit   
2011-09-12 10:16   
Still doesn't work. Reopening.
(0027470)
Utkarsh Ayachit   
2011-09-12 10:48   
commit 86b4b7a7e149bd11506da39458dfcdd5e4ee215a
Author: Utkarsh Ayachit <utkarsh.ayachit@kitware.com>
Date: Mon Sep 12 10:21:22 2011 -0400

    BUG 0012415: Plugins updating proxy definitions didn't work from pvpython.
    
    Things worked as expected when new proxy definitions were added, but when a
    proxy defintion was updated, the Python Proxy object didn't not reflect the
    properties. The problem was that the prototypes created by servermanager.py
    were never cleaned up even when definitions were updated.
    
    Fixed by fixing vtkSIProxyDefinitionManager to fire events in a more well
    defined manner. Then fixing vtkSMProxyManager to use those events to clean u
    any obsolete prototype instantiations. Now the python code correctly sees th
    new prototype and updates the Python Proxies accordingly.
(0027471)
Utkarsh Ayachit   
2011-09-12 10:48   
commit 0e4f9e2d3e9cc7e16eebe5718a5d2e507fe2acf2
Author: Utkarsh Ayachit <utkarsh.ayachit@kitware.com>
Date: Mon Sep 12 10:45:20 2011 -0400

    Added a test (Plugins-ServerManagerPython) to test plugin loading in Python.
(0028140)
Utkarsh Ayachit   
2012-02-08 17:24   
Closing bugs sitting in "customer review" for a long time.