-1

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 from 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)]

4
  • 1
    I'm afraid you haven't given much to go on.
    – Gabe
    May 31, 2011 at 3:56
  • 1
    Do you have an error log/ and information as to what is causing it to crash/ where it crashes?
    – Tim
    May 31, 2011 at 3:57
  • 1
    Look closer folks. If it says pythonw.exe then it is discarding the traceback. The traceback would point to where to begin debugging. Of course it could still be something to do with incompatible modules that were compiled with the wrong compiler, but a traceback is absolutely essential to get started. May 31, 2011 at 4:02
  • Crashes when running with pythonw or python, inside or outside spyder. there is a crash. The last line on script is print finished, which it does then crashed. I think it crashed on closing python.... error log? where to find.
    – Merlin
    May 31, 2011 at 12:56

2 Answers 2

8

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?

1
  • 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 that b4 posting, no trace
    – Merlin
    May 31, 2011 at 17:12
1

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.

1
  • People don't like it when you don't post code, or tracebacks. It would be -4 without my upvote. You might be able to get help on this at superuser.com because it is an OS kernel error. Jun 2, 2011 at 1:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.