Error : "read: Connection reset by peer send: Broken pipe" during animation

I get the following strange error when trying the following simple animation task.

using Plots;

plt = plot3d( 1, xlim = (0, 1), ylim = (0, 1), zlim = (0, 1), title = "Lorenz Attractor", marker = 2, );
N=1000;
A = rand(Float64, 3,N);
anim = @animate for n in 1:N
    #display(A[:,n]);
    push!(plt, A[1,n], A[2,n], A[3,n]);
end every 10
#savefig(plt, "t.gif");
gif(anim, "t.gif");

The console outputs

read: Connection reset by peer
send: Broken pipe
read: Connection reset by peer
send: Broken pipe
read: Connection reset by peer
send: Broken pipe
read: Connection reset by peer
send: Broken pipe
read: Connection reset by peer
send: Broken pipe
read: Connection reset by peer
send: Broken pipe
read: Connection reset by peer
send: Broken pipe
read: Connection reset by peer
send: Broken pipe
read: Connection reset by peer
send: Broken pipe
read: Connection reset by peer
send: Broken pipe
read: Connection reset by peer
send: Broken pipe
read: Connection reset by peer
send: Broken pipe

several times before finishing the task. If the iteration N is too large, it sometimes terminates in the middle.
I am using Julia version 1.5.3 on Ubuntu. I never encounter this error on a Windows platform. What connection is broken here ?

I’m getting the same error on 1.5.3 on Fedora using savefig. It’s not very repeatable though, as sometimes multiple savefig statements give me the error, sometimes only a single one gives me the error, and sometimes I don’t get any errors.

For what it’s worth, I’ve tried deleting all of the images my code creates, and when I run it, it still generates the figures correctly even though it gives me the error message. This happens both calling julia directly from the terminal and in VS Code.

1 Like

I see… thank you for the input !