JunoLab / Juno.jl

MIT License
145 stars 23 forks source link

[BUG] Error showing value of type Plots.Plot{Plots.GRBackend} #638

Open rczerminski-valo opened 3 years ago

rczerminski-valo commented 3 years ago

Please search existing issues to avoid duplicates.

Details

julia> versioninfo()
Julia Version 1.5.4
Commit 69fcb5745b (2021-03-11 19:13 UTC)
Platform Info:
  OS: macOS (x86_64-apple-darwin18.7.0)
  CPU: Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-9.0.1 (ORCJIT, skylake)
Environment:
  JULIA_NUM_THREADS = 6
  JULIA_PKG_SERVER = pkg.juliahub.com
  JULIA_DEPOT_PATH = /Users/ryszard/.julia:/Applications/JuliaPro-1.5.4-1.app/Contents/Resources/julia/Contents/Resources/julia/local/share/julia:/Applications/JuliaPro-1.5.4-1.app/Contents/Resources/julia/Contents/Resources/julia/share/julia
  JULIA_LOAD_PATH = /Users/ryszard/.julia/environments/JuliaPro_v1.5.4-1:@:@v#.#:@stdlib

Steps to reproduce

  1. x = y = -1:0.01:1; contour(x, y, (x,y) -> x^2 + y^2)
  2. OR: x = 0:0.01:2pi; plot(x, sin.(x))

full error log:

julia> x = y = -1:0.01:1; contour(x, y, (x,y) -> x^2 + y^2)
Error showing value of type Plots.Plot{Plots.GRBackend}:
ERROR: SystemError: opening file "/var/folders/pr/b6swc_cj5t147np9jdytzn9m0000gp/T/jl_6IzUqB.png": No such file or directory
Stacktrace:
 [1] systemerror(::String, ::Int32; extrainfo::Nothing) at ./error.jl:168
 [2] #systemerror#48 at ./error.jl:167 [inlined]
 [3] systemerror at ./error.jl:167 [inlined]
 [4] open(::String; lock::Bool, read::Nothing, write::Nothing, create::Nothing, truncate::Nothing, append::Nothing) at ./iostream.jl:284
 [5] open at ./iostream.jl:273 [inlined]
 [6] open(::Base.var"#296#297"{String}, ::String; kwargs::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}) at ./io.jl:323
 [7] open at ./io.jl:323 [inlined]
 [8] read at ./io.jl:410 [inlined]
 [9] _show(::IOContext{Base64.Base64EncodePipe}, ::MIME{Symbol("image/png")}, ::Plots.Plot{Plots.GRBackend}) at /Users/ryszard/.julia/packages/Plots/Awg62/src/backends/gr.jl:1964
 [10] _showjuno at /Users/ryszard/.julia/packages/Plots/Awg62/src/output.jl:273 [inlined]
 [11] showjuno(::IOContext{Base64.Base64EncodePipe}, ::MIME{Symbol("image/png")}, ::Plots.Plot{Plots.GRBackend}) at /Users/ryszard/.julia/packages/Plots/Awg62/src/output.jl:257
 [12] show(::IOContext{Base64.Base64EncodePipe}, ::MIME{Symbol("image/png")}, ::Plots.Plot{Plots.GRBackend}) at /Users/ryszard/.julia/packages/Plots/Awg62/src/output.jl:212
 [13] base64encode(::Function, ::MIME{Symbol("image/png")}, ::Vararg{Any,N} where N; context::IOContext{Base.GenericIOBuffer{Array{UInt8,1}}}) at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.5/Base64/src/encode.jl:208
 [14] _binstringmime at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.5/Base64/src/Base64.jl:46 [inlined]
 [15] stringmime(::MIME{Symbol("image/png")}, ::Plots.Plot{Plots.GRBackend}; context::IOContext{Base.GenericIOBuffer{Array{UInt8,1}}}) at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.5/Base64/src/Base64.jl:43
 [16] stringmime(::String, ::Plots.Plot{Plots.GRBackend}; context::IOContext{Base.GenericIOBuffer{Array{UInt8,1}}}) at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.5/Base64/src/Base64.jl:44
 [17] displayinplotpane(::Plots.Plot{Plots.GRBackend}) at /Users/ryszard/.julia/packages/Atom/BPtI0/src/display/showdisplay.jl:84
 [18] display(::Atom.JunoDisplay, ::Plots.Plot{Plots.GRBackend}) at /Users/ryszard/.julia/packages/Atom/BPtI0/src/display/showdisplay.jl:118
 [19] display(::Any) at ./multimedia.jl:328
 [20] #invokelatest#1 at ./essentials.jl:710 [inlined]
 [21] invokelatest at ./essentials.jl:709 [inlined]
 [22] print_response(::IO, ::Any, ::Bool, ::Bool, ::Any) at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.5/REPL/src/REPL.jl:238
 [23] print_response(::REPL.AbstractREPL, ::Any, ::Bool, ::Bool) at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.5/REPL/src/REPL.jl:223
 [24] (::REPL.var"#do_respond#54"{Bool,Bool,Atom.var"#246#247",REPL.LineEditREPL,REPL.LineEdit.Prompt})(::Any, ::Any, ::Any) at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.5/REPL/src/REPL.jl:822
 [25] #invokelatest#1 at ./essentials.jl:710 [inlined]
 [26] invokelatest at ./essentials.jl:709 [inlined]
 [27] run_interface(::REPL.Terminals.TextTerminal, ::REPL.LineEdit.ModalInterface, ::REPL.LineEdit.MIState) at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.5/REPL/src/LineEdit.jl:2355
 [28] run_frontend(::REPL.LineEditREPL, ::REPL.REPLBackendRef) at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.5/REPL/src/REPL.jl:1144
 [29] (::REPL.var"#38#42"{REPL.LineEditREPL,REPL.REPLBackendRef})() at ./task.jl:356

NOTE: the same command works fine in "regular" julia 1.5.3

julia> versioninfo()
Julia Version 1.5.3
Commit 788b2c77c1 (2020-11-09 13:37 UTC)
Platform Info:
  OS: macOS (x86_64-apple-darwin18.7.0)
  CPU: Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-9.0.1 (ORCJIT, skylake)

Screen shot

Screen Shot 2021-08-15 at 3 32 20 PM