Plots.jl: Broken pipe, after first successful plot

Created on 12 Mar 2020  路  4Comments  路  Source: JuliaPlots/Plots.jl

julia> plot(x, y)  # works, then close window, trivial two previous lines from tutorial omitted

julia> plot(x, y)
send: Broken pipe

julia> ENV["GKSwstype"] = "x11" # with or without this line doesn't matter.
"x11"

julia> plot(x, y)
send: Broken pipe
send: Broken pipe

I'm not sure if it's a clue to someone to get broken pipe twice. I DID see an issue here, and also at (linked from that one):

https://github.com/jheinen/GR.jl/issues/163

I haven't checked if this is only for GR, and possibly only on Linux (and Julia 1.3.1). Very possibly a duplicate. [EDIT: Still not sure, did killall julia, and still get this error, so not sure if that's the issue, multiple REPL(?!).]

Possibly, a better default backend needed, if GR problem (only).

GR bug

All 4 comments

FYI: I also reported a 32-bit Julia issue at JuliaDocs, in the form of a PR.

Can you give us the output of versioninfo()?

I have this issue as well, with the following behavior:

  • This occurs only in the VS Code plugin. The standalone julia REPL works fine.
  • Calling closeall() after closing a plot window fixes it.
  • EDIT: Using two standalone julia REPLs and plotting in both of them causes this issue as well

Plots version is v1.4.3.

julia> versioninfo()
Julia Version 1.4.2
Commit 44fa15b150* (2020-05-23 18:35 UTC)
Platform Info:
  OS: Linux (x86_64-pc-linux-gnu)
  CPU: Intel(R) Core(TM) i7-6700T CPU @ 2.80GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-8.0.1 (ORCJIT, skylake)
Environment:
  JULIA_NUM_THREADS = 4
  JULIA_EDITOR = vim

I had trouble running the Lorenz Attractor code shown here: http://docs.juliaplots.org/latest/

I was seeing "broken pipe"

I solved this by _closing the QT window_ before running the @gif step:

@gif for i=1:1500
    step!(attractor)
    push!(plt, attractor.x, attractor.y, attractor.z)
end every 10

This was in julia 1.5.1, popOS, using the REPL.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Cody-G picture Cody-G  路  3Comments

dancsi picture dancsi  路  4Comments

ereday picture ereday  路  3Comments

lstagner picture lstagner  路  5Comments

pkofod picture pkofod  路  3Comments