This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Mirano Tuk
Recipients Mirano Tuk, ned.deily, ronaldoussoren
Date 2016-07-16.08:59:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1468659594.57.0.874170107699.issue27529@psf.upfronthosting.co.za>
In-reply-to
Content
There seems to be a memory leak in tkinter on OSX (Windows and Linux don't seem to be affected). Explicitly calling Tk.update() sometimes permanently allocates a multiple of 4096 bytes. Allocation happens more frequently if update calls are in close succession.

import time
from tkinter import Tk
root = Tk()

while True:
    root.update()  # Huge memory leak

while True:
    root.update()  # No memory leaks
    time.sleep(1)

Issue occurs on python3.3 and above, did not test on older versions.
History
Date User Action Args
2016-07-16 08:59:54Mirano Tuksetrecipients: + Mirano Tuk, ronaldoussoren, ned.deily
2016-07-16 08:59:54Mirano Tuksetmessageid: <1468659594.57.0.874170107699.issue27529@psf.upfronthosting.co.za>
2016-07-16 08:59:54Mirano Tuklinkissue27529 messages
2016-07-16 08:59:54Mirano Tukcreate