'Process finished with exit code -1073741819 (0xC0000005) Pycharm
I'm completly stuck on this. I keep getting error message
Process finished with exit code -1073741819 (0xC0000005)
I'm using pycharm with pyqt5.6 and qt5.6.2 and the problem started when I upgraded to these versions.
I've tried searching as much as I can, but have not been able to find an answer. Can anyone help please?
Solution 1:[1]
Assume you are running under Windows. Application Error code 0xc0000005, also known as Access Violation error, is a common problem experienced by Windows users, regardless of os version. There are various causes to trigger Application Error 0xc0000005. For my case, I'm running debug mode in PyCharm (or Eclipse) with code that includes the following:
from pympler import muppy
all_objects=muppy.get_objects() # this causes pydev debugger exit with code -1073741819 (0xC0000005)
It was perfectly fine if execute the same piece of code through PyCharm in non-debug (Run) mode. Disabled the above code in debug mode, issue resolved.
Environment: PyCharm Community 2019.3, Anaconda 3, Python 3.7.3, pympler 0.7, Windows 10 Enterprise
Solution 2:[2]
Not sure if this is the 'right' way to do it but I ended up completely uninstalling anaconda and rebuilding it. When I then made a new virtual environment the problem resolved. If others have the same issue this might work too. By the way the problem first occurred with an update to pyqt5.
Solution 3:[3]
I just ran into this error, and found it was caused by using a method from a newer version of Python than my venv was configured (match/case in 3.10.0 with 3.8 as the interpreter)
Solution 4:[4]
I had the same problem solve it by updating my tensorflow. There is probably some kind of compatibility problem. I realize the problem was from my "import tensorflow" because i was not getting an obvious error right after the import line.
Solution 5:[5]
I encountered the same issue today. I found this question while Googling for an answer! By luck, I found the root cause in my code.
When I tried to expand a self pointer in the IntelliJ Python debugger, my Python interpreter would crash with: Process finished with exit code -1073741819 (0xC0000005)
Here is the code that caused the issue:
@property
def prop(self):
return self.prop # Facepalm: I meant to write: self._prop
When expanding self in the debugger, IntelliJ iterates all properties in the object. If there is infinite loop/recursion, the Python interpreter will crash.
Solution 6:[6]
I had the same problem today when plotting a simple matrix. For me just changing the Python interpreter helped. I am not sure why, but I could imagine it has something to do with the installed libraries.
Solution 7:[7]
Same problem, this resolved in my case:
- try run from command line (no pycharm), it works ( exception only in debug )
- closed pycharm
- deleted ".idea" folder inside project path
- opened pycharm
- reconfigure python runtime version and command line parameter
- debug works
Solution 8:[8]
While developing SQLAlchemy application I run into the same issue.
I've added the -X dev (https://docs.python.org/3/using/cmdline.html#miscellaneous-options) Interpreter options in PyCharm Run/Debug Configurations which resulted in new exceptions instead of crashing with -1073741819 (0xc0000005). These exceptions did not appear before.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Jonathan L |
| Solution 2 | Tomerikoo |
| Solution 3 | rktkt |
| Solution 4 | |
| Solution 5 | kevinarpe |
| Solution 6 | Marvin |
| Solution 7 | alessandro zuin |
| Solution 8 | Raphael Bossek |
