Title: [Bug]: `test_backend_qt.py::test_fig_close` causes python to `Aborted` · Issue #24770 · matplotlib/matplotlib · GitHub
Open Graph Title: [Bug]: `test_backend_qt.py::test_fig_close` causes python to `Aborted` · Issue #24770 · matplotlib/matplotlib
X Title: [Bug]: `test_backend_qt.py::test_fig_close` causes python to `Aborted` · Issue #24770 · matplotlib/matplotlib
Description: Bug summary While running tests with both python3.10 and 3.11 in debian unstable, i noticed that test_backend_qt.py::test_fig_close causes a Fatal Python error: Aborted Code for reproduction =build/lib.linux-x86_64-cpython-311 MATPLOTLIB...
Open Graph Description: Bug summary While running tests with both python3.10 and 3.11 in debian unstable, i noticed that test_backend_qt.py::test_fig_close causes a Fatal Python error: Aborted Code for reproduction =build...
X Description: Bug summary While running tests with both python3.10 and 3.11 in debian unstable, i noticed that test_backend_qt.py::test_fig_close causes a Fatal Python error: Aborted Code for reproduction =build...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/24770
X: @github
Domain: github.com
IPv4 address: 140.82.112.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bug]: `test_backend_qt.py::test_fig_close` causes python to `Aborted`","articleBody":"### Bug summary\r\n\r\nWhile running tests with both python3.10 and 3.11 in debian unstable, i noticed that `test_backend_qt.py::test_fig_close` causes a `Fatal Python error: Aborted`\r\n\r\n### Code for reproduction\r\n\r\n```python\r\n=build/lib.linux-x86_64-cpython-311 MATPLOTLIBDATA=/build/matplotlib-3.6.2/lib/matplotlib/mpl-data/ MPLCONFIGDIR=. xvfb-run -a python3.11-dbg -m pytest --verbose --full-trace build/lib.linux-x86_64-cpython-311/matplotlib/tests/test_backend_qt.py::test_fig_close\r\n```\r\n\r\n\r\n### Actual outcome\r\n\r\n```\r\nroot@zion:/build/matplotlib-3.6.2# PYTHONPATH=build/lib.linux-x86_64-cpython-311 MATPLOTLIBDATA=/build/matplotlib-3.6.2/lib/matplotlib/mpl-data/ MPLCONFIGDIR=. xvfb-run -a python3.11-dbg -m pytest --verbose --full-trace build/lib.linux-x86_64-cpython-311/matplotlib/tests/test_backend_qt.py::test_fig_close \r\nMatplotlib is not built with the correct FreeType version to run tests. Rebuild without setting system_freetype=1 in mplsetup.cfg. Expect many image comparison failures below. Expected freetype version 2.6.1. Found freetype version 2.12.1. Freetype build type is not local\r\n============================================================================================================================= test session starts ==============================================================================================================================\r\nplatform linux -- Python 3.11.1, pytest-7.2.0, pluggy-1.0.0+repack -- /usr/bin/python3.11-dbg\r\ncachedir: .pytest_cache\r\nrootdir: /build/matplotlib-3.6.2, configfile: pytest.ini\r\ncollected 1 item \r\n\r\nbuild/lib.linux-x86_64-cpython-311/matplotlib/tests/test_backend_qt.py::test_fig_close Fatal Python error: Aborted\r\n\r\nCurrent thread 0x00007eff20bb7040 (most recent call first):\r\n File \"/build/matplotlib-3.6.2/build/lib.linux-x86_64-cpython-311/matplotlib/backends/backend_qt.py\", line 145 in _create_qApp\r\n File \"/build/matplotlib-3.6.2/build/lib.linux-x86_64-cpython-311/matplotlib/backends/backend_qt.py\", line 206 in __init__\r\n File \"/build/matplotlib-3.6.2/build/lib.linux-x86_64-cpython-311/matplotlib/backend_bases.py\", line 2822 in create_with_canvas\r\n File \"/build/matplotlib-3.6.2/build/lib.linux-x86_64-cpython-311/matplotlib/backend_bases.py\", line 1703 in new_manager\r\n File \"/build/matplotlib-3.6.2/build/lib.linux-x86_64-cpython-311/matplotlib/backend_bases.py\", line 3510 in new_figure_manager_given_figure\r\n File \"/build/matplotlib-3.6.2/build/lib.linux-x86_64-cpython-311/matplotlib/backend_bases.py\", line 3505 in new_figure_manager\r\n File \"/build/matplotlib-3.6.2/build/lib.linux-x86_64-cpython-311/matplotlib/pyplot.py\", line 359 in new_figure_manager\r\n File \"/build/matplotlib-3.6.2/build/lib.linux-x86_64-cpython-311/matplotlib/pyplot.py\", line 783 in figure\r\n File \"/build/matplotlib-3.6.2/build/lib.linux-x86_64-cpython-311/matplotlib/_api/deprecation.py\", line 454 in wrapper\r\n File \"/build/matplotlib-3.6.2/build/lib.linux-x86_64-cpython-311/matplotlib/tests/test_backend_qt.py\", line 45 in test_fig_close\r\n File \"/usr/lib/python3/dist-packages/_pytest/python.py\", line 195 in pytest_pyfunc_call\r\n File \"/usr/lib/python3/dist-packages/pluggy/_callers.py\", line 39 in _multicall\r\n File \"/usr/lib/python3/dist-packages/pluggy/_manager.py\", line 80 in _hookexec\r\n File \"/usr/lib/python3/dist-packages/pluggy/_hooks.py\", line 265 in __call__\r\n File \"/usr/lib/python3/dist-packages/_pytest/python.py\", line 1789 in runtest\r\n File \"/usr/lib/python3/dist-packages/_pytest/runner.py\", line 167 in pytest_runtest_call\r\n File \"/usr/lib/python3/dist-packages/pluggy/_callers.py\", line 39 in _multicall\r\n File \"/usr/lib/python3/dist-packages/pluggy/_manager.py\", line 80 in _hookexec\r\n File \"/usr/lib/python3/dist-packages/pluggy/_hooks.py\", line 265 in __call__\r\n File \"/usr/lib/python3/dist-packages/_pytest/runner.py\", line 260 in \u003clambda>\r\n File \"/usr/lib/python3/dist-packages/_pytest/runner.py\", line 339 in from_call\r\n File \"/usr/lib/python3/dist-packages/_pytest/runner.py\", line 259 in call_runtest_hook\r\n File \"/usr/lib/python3/dist-packages/_pytest/runner.py\", line 220 in call_and_report\r\n File \"/usr/lib/python3/dist-packages/_pytest/runner.py\", line 131 in runtestprotocol\r\n File \"/usr/lib/python3/dist-packages/_pytest/runner.py\", line 112 in pytest_runtest_protocol\r\n File \"/usr/lib/python3/dist-packages/pluggy/_callers.py\", line 39 in _multicall\r\n File \"/usr/lib/python3/dist-packages/pluggy/_manager.py\", line 80 in _hookexec\r\n File \"/usr/lib/python3/dist-packages/pluggy/_hooks.py\", line 265 in __call__\r\n File \"/usr/lib/python3/dist-packages/_pytest/main.py\", line 349 in pytest_runtestloop\r\n File \"/usr/lib/python3/dist-packages/pluggy/_callers.py\", line 39 in _multicall\r\n File \"/usr/lib/python3/dist-packages/pluggy/_manager.py\", line 80 in _hookexec\r\n File \"/usr/lib/python3/dist-packages/pluggy/_hooks.py\", line 265 in __call__\r\n File \"/usr/lib/python3/dist-packages/_pytest/main.py\", line 324 in _main\r\n File \"/usr/lib/python3/dist-packages/_pytest/main.py\", line 270 in wrap_session\r\n File \"/usr/lib/python3/dist-packages/_pytest/main.py\", line 317 in pytest_cmdline_main\r\n File \"/usr/lib/python3/dist-packages/pluggy/_callers.py\", line 39 in _multicall\r\n File \"/usr/lib/python3/dist-packages/pluggy/_manager.py\", line 80 in _hookexec\r\n File \"/usr/lib/python3/dist-packages/pluggy/_hooks.py\", line 265 in __call__\r\n File \"/usr/lib/python3/dist-packages/_pytest/config/__init__.py\", line 167 in main\r\n File \"/usr/lib/python3/dist-packages/_pytest/config/__init__.py\", line 190 in console_main\r\n File \"/usr/lib/python3/dist-packages/pytest/__main__.py\", line 5 in \u003cmodule>\r\n File \"/usr/lib/python3.11/runpy.py\", line 88 in _run_code\r\n File \"/usr/lib/python3.11/runpy.py\", line 198 in _run_module_as_main\r\n\r\nExtension modules: numpy.core._multiarray_umath, numpy.core._multiarray_tests, numpy.linalg._umath_linalg, numpy.fft._pocketfft_internal, numpy.random._common, numpy.random.bit_generator, numpy.random._bounded_integers, numpy.random._mt19937, numpy.random.mtrand, numpy.random._philox, numpy.random._pcg64, numpy.random._sfc64, numpy.random._generator, matplotlib._c_internal_utils, PIL._imaging, matplotlib._path, kiwisolver, matplotlib._image, PyQt5.QtCore, PyQt5.QtGui, PyQt5.QtWidgets (total: 21)\r\nAborted\r\n\r\n```\r\n\r\n(btw no idea what's that `Matplotlib is not built with the correct FreeType version to run tests` is about given we build with:\r\n\r\n```\r\n# grep -B1 freetype debian/mplsetup.cfg \r\n[libs]\r\nsystem_freetype = 1\r\n```\r\n)\r\n\r\n### Expected outcome\r\n\r\ntest not failing\r\n\r\n### Additional information\r\n\r\n_No response_\r\n\r\n### Operating system\r\n\r\nDebian\r\n\r\n### Matplotlib Version\r\n\r\n3.6.2\r\n\r\n### Matplotlib Backend\r\n\r\nQt\r\n\r\n### Python version\r\n\r\nPython 3.11.1\r\n\r\n### Jupyter version\r\n\r\n_No response_\r\n\r\n### Installation\r\n\r\nfrom source (.tar.gz)","author":{"url":"https://github.com/sandrotosi","@type":"Person","name":"sandrotosi"},"datePublished":"2022-12-19T02:37:22Z","url":"https://github.com/matplotlib/matplotlib/issues/24770"}
| react-profiling | 0 |
| react-import-map | react,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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:533eedd8-d58c-648f-2fc8-96f5fe760d56 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ADD4:23514F:13F9AED:1A87CAF:6B066411 |
| html-safe-nonce | f58e400e59e5bc85160023240132756dcff44b1b5427c27551f2b7d604e523cf |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBREQ0OjIzNTE0RjoxM0Y5QUVEOjFBODdDQUY6NkIwNjY0MTEiLCJ2aXNpdG9yX2lkIjoiMjIzOTUzMjAxNDQ5MzkxODIyNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 955e2bcc3e14665ebed5c8d283e9a0c7a64fa284bb438cd786a871a4dcd06728 |
| hovercard-subject-tag | issue:1502193981 |
| 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/24770/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4ed89502870049f920b174e940d44c293fc95331182abf119722ef1c7b76501a/matplotlib/matplotlib/issues/24770 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4ed89502870049f920b174e940d44c293fc95331182abf119722ef1c7b76501a/matplotlib/matplotlib/issues/24770 |
| og:image:alt | Bug summary While running tests with both python3.10 and 3.11 in debian unstable, i noticed that test_backend_qt.py::test_fig_close causes a Fatal Python error: Aborted Code for reproduction =build... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sandrotosi |
| hostname | github.com |
| expected-hostname | github.com |
| None | 6324e6ac990fb6befbec840cc0e102a1071c339bfe8f9826bb12de2e3ba1d297 |
| 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 | 7f0aa75f4141d440c6110dc31af7ea7797abb6c4 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width