The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Inactive » comp.soft-sys.math.mathematica

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Frontend graphics memory leak
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  
Roger Wilson

Posts: 16
Registered: 10/23/10
Frontend graphics memory leak
Posted: Mar 29, 2012 4:02 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

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?

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.