I have a piece of code that graphs streaming data in a new window. If the
cursor is within the graphing window and the cursor has been moved after the
command has been sent to start graphing data, the graphing window would
crash and the message says that "python.exe has stopped working".
In the CMD window, the following error is displayed:
"TclStackFree: incorrect freePtr. Call out of sequence?
This application has requested the Runtime to terminate it in an unusual
Please contact the application's support team for more information."
I've tried changing from python 2.7.7 to 2.7.8 and matplotlib-1.3.1 to
1.4.2. The problem persists in both cases.
Any help or insight would be greatly appreciated.
Python code used pertaining to graphing streaming data:
ekg_lock = Lock()
ekg_data = Queue()
t = Thread(target=ekg_plotter)
t.daemon = True
graph_data = zeros(2000)
graph, = plot(graph_data)
newData = 
size_q = ekg_data.get()
graph_data = np.concatenate((graph_data[(len(size_q)):], size_q))
packet, dictionary = packet_dictionary
data = dictionary["values"]
dataList = [data[i:i+EKG_DATA_SIZE] for i in range(0, len(data),
parsedList = [unpack("<b", x) for x in dataList]
View this message in context: http://matplotlib.1069221.n5.nabble.com/TclStackFree-incorrect-freePtr-Call-out-of-sequence-tp44287.html
Sent from the matplotlib - devel mailing list archive at Nabble.com.