That is, there are no exceptions in the journal? Does it just happen to go out in different places?
To see each statement as it is executed, use the trace module :
python -u -m trace -t program.py
To run the program in the debugger, use pdb :
python -m pdb program.py
With these two, you can see if something in the program causes it to exit. If you do not see any evidence or patterns, then this may be something outside the program, which leads to her death.
On Linux, I would also try to run the program with help straceand watch for the OOM killer or segfaults. Not sure if such steps would be in Windows, Windows does not have an OOM killer.
source
share