Skip to content

Update backend_qt5agg to fix PySide2 mem issues #12092

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
merged 1 commit into from
Sep 11, 2018

Conversation

simon-kraeusel
Copy link
Contributor

@simon-kraeusel simon-kraeusel commented Sep 11, 2018

Pyside2 seems to have the same issue as PySide where the QImage data reference is incorrect and needs to be adjusted for the Python garbage collector.

Closes #12089

PR Summary

PR Checklist

  • Has Pytest style unit tests
  • Code is Flake 8 compliant
  • New features are documented, with examples if plot related
  • Documentation is sphinx and numpydoc compliant
  • Added an entry to doc/users/next_whats_new/ if major new feature (follow instructions in README.rst there)
  • Documented in doc/api/api_changes.rst if API changed in a backward-incompatible way

Pyside2 seems to have the same issue as PySide where the QImage data reference is incorrect and needs to be adjusted for the Python garbage collector.
@jklymak jklymak added this to the v2.2.4 milestone Sep 11, 2018
@jklymak jklymak merged commit 603b4fa into matplotlib:master Sep 11, 2018
@lumberbot-app
Copy link

lumberbot-app bot commented Sep 11, 2018

Owee, I'm MrMeeseeks, Look at me.

There seem to be a conflict, please backport manually. Here are approximate instructions:

  1. Checkout backport branch and update it.
$ git checkout v2.2.x
$ git pull
  1. Cherry pick the first parent branch of the this PR on top of the older branch:
$ git cherry-pick -m1 603b4faf539531a6a02933a4ef7369f4c860dead
  1. You will likely have some merge/cherry-pick conflict here, fix them and commit:
$ git commit -am 'Backport PR #12092: Update backend_qt5agg to fix PySide2 mem issues'
  1. Push to a named branch :
git push YOURFORK v2.2.x:auto-backport-of-pr-12092-on-v2.2.x
  1. Create a PR against branch v2.2.x, I would have named this PR:

"Backport PR #12092 on branch v2.2.x"

And apply the correct labels and milestones.

Congratulation you did some good work ! Hopefully your backport PR will be tested by the continuous integration and merged soon!

If these instruction are inaccurate, feel free to suggest an improvement.

meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request Sep 11, 2018
jklymak added a commit to jklymak/matplotlib that referenced this pull request Sep 11, 2018
jklymak added a commit that referenced this pull request Sep 11, 2018
…092-on-v3.0.x

Backport PR #12092 on branch v3.0.x (Update backend_qt5agg to fix PySide2 mem issues)
anntzer added a commit that referenced this pull request Sep 11, 2018
…2.2.x

Backport PR #12092: Update backend_qt5agg to fix PySide2 mem issues
@tacaswell
Copy link
Member

Thanks @simon-kraeusel !

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.

PySide2 memory leak during canvas paintEvent
4 participants