Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Process finished with exit code 137 in PyCharm

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.

like image 339
shawe Avatar asked Apr 07 '17 01:04

shawe


People also ask

What does it mean process finished with exit code?

What is the meaning of process finished with exit code? It means the program ran without any errors. Run exit(1) and it'll say it ran with exit code 1. Useful if someone wants to run your program from a script and act on the code returned. 5.23-May-2021.

What does process finished with exit code 0 mean in Pycharm?

"process finished with exit code 0" -! It means that there is no error in your code. Nothing to worry about. YouTrack Workflow commented 27 Sep 2021 09:00.

How do you resolve a process finished with exit code 1?

Exit Code 1 is often caused by application errors that cause the application, and the entire container, to exit. If you determine that Exit Code 1 is caused by an application, you can experiment with various configuration options of the application to prevent it from exiting.

What means process finished with exit code 0?

Whenever I run any code, my console always ends with Process finished with exit code 0 . Solution: It means that there is no error with your code. You have run it right through and there is nothing wrong with it.


2 Answers

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.

like image 164
ykaner Avatar answered Sep 21 '22 20:09

ykaner


{In my experience}

this is because of Memory issue. When I try to train ml model using sklearn fit with full data set , it abruptly breaks and gives whereas with small data it works fine.

Process finished with exit code 137 (interrupted by signal 9: SIGKILL) Interestingly this is not caught in Exception block either

like image 21
BrB Avatar answered Sep 22 '22 20:09

BrB