Pluto.jl
Pluto.jl copied to clipboard
Memory leakage when using plotly() backend for plotting
When ploting for multiple times using Plots library, with plotly() backend, the RAM can go up to 6GB, and slows down everything. If I switch back to gr(), the problem disappear.
Pluto v0.12.20, Julia1.6.0-rc1, Chrome 87.0.4280.141 (Official Build) (64-bit)
I will try to add an example later.
This might be an issue of plotly(), I saw people discussing about it: https://community.plotly.com/t/memory-leak-when-calling-plotly-plot-in-loop-with-small-example-code/30919
plotly()

gr()

The code
# ╔═╡ fc3587f8-7333-11eb-119d-8377abc270cd
using Plots, PlutoUI
# ╔═╡ 01f66e9e-7334-11eb-2297-d1b74fd3aa03
plotly()
# ╔═╡ 04aa7e66-7334-11eb-25f5-39ee98a1e481
@bind clock Clock(0.01)
# ╔═╡ 14a299d4-7334-11eb-3d5b-714a6a0b5a18
let
clock
x = 1:1000
plot(x, randn(1000))
end
There seems nothing can be done in the pluto side. We can just close this issue? @fonsp
I came here to report what looks like a memory leak, and I'm using the PlotlyJS backend. I'm pretty sure that what I'm experiencing isn't just a PlotlyJS issue, because I've never seen anything remotely like it when using PlotlyJS through the REPL or interpreter. I would've noticed: symptoms include my browser crashing repeatedly and my system grinding to a halt because of intensive use of swap space.