get_screenshot() adds a hook that gets called after the next iteration of draw(). It won't get the screenshot before then. The get_screenshot() method will wait for its screenshot, but somehow this prevents the animation thread from running. The Sketch gets caught in a Catch 22.
If this can't be fixed it should at least detect it and throw an error, alerting the user that the function is being used incorrectly.