print stack traces of uncaught internal errors
fix for #1730, also change how update/loadPixels are called in Java2D