PyPlot crashes upon closing

Hej there!
I am using PyPlot to draw onto a Tkinter GUI (in Python 2.6). Works fine,
but when I close the window (root.destroy()) PyPlot apparently crashes with
the error message "Fatal Python error: PyEval_RestoreThread: NULL tstate"
(error 0x40000015). All I found was
http://groups.google.com/group/comp.lang.python/msg/8e6bbae27a99f6d3 this
but it didnt help, I am using matplotlib 1.0.0.

Some pointers would be great, I am still a rookie when it comes to
programming...

Thanks in advance /Jakob

···

--
View this message in context: http://old.nabble.com/PyPlot-crashes-upon-closing-tp32184426p32184426.html
Sent from the matplotlib - users mailing list archive at Nabble.com.

Jakob,

A little while back, we put out an important v1.0.1 release that addressed many issues with the various backends. While I don’t remember all of the bugs it fixed, it may have fixed that one. I would suggest installing that version and seeing if it work for you.

Ben Root

···

On Wed, Aug 3, 2011 at 3:50 AM, Jakob123 <jakob.gleissl@…3436…> wrote:

Hej there!

I am using PyPlot to draw onto a Tkinter GUI (in Python 2.6). Works fine,

but when I close the window (root.destroy()) PyPlot apparently crashes with

the error message “Fatal Python error: PyEval_RestoreThread: NULL tstate”

(error 0x40000015). All I found was

http://groups.google.com/group/comp.lang.python/msg/8e6bbae27a99f6d3 this

but it didnt help, I am using matplotlib 1.0.0.

Some pointers would be great, I am still a rookie when it comes to

programming…

Thanks in advance /Jakob

Dear Jakob and Ben,

I am seeing the same error. This is with a clean install of Python 2.7,
numpy 1.6.1, and matplotlib 1.0.1 (all 32-bit versions running under a Win 7
64-bit OS). In fact, all I am doing to test this is to execute the
'embedding_in_tk.py' example that is on the examples web page, with the
button calls at the end of the script uncommented. Any attempt to use that
'Quit' button causes the NULL tstate error.

Any info on this would be appreciated. I'm not saying I'm an expert, but
given that this isn't working "out of the box," it appears to be a bug.

Chad

Benjamin Root-2 wrote:

···

On Wed, Aug 3, 2011 at 3:50 AM, Jakob123 > <jakob.gleissl@...3436...>wrote:

Hej there!
I am using PyPlot to draw onto a Tkinter GUI (in Python 2.6). Works fine,
but when I close the window (root.destroy()) PyPlot apparently crashes
with
the error message "Fatal Python error: PyEval_RestoreThread: NULL tstate"
(error 0x40000015).

Jakob,

A little while back, we put out an important v1.0.1 release that addressed
many issues with the various backends. While I don't remember all of the
bugs it fixed, it may have fixed that one. I would suggest installing
that
version and seeing if it work for you.

Ben Root

--
View this message in context: http://old.nabble.com/PyPlot-crashes-upon-closing-tp32184426p32304069.html
Sent from the matplotlib - users mailing list archive at Nabble.com.