开发者

How to stop Python Crashes on exit

开发者 https://www.devze.com 2023-03-09 03:40 出处:网络
After a script runs, the Python instance crashes. Error Signature is: AppName pythonw.exe AppVer 0.0.0.0 ModName:ntdll.dll

After a script runs, the Python instance crashes.

Error Signature is:

AppName pythonw.exe AppVer 0.0.0.0 ModName:ntdll.dll
ModVer 5.2.3790.3959 Offset 00020d8e

The script sometimes works fine, then other crashes. It launched fro开发者_如何转开发m with Spyder. When launched outside of Spyder, still crashes.

The first run seems to work, but the second gives crashes.

Python version. Python 2.6.6 (r266:84297, Aug 24 2010, 18:46:32) [MSC v.1500 32 bit (Intel)]


When this kind of thing happens, your first move has to be to STOP using pythonw.exe to run the script. Start the script with python.exe so that you get a console window and you can see the traceback message. That will usually tell you what part of the code is causing the crash.

Did you install Spyder using the Python 2.6 version of the binary?


This is an error in the NT Kernel Layer DLL which is part of the Windows OS. Most likely causes are an OS bug, or a hardware problem. You might want to go into Windows Update and see if there are any optional updates for hardware that you have installed.

This has nothing directly to do with Python and the best that you could hope to do would be to figure out what part of your script triggers the OS bug, and avoid doing that.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号