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

Reacquire GIL before constructing tuples containing numpy arrays. #566

Merged
merged 1 commit into from
Oct 7, 2024

Conversation

anntzer
Copy link
Contributor

@anntzer anntzer commented Oct 6, 2024

... as explicitly required by pybind11. Compile with #define PYBIND11_ASSERT_GIL_HELD_INCREF_DECREF to observe GIL assertion failures in absence of this patch.

Closes (and supersedes) #564.

(See item regarding "pybind11 objects that are members of other C++ structures" in https://pybind11.readthedocs.io/en/stable/advanced/misc.html#common-sources-of-global-interpreter-lock-errors)

... as explicitly required by pybind11.  Compile with `#define
PYBIND11_ASSERT_GIL_HELD_INCREF_DECREF` to observe GIL assertion
failures in absence of this patch.
@anntzer anntzer mentioned this pull request Oct 6, 2024
Copy link

@mr-c mr-c left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The fix is confirmed from the Debian side

@anntzer anntzer merged commit cd5af66 into hmmlearn:main Oct 7, 2024
19 of 20 checks passed
@anntzer anntzer deleted the giltuple branch October 7, 2024 08:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants