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

gis:link-dataset and user-defined breed causes crash #12

Closed
mrerrormessage opened this issue Mar 21, 2016 · 0 comments
Closed

gis:link-dataset and user-defined breed causes crash #12

mrerrormessage opened this issue Mar 21, 2016 · 0 comments

Comments

@mrerrormessage
Copy link
Contributor

From the ccl-gis mailing list

I think there is a bug in the GIS-extension: when using "gis:link-dataset" together with a link-set built from a user-defined "undirected-link-breed" with additional properties, the model crashes.
It's not a problem when either the links are not of a own breed or when they don't own additional properties, but in combination of both it doesn't work.

The error was as follows:

Extension exception: null

error while edge 0 1 running GIS:LINK-DATASET

  called by procedure TEST

  called by Button 'test'



org.nlogo.nvm.EngineException: Extension exception: null

 at org.nlogo.agent.World.breedsOwnNameAt(World.java:1036)

 at org.myworldgis.netlogo.LinkDataset.reportInternal(LinkDataset.java:68)

 at org.myworldgis.netlogo.GISExtension$Reporter.report(GISExtension.java:40)

 at org.nlogo.prim._externreport.report(_externreport.java:50)

 at org.nlogo.prim._let.perform(_let.java:28)

 at org.nlogo.nvm.Context.runExclusive(Context.java:119)

 at org.nlogo.nvm.ExclusiveJob.run(ExclusiveJob.java:57)

 at org.nlogo.nvm.Context.runExclusiveJob(Context.java:162)

 at org.nlogo.prim._asm_proceduretest_ask_0.perform(:1)

 at org.nlogo.nvm.Context.stepConcurrent(Context.java:91)

 at org.nlogo.nvm.ConcurrentJob.step(ConcurrentJob.java:82)

 at org.nlogo.job.JobThread.org$nlogo$job$JobThread$$runPrimaryJobs(JobThread.scala:143)

 at org.nlogo.job.JobThread$$anonfun$run$1.apply$mcV$sp(JobThread.scala:78)

 at org.nlogo.job.JobThread$$anonfun$run$1.apply(JobThread.scala:76)

 at org.nlogo.job.JobThread$$anonfun$run$1.apply(JobThread.scala:76)

 at scala.util.control.Exception$Catch.apply(Exception.scala:88)

 at org.nlogo.util.Exceptions$.handling(Exceptions.scala:41)

 at org.nlogo.job.JobThread.run(JobThread.scala:75)



NetLogo 5.3

main: org.nlogo.app.AppFrame

thread: JobThread

Java HotSpot(TM) 64-Bit Server VM 1.8.0_65 (Oracle Corporation; 1.8.0_65-b17)

operating system: Windows 10 10.0 (amd64 processor)

Scala version 2.9.2

JOGL: (3D View not initialized)

OpenGL Graphics: (3D View not initialized)

model: link_dataset_issue



01:28:31.892 SwitchedTabsEvent (org.nlogo.app.Tabs) AWT-EventQueue-0

01:28:31.890 RuntimeErrorEvent (org.nlogo.app.App$$anon$1 (org.nlogo.window.GUIWorkspace)) AWT-EventQueue-0

01:28:31.887 OutputEvent (org.nlogo.app.App$$anon$1 (org.nlogo.window.GUIWorkspace)) AWT-EventQueue-0

01:28:31.887 AddJobEvent (org.nlogo.window.ButtonWidget) AWT-EventQueue-0

01:28:31.823 InputBoxLoseFocusEvent (org.nlogo.window.ButtonWidget) AWT-EventQueue-0

01:28:31.820 PeriodicUpdateEvent (org.nlogo.app.App$$anon$1 (org.nlogo.window.GUIWorkspace)) AWT-EventQueue-0

01:28:31.619 PeriodicUpdateEvent (org.nlogo.app.App$$anon$1 (org.nlogo.window.GUIWorkspace)) AWT-EventQueue-0

01:28:31.418 JobRemovedEvent (org.nlogo.app.App$$anon$1 (org.nlogo.window.GUIWorkspace)) JobThread

01:28:31.417 PeriodicUpdateEvent (org.nlogo.app.App$$anon$1 (org.nlogo.window.GUIWorkspace)) AWT-EventQueue-0

01:28:31.417 TickStateChangeEvent (org.nlogo.app.App$$anon$1 (org.nlogo.window.GUIWorkspace)) JobThread

The model that generated is available here.

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