Title: interactive figure close with wxpython 4.1 causes freeze / crash (segfault?) · Issue #17769 · matplotlib/matplotlib · GitHub
Open Graph Title: interactive figure close with wxpython 4.1 causes freeze / crash (segfault?) · Issue #17769 · matplotlib/matplotlib
X Title: interactive figure close with wxpython 4.1 causes freeze / crash (segfault?) · Issue #17769 · matplotlib/matplotlib
Description: Bug report Bug summary In an interactive session with a wxpython PyShell, closing a matlotlib figure by clicking on the 'x' in upper right corner causes the python shell to freeze for a few seconds, then it exits without any error messag...
Open Graph Description: Bug report Bug summary In an interactive session with a wxpython PyShell, closing a matlotlib figure by clicking on the 'x' in upper right corner causes the python shell to freeze for a few seconds...
X Description: Bug report Bug summary In an interactive session with a wxpython PyShell, closing a matlotlib figure by clicking on the 'x' in upper right corner causes the python shell to freeze for a few...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/17769
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"interactive figure close with wxpython 4.1 causes freeze / crash (segfault?)","articleBody":"### Bug report\r\n\r\n**Bug summary**\r\n\r\nIn an interactive session with a wxpython PyShell, closing a matlotlib figure by clicking on the 'x' in upper right corner causes the python shell to freeze for a few seconds, then it exits without any error message.\r\n\r\n**Code for reproduction**\r\n\r\nopen PyShell with\r\npython ….\\lib\\site-packages\\wx\\py\\PyShell.py\r\n\r\nThen run:\r\n```python\r\nimport matplotlib\r\nmatplotlib.use('wxagg')\r\nmatplotlib.interactive(True)\r\nmatplotlib.pyplot.figure()\r\n```\r\nThen close the figure by clicking on the 'x' in upper right corner.\r\n\r\n\r\n**Expected outcome**\r\n\r\nFigure closes and shell can be used for further commands.\r\n\r\n**Matplotlib version**\r\n * Operating system: Windows 10 \r\n * Matplotlib version: 3.2.2\r\n * Matplotlib backend (`print(matplotlib.get_backend())`): wxagg\r\n * Python version: 3.8.3\r\n * Other libraries: wxpython 4.1.0 msw (phoenix) wxWidgets 3.1.4\r\n\r\nInstallation procedure:\r\nInstall Winpython64-3.8.3.0dot.exe\r\nIn winpython's command prompt:\r\npip install wxpython matplotlib\r\n\r\n**Further notes**\r\n\r\nClosing the figure with the following command avoids the error:\r\n```python\r\nmatplotlib.pyplot.close('all')\r\n```\r\n\r\n","author":{"url":"https://github.com/lfriedri","@type":"Person","name":"lfriedri"},"datePublished":"2020-06-26T14:27:50.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":13},"url":"https://github.com/17769/matplotlib/issues/17769"}
| 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:dac70050-de1b-3973-483a-d961488d5df2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8B9C:1525EF:5D89CB:7C1DED:6A51748A |
| html-safe-nonce | b64eb41315c21e2ebe3fefd7dd402472dd2ba4279a7807fe4e8bdae32d9a8931 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QjlDOjE1MjVFRjo1RDg5Q0I6N0MxREVEOjZBNTE3NDhBIiwidmlzaXRvcl9pZCI6IjQ0NzAyMDA4NzY4MzM3OTcyNTgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | e81c63c50540670d84d0e68f2c1830758bc18aa1ac4aa3c47cb97b51405ec852 |
| hovercard-subject-tag | issue:646301318 |
| 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/17769/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8b8c8fd0e21d413c4fd813f53b84ce9d62935e6af7c80ed3fe900a1695248304/matplotlib/matplotlib/issues/17769 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8b8c8fd0e21d413c4fd813f53b84ce9d62935e6af7c80ed3fe900a1695248304/matplotlib/matplotlib/issues/17769 |
| og:image:alt | Bug report Bug summary In an interactive session with a wxpython PyShell, closing a matlotlib figure by clicking on the 'x' in upper right corner causes the python shell to freeze for a few seconds... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | lfriedri |
| 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 | b19955a9dd40fd99462443f7911b522d7216776a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width