Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Backport PR #22002: Fix TkAgg memory leaks and test for memory growth regressions #22935

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

Merged

Conversation

tacaswell
Copy link
Member

FIX: TkAgg memory leaks and test for memory growth regressions (#22002)

tkinter variables get cleaned up with normal destroy and gc semantics but tkinter's implementation of trace is effectively global and keeps the callback object alive until the trace is removed.

Additionally extend and clean up the tests.

Closes #20490

Co-authored-by: Elliott Sales de Andrade [email protected]
(cherry picked from commit 1a016f0)

@tacaswell tacaswell added this to the v3.5.2 milestone Apr 29, 2022
@tacaswell tacaswell force-pushed the auto-backport-of-pr-22002-on-v3.5.x branch from 69eb739 to ec6fbfb Compare April 29, 2022 00:06
…ory growth regressions

FIX: TkAgg memory leaks and test for memory growth regressions (matplotlib#22002)

tkinter variables get cleaned up with normal `destroy` and `gc` semantics but tkinter's implementation of trace is effectively global and keeps the callback object alive until the trace is removed.

Additionally extend and clean up the tests.

Closes matplotlib#20490

Co-authored-by: Elliott Sales de Andrade <[email protected]>
(cherry picked from commit 1a016f0)
@QuLogic QuLogic merged commit 3653fc1 into matplotlib:v3.5.x Apr 29, 2022
@tacaswell tacaswell deleted the auto-backport-of-pr-22002-on-v3.5.x branch April 30, 2022 00:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants