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.
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.
"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.
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.
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.
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.
{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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With