Reputation: 821
I'm getting a strange error "Process finished with exit code -1073741819 (0xC0000005)" running python 3.7 on a windows machine. The process just crashes. The error comes in random time. It seems to appear inside a thread.
Is there someway to get more information where exactly the error comes from? Right now my only solution is to add logging, but that is really time consuming.
Thanks a lot for any hint.
Upvotes: 6
Views: 10349
Reputation: 2743
I've seen this error occur when a Python script has infinite (or very deep) recursion and the following code is used to increase the recursion limit:
import sys
sys.setrecursionlimit(4000)
I would guess that the error means we are running out of memory.
Upvotes: 4
Reputation: 51
I had the same issue, not long time ago and I have solved this with the following solution:
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
Upvotes: 3