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 » Software » comp.soft-sys.matlab

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

Topic: Memory leak in Matlab 2012a?
Replies: 6   Last Post: Jan 18, 2013 2:44 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Jesper Holm

Posts: 8
Registered: 10/11/12
Re: Memory leak in Matlab 2012a?
Posted: Jan 18, 2013 2:44 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hi Ernie,

The short answer is unfortunately 'NO'. I ended up removing all annotations from our figures since this was the only "quick fix" available. Rather annoying, but not critical for our product.

Our code is therefore currently not leaking memory but for safety I have added regular calls to the Matlab MEMORY function. If the Matlab memory usage exceeds a predefined maximum value the MCR executable will do a graceful exit and terminate (this seems to free the memory). A simple DOS batch script will then re-launch the MCR executable.

This is a really ugly solution but it's better than an unpredictable crash.

My hope is that Mathworks sooner or later provides a fix since they have confirmed the problem to exist in 2012a. If I (ever) find some time I would really like to do a more thorough analysis on 2012b and push Mathworks for a solution.

If you have more luck with 2012b please drop a note.

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.