[vtkusers] VTK not releasing memory, including minimal example.

P.J.Schaafsma jetze.schaafsma at gmail.com
Sun Sep 23 14:22:19 EDT 2012


Mind you, the memory use itself is not the issue, it's the discrepancy! When
the scene is rendered before the actor, mapper, contour, and reader are
deleted, memory use during the event loop is >100Mb, if the pipeline is
executed (mapper is updated) but the actor is deleted before the first
render, memory use of the application is about 13Mb during the event loop.

In any case (output from python, because it prints more easily):

Volume.vti

vtkImageData (0x2d5dab0)
  Debug: Off
  Modified Time: 1564
  Reference Count: 2
  Registered Events: (none)
  Source: (none)
  Information: 0x2d5dc20
  Data Released: False
  Global Release Data: Off
  UpdateTime: 1565
  Release Data: Off
  UpdateExtent: Not Initialized
  UpdateExtent: 0, 255, 0, 229, 0, 255
  WholeExtent: 0, 255, 0, 229, 0, 255
  ExtentTranslator: (0x2d5fcc0)
  RequestExactExtent: Off
   Field Data:
    Debug: Off
    Modified Time: 1544
    Reference Count: 1
    Registered Events: (none)
    Number Of Arrays: 0
    Number Of Components: 0
    Number Of Tuples: 0
  Number Of Points: 15073280
  Number Of Cells: 14890725
  Cell Data:
    Debug: Off
    Modified Time: 1552
    Reference Count: 1
    Registered Events: (none)
    Number Of Arrays: 0
    Number Of Components: 0
    Number Of Tuples: 0
    Copy Tuple Flags: ( 1 1 1 1 1 0 1 )
    Interpolate Flags: ( 1 1 1 1 1 0 0 )
    Pass Through Flags: ( 1 1 1 1 1 1 1 )
    Scalars: (none)
    Vectors: (none)
    Normals: (none)
    TCoords: (none)
    Tensors: (none)
    GlobalIds: (none)
    PedigreeIds: (none)
  Point Data:
    Debug: Off
    Modified Time: 1559
    Reference Count: 1
    Registered Events: (none)
    Number Of Arrays: 1
    Array 0 name = MetaImage
    Number Of Components: 1
    Number Of Tuples: 15073280
    Copy Tuple Flags: ( 1 1 1 1 1 0 1 )
    Interpolate Flags: ( 1 1 1 1 1 0 0 )
    Pass Through Flags: ( 1 1 1 1 1 1 1 )
    Scalars: 
      Debug: Off
      Modified Time: 1556
      Reference Count: 1
      Registered Events: (none)
      Name: MetaImage
      Data type: short
      Size: 15073280
      MaxId: 15073279
      NumberOfComponents: 1
      Information: 0
      Name: MetaImage
      Number Of Components: 1
      Number Of Tuples: 15073280
      Size: 15073280
      MaxId: 15073279
      LookupTable: (none)
      Array: 0x7f2daec87010
    Vectors: (none)
    Normals: (none)
    TCoords: (none)
    Tensors: (none)
    GlobalIds: (none)
    PedigreeIds: (none)
  Bounds: 
    Xmin,Xmax: (-125, 124.023)
    Ymin,Ymax: (-858, -537.4)
    Zmin,Zmax: (-63, 186.023)
  Compute Time: 0
  ScalarType: 4
  NumberOfScalarComponents: 1
  Spacing: (0.976562, 1.4, 0.976562)
  Origin: (-125, -858, -63)
  Dimensions: (256, 230, 256)
  Increments: (0, 0, 0)
  Extent: (0, 255, 0, 229, 0, 255)


Contour output


vtkPolyData (0x2d73f00)
  Debug: Off
  Modified Time: 1854
  Reference Count: 2
  Registered Events: (none)
  Source: (none)
  Information: 0x2d74060
  Data Released: False
  Global Release Data: Off
  UpdateTime: 1855
  Release Data: Off
  UpdateExtent: Not Initialized
  Update Number Of Pieces: 1
  Update Piece: 0
  Update Ghost Level: 0
  WholeExtent: 0, 255, 0, 229, 0, 255
  MaximumNumberOfPieces: -1
  ExtentTranslator: (0x2d5fcc0)
  RequestExactExtent: Off
   Field Data:
    Debug: Off
    Modified Time: 1809
    Reference Count: 1
    Registered Events: (none)
    Number Of Arrays: 0
    Number Of Components: 0
    Number Of Tuples: 0
  Number Of Points: 292366
  Number Of Cells: 585104
  Cell Data:
    Debug: Off
    Modified Time: 1817
    Reference Count: 1
    Registered Events: (none)
    Number Of Arrays: 0
    Number Of Components: 0
    Number Of Tuples: 0
    Copy Tuple Flags: ( 1 1 1 1 1 0 1 )
    Interpolate Flags: ( 1 1 1 1 1 0 0 )
    Pass Through Flags: ( 1 1 1 1 1 1 1 )
    Scalars: (none)
    Vectors: (none)
    Normals: (none)
    TCoords: (none)
    Tensors: (none)
    GlobalIds: (none)
    PedigreeIds: (none)
  Point Data:
    Debug: Off
    Modified Time: 1854
    Reference Count: 1
    Registered Events: (none)
    Number Of Arrays: 2
    Array 0 name = MetaImage
    Array 1 name = Normals
    Number Of Components: 4
    Number Of Tuples: 292366
    Copy Tuple Flags: ( 0 1 1 1 1 1 1 )
    Interpolate Flags: ( 0 1 1 1 1 1 1 )
    Pass Through Flags: ( 0 1 1 1 1 1 1 )
    Scalars: 
      Debug: Off
      Modified Time: 1848
      Reference Count: 1
      Registered Events: (none)
      Name: MetaImage
      Data type: float
      Size: 292366
      MaxId: 292365
      NumberOfComponents: 1
      Information: 0
      Name: MetaImage
      Number Of Components: 1
      Number Of Tuples: 292366
      Size: 292366
      MaxId: 292365
      LookupTable: (none)
      Array: 0x7f2dae8c1010
    Vectors: (none)
    Normals: 
      Debug: Off
      Modified Time: 1844
      Reference Count: 1
      Registered Events: (none)
      Name: Normals
      Data type: float
      Size: 877098
      MaxId: 877097
      NumberOfComponents: 3
      Information: 0
      Name: Normals
      Number Of Components: 3
      Number Of Tuples: 292366
      Size: 877098
      MaxId: 877097
      LookupTable: (none)
      Array: 0x7f2dac9f3010
    TCoords: (none)
    Tensors: (none)
    GlobalIds: (none)
    PedigreeIds: (none)
  Bounds: 
    Xmin,Xmax: (-105.346, 123.589)
    Ymin,Ymax: (-858, -537.4)
    Zmin,Zmax: (-24.3793, 179.238)
  Compute Time: 1870
  Number Of Points: 292366
  Point Coordinates: 0x2d70120
  Locator: 0
  Number Of Vertices: 0
  Number Of Lines: 0
  Number Of Polygons: 585104
  Number Of Triangle Strips: 0
  Number Of Pieces: 1
  Piece: 0
  Ghost Level: 0




--
View this message in context: http://vtk.1045678.n5.nabble.com/VTK-not-releasing-memory-including-minimal-example-tp5716258p5716265.html
Sent from the VTK - Users mailing list archive at Nabble.com.



More information about the vtkusers mailing list