python安装程序已停止工作,Python已停止工作

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:

oqr9V.jpg

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?

解决方案

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.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值