Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2012

[Date Index] [Thread Index] [Author Index]

Search the Archive

Frontend graphics memory leak

  • To: mathgroup at smc.vnet.net
  • Subject: [mg125695] Frontend graphics memory leak
  • From: Roger Wilson <rogerhw999 at gmail.com>
  • Date: Thu, 29 Mar 2012 02:59:36 -0500 (EST)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com

When using Rasterize on a Graphics expression composed of many differently coloured Graphics objects memory is allocated in the frontend which is then not released or reused when a similar graphic object is created.

Rasterize (or its underlying machinery) is used underneath Export when a graphic object is exported using Export, for instance when creating a jpg file.

In the example given 4Mb of memory is allocated each cycle but not freed.  Eventually the frontend will crash.

Do[Sleep[3];img = Rasterize[Graphics[Table[{ColorData["TemperatureMap"][RandomReal[]],Circle[{RandomReal[],RandomReal[]},1.0]},{1000}]]],{1000}];

Does anyone know if this is a known bug and if there are any workarounds pending a fix from Wolfram?



  • Prev by Date: Schaums outline Mathematica 2nd ed, prob. 11.3 help
  • Next by Date: Re: Manipulate[Plot[Evaluate[expr]]]
  • Previous by thread: Re: Schaums outline Mathematica 2nd ed, prob. 11.3 help
  • Next by thread: reduce size of eps files of 3D figures