Python has stopped working

对着背影说爱祢 提交于 2020-01-13 09:03:13

问题


I'm running a Python script on my windows 10 machine. The script reads compressed data files, stored as .tar.gz, processes it, and then reads the next one. In this manner it processes thousands of files.

I run the scipt in a windows10 powershell, and -seemingly randomly- I often get the following error:

Some times this happens after a day, sometimes already after a few minutes. I select 'Close program' and the script is terminated. Looking into Windows event viewer, I can see the following entry:

Faulting application name: python.exe, version: 3.6.2150.1013, time stamp: 0x59c1326e Faulting module name: multiarray.cp36-win_amd64.pyd, version: 0.0.0.0, time stamp: 0x59c3eeda Exception code: 0xc0000005

Any ideas on how to avoid this error message?


回答1:


0xc0000005 means 'memory access violation' error. The related info seems to indicate this happens when python is processing arrays.

You can try to trouble shoot by adding logs so you can identify the issue. The problem may be solved by changing related code.

If you are able to replicate the issue consistently and the python code seems correct - it may be a rare case of a bug in python.



来源:https://stackoverflow.com/questions/47828821/python-has-stopped-working

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!