Hey folks, I am having an issue with one of my models that seems to work fine using just Agents.jl functionality (e.g., run!(), etc.), but fails when trying any of the animation or interactive functionality from InteractiveDynamics.jl. I now notice that the same warning message seems to be present in the presentation of the Forest Fire and Game of Life examples in the Example Zoo.
Forest fire · Agents.jl Example Zoo (juliadynamics.github.io)
I can probably produce a minimal example, and give all of my sordid stacktraces, etc., but I am hoping that you folks (all with more experience than me) already know or can quickly come up with the explanation based on the existing examples.
Thanks in advance for any insights! (Some details do follow.)
Here’s the warning and eventual error I get when trying something like abmvideo():
┌ Warning: Unknown agent position type: Vector{Any}. Skipping plotting agents.
└ @ InteractiveDynamics D:\.julia\packages\InteractiveDynamics\x2wQQ\src\agents\abmplot.jl:290
ERROR: MethodError: no method matching draw_atomic(::GLMakie.Screen{GLFW.Window}, ::Scene, ::Combined{InteractiveDynamics._abmplot, Tuple{ABMObservable{AgentBasedModel{GridSpaceSingle{2, false}, Grain, typeof(Agents.Schedulers.fastest), Dict{Symbol, Any},
Random.TaskLocalRNG}, typeof(grain_step!), typeof(model_step!),
Nothing, Nothing, Nothing, Nothing, Bool}}})
Closest candidates are:
draw_atomic(::GLMakie.Screen, ::Scene, ::Union{MeshScatter, Scatter}) at D:\.julia\packages\GLMakie\N16Fq\src\drawing_primitives.jl:197
draw_atomic(::GLMakie.Screen, ::Scene, ::Lines) at D:\.julia\packages\GLMakie\N16Fq\src\drawing_primitives.jl:263
draw_atomic(::GLMakie.Screen, ::Scene, ::LineSegments) at D:\.julia\packages\GLMakie\N16Fq\src\drawing_primitives.jl:283
...
More boring stuff:
(Moving) pkg> st
Project Moving v0.1.0
Status `D:\Dev\Moving\Project.toml`
[46ada45e] Agents v5.6.5
[e9467ef8] GLMakie v0.8.2
[916415d5] Images v0.25.2
[ec714cd0] InteractiveDynamics v0.21.12
[14b8a8f1] PkgTemplates v0.7.31
[91a5bcdd] Plots v1.38.5
[295af30f] Revise v3.5.1
[9a3f8284] Random