NetLogo / LevelSpace

This is the LevelSpace extension repository. LevelSpace allows you to run NetLogo models |: from inside NetLogo models :|
Other
19 stars 8 forks source link

Halt can cause user-visible InterruptedException #109

Closed qiemem closed 7 years ago

qiemem commented 7 years ago

Stacktrace shown to user:

java.lang.InterruptedException
 at java.lang.Object.wait(Native Method)
 at org.nlogo.ls.Notifying.waitForFinish(NotifyingJob.scala:41)
 at org.nlogo.ls.Notifying.waitForFinish$(NotifyingJob.scala:39)
 at org.nlogo.ls.NotifyingJob.waitForFinish(NotifyingJob.scala:9)
 at org.nlogo.ls.NotifyingJob.waitFor(NotifyingJob.scala:25)
 at org.nlogo.ls.MappedNotifying.waitFor(NotifyingJob.scala:54)
 at org.nlogo.ls.MappedNotifying.waitFor(NotifyingJob.scala:54)
 at org.nlogo.ls.MappedNotifying.waitFor(NotifyingJob.scala:54)
 at org.nlogo.ls.Ask.$anonfun$perform$4(Prims.scala:78)
 at org.nlogo.ls.Ask.$anonfun$perform$4$adapted(Prims.scala:78)
 at scala.collection.IndexedSeqOptimized.foreach(IndexedSeqOptimized.scala:32)
 at scala.collection.IndexedSeqOptimized.foreach$(IndexedSeqOptimized.scala:29)
 at scala.collection.mutable.ArrayOps$ofRef.foreach(ArrayOps.scala:191)
 at org.nlogo.ls.Ask.perform(Prims.scala:78)
 at org.nlogo.prim._extern.perform(_extern.java:36)
 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_proceduresetup_ask_23.perform(:1)
 at org.nlogo.nvm.Context.runExclusive(Context.java:135)
 at org.nlogo.nvm.AnonymousCommand.perform(AnonymousProcedure.scala:175)
 at org.nlogo.nvm.AnonymousCommand.perform(AnonymousProcedure.scala:158)
 at org.nlogo.prim.etc._run.perform(_run.scala:41)
 at org.nlogo.nvm.Context.runExclusive(Context.java:135)
 at org.nlogo.nvm.AnonymousCommand.perform(AnonymousProcedure.scala:175)
 at org.nlogo.nvm.AnonymousCommand.perform(AnonymousProcedure.scala:158)
 at org.nlogo.prim.etc._foreach.perform(_foreach.scala:33)
 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)