Process finished with exit code 137 in PyCharm

shawe picture shawe · Apr 7, 2017 · Viewed 52.5k times · Source

When I stop the script manually in PyCharm, process finished with exit code 137. But I didn't stop the script. Still got the exit code 137. What's the problem?

Python version is 3.6, process finished when running xgboost.train() method.

Answer

ykaner picture ykaner · Jun 18, 2018

Exit code 137 means that your process was killed by (signal 9) SIGKILL . In the case you manually stopped it - there's your answer.

If you didn't manually stop the script and still got this error code, then the script was killed by your OS. In most of the cases, it is caused by excessive memory usage.