JS: Prevent deadlock on fatal renderer error

Remember, always call AWT methods from the AWT event thread

Signed-off-by: Matt Chudleigh <matt.chudleigh@ausenco.com>
Signed-off-by: Harvey Harrison <harvey.harrison@ausenco.com>
JS: Add a more explicit error when GL version is too low

Signed-off-by: Matt Chudleigh <matt.chudleigh@ausenco.com>
Signed-off-by: Harvey Harrison <harvey.harrison@ausenco.com>
JS: Convert image URLs to URIs in the renderer

Signed-off-by: Matt Chudleigh <matt.chudleigh@ausenco.com>
Signed-off-by: Harvey Harrison <harvey.harrison@ausenco.com>
JS: Convert mesh keys to URI from URL

Signed-off-by: Matt Chudleigh <matt.chudleigh@ausenco.com>
Signed-off-by: Harvey Harrison <harvey.harrison@ausenco.com>
JS: Added a DiamondPoints cache for displaymodels to use

Signed-off-by: Matt Chudleigh <matt.chudleigh@ausenco.com>
Signed-off-by: Harvey Harrison <harvey.harrison@ausenco.com>
JS: pull the Process pool waiting to a helper function

This makes it a bit easier to see pooled threads in stack dumps.

Signed-off-by: Harvey Harrison <harvey.harrison@ausenco.com>
JS: pass the current thread explicity into threadWait to prepare for error handling

threadwait will need to test the die flag, change the calling convention first.

Signed-off-by: Harvey Harrison <harvey.harrison@ausenco.com>
JS: move testing of the die flag into threadWait

This allows us to kill Processes that are waiting in a chain, as created with interrupt
or startProcess.  Now when an error is propagated, we properly tear down these live
threadStacks that used to be left in place, preventing restart from being workable.

We now clear processRunning in the error handling, so that restart will be allowed
to run new events.

Signed-off-by: Harvey Harrison <harvey.harrison@ausenco.com>
JS: prevent generating potentially huge strings for certain input types

Stream out the logged input rather than buffering an entire line, which could be
very long for inputs similar to TimeSeries.  Also, if more than 1000 tokens are
received, do not store a value String for the input.

Signed-off-by: Harvey Harrison <harvey.harrison@ausenco.com>