[New-bugs-announce] [issue15227] Fatal Python error: PyEval_RestoreThread: NULL tstate on example script..

Thomas Maslach report at bugs.python.org
Sat Jun 30 06:25:56 CEST 2012


New submission from Thomas Maslach <tommaslach at gmail.com>:

I've been running into a bug recently and reduced the code to the following:

import Tkinter                    
tk = Tkinter.Tk()
window = Tkinter.Frame(tk)
def onDestroy (event):
  pass
window.bind ("<Destroy>", onDestroy)


Just run and the following will be displayed: 
Fatal Python error: PyEval_RestoreThread: NULL tstate

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.

If you add window.mainloop(), the issue goes aware.  However, I don't do that in my case.  window.update(), by the way, still causes the crash if that is of any interest (I found this tinkering)..

I'm running with:
 - Window 7
 - Python 2.7.2
 - 64-bit machine, but 32-bit Python

Thanks!

----------
components: Tkinter
messages: 164367
nosy: tmaslach
priority: normal
severity: normal
status: open
title: Fatal Python error: PyEval_RestoreThread: NULL tstate on example script..
type: crash
versions: Python 2.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15227>
_______________________________________


More information about the New-bugs-announce mailing list