'When debugging script: Process finished with exit code -1073741819 (0xC0000005) but not when running script
I am getting this error when using the debugger, and I am not having it when running my code. I am trying to understand this answer which seems to raise the same thing but that barely gives any advice on what to do (or maybe I misunderstood what the person wanted to say).
In my case, there was indeed an error in my code. I had written for attribute_idx, attribute in list
instead of for attribute_idx, attribute in enumerate(list)
. But because the debugger was outputing nothing but Process finished with exit code -1073741819 (0xC0000005)
, I had a hard time finding the error (I had to run the code without the debugger, which I literally never do when I'm developping - so I spent at least 10-15 minutes completely lost).
I am not able to make a minimal reproducible example, both running the code and the debugger seem to be working well when the code is small enough. This is my attempt at reproducing it:
try:
a = ["1", "2", "3", "4"]
for b, c in a:
print(b, c)
except Exception as e:
print(e)
Attempt that did not yield anything, because the error clearly shows both in the debug mode and in the normal mode.
I would like to know how to avoid this error? I've seen other answers saying it was related to my RAM, but I've checked and I was only using 12 GB of the 16 available during the error.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|