I semi-frequently seem to try things using Makie that stops it from working. Just now, I set rowsize! and colsize!(fig.layout,1,Aspect(1,1.0)), which gave an error. Not a problem, I thought I’d just create a new figure and not do that, but I am unable to create a new figure without getting the same error popup. Is there a way to just “reset” Makie? My usual approach when I don’t know how to fix something is to just restart the whole julia process, which is obviously annoying. I understand there might be a specific way to fix this error (not immediately obvious to me), but I’d like something that just lets me reset all of Makie so I can just start fresh. Is that possible?
This is the error I get when trying to create a new figure:
julia> f = Figure()
Error showing value of type Figure:
ERROR: TaskFailedException
Stacktrace:
[1] wait
@ .\task.jl:349 [inlined]
[2] wait(x::GLMakie.Screen{GLFW.Window})
@ GLMakie C:\Users\username\.julia\packages\GLMakie\vf9WN\src\screen.jl:454
[3] #stop_renderloop!#71
@ C:\Users\username\.julia\packages\GLMakie\vf9WN\src\screen.jl:850 [inlined]
[4] stop_renderloop!
@ C:\Users\username\.julia\packages\GLMakie\vf9WN\src\screen.jl:840 [inlined]
[5] close(screen::GLMakie.Screen{GLFW.Window}; reuse::Bool)
@ GLMakie C:\Users\username\.julia\packages\GLMakie\vf9WN\src\screen.jl:626
[6] singleton_screen(debugging::Bool)
@ GLMakie C:\Users\username\.julia\packages\GLMakie\vf9WN\src\screen.jl:325
[7] GLMakie.Screen(scene::Scene, config::GLMakie.ScreenConfig; visible::Nothing, start_renderloop::Bool)
@ GLMakie C:\Users\username\.julia\packages\GLMakie\vf9WN\src\screen.jl:422
[8] GLMakie.Screen(scene::Scene, config::GLMakie.ScreenConfig)
@ GLMakie C:\Users\username\.julia\packages\GLMakie\vf9WN\src\screen.jl:421
[9] getscreen(::Module, ::Scene, ::Dict{Symbol, Any})
@ Makie C:\Users\username\.julia\packages\Makie\pCA2E\src\display.jl:427
[10] display(figlike::Figure; backend::Module, inline::Bool, update::Bool, screen_config::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
@ Makie C:\Users\username\.julia\packages\Makie\pCA2E\src\display.jl:165
[11] display(figlike::Figure)
@ Makie C:\Users\username\.julia\packages\Makie\pCA2E\src\display.jl:130
[12] #invokelatest#2
@ .\essentials.jl:816 [inlined]
[13] invokelatest
@ .\essentials.jl:813 [inlined]
[14] print_response(errio::IO, response::Any, show_value::Bool, have_color::Bool, specialdisplay::Union{Nothing, AbstractDisplay})
@ REPL C:\Users\username\.julia\juliaup\julia-1.9.2+0.x64.w64.mingw32\share\julia\stdlib\v1.9\REPL\src\REPL.jl:305
[15] (::REPL.var"#57#58"{REPL.LineEditREPL, Pair{Any, Bool}, Bool, Bool})(io::Any)
@ REPL C:\Users\username\.julia\juliaup\julia-1.9.2+0.x64.w64.mingw32\share\julia\stdlib\v1.9\REPL\src\REPL.jl:287
[16] with_repl_linfo(f::Any, repl::REPL.LineEditREPL)
@ REPL C:\Users\username\.julia\juliaup\julia-1.9.2+0.x64.w64.mingw32\share\julia\stdlib\v1.9\REPL\src\REPL.jl:557
[17] print_response(repl::REPL.AbstractREPL, response::Any, show_value::Bool, have_color::Bool)
@ REPL C:\Users\username\.julia\juliaup\julia-1.9.2+0.x64.w64.mingw32\share\julia\stdlib\v1.9\REPL\src\REPL.jl:285
[18] (::REPL.var"#do_respond#80"{Bool, Bool, REPL.var"#93#103"{REPL.LineEditREPL, REPL.REPLHistoryProvider}, REPL.LineEditREPL, REPL.LineEdit.Prompt})(s::REPL.LineEdit.MIState,
buf::Any, ok::Bool)
@ REPL C:\Users\username\.julia\juliaup\julia-1.9.2+0.x64.w64.mingw32\share\julia\stdlib\v1.9\REPL\src\REPL.jl:899
[19] (::VSCodeServer.var"#101#104"{REPL.var"#do_respond#80"{Bool, Bool, REPL.var"#93#103"{REPL.LineEditREPL, REPL.REPLHistoryProvider}, REPL.LineEditREPL, REPL.LineEdit.Prompt}})(mi::REPL.LineEdit.MIState, buf::IOBuffer, ok::Bool)
@ VSCodeServer c:\Users\username\.vscode\extensions\julialang.language-julia-1.65.2\scripts\packages\VSCodeServer\src\repl.jl:122
[20] #invokelatest#2
@ .\essentials.jl:816 [inlined]
[21] invokelatest
@ .\essentials.jl:813 [inlined]
[22] run_interface(terminal::REPL.Terminals.TextTerminal, m::REPL.LineEdit.ModalInterface, s::REPL.LineEdit.MIState)
@ REPL.LineEdit C:\Users\username\.julia\juliaup\julia-1.9.2+0.x64.w64.mingw32\share\julia\stdlib\v1.9\REPL\src\LineEdit.jl:2647
[23] run_frontend(repl::REPL.LineEditREPL, backend::REPL.REPLBackendRef)
@ REPL C:\Users\username\.julia\juliaup\julia-1.9.2+0.x64.w64.mingw32\share\julia\stdlib\v1.9\REPL\src\REPL.jl:1300
[24] (::REPL.var"#62#68"{REPL.LineEditREPL, REPL.REPLBackendRef})()
@ REPL .\task.jl:514
nested task error: Column 1 was given an Aspect size relative to row 1. This row's size could not be determined in time, therefore the layouting algorithm failed. This probably happened because you used an Aspect row and column size at the same time, which couldn't both be resolved.
Stacktrace:
[1] error(s::String)
@ Base .\error.jl:35
[2] (::GridLayoutBase.var"#68#86"{GridLayout, Vector{Bool}, Vector{Bool}, Vector{Float64}, Vector{Float64}})(::Tuple{Int64, Aspect})
@ GridLayoutBase C:\Users\username\.julia\packages\GridLayoutBase\AhEkU\src\gridlayout.jl:1367
[3] filterenum(f::GridLayoutBase.var"#68#86"{GridLayout, Vector{Bool}, Vector{Bool}, Vector{Float64}, Vector{Float64}}, T::Type, iter::Vector{Union{Aspect, Auto, Fixed, Relative}})
@ GridLayoutBase C:\Users\username\.julia\packages\GridLayoutBase\AhEkU\src\gridlayout.jl:1223
[4] compute_col_row_sizes(spaceforcolumns::Float32, spaceforrows::Float32, gl::GridLayout)
@ GridLayoutBase C:\Users\username\.julia\packages\GridLayoutBase\AhEkU\src\gridlayout.jl:1361
[5] compute_rowcols(gl::GridLayout, suggestedbbox::GeometryBasics.HyperRectangle{2, Float32})
@ GridLayoutBase C:\Users\username\.julia\packages\GridLayoutBase\AhEkU\src\gridlayout.jl:923
[6] align_to_bbox!(gl::GridLayout, suggestedbbox::GeometryBasics.HyperRectangle{2,
Float32})
@ GridLayoutBase C:\Users\username\.julia\packages\GridLayoutBase\AhEkU\src\gridlayout.jl:1069
[7] (::GridLayoutBase.var"#11#12"{GridLayout})(bbox::GeometryBasics.HyperRectangle{2, Float32})
@ GridLayoutBase C:\Users\username\.julia\packages\GridLayoutBase\AhEkU\src\gridlayout.jl:158
[8] #invokelatest#2
@ .\essentials.jl:816 [inlined]
[9] invokelatest
@ .\essentials.jl:813 [inlined]
[10] notify
@ C:\Users\username\.julia\packages\Observables\YdEbO\src\Observables.jl:206 [inlined]
[11] setindex!(observable::Observable, val::Any)
@ Observables C:\Users\username\.julia\packages\Observables\YdEbO\src\Observables.jl:123
[12] update_computedbbox!(computedbbox::Observable{GeometryBasics.HyperRectangle{2,
Float32}}, suggestedbbox::GeometryBasics.HyperRectangle{2, Float32}, alignment::Tuple{Float32, Float32}, reporteddimensions::GridLayoutBase.Dimensions, alignmode::Inside, protrusions::GridLayoutBase.RectSides{Float32}, sizeattrs::Observable{Tuple{Union{Nothing, Float32, Auto, Fixed, Relative}, Union{Nothing, Float32, Auto, Fixed, Relative}}}, autosizeobservable::Observable{Tuple{Union{Nothing, Float32}, Union{Nothing, Float32}}})
@ GridLayoutBase C:\Users\username\.julia\packages\GridLayoutBase\AhEkU\src\layoutobservables.jl:356
[13] (::GridLayoutBase.var"#106#108"{Observable{GridLayoutBase.Dimensions}, Observable{Tuple{Union{Nothing, Float32, Auto, Fixed, Relative}, Union{Nothing, Float32, Auto, Fixed, Relative}}}, Observable{Tuple{Union{Nothing, Float32}, Union{Nothing, Float32}}}, Observable{Union{Inside, Outside, Mixed}}, Observable{GridLayoutBase.RectSides{Float32}}, Observable{GeometryBasics.HyperRectangle{2, Float32}}})(sbbox::GeometryBasics.HyperRectangle{2, Float32}, ali::Tuple{Float32, Float32})
@ GridLayoutBase C:\Users\username\.julia\packages\GridLayoutBase\AhEkU\src\layoutobservables.jl:218
[14] invokelatest(::Any, ::Any, ::Vararg{Any}; kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
@ Base .\essentials.jl:816
[15] invokelatest(::Any, ::Any, ::Vararg{Any})
@ Base .\essentials.jl:813
[16] (::Observables.OnAny)(value::Any)
@ Observables C:\Users\username\.julia\packages\Observables\YdEbO\src\Observables.jl:420
[17] #invokelatest#2
@ .\essentials.jl:816 [inlined]
[18] invokelatest
@ .\essentials.jl:813 [inlined]
[19] notify
@ C:\Users\username\.julia\packages\Observables\YdEbO\src\Observables.jl:206 [inlined]
[20] setindex!(observable::Observable, val::Any)
@ Observables C:\Users\username\.julia\packages\Observables\YdEbO\src\Observables.jl:123
[21] (::Observables.MapCallback)(value::Any)
@ Observables C:\Users\username\.julia\packages\Observables\YdEbO\src\Observables.jl:436
[22] #invokelatest#2
@ .\essentials.jl:816 [inlined]
[23] invokelatest
@ .\essentials.jl:813 [inlined]
[24] notify
@ C:\Users\username\.julia\packages\Observables\YdEbO\src\Observables.jl:206 [inlined]
[25] setindex!(observable::Observable, val::Any)
@ Observables C:\Users\username\.julia\packages\Observables\YdEbO\src\Observables.jl:123
[26] (::Makie.var"#182#184")(w_area::GeometryBasics.HyperRectangle{2, Int64})
@ Makie C:\Users\username\.julia\packages\Makie\pCA2E\src\scenes.jl:247
[27] #invokelatest#2
@ .\essentials.jl:816 [inlined]
[28] invokelatest
@ .\essentials.jl:813 [inlined]
[29] notify
@ C:\Users\username\.julia\packages\Observables\YdEbO\src\Observables.jl:206 [inlined]
[30] setindex!(observable::Observable, val::Any)
@ Observables C:\Users\username\.julia\packages\Observables\YdEbO\src\Observables.jl:123
[31] (::GLMakie.var"#windowsizecb#162"{Scene, GLMakie.Screen{GLFW.Window}})(window::GLFW.Window, width::Int32, height::Int32)
@ GLMakie C:\Users\username\.julia\packages\GLMakie\vf9WN\src\events.jl:56
[32] (::GLMakie.var"#161#163"{GLMakie.var"#windowsizecb#162"{Scene, GLMakie.Screen{GLFW.Window}}})(win::GLFW.Window, w::Int32, h::Int32)
@ GLMakie C:\Users\username\.julia\packages\GLMakie\vf9WN\src\events.jl:73
[33] _WindowSizeCallbackWrapper(window::GLFW.Window, width::Int32, height::Int32)
@ GLFW C:\Users\username\.julia\packages\GLFW\BWxfF\src\callback.jl:43
[34] PollEvents
@ C:\Users\username\.julia\packages\GLFW\BWxfF\src\glfw3.jl:620 [inlined]
[35] pollevents(screen::GLMakie.Screen{GLFW.Window})
@ GLMakie C:\Users\username\.julia\packages\GLMakie\vf9WN\src\screen.jl:449
[36] on_demand_renderloop(screen::GLMakie.Screen{GLFW.Window})
@ GLMakie C:\Users\username\.julia\packages\GLMakie\vf9WN\src\screen.jl:937
[37] renderloop(screen::GLMakie.Screen{GLFW.Window})
@ GLMakie C:\Users\username\.julia\packages\GLMakie\vf9WN\src\screen.jl:963
[38] (::GLMakie.var"#69#70"{GLMakie.Screen{GLFW.Window}})()
@ GLMakie .\task.jl:514