Process finished with exit code -1073741819 (0xC0000005) every time PyCharm updates
Hi,
I'm running a code importing a third-party library OpenSim (a multi-body dynamics library written in C++ and provides python wrappers). I noticed that after every update of PyCharm the following error occurs at the same line of code while running a function from OpenSim.
- Process finished with exit code -1073741819 (0xC0000005)
The error is reported under the 'Run' terminal of PyCharm. The IDE itself doesn't crash, only the code exits.
I have contacted the OpenSim community, but the moderators said that the issue is not due to any update of OpenSim.
Here is the scenario. I was running the same code successfully until about two months ago. I always updated PyCharm when it informed me that there was an update, and the code was fine. Then I started working on another project, in the meantime updated PyCharm several times. Recently, I tried to run my code and got that access violation error. I tried it in the command line and it worked without any error. I thought that it's not about the python libraries or OpenSim, but about PyCharm. First, I reinstalled PyCharm, it didn't help, then I reinstalled Anaconda and all required libraries, and this worked. Today PyCharm updated again. In the first run of the code, it exited with the above error. In the later runs of the same PyCharm session it adds the following error too:
- Intel MKL ERROR: Parameter 4 was incorrect on entry to CGEBD2.
- Process finished with exit code -1073741819 (0xC0000005)
Now, without reinstalling PyCharm or Anaconda, I created another environment in Anaconda and reinstalled only the required libraries and OpenSim. This again solved the problem.
Is there anything really related to PyCharm? I can share the code, the least number of models, setup, and data files, and also the minimum conda environment to run and hopefully reproduce the error. I hope you won't need that much.
Thanks in advance.
Please sign in to leave a comment.
Hi,
Sharing the code and steps for reproducing would greatly help in troubleshooting this problem since I haven't found other reports about it. And especially because it works fine in the command line. There are similar ones but they all are related to the debugger, such as https://youtrack.jetbrains.com/issue/PY-36300
The forum doesn't allow file attachments so please file a ticket to https://youtrack.jetbrains.com/issues/PY
Thanks Sergey. I've posted it:
https://youtrack.jetbrains.com/issue/PY-45671
Hi, I've had the exact same issue and reinstalled PyCharm and OpenSim over and over again, but it wasn't a problem related to PyCharm though. My script reported the same error when I ran it in the command line tool and not in PyCharm.
Fix: What was missing is that I haven't added the installation path C:\OpenSim 4.3\bin to my PATH. Changing that and all problems were solved.
I know that this contribution is not related to PyCharm, but I wanted you to know my solution.
Cheers