Hi,I have a problem with matplotlib crashing with a ref count assertion error. I see this problem intermittently both when using ipython using %run to execute plot scripts many times and when embedding a plot in a Tk application. In both cases I use TkAgg as a backend I have compiled matplotlib r3933 using mingw32 on windows using the win32_static library.
The smallest self contained example I have been able to come up with is this:
import random,time from numpy import pi,arange,sin import pylab pylab.ion() x=arange(0,6*pi,0.1) for i in range(1000): print i pylab.cla() for i in range(1): pylab.plot(x,sin(random.random()*pi+x*random.random()))which when executed generates the following output. Running this script several times I get the crash after around 60 iterations. On crash I also a messagebox, see attached png file.
Does anyone else see this? What can I do to help narrow down this bug. /Jörgen C:\python>python bugtest-matplotlib.py 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 Fatal Python error: PyEval_RestoreThread: NULL tstateThis application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
<<inline: bugtest-matplotlib.png>>
------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel