coli-saar / alto

Alto, the Algebraic Language Toolkit
Other
16 stars 2 forks source link

Alto Lab Handling of nulĺ results #20

Closed akoehn closed 7 years ago

akoehn commented 7 years ago

Original report by Christoph Teichmann (Bitbucket: cteichmann, GitHub: CTNLP).


When using alto-lab on falken-3 with e.g.:

java -Xmx8G -cp alto-2.1-SNAPSHOT-jar-with-dependencies.jar de.up.ling.irtg.laboratory.CommandLineInterface 64 --data 24 -c "with additional data 24" --reload

sometimes NULL results (e.g. if there is no parse tree for a given input) will cause errors such as:

Exception in thread "ForkJoinPool-2-worker-1" java.lang.NullPointerException at de.up.ling.irtg.laboratory.JsonResultManager.acceptResult(JsonResultManager.java:92) at de.up.ling.irtg.laboratory.Program.lambda$run$2(Program.java:781) at java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1402) at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289) at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056) at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692) at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)

This does not stop the experiment from running however.

akoehn commented 7 years ago

Original comment by Alexander Koller (Bitbucket: akoller, GitHub: alexanderkoller).


Fixed.

akoehn commented 7 years ago

Original changes by Alexander Koller (Bitbucket: akoller, GitHub: alexanderkoller).


changed state from "new" to "resolved"