René's URL Explorer Experiment


Title: [Bug]: GLib io error if sigint is handled while some icon is loaded · Issue #32556 · matplotlib/matplotlib · GitHub

Open Graph Title: [Bug]: GLib io error if sigint is handled while some icon is loaded · Issue #32556 · matplotlib/matplotlib

X Title: [Bug]: GLib io error if sigint is handled while some icon is loaded · Issue #32556 · matplotlib/matplotlib

Description: Bug summary When handling a sigint while plotting a figure, sometimes a glib error is raised. Sometimes this is handled and execution continues. Code for reproduction import networkx as nx import matplotlib.pyplot as plt import signal im...

Open Graph Description: Bug summary When handling a sigint while plotting a figure, sometimes a glib error is raised. Sometimes this is handled and execution continues. Code for reproduction import networkx as nx import m...

X Description: Bug summary When handling a sigint while plotting a figure, sometimes a glib error is raised. Sometimes this is handled and execution continues. Code for reproduction import networkx as nx import m...

Opengraph URL: https://github.com/matplotlib/matplotlib/issues/32556

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.4


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bug]: GLib io error if sigint is handled while some icon is loaded","articleBody":"### Bug summary\n\nWhen handling a sigint while plotting a figure, sometimes a glib error is raised. Sometimes this is handled and execution continues.\n\n### Code for reproduction\n\n```Python\nimport networkx as nx\nimport matplotlib.pyplot as plt\nimport signal\nimport io\n\nshould_exit = False\n\ndef handle_sig_int(sig_num, _):\n    global should_exit\n    should_exit = True\n\ndef draw(G, pos, tree, x, y, d):\n    G.add_node(tree[\"key\"])\n    pos[tree[\"key\"]] = [x, y]\n    if tree[\"left\"] is not None:\n        draw(G, pos, tree[\"left\"], x - d, y - 1, d / 2)\n        G.add_edge(tree[\"key\"], tree[\"left\"][\"key\"])\n    if tree[\"right\"] is not None:\n        draw(G, pos, tree[\"right\"], x + d, y - 1, d / 2)\n        G.add_edge(tree[\"key\"], tree[\"right\"][\"key\"])\n\ndef draw_tree(buf, tree):\n    G = nx.DiGraph()\n\n    pos = {}\n    draw(G, pos, tree, 0, 0, 1)\n    plt.figure(figsize=(3, 3), dpi=300)\n    nx.draw(G, pos, \n            with_labels=True, \n            node_size=500, \n            node_color=\"white\", \n            edge_color=\"black\", \n            font_size=10)\n    plt.savefig(buf)\n    plt.close()\n\nsignal.signal(signal.SIGINT, handle_sig_int)\ntree = { \"key\": 50,\n            \"left\": {\n                \"key\": 40,\n                \"left\": {\n                    \"key\": 31,\n                    \"left\": {\n                        \"key\": 5,\n                        \"left\": None,\n                        \"right\": None\n                    },\n                    \"right\": None\n                },\n                \"right\": None\n            },\n            \"right\": {\n                \"key\": 95,\n                \"left\": {\n                    \"key\": 92,\n                    \"left\": {\n                        \"key\": 63,\n                        \"left\": None,\n                        \"right\": None\n                    },\n                    \"right\": {\n                        \"key\": 93,\n                        \"left\": None,\n                        \"right\": None\n                    }\n                },\n                \"right\": None\n            }\n        }\n\nbuf = io.BytesIO()\nprint(\"setup finished\")\nfor j in range(10):\n    n = 100\n    for i in range(n):\n        draw_tree(buf, tree)\n        print(f\"{i}/{n}\", end='\\r')\n    print(f\"loop {j} finished\")\n```\n\n### Actual outcome\n\n```\n^CTraceback (most recent call last):\n  File \"\u003cfrozen runpy>\", line 203, in _run_module_as_main\n  File \"\u003cfrozen runpy>\", line 88, in _run_code\n  File \"\u003cpath shortened>/glib-issue-reproduction.py\", line 76, in \u003cmodule>\n    draw_tree(buf, tree)\n    ~~~~~~~~~^^^^^^^^^^^\n  File \"\u003cpath shortened>/glib-issue-reproduction.py\", line 27, in draw_tree\n    plt.figure(figsize=(3, 3), dpi=300)\n    ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/usr/lib/python3.14/site-packages/matplotlib/pyplot.py\", line 1096, in figure\n    manager = new_figure_manager(\n        num, figsize=figsize, dpi=dpi,\n        facecolor=facecolor, edgecolor=edgecolor, frameon=frameon,\n        FigureClass=FigureClass, **kwargs)\n  File \"/usr/lib/python3.14/site-packages/matplotlib/pyplot.py\", line 576, in new_figure_manager\n    return _get_backend_mod().new_figure_manager(*args, **kwargs)\n           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^\n  File \"/usr/lib/python3.14/site-packages/matplotlib/backend_bases.py\", line 3664, in new_figure_manager\n    return cls.new_figure_manager_given_figure(num, fig)\n           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^\n  File \"/usr/lib/python3.14/site-packages/matplotlib/backend_bases.py\", line 3669, in new_figure_manager_given_figure\n    return cls.FigureCanvas.new_manager(figure, num)\n           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^\n  File \"/usr/lib/python3.14/site-packages/matplotlib/backend_bases.py\", line 1836, in new_manager\n    return cls.manager_class.create_with_canvas(cls, figure, num)\n           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^\n  File \"/usr/lib/python3.14/site-packages/matplotlib/backend_bases.py\", line 2818, in create_with_canvas\n    return cls(canvas_class(figure), num)\n  File \"/usr/lib/python3.14/site-packages/matplotlib/backends/_backend_gtk.py\", line 147, in __init__\n    self.window.set_icon_from_file(\n    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^\n        str(cbook._get_data_path(f\"images/matplotlib.{icon_ext}\")))\n        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\ngi.repository.GLib.GError: gdk-pixbuf-error-quark: Failed to load image “/usr/lib/python3.14/site-packages/matplotlib/mpl-data/images/matplotlib.svg”: Remote error: org.freedesktop.zbus.Error: i/o error (0)\n```\n\n### Expected outcome\n\nNo error, execution continues after the signal is handled.\n\n### Additional information\n\nTo reproduce: Start spamming SIGINT (Ctrl+C) once \"setup finished\" is printed to stdout. Might take some attempts. Some non-fatal error messages appears sometimes.\n\n### Operating system\n\nArch\n\n### Matplotlib Version\n\n3.11.2\n\n### Matplotlib Backend\n\ngtk3agg\n\n### Python version\n\n3.14.8\n\n### Jupyter version\n\nno jupyter in use\n\n### Installation\n\nLinux package manager\n\n[@tacaswell edited to use triple backticks on traceback]","author":{"url":"https://github.com/bonsaiiV","@type":"Person","name":"bonsaiiV"},"datePublished":"2026-10-29T10:10:19Z","url":"https://github.com/matplotlib/matplotlib/issues/32556"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:d677a6e2-30c0-5426-d0ab-ed8a5c31d68a
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB040:83BF7:10B4787:16142DF:6B064EE6
html-safe-nonce61af78d8c0aea19801103ad252ef7c9ee716ab402e5fdfc59b53b5779e6e833a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMDQwOjgzQkY3OjEwQjQ3ODc6MTYxNDJERjo2QjA2NEVFNiIsInZpc2l0b3JfaWQiOiI4NjYwMTAzNDM3MzEwMzgxNzk4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac5c6e8aac676fea652812369cb8e47499be4829eb23c88c045b8611f0fba45c30
hovercard-subject-tagissue:6097433236
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/matplotlib/matplotlib/32556/issue_layout
twitter:imagehttps://opengraph.githubassets.com/92ae91e45bfade968be68b850b103c0788d620785d4f5c37129fd451cc521046/matplotlib/matplotlib/issues/32556
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/92ae91e45bfade968be68b850b103c0788d620785d4f5c37129fd451cc521046/matplotlib/matplotlib/issues/32556
og:image:altBug summary When handling a sigint while plotting a figure, sometimes a glib error is raised. Sometimes this is handled and execution continues. Code for reproduction import networkx as nx import m...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamebonsaiiV
hostnamegithub.com
expected-hostnamegithub.com
None772b6997ca4daa0428dd49a25d76052e765555ae560fe9c88517eb828bbd861e
turbo-cache-controlno-preview
go-importgithub.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git
octolytics-dimension-user_id215947
octolytics-dimension-user_loginmatplotlib
octolytics-dimension-repository_id1385122
octolytics-dimension-repository_nwomatplotlib/matplotlib
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1385122
octolytics-dimension-repository_network_root_nwomatplotlib/matplotlib
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasef1f9a08f7c769a37f1dfc18ad43d463c222a7eea
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/matplotlib/matplotlib/issues/32556#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmatplotlib%2Fmatplotlib%2Fissues%2F32556
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmatplotlib%2Fmatplotlib%2Fissues%2F32556
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=matplotlib%2Fmatplotlib
Reloadhttps://github.com/matplotlib/matplotlib/issues/32556
Reloadhttps://github.com/matplotlib/matplotlib/issues/32556
Reloadhttps://github.com/matplotlib/matplotlib/issues/32556
matplotlibhttps://github.com/matplotlib
matplotlibhttps://github.com/matplotlib/matplotlib
Codehttps://github.com/matplotlib/matplotlib
Issues1k (1k)https://github.com/matplotlib/matplotlib/issues
Pull requests430 (430)https://github.com/matplotlib/matplotlib/pulls
Actionshttps://github.com/matplotlib/matplotlib/actions
Projectshttps://github.com/matplotlib/matplotlib/projects
Wikihttps://github.com/matplotlib/matplotlib/wiki
Security and qualityhttps://github.com/matplotlib/matplotlib/security
Insightshttps://github.com/matplotlib/matplotlib/insights
https://github.com/matplotlib/matplotlib
New issuehttps://github.com/login?return_to=https://github.com/matplotlib/matplotlib/issues/32556
New issuehttps://github.com/login?return_to=https://github.com/matplotlib/matplotlib/issues/32556
[Bug]: GLib io error if sigint is handled while some icon is loadedhttps://github.com/matplotlib/matplotlib/issues/32556#top
GUI: gtkhttps://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22GUI%3A%20gtk%22
first-contributionhttps://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22first-contribution%22
https://github.com/bonsaiiV
bonsaiiVhttps://github.com/bonsaiiV
on Oct 29, 2026https://github.com/matplotlib/matplotlib/issues/32556#issue-6097433236
@tacaswellhttps://github.com/tacaswell
github-actionshttps://github.com/apps/github-actions
first-contributionhttps://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22first-contribution%22
on Oct 29, 2026https://github.com/matplotlib/matplotlib/issues/32556#event-34571651959
https://github.com/tacaswell
tacaswellhttps://github.com/tacaswell
on Oct 29, 2026https://github.com/matplotlib/matplotlib/issues/32556#issuecomment-6495459455
tacaswellhttps://github.com/tacaswell
GUI: gtkhttps://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22GUI%3A%20gtk%22
on Oct 29, 2026https://github.com/matplotlib/matplotlib/issues/32556#event-34578417410
https://github.com/Akash-Dhanwate
Akash-Dhanwatehttps://github.com/Akash-Dhanwate
on Oct 30, 2026https://github.com/matplotlib/matplotlib/issues/32556#issuecomment-6527174683
@tacaswellhttps://github.com/tacaswell
https://github.com/bonsaiiV
bonsaiiVhttps://github.com/bonsaiiV
on Nov 4, 2026https://github.com/matplotlib/matplotlib/issues/32556#issuecomment-6634014394
@tacaswellhttps://github.com/tacaswell
Sign up for freehttps://github.com/signup?return_to=https://github.com/matplotlib/matplotlib/issues/32556
Sign in to commenthttps://github.com/login?return_to=https://github.com/matplotlib/matplotlib/issues/32556
GUI: gtkhttps://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22GUI%3A%20gtk%22
first-contributionhttps://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22first-contribution%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.