fonsp / Pluto.jl

🎈 Simple reactive notebooks for Julia
https://plutojl.org/
MIT License
4.92k stars 284 forks source link

Exception when stopping Pluto #127

Closed karlwessel closed 4 years ago

karlwessel commented 4 years ago

Here is a different Exception I just got when stopping Pluto. I think this time it was because one of the notebooks was still executing cells.

InterruptException:
Stacktrace:
 [1] grow_to!(::Dict{Symbol,Union{Nothing, MIME{Symbol("application/vnd.pluto.stacktrace+json")}}}, ::Tuple{Pair{Symbol,MIME{Symbol("application/vnd.pluto.stacktrace+json")}},Pair{Symbol,Nothing},Pair{Symbol,String},Pair{Symbol,Missing},Pair{Symbol,Bool},Pair{Symbol,Nothing}}, ::Int64) at ./dict.jl:157
 [2] grow_to!(::Dict{Symbol,MIME{Symbol("application/vnd.pluto.stacktrace+json")}}, ::Tuple{Pair{Symbol,MIME{Symbol("application/vnd.pluto.stacktrace+json")}},Pair{Symbol,Nothing},Pair{Symbol,String},Pair{Symbol,Missing},Pair{Symbol,Bool},Pair{Symbol,Nothing}}, ::Int64) at ./dict.jl:159
 [3] grow_to!(::Dict{Any,Any}, ::Tuple{Pair{Symbol,MIME{Symbol("application/vnd.pluto.stacktrace+json")}},Pair{Symbol,Nothing},Pair{Symbol,String},Pair{Symbol,Missing},Pair{Symbol,Bool},Pair{Symbol,Nothing}}) at ./dict.jl:144
 [4] dict_with_eltype at ./abstractdict.jl:543 [inlined]
 [5] Dict(::Tuple{Pair{Symbol,MIME{Symbol("application/vnd.pluto.stacktrace+json")}},Pair{Symbol,Nothing},Pair{Symbol,String},Pair{Symbol,Missing},Pair{Symbol,Bool},Pair{Symbol,Nothing}}) at ./dict.jl:128
 [6] Dict(::Pair{Symbol,MIME{Symbol("application/vnd.pluto.stacktrace+json")}}, ::Vararg{Pair,N} where N) at ./dict.jl:124
 [7] clientupdate_cell_output(::Notebook, ::Cell; initiator::Missing) at /home/karl/Pluto.jl/src/notebookserver/Client.jl:33
 [8] clientupdate_cell_output at /home/karl/Pluto.jl/src/notebookserver/Client.jl:31 [inlined]
 [9] run_reactive!(::Notebook, ::Array{Cell,1}; deletion_hook::Function) at /home/karl/Pluto.jl/src/react/Run.jl:56
 [10] run_reactive! at /home/karl/Pluto.jl/src/react/Run.jl:8 [inlined]
 [11] macro expansion at /home/karl/Pluto.jl/src/react/Run.jl:70 [inlined]
 [12] (::Pluto.var"#55#56"{Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}},Notebook,Array{Cell,1}})() at ./task.jl:358

Like before: Since I was exiting Pluto anyway, this isn't a serious problem, but I wanted to record it, in case its easily fixable or points to some bigger issue.

fonsp commented 4 years ago

Thanks! This is actually intended behaviour - Pluto throws InterruptExceptions to (i.e. interrupts) all workers when you exit. But you're right for pointing this out - this error print should be hidden.

fonsp commented 4 years ago

This is too difficult for me to fix 🙃