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?