Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure GIL while releasing buffer #27290

Merged
merged 1 commit into from
Nov 9, 2023
Merged

Conversation

ksunden
Copy link
Member

@ksunden ksunden commented Nov 8, 2023

PR summary

This ensures the GIL is held while freeing the renderer buffer.

Fixes #27262

This became problematic in 3.12, but was likely possible in earlier python versions.

This method is handed to Obj-C code to call upon releasing, which we therefore do not fully control.

PR checklist

@QuLogic QuLogic added this to the v3.8.2 milestone Nov 8, 2023
@tacaswell tacaswell added the Release critical For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions. label Nov 9, 2023
@tacaswell tacaswell merged commit f4ca1ea into matplotlib:main Nov 9, 2023
44 of 46 checks passed
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request Nov 9, 2023
tacaswell added a commit that referenced this pull request Nov 9, 2023
…290-on-v3.8.x

Backport PR #27290 on branch v3.8.x (Ensure GIL while releasing buffer)
@QuLogic
Copy link
Member

QuLogic commented Nov 15, 2023

@meeseeksdev backport to v3.7.x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
GUI: MacOSX Release critical For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Segmentation fault when resizing on Python 3.12 and MacOS 14
3 participants