Hi the problem is not solved but I have found a workaround. I have found out that "self.result.addTO(self.line)" is causing problems. No idea why it crashed sometimes, but not it is stable. Robert