rationalmatter / Juno-Issue-Tracker

Defect Tracker for Juno
78 stars 1 forks source link

Juno crashes with matplotlib figsize #367

Open rohithbv opened 1 year ago

rohithbv commented 1 year ago

Juno crashes while plotting a figure with custom width & height using matplotlib.

Steps to reproduce: Add the following line where the width & height of a figure is defined: plt.figure(figsize=(width,height))

Environment:

rohithbv commented 1 year ago

More details:

alexstaravoitau commented 1 year ago

Thanks for reporting @rohithbv. This is most likely an out-of-memory termination by the OS — the figsize is specified in inches, and with Matplotlib's default DPI of 100, this translates to a lot of pixels to manipulate and hold in memory. However, the app shouldn't crash either way, of course — I'll see how I can improve the error handling, and ideally report to the user when they are going outside the OS memory allowance.