Question

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?

 46  99958  46
1 Jan 1970

Solution

 18

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

2019-12-13

Solution

 10

Use faulthandler it will show the stack trace when application crashes through which u can debug the issue

import faulthandler

if __name__ == "__main__":

    faulthandler.enable() #start @ the beginning

    ... # application logic
2022-08-03