You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
PySide2 memory leak during canvas paintEvent #12089
A memory leak occurs during every frame draw when PySide2 is used with Python3. This issue was already fixed for PySide in the method matplotlib.backends.backend_qt5agg.FigureCanvasQtAgg.paintEvent
However, an additional check for QT_API == 'PySide2' is needed.
@dabana Thank you. I sort of managed to get the fix into a merge request. However, I will have a closer look at the developer-guide in order to do it properly next time. Cheers.
Activity
simon-kraeusel commentedon Sep 11, 2018
The fix to this issue is:
to be inserted into
matplotlib.backends.backend_qt5agg.FigureCanvasQtAgg.paintEventI am new to github so don't know how to create a branch/commit/pull request sensibly. I will look into it and try to commit this fix.
anntzer commentedon Sep 11, 2018
Indeed looks like PySide2 also suffers from the same issue (https://bugreports.qt.io/browse/PYSIDE-140?focusedCommentId=403528&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-403528), so I agree with the fix.
dabana commentedon Sep 11, 2018
@simon-kraeusel checkout the matplotlib developper guide for a step by step guide how to contribute.
simon-kraeusel commentedon Sep 11, 2018
@dabana Thank you. I sort of managed to get the fix into a merge request. However, I will have a closer look at the developer-guide in order to do it properly next time. Cheers.