Makie won't display during record after update

Hello!

Yesterday I’ve updated Julia from 1.6.4 to 1.10.2 on two computers, one on Windows 11 and the other on Ubunto 20.4. After updating, I am unable to monitor my plot during record on either. For example, in the code below, the plot is shown only at “display(fig)” and then it disappears during recording.

Is there any options I might need to activate for it to hold the plot open?

Thank you very much!

using GLMakie
function dummyVideo()
fig = Figure()
axs = Axis(fig[1, 1])

fps = 30
tf = 5.0
frames = Int(tf*fps)
t = LinRange(0, tf, frames)

x = zeros(frames)
obsx = Observable(x)
lines!(axs, t, obsx)
display(fig)
record(fig, "dummy.mp4", 1:frames; framerate = fps) do i
    x[i] = sin(0.4π*i/fps)
    obsx[] = x    
end
return nothing

end

This seems to be a bug…
You need record(fig, ...; visible=true) AND display(fig)…
I think either of them should be enough!

1 Like

Everything is working perfectly now!
Thank you very much!