How to Solve – Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)

Process finished with exit code 139 (interrupted by signal 11: SIGSEGV) is an error which occurs for many different reasons including a faulty TensorFlow installation or trying to read or write from a file which is open.

This post is my attempt to explain to you why this error occurs and how you can solve it, I will also include multiple solutions that could be considered as alternative fixes to the error.

Exploring the Error : Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)

This is a very popular error which occurs for many different reasons including a faulty TensorFlow installation or trying to read or write from a file which is open.

The error should look like this. Double check in order to avoid mixing between errors.

How to Solve – Process finished with exit code 139 (interrupted by signal 11 SIGSEGV)-problem-banner

Bellow are the solutions which worked for me and will help you to successfully solve your problem.

Solution 1 : close the file while running your python script.

The problem is caused because you’re trying to read or write from a file which is open.

The solution is easy, close the file while running your python script.

This may sound like a noob mistake but keep in mind that even the most experienced developers are just mere mortals aka humans susceptible to making mistakes.

Run the script now and the solution should be gone.

If this solution does not fix your problem you can try the second solution.

Solution 2 : Downgrade TensorFlow or use tensorflow-gpu

The second solution is to try to downgrade TensorFlow for a huge number of people this is the solution that solves the issue

This is an article dedicated to downgrading TensorFlow https://phoenixnap.com/kb/upgrade-downgrade-tensorflow

The second option is to use tensorflow-gpu.

I hope this solution with the two options solved your issue or at least guided you in the right direction.

The solution should be enough, please try the final solution if this fails.

Solution 3 : replace cv2.SIFT() with cv2.SIFT_create()

This is for people who are getting this error while working with the OpenCV library.

The solution is simple, open your code / script and replace cv2.SIFT() with cv2.SIFT_create().

How to Solve – Process finished with exit code 139 (interrupted by signal 11 SIGSEGV)-problem-banner

The error should disappear when you run your script after applying the changes.

If this article has been useful for your particular case, consider donating to our Kofi account, there is a red button at the top of this page.

Summing-up

The article is over, I hope I have been able to help you solve the error process finished with exit code 139 (interrupted by signal 11: sigsegv) or at least guide you in the right direction, check out other solutions to different errors you can do that by using the search bar on top of this page.

Keep learning, keep coding guys, cheers. If you want to learn more about Python, please check out the Python Documentation : https://docs.python.org/3/