I found why the program crashed.
If the software tries to process a corrupted photo during database creation, the program crashes.
If there are no corrupted files, the program works just fine. ...