Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash with AppendonlyMarker #2416

Closed
fonsp opened this issue Dec 15, 2022 · 1 comment · Fixed by #2501
Closed

Crash with AppendonlyMarker #2416

fonsp opened this issue Dec 15, 2022 · 1 comment · Fixed by #2501
Labels
backend Concerning the julia server and runtime bug Something isn't working

Comments

@fonsp
Copy link
Owner

fonsp commented Dec 15, 2022

My notebook crashed today running some cells, (triggered by the file watching cell)

Notebook after crashing (stuck in this state): https://gist.github.com/fonsp/cbb184f87323184afbbeb372eb5727e5

┌ Error: Failed to relay self-update
│   exception =
│    Not really supposed to diff AppendonlyMarker with the original being longer than the next version (you know, 'append only' and al)
│    Stacktrace:
│      [1] diff(a::Pluto.FirebaseyUtils.AppendonlyMarker{Dict{String, Any}}, b::Pluto.FirebaseyUtils.AppendonlyMarker{Dict{String, Any}})
│        @ Pluto.FirebaseyUtils ~/.julia/packages/Pluto/JxOQL/src/webserver/FirebaseyUtils.jl:185
│      [2] diff(o1::Dict{String, Any}, o2::Dict{String, Any}) (repeats 3 times)
│        @ Pluto.Firebasey ~/.julia/packages/Pluto/JxOQL/src/webserver/Firebasey.jl:378
│      [3] send_notebook_changes!(🙋::Pluto.ClientRequest; commentary::Nothing, skip_send::Bool)
│        @ Pluto ~/.julia/packages/Pluto/JxOQL/src/webserver/Dynamic.jl:183
│      [4] send_notebook_changes!
│        @ ~/.julia/packages/Pluto/JxOQL/src/webserver/Dynamic.jl:178 [inlined]
│      [5] #242
│        @ ~/.julia/packages/Pluto/JxOQL/src/evaluation/Run.jl:137 [inlined]
│      [6] #32
│        @ ~/.julia/packages/Pluto/JxOQL/src/evaluation/Throttled.jl:23 [inlined]
│      [7] lock(f::Pluto.var"#32#35"{Pluto.var"#242#248"{Pluto.ServerSession, Pluto.Notebook}, Base.RefValue{Bool}}, l::ReentrantLock)
│        @ Base ./lock.jl:185
│      [8] flush
│        @ ~/.julia/packages/Pluto/JxOQL/src/evaluation/Throttled.jl:21 [inlined]
│      [9] throttled_f
│        @ ~/.julia/packages/Pluto/JxOQL/src/evaluation/Throttled.jl:41 [inlined]
│     [10] run_reactive_core!(session::Pluto.ServerSession, notebook::Pluto.Notebook, old_topology::Pluto.NotebookTopology, new_topology::Pluto.NotebookTopology, roots::Vector{Pluto.Cell}; save::Bool, deletion_hook::typeof(Pluto.WorkspaceManager.move_vars), user_requested_run::Bool, already_run::Vector{Pluto.Cell}, bond_value_pairs::Base.Iterators.Zip{Tuple{Vector{Symbol}, Vector{Any}}})
│        @ Pluto ~/.julia/packages/Pluto/JxOQL/src/evaluation/Run.jl:167
│     [11] #237
│        @ ~/.julia/packages/Pluto/JxOQL/src/evaluation/Run.jl:22 [inlined]
│     [12] withtoken(f::Pluto.var"#237#238"{Bool, typeof(Pluto.WorkspaceManager.move_vars), Bool, Base.Iterators.Zip{Tuple{Vector{Symbol}, Vector{Any}}}, Pluto.ServerSession, Pluto.Notebook, Pluto.NotebookTopology, Pluto.NotebookTopology, Vector{Pluto.Cell}}, token::Pluto.Token)
│        @ Pluto ~/.julia/packages/Pluto/JxOQL/src/evaluation/Tokens.jl:19
│     [13] #run_reactive!#236
│        @ ~/.julia/packages/Pluto/JxOQL/src/evaluation/Run.jl:21 [inlined]
│     [14] start_relaying_self_updates(::Tuple{Pluto.ServerSession, Pluto.Notebook}, run_channel::Distributed.RemoteChannel{Channel{Base.UUID}})
│        @ Pluto.WorkspaceManager ~/.julia/packages/Pluto/JxOQL/src/evaluation/WorkspaceManager.jl:143
│     [15] (::Pluto.WorkspaceManager.var"#4#6"{Pluto.Notebook, Pluto.ServerSession, Distributed.RemoteChannel{Channel{Base.UUID}}})()
│        @ Pluto.WorkspaceManager ./task.jl:484
└ @ Pluto.WorkspaceManager ~/.julia/packages/Pluto/JxOQL/src/evaluation/WorkspaceManager.jl:148
@fonsp
Copy link
Owner Author

fonsp commented Dec 22, 2022

This might have surfaced because of the additional async update messages from #2399

@fonsp fonsp added bug Something isn't working backend Concerning the julia server and runtime labels Dec 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Concerning the julia server and runtime bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant