I wanted to make a movie, the plan was to use Matplotlib to make the frames and then stitch them together using ffmpeg. The problem I had was that I’d make about 1000 frames and then it would crash with this rather obtuse error:
I suspected it was leaking memory and running the script on a bigger machine confirmed it. It turns out you have to be explicit rather than implicit when defining your figure/axes. Bit of annoying bug really. To better explain, basically I had:
And what I needed was:
My thanks to Jean-François Exbrayat for pointing out the bug.
NB: this was with Matplotlib 1.1.0.In category: python