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

Pygeos segfaults on arrays constructed with np.empty_like #373

Closed
caspervdw opened this issue Jul 27, 2021 · 1 comment · Fixed by #374
Closed

Pygeos segfaults on arrays constructed with np.empty_like #373

caspervdw opened this issue Jul 27, 2021 · 1 comment · Fixed by #374
Labels
bug Something isn't working

Comments

@caspervdw
Copy link
Member

Not sure what is happening here:

In [1]: import pygeos
In [2]: import numpy as np
In [3]: pygeos.is_missing(np.full((10,), None, dtype=object))
OK
In [4]: pygeos.is_missing(np.empty((10,), dtype=object))
OK
In [5]: pygeos.is_missing(np.empty_like(np.empty((100,)), dtype=object))
Segmentation fault (core dumped)

It doesn't matter which pygeos function you take, the behaviour is consistent: a geometry input constructed with np.empty_like results in a segfault.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant