In the program I use multithreadings. But I don't know whether it's the key to cause the problem. For the package, there are matplotlib,numpy,cartopy,threading. As the program runs,the mouse point becomes a spinning circle. Sometimes it is interrupted, and gets the error description:
Tcl_AttemptSetObjLength called with shared object. This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. Fatal Python error: PyEval_RestoreThread: NULL tstate