Oh, I forgot to mention that it would help to get the Python traceback on the crash. Try faulthandler: add faulthandler.enable() at the beginning of your program. https://docs.python.org/dev/library/faulthandler.html Maybe I should write once tools to debug such bug :-) Victor