NetLogo / NW-Extension

This is the NetLogo Network Extension. For general information about NetLogo, see:
http://ccl.northwestern.edu/netlogo/
Other
62 stars 25 forks source link

Giving nw:save-graphml a non-existent directory will crash the job thread #137

Closed qiemem closed 9 years ago

qiemem commented 9 years ago

This is pretty awesome and bad.

To reproduce:

  1. Open netlogo and put extensions [ nw ] in the code tab
  2. Try running nw:save-graphml "this/path/doesnt/exist/file.graphml"

You'll get an error, but then you can't run any other commands. You can still open other models, but they nothing will work. Commands won't run, buttons will just freeze, and so forth. This actually could indicate a bug in NetLogo as exceptions shouldn't be able to cause a total crash.

I've confirmed in VisualVM that the Job thread actually dies and is not resuscitated when opening a new model.

qiemem commented 9 years ago

Note that none of the other IO functions in NW cause this same behavior.