Needed to manually run gc.collect in order to free up memory or else the program eventually crashes
My program eventually runs out of bitmap space and crashes when Tkinter complains of not being able to allocate space for a bitmap. If I call
gc.collect directly, on occasion, then I don't have this problem.
Is there something I should be doing differently? The same code run on CPython without experiencing the same memory leak behavior.