Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#690 strange behavior when using python graph.clear()

open
nobody
None
5
2013-02-25
2013-02-25
Bruno Pinaud
No

Below, is the trace obtained after :
- importing a grid approximation and creating around ten metanodes.
- opened the interactive Python console and use graph.clear().
The strange thing is that each metanode are displayed in the opened views before they are deleted. So graph.clear() is really slow...

Perspective running in standalone mode
Deleting GraphPropertiesModel< N3tlp15BooleanPropertyE *>
Deleting GraphPropertiesModel< N3tlp17PropertyInterfaceE *>
Deleting GraphPropertiesModel< N3tlp17PropertyInterfaceE *>
Deleting GraphPropertiesModel< N3tlp15BooleanPropertyE *>
Deleting GraphPropertiesModel< N3tlp17PropertyInterfaceE *>
Deleting GraphPropertiesModel< N3tlp17PropertyInterfaceE *>
Setting graph Grid Approximation - 'nodes'=200 'degree'=10 'long edge'=false for panel "Spreadsheet view"
Setting graph Grid Approximation - 'nodes'=200 'degree'=10 'long edge'=false for panel "Node Link Diagram view"
[Group] Grouping can not be done on the root graph. A subgraph has automatically been created
Deleting GraphPropertiesModel< N3tlp15BooleanPropertyE *>
Deleting GraphPropertiesModel< N3tlp17PropertyInterfaceE *>
Setting graph groups for panel "Spreadsheet view"
selecting graph groups in view
Setting graph groups for panel "Node Link Diagram view"
selecting graph groups in view
selecting graph grp_00002 in view
Deleting GraphPropertiesModel< N3tlp15BooleanPropertyE *>
Deleting GraphPropertiesModel< N3tlp17PropertyInterfaceE *>
Setting graph grp_00002 for panel "Spreadsheet view"
selecting graph grp_00002 in view
Setting graph grp_00002 for panel "Node Link Diagram view"
selecting graph grp_00003 in view
Deleting GraphPropertiesModel< N3tlp15BooleanPropertyE *>
Deleting GraphPropertiesModel< N3tlp17PropertyInterfaceE *>
Setting graph grp_00003 for panel "Spreadsheet view"
selecting graph grp_00003 in view
Setting graph grp_00003 for panel "Node Link Diagram view"
Tulip Warning : A graph pointed by metanode(s) has been deleted, the metanode(s) pointer has been set to zero in order to prevent segmentation fault
selecting graph grp_00004 in view
Deleting GraphPropertiesModel< N3tlp15BooleanPropertyE *>
Deleting GraphPropertiesModel< N3tlp17PropertyInterfaceE *>
Setting graph grp_00004 for panel "Spreadsheet view"
selecting graph grp_00004 in view
Setting graph grp_00004 for panel "Node Link Diagram view"
Tulip Warning : A graph pointed by metanode(s) has been deleted, the metanode(s) pointer has been set to zero in order to prevent segmentation fault
selecting graph grp_00005 in view
Deleting GraphPropertiesModel< N3tlp15BooleanPropertyE *>
Deleting GraphPropertiesModel< N3tlp17PropertyInterfaceE *>
Setting graph grp_00005 for panel "Spreadsheet view"
selecting graph grp_00005 in view
Setting graph grp_00005 for panel "Node Link Diagram view"
Tulip Warning : A graph pointed by metanode(s) has been deleted, the metanode(s) pointer has been set to zero in order to prevent segmentation fault
selecting graph grp_00006 in view
Deleting GraphPropertiesModel< N3tlp15BooleanPropertyE *>
Deleting GraphPropertiesModel< N3tlp17PropertyInterfaceE *>
Setting graph grp_00006 for panel "Spreadsheet view"
selecting graph grp_00006 in view
Setting graph grp_00006 for panel "Node Link Diagram view"
Tulip Warning : A graph pointed by metanode(s) has been deleted, the metanode(s) pointer has been set to zero in order to prevent segmentation fault
selecting graph grp_00007 in view
Deleting GraphPropertiesModel< N3tlp15BooleanPropertyE *>
Deleting GraphPropertiesModel< N3tlp17PropertyInterfaceE *>
Setting graph grp_00007 for panel "Spreadsheet view"
selecting graph grp_00007 in view
Setting graph grp_00007 for panel "Node Link Diagram view"
Tulip Warning : A graph pointed by metanode(s) has been deleted, the metanode(s) pointer has been set to zero in order to prevent segmentation fault
selecting graph grp_00008 in view
Deleting GraphPropertiesModel< N3tlp15BooleanPropertyE *>
Deleting GraphPropertiesModel< N3tlp17PropertyInterfaceE *>
Setting graph grp_00008 for panel "Spreadsheet view"
selecting graph grp_00008 in view
Setting graph grp_00008 for panel "Node Link Diagram view"
Tulip Warning : A graph pointed by metanode(s) has been deleted, the metanode(s) pointer has been set to zero in order to prevent segmentation fault
selecting graph grp_00009 in view
Deleting GraphPropertiesModel< N3tlp15BooleanPropertyE *>
Deleting GraphPropertiesModel< N3tlp17PropertyInterfaceE *>
Setting graph grp_00009 for panel "Spreadsheet view"
selecting graph grp_00009 in view
Setting graph grp_00009 for panel "Node Link Diagram view"
Tulip Warning : A graph pointed by metanode(s) has been deleted, the metanode(s) pointer has been set to zero in order to prevent segmentation fault
selecting graph grp_00010 in view
Deleting GraphPropertiesModel< N3tlp15BooleanPropertyE *>
Deleting GraphPropertiesModel< N3tlp17PropertyInterfaceE *>
Setting graph grp_00010 for panel "Spreadsheet view"
selecting graph grp_00010 in view
Setting graph grp_00010 for panel "Node Link Diagram view"
Tulip Warning : A graph pointed by metanode(s) has been deleted, the metanode(s) pointer has been set to zero in order to prevent segmentation fault
selecting graph grp_00011 in view
Deleting GraphPropertiesModel< N3tlp15BooleanPropertyE *>
Deleting GraphPropertiesModel< N3tlp17PropertyInterfaceE *>
Setting graph grp_00011 for panel "Spreadsheet view"
selecting graph grp_00011 in view
Setting graph grp_00011 for panel "Node Link Diagram view"
Tulip Warning : A graph pointed by metanode(s) has been deleted, the metanode(s) pointer has been set to zero in order to prevent segmentation fault
selecting graph grp_00012 in view
Deleting GraphPropertiesModel< N3tlp15BooleanPropertyE *>
Deleting GraphPropertiesModel< N3tlp17PropertyInterfaceE *>
Setting graph grp_00012 for panel "Spreadsheet view"
selecting graph grp_00012 in view
Setting graph grp_00012 for panel "Node Link Diagram view"
Tulip Warning : A graph pointed by metanode(s) has been deleted, the metanode(s) pointer has been set to zero in order to prevent segmentation fault
selecting graph grp_00013 in view
Deleting GraphPropertiesModel< N3tlp15BooleanPropertyE *>
Deleting GraphPropertiesModel< N3tlp17PropertyInterfaceE *>
Setting graph grp_00013 for panel "Spreadsheet view"
selecting graph grp_00013 in view
Setting graph grp_00013 for panel "Node Link Diagram view"
Tulip Warning : A graph pointed by metanode(s) has been deleted, the metanode(s) pointer has been set to zero in order to prevent segmentation fault
selecting graph Grid Approximation - 'nodes'=200 'degree'=10 'long edge'=false in view
Deleting GraphPropertiesModel< N3tlp15BooleanPropertyE *>
Deleting GraphPropertiesModel< N3tlp17PropertyInterfaceE *>
Setting graph Grid Approximation - 'nodes'=200 'degree'=10 'long edge'=false for panel "Spreadsheet view"
selecting graph Grid Approximation - 'nodes'=200 'degree'=10 'long edge'=false in view
Setting graph Grid Approximation - 'nodes'=200 'degree'=10 'long edge'=false for panel "Node Link Diagram view"
Tulip Warning : A graph pointed by metanode(s) has been deleted, the metanode(s) pointer has been set to zero in order to prevent segmentation fault

Discussion