Title: [Bug]: Segmentation fault on macOS when using matplotlib.pyplot.ion() in IPython · Issue #27808 · matplotlib/matplotlib · GitHub
Open Graph Title: [Bug]: Segmentation fault on macOS when using matplotlib.pyplot.ion() in IPython · Issue #27808 · matplotlib/matplotlib
X Title: [Bug]: Segmentation fault on macOS when using matplotlib.pyplot.ion() in IPython · Issue #27808 · matplotlib/matplotlib
Description: Bug summary When using matplotlib.pyplot.ion() in an instance of IPython, after around 15-30 minutes the IPython instance will exit and "Segmentation fault 11" is printed in the terminal. This occurs with or without additional code execu...
Open Graph Description: Bug summary When using matplotlib.pyplot.ion() in an instance of IPython, after around 15-30 minutes the IPython instance will exit and "Segmentation fault 11" is printed in the terminal. This occu...
X Description: Bug summary When using matplotlib.pyplot.ion() in an instance of IPython, after around 15-30 minutes the IPython instance will exit and "Segmentation fault 11" is printed in the terminal....
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/27808
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bug]: Segmentation fault on macOS when using matplotlib.pyplot.ion() in IPython","articleBody":"### Bug summary\r\n\r\nWhen using matplotlib.pyplot.ion() in an instance of IPython, after around 15-30 minutes the IPython instance will exit and \"Segmentation fault 11\" is printed in the terminal. This occurs with or without additional code execution or interaction with the terminal, and seems to simply happen after some amount of time.\r\n\r\n### Code for reproduction\r\n\r\n```python\r\nimport matplotlib.pyplot as plt\r\n\r\nplt.ion()\r\n```\r\n\r\n\r\n### Actual outcome\r\n\r\n```\r\nIn [1]: import matplotlib.pyplot as plt\r\n\r\nIn [2]: plt.ion()\r\nOut[2]: \u003ccontextlib.ExitStack at 0x102af0b50\u003e\r\n\r\nIn [3]: Segmentation fault: 11\r\n```\r\n\r\nTo be clear, IPython does not immediately segfault, it happens after upward of 15 minutes of being idle (or being used).\r\n\r\n### Expected outcome\r\n\r\nI would expect the terminal to remain open indefinitely.\r\n\r\n### Additional information\r\n\r\nI have reproduced this bug with both:\r\n`Python 3.11.7, IPython 8.21.0, matplotlib 3.8.3`\r\nand \r\n`Python 3.9.18, IPython 8.18.1, matplotlib 3.8.2`\r\n\r\nBoth versions of Python were installed using homebrew.\r\n\r\n- I do not recall this happening with the previous version of Sonoma I was using (14.3).\r\n- I am using an M1 MacBook Pro.\r\n- I have tried uninstalling and reinstalling matplotlib, which made no difference.\r\n- My IPython instances that have not used `plt.ion()` do not experience this behaviour and will remain open indefinitely.\r\n\r\n### Operating system\r\n\r\nmacOS Sonoma 14.3.1\r\n\r\n### Matplotlib Version\r\n\r\n3.8.3\r\n\r\n### Matplotlib Backend\r\n\r\nMacOSX\r\n\r\n### Python version\r\n\r\n3.11.7\r\n\r\n### Jupyter version\r\n\r\n_No response_\r\n\r\n### Installation\r\n\r\npip","author":{"url":"https://github.com/mphanderson","@type":"Person","name":"mphanderson"},"datePublished":"2024-02-21T18:44:29.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/27808/matplotlib/issues/27808"}
| 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:14d82871-8130-846f-ae34-eb5ecf1182dd |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AE38:2496BF:542BAB:750DD5:696A7669 |
| html-safe-nonce | db994b0f9e364d8b710d63bfafa592fa0183163d832467c42e6c8a61cd433da5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRTM4OjI0OTZCRjo1NDJCQUI6NzUwREQ1OjY5NkE3NjY5IiwidmlzaXRvcl9pZCI6IjM0MDMyNjYwMDkwNDcxMzU4NDkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 812fca2735d785892fffc1f7e988fac812065cea994c7bd27399126d5d2c0f0e |
| hovercard-subject-tag | issue:2147457683 |
| 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/27808/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3cd87c698fad289e6c87b1462ebd4642c2f563fddf02f1a0ac2f1ffc7bad6c5d/matplotlib/matplotlib/issues/27808 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3cd87c698fad289e6c87b1462ebd4642c2f563fddf02f1a0ac2f1ffc7bad6c5d/matplotlib/matplotlib/issues/27808 |
| og:image:alt | Bug summary When using matplotlib.pyplot.ion() in an instance of IPython, after around 15-30 minutes the IPython instance will exit and "Segmentation fault 11" is printed in the terminal. This occu... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mphanderson |
| hostname | github.com |
| expected-hostname | github.com |
| None | cfa223d62d272274e0b68350b4bd7741f3ca7498b8c4b8b1bc1e6deabbdbc09d |
| 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 | 6a0b6893c221f98f607598e939299fdf5763435d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width