SuperDARN / pydarn

Python library for visualizing SuperDARN Data
GNU Lesser General Public License v3.0
31 stars 11 forks source link

BUG: Memory leak with matplotlib `MacOSX` backend, version 3.8.0 and below #370

Closed billetd closed 7 months ago

billetd commented 7 months ago

BUG

This is more of a matplotlib problem than pyDARN, but it looks like it was very easy to get a substantial memory leak if generating lots of pyDARN plots on a mac without changing the default matplotlib backend, if not using matplotlib version 3.8.0 or above.

More discussion here:

https://github.com/matplotlib/matplotlib/pull/23059

and here: https://github.com/matplotlib/matplotlib/issues/19769/

If an older matplotlib version is required for some reason, you can do:

import matplotlib
matplotlib.use('agg')

Priority