sometimes (not always but reproducable) drawing an arrow which would be drawn outside the image shows error messages and crashes the program some time later.
This screenshot says everything

Mostly happens when the cursor end will be drawn partly inside the image area and partly outside.

