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

**URL:** https://discourse.julialang.org/t/error-read-connection-reset-by-peer-send-broken-pipe-during-animation/52552
**Category:** General Usage
**Created:** [December 29, 2020, 4:33am UTC](https://discourse.julialang.org/t/error-read-connection-reset-by-peer-send-broken-pipe-during-animation/52552 "2020-12-29T04:33:46Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![iamsuddhasattwa](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/iamsuddhasattwa/32/7441_2.png) [@iamsuddhasattwa](https://discourse.julialang.org/u/iamsuddhasattwa)
#### Post date: [December 29, 2020, 4:33am UTC](https://discourse.julialang.org/t/error-read-connection-reset-by-peer-send-broken-pipe-during-animation/52552/1 "2020-12-29T04:33:46Z")

</div>

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

```julia
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

```julia
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 ?

---

<div class="post-metadata">

### Author: ![zaen](https://avatars.discourse-cdn.com/v4/letter/z/f04885/32.png) [@zaen](https://discourse.julialang.org/u/zaen)
#### Post date: [January 31, 2021, 10:55pm UTC](https://discourse.julialang.org/t/error-read-connection-reset-by-peer-send-broken-pipe-during-animation/52552/2 "2021-01-31T22:55:25Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![iamsuddhasattwa](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/iamsuddhasattwa/32/7441_2.png) [@iamsuddhasattwa](https://discourse.julialang.org/u/iamsuddhasattwa)
#### Post date: [February 15, 2021, 4:34pm UTC](https://discourse.julialang.org/t/error-read-connection-reset-by-peer-send-broken-pipe-during-animation/52552/3 "2021-02-15T16:34:05Z")

</div>

I see… thank you for the input !
