JLD.jl icon indicating copy to clipboard operation
JLD.jl copied to clipboard

JLD crashes REPL when trying to save figure

Open dominusmi opened this issue 7 years ago • 0 comments
trafficstars

Hi all, just noticed that JLD makes julia crash if you attempt to save a figure, it seems to go in an infinite error-loop. Minimal code:

using Plots, JLD
fig = Plots.plot([1,2], [3,4])
save("results/test.jld", "fig", fig)

I know it's odd to save a figure serialised to begin with, but it's part of the way I'm currently collecting data, it makes it very nice to have all the results in a dictionary of multiple levels, including some figures.

Running on Julia 0.6.2

dominusmi avatar Aug 13 '18 10:08 dominusmi