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

Exception while generating log record #75

Closed
fbanning opened this issue Apr 4, 2022 · 0 comments
Closed

Exception while generating log record #75

fbanning opened this issue Apr 4, 2022 · 0 comments

Comments

@fbanning
Copy link
Member

fbanning commented Apr 4, 2022

┌ Error: Exception while generating log record in module GraphMakie at /home/fbanning/.julia/packages/GraphMakie/LdnRk/src/recipes.jl:408
│   exception =
│    UndefVarError: N not defined
│    Stacktrace:
│      [1] macro expansion
│        @ ./logging.jl:360 [inlined]
│      [2] find_edge_paths(g::StaticGraphs.StaticDiGraph{UInt16, UInt16}, attr::Attributes, pos::Vector{Point{2, Float32}})
│        @ GraphMakie ~/.julia/packages/GraphMakie/LdnRk/src/recipes.jl:408
│      [3] (::GraphMakie.var"#23#40"{Combined{GraphMakie.graphplot, Tuple{StaticGraphs.StaticDiGraph{UInt16, UInt16}}}, Observable{StaticGraphs.StaticDiGraph{UInt16, UInt16}}})(pos::Vector{Point{2, Float32}}, s::MakieCore.Automatic, d::MakieCore.Automatic, w::MakieCore.Automatic)
│        @ GraphMakie ~/.julia/packages/GraphMakie/LdnRk/src/recipes.jl:199
│      [4] lift(::Function, ::Observable{Any}, ::Observable{Any}, ::Vararg{Any}; kw::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
│        @ Makie ~/.julia/packages/Makie/lgPZh/src/interaction/observables.jl:30
│      [5] lift(::Function, ::Observable{Any}, ::Observable{Any}, ::Observable{Any}, ::Vararg{Any})
│        @ Makie ~/.julia/packages/Makie/lgPZh/src/interaction/observables.jl:27
│      [6] plot!(gp::Combined{GraphMakie.graphplot, Tuple{StaticGraphs.StaticDiGraph{UInt16, UInt16}}})
│        @ GraphMakie ~/.julia/packages/GraphMakie/LdnRk/src/recipes.jl:197
│      [7] plot!(scene::Combined{OSMMakie.osmplot, Tuple{LightOSM.OSMGraph{Int32, Int64, Float64}}}, P::Type{Combined{GraphMakie.graphplot, Tuple{StaticGraphs.StaticDiGraph{UInt16, UInt16}}}}, attributes::Attributes, input::Tuple{Observable{StaticGraphs.StaticDiGraph{UInt16, UInt16}}}, args::Observable{Tuple{StaticGraphs.StaticDiGraph{UInt16, UInt16}}})
│        @ Makie ~/.julia/packages/Makie/lgPZh/src/interfaces.jl:411
│      [8] plot!(scene::Combined{OSMMakie.osmplot, Tuple{LightOSM.OSMGraph{Int32, Int64, Float64}}}, P::Type{Combined{GraphMakie.graphplot}}, attributes::Attributes, args::StaticGraphs.StaticDiGraph{UInt16, UInt16}; kw_attributes::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
│        @ Makie ~/.julia/packages/Makie/lgPZh/src/interfaces.jl:319
│      [9] plot!(scene::Combined{OSMMakie.osmplot, Tuple{LightOSM.OSMGraph{Int32, Int64, Float64}}}, P::Type{Combined{GraphMakie.graphplot}}, attributes::Attributes, args::StaticGraphs.StaticDiGraph{UInt16, UInt16})
│        @ Makie ~/.julia/packages/Makie/lgPZh/src/interfaces.jl:287
│     [10] #plot!#148
│        @ ~/.julia/packages/Makie/lgPZh/src/interfaces.jl:270 [inlined]
│     [11] graphplot!(::Combined{OSMMakie.osmplot, Tuple{LightOSM.OSMGraph{Int32, Int64, Float64}}}, ::Vararg{Any}; attributes::Base.Pairs{Symbol, Any, NTuple{10, Symbol}, NamedTuple{(:layout, :node_color, :node_size, :nlabels, :nlabels_textsize, :edge_color, :edge_width, :elabels, :elabels_textsize, :arrow_attr), Tuple{OSMMakie.var"#10#16"{Vector{Point2{Float64}}}, Vector{ColorTypes.RGB{FixedPointNumbers.N0f8}}, Vector{Int64}, Observable{Nothing}, Int64, Vector{ColorTypes.RGB{FixedPointNumbers.N0f8}}, Vector{Int64}, Observable{Nothing}, Int64, NamedTuple{(:markersize, :color), Tuple{Vector{Int64}, Symbol}}}}})
│        @ GraphMakie ~/.julia/packages/MakieCore/A0hGm/src/recipes.jl:37
│     [12] plot!(osmplot::Combined{OSMMakie.osmplot, Tuple{LightOSM.OSMGraph{Int32, Int64, Float64}}})
│        @ OSMMakie ~/.julia/packages/OSMMakie/dXQe5/src/recipe.jl:81
│     [13] plot!(scene::Combined{InteractiveDynamics._abmplot, Tuple{AgentBasedModel{Agents.OSM.OpenStreetMapSpace, Agents.Models.Zombie, typeof(Agents.Schedulers.fastest), Dict{Symbol, Float64}, Random.MersenneTwister}}}, P::Type{Combined{OSMMakie.osmplot, Tuple{LightOSM.OSMGraph{Int32, Int64, Float64}}}}, attributes::Attributes, input::Tuple{Observable{LightOSM.OSMGraph{Int32, Int64, Float64}}}, args::Observable{Tuple{LightOSM.OSMGraph{Int32, Int64, Float64}}})
│        @ Makie ~/.julia/packages/Makie/lgPZh/src/interfaces.jl:411
│     [14] plot!(scene::Combined{InteractiveDynamics._abmplot, Tuple{AgentBasedModel{Agents.OSM.OpenStreetMapSpace, Agents.Models.Zombie, typeof(Agents.Schedulers.fastest), Dict{Symbol, Float64}, Random.MersenneTwister}}}, P::Type{Combined{OSMMakie.osmplot}}, attributes::Attributes, args::LightOSM.OSMGraph{Int32, Int64, Float64}; kw_attributes::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
│        @ Makie ~/.julia/packages/Makie/lgPZh/src/interfaces.jl:319
│     [15] plot!(scene::Combined{InteractiveDynamics._abmplot, Tuple{AgentBasedModel{Agents.OSM.OpenStreetMapSpace, Agents.Models.Zombie, typeof(Agents.Schedulers.fastest), Dict{Symbol, Float64}, Random.MersenneTwister}}}, P::Type{Combined{OSMMakie.osmplot}}, attributes::Attributes, args::LightOSM.OSMGraph{Int32, Int64, Float64})
│        @ Makie ~/.julia/packages/Makie/lgPZh/src/interfaces.jl:287
│     [16] plot!(P::Type{Combined{OSMMakie.osmplot}}, scene::Combined{InteractiveDynamics._abmplot, Tuple{AgentBasedModel{Agents.OSM.OpenStreetMapSpace, Agents.Models.Zombie, typeof(Agents.Schedulers.fastest), Dict{Symbol, Float64}, Random.MersenneTwister}}}, args::LightOSM.OSMGraph{Int32, Int64, Float64}; kw_attributes::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
│        @ Makie ~/.julia/packages/Makie/lgPZh/src/interfaces.jl:270
│     [17] plot!(P::Type{Combined{OSMMakie.osmplot}}, scene::Combined{InteractiveDynamics._abmplot, Tuple{AgentBasedModel{Agents.OSM.OpenStreetMapSpace, Agents.Models.Zombie, typeof(Agents.Schedulers.fastest), Dict{Symbol, Float64}, Random.MersenneTwister}}}, args::LightOSM.OSMGraph{Int32, Int64, Float64})
│        @ Makie ~/.julia/packages/Makie/lgPZh/src/interfaces.jl:269
│     [18] osmplot!(::Combined{InteractiveDynamics._abmplot, Tuple{AgentBasedModel{Agents.OSM.OpenStreetMapSpace, Agents.Models.Zombie, typeof(Agents.Schedulers.fastest), Dict{Symbol, Float64}, Random.MersenneTwister}}}, ::Vararg{Any}; attributes::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
│        @ OSMMakie ~/.julia/packages/MakieCore/A0hGm/src/recipes.jl:37
│     [19] osmplot!
│        @ ~/.julia/packages/MakieCore/A0hGm/src/recipes.jl:37 [inlined]
│     [20] plot!(abmplot::Combined{InteractiveDynamics._abmplot, Tuple{AgentBasedModel{Agents.OSM.OpenStreetMapSpace, Agents.Models.Zombie, typeof(Agents.Schedulers.fastest), Dict{Symbol, Float64}, Random.MersenneTwister}}})
│        @ InteractiveDynamics ~/.julia/dev/InteractiveDynamics/src/agents/abmplot.jl:218
│     [21] plot!(scene::Scene, P::Type{Combined{InteractiveDynamics._abmplot, Tuple{AgentBasedModel{Agents.OSM.OpenStreetMapSpace, Agents.Models.Zombie, typeof(Agents.Schedulers.fastest), Dict{Symbol, Float64}, Random.MersenneTwister}}}}, attributes::Attributes, input::Tuple{Observable{AgentBasedModel{Agents.OSM.OpenStreetMapSpace, Agents.Models.Zombie, typeof(Agents.Schedulers.fastest), Dict{Symbol, Float64}, Random.MersenneTwister}}}, args::Observable{Tuple{AgentBasedModel{Agents.OSM.OpenStreetMapSpace, Agents.Models.Zombie, typeof(Agents.Schedulers.fastest), Dict{Symbol, Float64}, Random.MersenneTwister}}})
│        @ Makie ~/.julia/packages/Makie/lgPZh/src/interfaces.jl:401
│     [22] plot!(scene::Scene, P::Type{Combined{InteractiveDynamics._abmplot}}, attributes::Attributes, args::AgentBasedModel{Agents.OSM.OpenStreetMapSpace, Agents.Models.Zombie, typeof(Agents.Schedulers.fastest), Dict{Symbol, Float64}, Random.MersenneTwister}; kw_attributes::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
│        @ Makie ~/.julia/packages/Makie/lgPZh/src/interfaces.jl:319
│     [23] plot!(scene::Scene, P::Type{Combined{InteractiveDynamics._abmplot}}, attributes::Attributes, args::AgentBasedModel{Agents.OSM.OpenStreetMapSpace, Agents.Models.Zombie, typeof(Agents.Schedulers.fastest), Dict{Symbol, Float64}, Random.MersenneTwister})
│        @ Makie ~/.julia/packages/Makie/lgPZh/src/interfaces.jl:287
│     [24] plot!(la::Axis, P::Type{Combined{InteractiveDynamics._abmplot}}, attributes::Attributes, args::AgentBasedModel{Agents.OSM.OpenStreetMapSpace, Agents.Models.Zombie, typeof(Agents.Schedulers.fastest), Dict{Symbol, Float64}, Random.MersenneTwister}; kw_attributes::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
│        @ Makie.MakieLayout ~/.julia/packages/Makie/lgPZh/src/makielayout/layoutables/axis.jl:693
│     [25] plot!
│        @ ~/.julia/packages/Makie/lgPZh/src/makielayout/layoutables/axis.jl:688 [inlined]
│     [26] #plot!#340
│        @ ~/.julia/packages/Makie/lgPZh/src/makielayout/layoutables/axis.jl:705 [inlined]
│     [27] _abmplot!(::Axis, ::Vararg{Any}; attributes::Base.Pairs{Symbol, Any, NTuple{6, Symbol}, NamedTuple{(:ax, :abmobs, :add_controls, :_add_interaction, :ac, :as), Tuple{Axis, ABMObservable{AgentBasedModel{Agents.OSM.OpenStreetMapSpace, Agents.Models.Zombie, typeof(Agents.Schedulers.fastest), Dict{Symbol, Float64}, Random.MersenneTwister}, typeof(Agents.Models.zombie_agent_step!), typeof(dummystep), Nothing, Nothing, Nothing, Nothing, Bool}, Bool, Bool, typeof(aczombie), typeof(aszombie)}}})
│        @ InteractiveDynamics ~/.julia/packages/MakieCore/A0hGm/src/recipes.jl:37
│     [28] abmplot!(ax::Axis, model::AgentBasedModel{Agents.OSM.OpenStreetMapSpace, Agents.Models.Zombie, typeof(Agents.Schedulers.fastest), Dict{Symbol, Float64}, Random.MersenneTwister}; agent_step!::Function, model_step!::Function, adata::Nothing, mdata::Nothing, when::Bool, _add_interaction::Bool, add_controls::Bool, enable_inspection::Bool, kwargs::Base.Pairs{Symbol, Function, Tuple{Symbol, Symbol}, NamedTuple{(:ac, :as), Tuple{typeof(aczombie), typeof(aszombie)}}})
│        @ InteractiveDynamics ~/.julia/dev/InteractiveDynamics/src/agents/abmplot.jl:132
│     [29] top-level scope
│        @ ~/Code/ID-test-area/examples/agents/agents_osm.jl:16
│     [30] eval
│        @ ./boot.jl:373 [inlined]
│     [31] include_string(mapexpr::typeof(REPL.softscope), mod::Module, code::String, filename::String)
│        @ Base ./loading.jl:1196
│     [32] invokelatest(::Any, ::Any, ::Vararg{Any}; kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
│        @ Base ./essentials.jl:716
│     [33] invokelatest(::Any, ::Any, ::Vararg{Any})
│        @ Base ./essentials.jl:714
│     [34] inlineeval(m::Module, code::String, code_line::Int64, code_column::Int64, file::String; softscope::Bool)
│        @ VSCodeServer ~/.vscode/extensions/julialang.language-julia-1.6.5/scripts/packages/VSCodeServer/src/eval.jl:211
│     [35] (::VSCodeServer.var"#60#64"{Bool, Bool, Module, String, Int64, Int64, String, VSCodeServer.ReplRunCodeRequestParams})()
│        @ VSCodeServer ~/.vscode/extensions/julialang.language-julia-1.6.5/scripts/packages/VSCodeServer/src/eval.jl:155
│     [36] withpath(f::VSCodeServer.var"#60#64"{Bool, Bool, Module, String, Int64, Int64, String, VSCodeServer.ReplRunCodeRequestParams}, path::String)
│        @ VSCodeServer ~/.vscode/extensions/julialang.language-julia-1.6.5/scripts/packages/VSCodeServer/src/repl.jl:184
│     [37] (::VSCodeServer.var"#59#63"{Bool, Bool, Bool, Module, String, Int64, Int64, String, VSCodeServer.ReplRunCodeRequestParams})()
│        @ VSCodeServer ~/.vscode/extensions/julialang.language-julia-1.6.5/scripts/packages/VSCodeServer/src/eval.jl:153
│     [38] hideprompt(f::VSCodeServer.var"#59#63"{Bool, Bool, Bool, Module, String, Int64, Int64, String, VSCodeServer.ReplRunCodeRequestParams})
│        @ VSCodeServer ~/.vscode/extensions/julialang.language-julia-1.6.5/scripts/packages/VSCodeServer/src/repl.jl:36
│     [39] (::VSCodeServer.var"#58#62"{Bool, Bool, Bool, Module, String, Int64, Int64, String, VSCodeServer.ReplRunCodeRequestParams})()
│        @ VSCodeServer ~/.vscode/extensions/julialang.language-julia-1.6.5/scripts/packages/VSCodeServer/src/eval.jl:124
│     [40] with_logstate(f::Function, logstate::Any)
│        @ Base.CoreLogging ./logging.jl:511
│     [41] with_logger
│        @ ./logging.jl:623 [inlined]
│     [42] (::VSCodeServer.var"#57#61"{VSCodeServer.ReplRunCodeRequestParams})()
│        @ VSCodeServer ~/.vscode/extensions/julialang.language-julia-1.6.5/scripts/packages/VSCodeServer/src/eval.jl:201
│     [43] #invokelatest#2
│        @ ./essentials.jl:716 [inlined]
│     [44] invokelatest(::Any)
│        @ Base ./essentials.jl:714
│     [45] macro expansion
│        @ ~/.vscode/extensions/julialang.language-julia-1.6.5/scripts/packages/VSCodeServer/src/eval.jl:34 [inlined]
│     [46] (::VSCodeServer.var"#55#56")()
│        @ VSCodeServer ./task.jl:423
└ @ GraphMakie ~/.julia/packages/GraphMakie/LdnRk/src/recipes.jl:408

I've tried to run our Agents/InteractiveDynamics OSM example (relying on OSMMakie and thus on GraphMakie) with GraphMakie's master branch checked out but it threw this error. Can you make anything out of it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant