Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop test_idle memory leaks #71231

Closed
terryjreedy opened this issue May 17, 2016 · 2 comments
Closed

Stop test_idle memory leaks #71231

terryjreedy opened this issue May 17, 2016 · 2 comments
Assignees
Labels
type-bug An unexpected behavior, bug, or error

Comments

@terryjreedy
Copy link
Member

BPO 27044
Nosy @terryjreedy

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = 'https://github.com/terryjreedy'
closed_at = <Date 2016-05-17.02:29:20.514>
created_at = <Date 2016-05-17.01:18:48.906>
labels = ['type-bug']
title = 'Stop test_idle memory leaks'
updated_at = <Date 2016-05-17.02:29:20.513>
user = 'https://github.com/terryjreedy'

bugs.python.org fields:

activity = <Date 2016-05-17.02:29:20.513>
actor = 'terry.reedy'
assignee = 'terry.reedy'
closed = True
closed_date = <Date 2016-05-17.02:29:20.514>
closer = 'terry.reedy'
components = []
creation = <Date 2016-05-17.01:18:48.906>
creator = 'terry.reedy'
dependencies = []
files = []
hgrepos = []
issue_num = 27044
keywords = []
message_count = 2.0
messages = ['265743', '265747']
nosy_count = 2.0
nosy_names = ['terry.reedy', 'python-dev']
pr_nums = []
priority = 'normal'
resolution = 'fixed'
stage = 'resolved'
status = 'closed'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue27044'
versions = ['Python 2.7', 'Python 3.5', 'Python 3.6']

@terryjreedy
Copy link
Member Author

test_idle leaked [2648, 2648, 2648] references, sum=7944
test_idle leaked [938, 940, 940] memory blocks, sum=2818

I traced this to test_configdialog and then to ConfigDialog.AttachVarCallbacks, which has 18 call like
self.fontSize.trace_variable('w', self.VarChanged_font)
Currently, root.destroy does not destroy associated callbacks. Serhiy has a patch to change this, but will do explicit cleanup for the test anyway.

@terryjreedy terryjreedy self-assigned this May 17, 2016
@terryjreedy terryjreedy added the type-bug An unexpected behavior, bug, or error label May 17, 2016
@python-dev
Copy link
Mannequin

python-dev mannequin commented May 17, 2016

New changeset 9e1c859562bb by Terry Jan Reedy in branch '2.7':
Backports: bpo-25747: remove bad test. bpo-27044: stop test_idle from leaking.
https://hg.python.org/cpython/rev/9e1c859562bb

New changeset 6a33d8d5d208 by Terry Jan Reedy in branch '3.5':
Issue bpo-27044: stop test_idle from leaking by deleting callbacks.
https://hg.python.org/cpython/rev/6a33d8d5d208

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

1 participant