Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Process finished with exit code -1073741515 (0xC0000135)

I'm running a python script and it used to work (it even does on my other laptop right now) but not on my current computer - I just get the error code:

Process finished with exit code -1073741515 (0xC0000135)

I don't get any other results - not even from "print" commands at the beginning of the file.

I haven't found anything specific to that. I re-installed python (2.7.9), pygame (1.9.1) and even pycharm (tried 4.5 first, now with 5.0 - same result)

Does anyone know what that error code means? I couldn't find anything about it.

like image 794
Cribber Avatar asked Nov 07 '15 12:11

Cribber


People also ask

What does it mean process finished with exit code?

It means that there is no error with your code. You have run it right through and there is nothing wrong with it.

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

In a Unix/Linux operating system, when an application terminates with Exit Code 1, the operating system ends the process using Signal 7, known as SIGHUP. If you see containers terminated with Exit Code 1, you'll need to investigate the container and its applications more closely to see what caused the failure.

What is process finished with exit code 0 in Python?

Exit code 1 occurs whenever there is an error in our code, but exit code 0 means that there is no error and our code has run entirely without any problem.


3 Answers

reinstall python – you don't have python33.dll in c:\WINDOWS\system32\

Maybe you have different python versions – look at folders in root of c:

If yes, then point to your version of python.exe in pyCharm > Settings > Project Interpreter

like image 125
Dunot Avatar answered Oct 16 '22 18:10

Dunot


This may be due to another program locking that memory location. Before you try more drastic measures, know that restarting the computer fixed the problem for me.

like image 26
BarLr Avatar answered Oct 16 '22 19:10

BarLr


The error seems to be related to issues in native code (e.g. C/C++) and might be related to issues in loading some dll file. To know which file, the Windows "Event Viewer" is your friend.

The "Event Viewer" -> "Windows Logs" -> "Application" feed usually shows one or more rows for each crashed application and one of them should list the problematic filename.

Personally I observed similar issue with matplotlib on Python 3.9 (installed using Anaconda on Windows 10). I could see this kind of error when the code was executed using PyCharm. The same code just crashed with no visible errors when starting from Anaconda console.

The Event viewer then showed issue with freetype.dll. In this case, the problem was fixed by downgrading the packege from 2.11.0 to 2.10.4:

conda install freetype=2.10.4

Depending on the exact issue, I could imagine that removing pycache folder might help (like mentioned in other answers). Also, sometimes it might make sense to look at the PATH environment variable to actually understand why certain dll file is loaded from such a location.

like image 6
Jonppe Avatar answered Oct 16 '22 18:10

Jonppe