Python已停止工作 [英] Python has stopped working
问题描述
我正在Windows 10计算机上运行Python脚本.该脚本读取存储为.tar.gz的压缩数据文件,对其进行处理,然后读取下一个文件.通过这种方式,它可以处理数千个文件.
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.
我在Windows10 Powershell中运行Scipt,并且-似乎是随机的-我经常遇到以下错误:
I run the scipt in a windows10 powershell, and -seemingly randomly- I often get the following error:
有时候,这是在一天后发生的,有时是在几分钟后发生的. 我选择关闭程序",脚本终止.查看Windows事件查看器,我可以看到以下条目:
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:
错误的应用程序名称:python.exe,版本:3.6.2150.1013,时间 标记:0x59c1326e故障模块名称:multiarray.cp36-win_amd64.pyd, 版本:0.0.0.0,时间戳:0x59c3eeda异常代码:0xc0000005
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?
推荐答案
0xc0000005表示内存访问冲突"错误. 相关信息似乎表明这是在python处理数组时发生的.
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.
如果您能够始终如一地复制问题,并且python代码似乎是正确的-这可能是python中罕见的bug.
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.
这篇关于Python已停止工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!