SunnySuite / Sunny.jl

Spin dynamics and generalization to SU(N) coherent states
Other
87 stars 19 forks source link

Occasional WGLMakie crashes inside VSCode panel #290

Closed kbarros closed 2 months ago

kbarros commented 2 months ago

WGLMakie plots inside the VSCode panel can occasionally crash. The error messages vary, one is shown below. If we can find a reliable way to reproduce the error, then the Makie team is ready to work on fixing it.

┌ Warning: Error in window event callback
│   exception =
│    Can't get three: Screen Session uninitialized. Not yet displayed? Session status: CLOSED
│    Can't do picking!
│    Stacktrace:
│      [1] error(s::String)
│        @ Base ./error.jl:35
│      [2] (::WGLMakie.var"#throw_error#16"{String})(status::String)
│        @ WGLMakie ~/.julia/packages/WGLMakie/7QQ6J/src/display.jl:197
│      [3] get_screen_session(screen::WGLMakie.Screen; timeout::Int64, error::String)
│        @ WGLMakie ~/.julia/packages/WGLMakie/7QQ6J/src/display.jl:205
│      [4] get_screen_session
│        @ ~/.julia/packages/WGLMakie/7QQ6J/src/display.jl:192 [inlined]
│      [5] pick_sorted(scene::Scene, screen::WGLMakie.Screen, xy::Point{2, Float32}, range::Int64)
│        @ WGLMakie ~/.julia/packages/WGLMakie/7QQ6J/src/picking.jl:51
│      [6] pick_sorted(scene::Scene, xy::Point{2, Float32}, range::Int64)
│        @ Makie ~/.julia/packages/Makie/rEu75/src/interaction/interactive_api.jl:124
│      [7] (::Makie.var"#1320#1321"{DataInspector, Scene})()
│        @ Makie ~/.julia/packages/Makie/rEu75/src/interaction/inspector.jl:306
│      [8] lock(f::Makie.var"#1320#1321"{DataInspector, Scene}, l::ReentrantLock)
│        @ Base ./lock.jl:232
│      [9] on_hover
│        @ ~/.julia/packages/Makie/rEu75/src/interaction/inspector.jl:301 [inlined]
│     [10] (::Makie.var"#1312#1316"{DataInspector})(::Tuple{Float64, Float64})
│        @ Makie ~/.julia/packages/Makie/rEu75/src/interaction/inspector.jl:281
│     [11] #invokelatest#2
│        @ ./essentials.jl:1043 [inlined]
│     [12] invokelatest
│        @ ./essentials.jl:1040 [inlined]
│     [13] notify
│        @ ~/.julia/packages/Observables/YdEbO/src/Observables.jl:206 [inlined]
│     [14] setindex!(observable::Observable, val::Any)
│        @ Observables ~/.julia/packages/Observables/YdEbO/src/Observables.jl:123
│     [15] (::WGLMakie.var"#60#62"{Dict{Any, Any}, Scene, Events})()
│        @ WGLMakie ~/.julia/packages/WGLMakie/7QQ6J/src/events.jl:57
└ @ WGLMakie ~/.julia/packages/WGLMakie/7QQ6J/src/events.jl:112
kbarros commented 2 months ago

Per Simon Danisch, several bugs have been fixed in WGLMakie, including timeout issues. Progress with DataInspector here: https://github.com/MakieOrg/Makie.jl/pull/4136.