-
Notifications
You must be signed in to change notification settings - Fork 45
Description
Reproducible by going to
https://www.netlogoweb.org/web?https://m4a-gae.appspot.com/p/SJKz6u-2ciF8Za5hYlWI4f.nlogo
And entering in the command center:
random-seed 1
Click setup
Click go
At tick 275 I get
agent.getCoords is not a function
Note that the executable has a more reasonable error (though it provides no help localising the bad code):
DISTANCE expected input to be an agent but got the number 0 instead.
org.nlogo.nvm.ArgumentTypeException: DISTANCE expected input to be an agent but got the number 0 instead.
at org.nlogo.nvm.AnonymousCommand.perform(AnonymousProcedure.scala:150)
at org.nlogo.nvm.AnonymousCommand.perform(AnonymousProcedure.scala:133)
at org.nlogo.prim.etc._foreach.perform(_foreach.scala:35)
at org.nlogo.nvm.Context.runExclusive(Context.java:135)
at org.nlogo.nvm.ExclusiveJob.run(ExclusiveJob.scala:39)
at org.nlogo.nvm.Context.runExclusiveJob(Context.java:181)
at org.nlogo.prim._asm_proceduregountil_ask_27.perform(:1)
at org.nlogo.nvm.Context.callReporterProcedure(Context.java:258)
at org.nlogo.prim._asm_procedurego_if_0.perform(:2)
at org.nlogo.nvm.Context.stepConcurrent(Context.java:107)
at org.nlogo.nvm.ConcurrentJob.step(ConcurrentJob.scala:65)
at org.nlogo.job.JobThread.runPrimaryJobs(JobThread.scala:133)
at org.nlogo.job.JobThread.$anonfun$run$1(JobThread.scala:68)
at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:12)
at scala.util.control.Exception$Catch.apply(Exception.scala:224)
at org.nlogo.api.Exceptions$.handling(Exceptions.scala:41)
at org.nlogo.job.JobThread.run(JobThread.scala:66)
NetLogo 6.0.1
main: org.nlogo.app.AppFrame
thread: JobThread
Java HotSpot(TM) 64-Bit Server VM 1.8.0_121 (Oracle Corporation; 1.8.0_121-b13)
operating system: Windows 7 6.1 (amd64 processor)
Scala version 2.12.1
JOGL: (3D View not initialized)
OpenGL Graphics: (3D View not initialized)
model: i-U6uukZbnD3ItqZhgY34a
03:54:25.052 RuntimeErrorEvent (org.nlogo.app.App$$anon$1 (org.nlogo.window.GUIWorkspace)) AWT-EventQueue-0
03:54:24.878 InterfaceGlobalEvent (org.nlogo.app.interfacetab.InterfacePanel$$anon$1 (org.nlogo.window.SliderWidget)) AWT-EventQueue-0
03:54:24.878 InterfaceGlobalEvent (org.nlogo.app.interfacetab.InterfacePanel$$anon$1 (org.nlogo.window.SliderWidget)) AWT-EventQueue-0
03:54:24.878 InterfaceGlobalEvent (org.nlogo.app.interfacetab.InterfacePanel$$anon$1 (org.nlogo.window.SliderWidget)) AWT-EventQueue-0
03:54:24.878 PeriodicUpdateEvent (org.nlogo.app.App$$anon$1 (org.nlogo.window.GUIWorkspace)) AWT-EventQueue-0
03:54:24.674 InterfaceGlobalEvent (org.nlogo.app.interfacetab.InterfacePanel$$anon$1 (org.nlogo.window.SliderWidget)) AWT-EventQueue-0
03:54:24.674 InterfaceGlobalEvent (org.nlogo.app.interfacetab.InterfacePanel$$anon$1 (org.nlogo.window.SliderWidget)) AWT-EventQueue-0
03:54:24.674 InterfaceGlobalEvent (org.nlogo.app.interfacetab.InterfacePanel$$anon$1 (org.nlogo.window.SliderWidget)) AWT-EventQueue-0
03:54:24.674 PeriodicUpdateEvent (org.nlogo.app.App$$anon$1 (org.nlogo.window.GUIWorkspace)) AWT-EventQueue-0
03:54:24.470 InterfaceGlobalEvent (org.nlogo.app.interfacetab.InterfacePanel$$anon$1 (org.nlogo.window.SliderWidget)) AWT-EventQueue-0