Thomas Maslach | 30 Jun 2012 06:25
Favicon

[issue15227] Fatal Python error: PyEval_RestoreThread: NULL tstate on example script..


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
(Continue reading)

Antoine Pitrou | 30 Jun 2012 14:34
Favicon

[issue15227] Fatal Python error: PyEval_RestoreThread: NULL tstate on example script..


Changes by Antoine Pitrou <pitrou <at> free.fr>:

----------
nosy: +gpolo, loewis

_______________________________________
Python tracker <report <at> bugs.python.org>
<http://bugs.python.org/issue15227>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/python-python-bugs-list%40m.gmane.org

Terry J. Reedy | 6 Jul 2012 21:46
Favicon

[issue15227] Fatal Python error: PyEval_RestoreThread: NULL tstate on example script..


Terry J. Reedy <tjreedy <at> udel.edu> added the comment:

On 3.3b0, Win7, 64-64 bit, run from IDLE, script brings up empty tk window. Closing it gives prompt back in
Shell window.

Maslach, can you retry with 2.7.3 (bug fix is generally a good idea anyway) and maybe 64 bit version (you can
install both 32 bit and 64 bit if you specify different directory -- I have done it.)

----------
nosy: +terry.reedy

_______________________________________
Python tracker <report <at> bugs.python.org>
<http://bugs.python.org/issue15227>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/python-python-bugs-list%40m.gmane.org


Gmane