[issue27529] Tkinter memory leak on OS X
Mirano Tuk
report at bugs.python.org
Sat Jul 16 04:59:54 EDT 2016
New submission from Mirano Tuk:
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.
----------
components: Macintosh, Tkinter
messages: 270550
nosy: Mirano Tuk, ned.deily, ronaldoussoren
priority: normal
severity: normal
status: open
title: Tkinter memory leak on OS X
type: resource usage
versions: Python 3.3, Python 3.4, Python 3.5, Python 3.6
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27529>
_______________________________________
More information about the Python-bugs-list
mailing list