Skip to content

Resolve C++ nullptr issues and move away from deprecated C API usages in relation to #31424#32065

Open
clin1234 wants to merge 34 commits into
matplotlib:mainfrom
clin1234:freethreaded_fixes
Open

Resolve C++ nullptr issues and move away from deprecated C API usages in relation to #31424#32065
clin1234 wants to merge 34 commits into
matplotlib:mainfrom
clin1234:freethreaded_fixes

Conversation

@clin1234

@clin1234 clin1234 commented Jul 18, 2026

Copy link
Copy Markdown

PR summary

Attempt to fix (most) trivial C++ bugs found in #31424 during a sprint in SciPy 2026.

@github-actions

Copy link
Copy Markdown

Thank you for opening your first PR into Matplotlib!

If you have not heard from us in a week or so, please leave a new comment below and that should bring it to our attention. Most of our reviewers are volunteers and sometimes things fall through the cracks. We also ask that you please finish addressing any review comments on this PR and wait for it to be merged (or closed) before opening a new one, as it can be a valuable learning experience to go through the review process.

You can also join us on discourse chat for real-time discussion.

For details on testing, writing docs, and our review process, please see the developer guide.
Please let us know if (and how) you use AI, it will help us give you better feedback on your PR.

We strive to be a welcoming and open project. Please follow our Code of Conduct.

@clin1234
clin1234 force-pushed the freethreaded_fixes branch from 6e1ed1d to 03e3c94 Compare July 18, 2026 19:40
@clin1234
clin1234 marked this pull request as ready for review July 18, 2026 20:38
Comment thread src/ft2font_wrapper.cpp Outdated
Comment thread src/ft2font_wrapper.cpp Outdated
@github-actions github-actions Bot added CI: Run cibuildwheel Run wheel building tests on a PR backend: agg topic: images topic: tri and removed CI: Run cibuildwheel Run wheel building tests on a PR labels Jul 19, 2026
@clin1234
clin1234 force-pushed the freethreaded_fixes branch 4 times, most recently from a44a307 to 2ed73b3 Compare July 19, 2026 19:08
@clin1234
clin1234 force-pushed the freethreaded_fixes branch 2 times, most recently from 7095fc2 to 6b1521a Compare July 19, 2026 21:11
@QuLogic

QuLogic commented Jul 20, 2026

Copy link
Copy Markdown
Member

Much of this conflicts with #30291 and ft2font-shared_ptr; it wasn't merged for 3.11 because pybind11 v3 was deemed too new at the time.

@clin1234

Copy link
Copy Markdown
Author

Much of this conflicts with #30291 and ft2font-shared_ptr; it wasn't merged for 3.11 because pybind11 v3 was deemed too new at the time.

Would you be willing to rebase your tf2font-shared_ptr branch onto my PR branch? Afaik, you haven't made a PR from that shared_ptr branch yet

unknown and others added 23 commits July 20, 2026 17:50
Removed the alternative implementation of close_file_callback for Python versions below 3.12.
This reverts commit 5a31a1e.
Since there are no pre-built wheels for 3.15, within the
"Build CI wheels" step, the "Testing wheel" substep pulls
in numpy 2.5.1 as a dependency. It's the release that requires
at least GCC 10.3; the Ubuntu latest images bundle with 10.2.1.

Encountered at https://github.com/matplotlib/matplotlib/actions/runs/29692514641/job/88207699666

See numpy/numpy#31828
@clin1234
clin1234 force-pushed the freethreaded_fixes branch from 18ebea2 to c713f7e Compare July 20, 2026 22:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants