Title: PySide2 memory leak during canvas paintEvent · Issue #12089 · matplotlib/matplotlib · GitHub
Open Graph Title: PySide2 memory leak during canvas paintEvent · Issue #12089 · matplotlib/matplotlib
X Title: PySide2 memory leak during canvas paintEvent · Issue #12089 · matplotlib/matplotlib
Description: Bug report 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...
Open Graph Description: Bug report 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...
X Description: Bug report 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...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/12089
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"PySide2 memory leak during canvas paintEvent","articleBody":"\u003c!--To help us understand and resolve your issue, please fill out the form to the best of your ability.--\u003e\r\n\u003c!--You can feel free to delete the sections that do not apply.--\u003e\r\n\r\n### Bug report\r\n\r\nA 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`\r\nHowever, an additional check for `QT_API == 'PySide2'` is needed.\r\n\r\n**Code for reproduction**\r\n\r\n\u003c!--A minimum code snippet required to reproduce the bug, also minimizing the number of dependencies required--\u003e\r\n\r\n```python\r\nimport matplotlib\r\nmatplotlib.use('Qt5Agg')\r\nimport matplotlib.pyplot as plt\r\nplt.plot([1,2],[1,2])\r\nplt.show()\r\n```\r\n\r\n**Actual outcome**\r\n\r\nWhen a redraw of the figurecanvas is forced, the program memory increases steadily. For example during resizing the popup window.\r\n\r\n**Expected outcome**\r\n\r\nConstant memory during ui execution. \r\n\r\n**Matplotlib version**\r\n\u003c!--Please specify your platform and versions of the relevant libraries you are using:--\u003e\r\n * Operating system: Windows 10\r\n * Matplotlib version: 2.2.2\r\n * Matplotlib backend (`print(matplotlib.get_backend())`): Qt5Agg\r\n * Python version: 3.7\r\n\r\nall packages are pip installed\r\n\r\n","author":{"url":"https://github.com/simon-kraeusel","@type":"Person","name":"simon-kraeusel"},"datePublished":"2018-09-11T07:03:11.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/12089/matplotlib/issues/12089"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:6dca0587-8337-0236-d9a0-8e44ca2bf4cb |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9692:32425C:1040906:15F8201:6A544A6C |
| html-safe-nonce | a6aa64fc440067d8cd21cac0d928a058af9d07fcafe0af8af86edea526ed3e67 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NjkyOjMyNDI1QzoxMDQwOTA2OjE1RjgyMDE6NkE1NDRBNkMiLCJ2aXNpdG9yX2lkIjoiNzAxNjMzNjU1MTY2MDc2Nzg1MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 6a931fcef319ace14d6cd484f662fd77308a434c48d7d3ff7afde0e6c615430d |
| hovercard-subject-tag | issue:358913188 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/matplotlib/matplotlib/12089/issue_layout |
| twitter:image | https://opengraph.githubassets.com/25be19117680422b98d08ce6d631127c2c161d704b062aa8d584bf921efe9239/matplotlib/matplotlib/issues/12089 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/25be19117680422b98d08ce6d631127c2c161d704b062aa8d584bf921efe9239/matplotlib/matplotlib/issues/12089 |
| og:image:alt | Bug report 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... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | simon-kraeusel |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| go-import | github.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git |
| octolytics-dimension-user_id | 215947 |
| octolytics-dimension-user_login | matplotlib |
| octolytics-dimension-repository_id | 1385122 |
| octolytics-dimension-repository_nwo | matplotlib/matplotlib |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1385122 |
| octolytics-dimension-repository_network_root_nwo | matplotlib/matplotlib |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width