I’m sorry - I should have included more information: The Agents package version is 6.2.1, and the error report is so ginormous that it bursts the bounds of my console, but its flavour is given by this outtake …
Error in callback:
TaskFailedException
Stacktrace:
[1] check_channel_state
@ .\channels.jl:188 [inlined]
[2] put!
@ .\channels.jl:356 [inlined]
[3] (::Makie.var"#1326#1330"{Channel{Nothing}})(::Tuple{Float64, Float64}, ::Tuple{Float64, Float64})
@ Makie C:\Users\hswt136nia\.julia\packages\Makie\Y3ABD\src\interaction\inspector.jl:296
[4] invokelatest(::Any, ::Any, ::Vararg{Any}; kwargs::@Kwargs{})
@ Base .\essentials.jl:1055
[5] invokelatest(::Any, ::Any, ::Vararg{Any})
@ Base .\essentials.jl:1052
[6] (::Observables.OnAny)(value::Any)
@ Observables C:\Users\hswt136nia\.julia\packages\Observables\YdEbO\src\Observables.jl:420
[7] #invokelatest#2
@ .\essentials.jl:1055 [inlined]
[8] invokelatest
@ .\essentials.jl:1052 [inlined]
[9] notify
@ C:\Users\hswt136nia\.julia\packages\Observables\YdEbO\src\Observables.jl:206 [inlined]
[10] setindex!
@ C:\Users\hswt136nia\.julia\packages\Observables\YdEbO\src\Observables.jl:123 [inlined]
[11] (::GLMakie.MousePositionUpdater)(::Makie.TickState)
@ GLMakie C:\Users\hswt136nia\.julia\packages\GLMakie\TH3rf\src\events.jl:6
[12] #invokelatest#2
@ .\essentials.jl:1055 [inlined]
[13] invokelatest
@ .\essentials.jl:1052 [inlined]
[14] notify
@ C:\Users\hswt136nia\.julia\packages\Observables\YdEbO\src\Observables.jl:206 [inlined]
[15] setindex!
@ C:\Users\hswt136nia\.julia\packages\Observables\YdEbO\src\Observables.jl:123 [inlined]
[16] pollevents(screen::GLMakie.Screen{GLFW.Window}, frame_state::Makie.TickState)
@ GLMakie C:\Users\hswt136nia\.julia\packages\GLMakie\TH3rf\src\screen.jl:486
[17] on_demand_renderloop(screen::GLMakie.Screen{GLFW.Window})
@ GLMakie C:\Users\hswt136nia\.julia\packages\GLMakie\TH3rf\src\screen.jl:935
[18] renderloop(screen::GLMakie.Screen{GLFW.Window})
@ GLMakie C:\Users\hswt136nia\.julia\packages\GLMakie\TH3rf\src\screen.jl:963
[19] (::GLMakie.var"#71#72"{GLMakie.Screen{GLFW.Window}})()
@ GLMakie C:\Users\hswt136nia\.julia\packages\GLMakie\TH3rf\src\screen.jl:823
nested task error: DimensionMismatch: arrays could not be broadcast to a common size
Stacktrace:
[1] _bcs1(a::StaticArrays.SOneTo{2}, b::StaticArrays.SOneTo{3})
@ StaticArrays C:\Users\hswt136nia\.julia\packages\StaticArrays\SA4kA\src\broadcast.jl:77
[2] _bcs(shape::Tuple{StaticArrays.SOneTo{2}}, newshape::Tuple{StaticArrays.SOneTo{3}})
@ Base.Broadcast .\broadcast.jl:517
[3] broadcast_shape(::Tuple{StaticArrays.SOneTo{2}}, ::Tuple{StaticArrays.SOneTo{3}})
@ Base.Broadcast .\broadcast.jl:511
[4] static_combine_axes
@ C:\Users\hswt136nia\.julia\packages\StaticArrays\SA4kA\src\broadcast.jl:20 [inlined]
[5] _axes(bc::Base.Broadcast.Broadcasted{StaticArraysCore.StaticArrayStyle{1}, Nothing, typeof(-), Tuple{StaticArraysCore.SVector{2, Float64}, Tuple{Float64, Float64, Float64}}}, ::Nothing)
@ StaticArrays C:\Users\hswt136nia\.julia\packages\StaticArrays\SA4kA\src\broadcast.jl:25
[6] axes
@ .\broadcast.jl:234 [inlined]
[7] static_axes(A::Base.Broadcast.Broadcasted{StaticArraysCore.StaticArrayStyle{1}, Nothing, typeof(-), Tuple{StaticArraysCore.SVector{2, Float64}, Tuple{Float64, Float64, Float64}}})
@ StaticArrays C:\Users\hswt136nia\.julia\packages\StaticArrays\SA4kA\src\broadcast.jl:22
[8] static_combine_axes(A::Base.Broadcast.Broadcasted{StaticArraysCore.StaticArrayStyle{1}, Nothing, typeof(-), Tuple{StaticArraysCore.SVector{2, Float64}, Tuple{Float64, Float64, Float64}}})
@ StaticArrays C:\Users\hswt136nia\.julia\packages\StaticArrays\SA4kA\src\broadcast.jl:21
[9] static_combine_axes
@ C:\Users\hswt136nia\.julia\packages\StaticArrays\SA4kA\src\broadcast.jl:20 [inlined]
[10] _axes(bc::Base.Broadcast.Broadcasted{StaticArraysCore.StaticArrayStyle{1}, Nothing, typeof(min), Tuple{Tuple{Float64, Float64, Float64}, Base.Broadcast.Broadcasted{StaticArraysCore.StaticArrayStyle{1}, Nothing, typeof(-), Tuple{StaticArraysCore.SVector{2, Float64}, Tuple{Float64, Float64, Float64}}}}}, ::Nothing)
@ StaticArrays C:\Users\hswt136nia\.julia\packages\StaticArrays\SA4kA\src\broadcast.jl:25
[11] axes
@ .\broadcast.jl:234 [inlined]
[12] static_axes(A::Base.Broadcast.Broadcasted{StaticArraysCore.StaticArrayStyle{1}, Nothing, typeof(min), Tuple{Tuple{Float64, Float64, Float64}, Base.Broadcast.Broadcasted{StaticArraysCore.StaticArrayStyle{1}, Nothing, typeof(-), Tuple{StaticArraysCore.SVector{2, Float64}, Tuple{Float64,
Float64, Float64}}}}})
@ StaticArrays C:\Users\hswt136nia\.julia\packages\StaticArrays\SA4kA\src\broadcast.jl:22
[13] static_combine_axes (repeats 2 times)
@ C:\Users\hswt136nia\.julia\packages\StaticArrays\SA4kA\src\broadcast.jl:20 [inlined]
[14] instantiate
@ C:\Users\hswt136nia\.julia\packages\StaticArrays\SA4kA\src\broadcast.jl:32 [inlined]
[15] materialize
@ .\broadcast.jl:867 [inlined]
[16] euclidean_distance(p1::Tuple{Float64, Float64, Float64}, p2::Tuple{Float64, Float64, Float64}, space::Agents.ContinuousSpace{2, true, Float64, typeof(Agents.no_vel_update)})
@ Agents C:\Users\hswt136nia\.julia\packages\Agents\kk40C\src\spaces\utilities.jl:42
[17] euclidean_distance(p1::Tuple{Float64, Float64, Float64}, p2::Tuple{Float64, Float64, Float64}, model::Agents.StandardABM{Agents.ContinuousSpace{2, true, Float64, typeof(Agents.no_vel_update)}, Main.Ecosystem.Turtle, Dict{Int64, Main.Ecosystem.Turtle}, Tuple{DataType}, typeof(Main.Ecosystem.agent_step!), typeof(Agents.dummystep), typeof(Agents.Schedulers.fastest), Nothing, Random.TaskLocalRNG})
@ Agents C:\Users\hswt136nia\.julia\packages\Agents\kk40C\src\spaces\utilities.jl:26
[18] distance_from_cell_center(pos::Tuple{Float64, Float64, Float64}, model::Agents.StandardABM{Agents.ContinuousSpace{2, true, Float64, typeof(Agents.no_vel_update)}, Main.Ecosystem.Turtle, Dict{Int64, Main.Ecosystem.Turtle}, Tuple{DataType}, typeof(Main.Ecosystem.agent_step!), typeof(Agents.dummystep), typeof(Agents.Schedulers.fastest), Nothing, Random.TaskLocalRNG})
@ Agents C:\Users\hswt136nia\.julia\packages\Agents\kk40C\src\spaces\continuous.jl:119
[19] nearby_ids_approx(pos::Tuple{Float64, Float64, Float64}, model::Agents.StandardABM{Agents.ContinuousSpace{2, true, Float64, typeof(Agents.no_vel_update)}, Main.Ecosystem.Turtle, Dict{Int64, Main.Ecosystem.Turtle}, Tuple{DataType}, typeof(Main.Ecosystem.agent_step!), typeof(Agents.dummystep), typeof(Agents.Schedulers.fastest), Nothing, Random.TaskLocalRNG}, r::Float64)
@ Agents C:\Users\hswt136nia\.julia\packages\Agents\kk40C\src\spaces\continuous.jl:217
[20] nearby_ids_exact(pos::Tuple{Float64, Float64, Float64}, model::Agents.StandardABM{Agents.ContinuousSpace{2, true, Float64, typeof(Agents.no_vel_update)}, Main.Ecosystem.Turtle, Dict{Int64, Main.Ecosystem.Turtle}, Tuple{DataType}, typeof(Main.Ecosystem.agent_step!), typeof(Agents.dummystep), typeof(Agents.Schedulers.fastest), Nothing, Random.TaskLocalRNG}, r::Float64)
@ Agents C:\Users\hswt136nia\.julia\packages\Agents\kk40C\src\spaces\continuous.jl:231
[21] ids_to_inspect(model::Agents.StandardABM{Agents.ContinuousSpace{2, true, Float64, typeof(Agents.no_vel_update)}, Main.Ecosystem.Turtle, Dict{Int64, Main.Ecosystem.Turtle}, Tuple{DataType}, typeof(Main.Ecosystem.agent_step!), typeof(Agents.dummystep), typeof(Agents.Schedulers.fastest),
Nothing, Random.TaskLocalRNG}, pos::Tuple{Float64, Float64, Float64})
@ AgentsVisualizations C:\Users\hswt136nia\.julia\packages\Agents\kk40C\ext\AgentsVisualizations\src\spaces\continuous.jl:43
[22] agent2string(model::Agents.StandardABM{Agents.ContinuousSpace{2, true, Float64, typeof(Agents.no_vel_update)}, Main.Ecosystem.Turtle, Dict{Int64, Main.Ecosystem.Turtle}, Tuple{DataType}, typeof(Main.Ecosystem.agent_step!), typeof(Agents.dummystep), typeof(Agents.Schedulers.fastest), Nothing, Random.TaskLocalRNG}, pos::Tuple{Float64, Float64, Float64})
@ AgentsVisualizations C:\Users\hswt136nia\.julia\packages\Agents\kk40C\ext\AgentsVisualizations\src\spaces\abstract.jl:143
[23] show_data(inspector::Makie.DataInspector, p::MakieCore.Plot{AgentsVisualizations._abmplot, Tuple{Agents.ABMObservable{Observables.Observable{Agents.StandardABM{Agents.ContinuousSpace{2, true, Float64, typeof(Agents.no_vel_update)}, Main.Ecosystem.Turtle, Dict{Int64, Main.Ecosystem.Turtle}, Tuple{DataType}, typeof(Main.Ecosystem.agent_step!), typeof(Agents.dummystep), typeof(Agents.Schedulers.fastest), Nothing, Random.TaskLocalRNG}}, Nothing, Nothing, Nothing, Nothing, Bool, Observables.Observable{Int64}, Observables.Observable{Tuple{Base.RefValue{Int64}, Vector{Int64}}}}}}, idx::UInt32, source::MakieCore.Scatter{Tuple{Vector{GeometryBasics.Point{2, Float32}}}})
@ AgentsVisualizations C:\Users\hswt136nia\.julia\packages\Agents\kk40C\ext\AgentsVisualizations\src\spaces\abstract.jl:101
[24] show_data_recursion(inspector::Makie.DataInspector, plot::MakieCore.Plot{AgentsVisualizations._abmplot, Tuple{Agents.ABMObservable{Observables.Observable{Agents.StandardABM{Agents.ContinuousSpace{2, true, Float64, typeof(Agents.no_vel_update)}, Main.Ecosystem.Turtle, Dict{Int64, Main.Ecosystem.Turtle}, Tuple{DataType}, typeof(Main.Ecosystem.agent_step!), typeof(Agents.dummystep), typeof(Agents.Schedulers.fastest), Nothing, Random.TaskLocalRNG}}, Nothing, Nothing, Nothing, Nothing, Bool, Observables.Observable{Int64}, Observables.Observable{Tuple{Base.RefValue{Int64}, Vector{Int64}}}}}}, idx::UInt32, source::MakieCore.Scatter{Tuple{Vector{GeometryBasics.Point{2, Float32}}}})
@ Makie C:\Users\hswt136nia\.julia\packages\Makie\Y3ABD\src\interaction\inspector.jl:373
[25] show_data_recursion(inspector::Makie.DataInspector, plot::MakieCore.Scatter{Tuple{Vector{GeometryBasics.Point{2, Float32}}}}, idx::UInt32) @ Makie C:\Users\hswt136nia\.julia\packages\Makie\Y3ABD\src\interaction\inspector.jl:343
[26] on_hover(inspector::Makie.DataInspector)
@ Makie C:\Users\hswt136nia\.julia\packages\Makie\Y3ABD\src\interaction\inspector.jl:321
[27] (::Makie.var"#1325#1329"{Makie.Scene, Makie.DataInspector})(ch::Channel{Nothing})
@ Makie C:\Users\hswt136nia\.julia\packages\Makie\Y3ABD\src\interaction\inspector.jl:286
[28] (::Base.var"#739#740"{Makie.var"#1325#1329"{Makie.Scene, Makie.DataInspector}, Channel{Nothing}})()
@ Base .\channels.jl:142