After using the detectTextSWT function, the program crashes

similar :

(probably not your fault, but a bug)