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

Python zsh: segmentation fault at the end of the script #181

Open
ogencoglu opened this issue Nov 26, 2024 · 1 comment
Open

Python zsh: segmentation fault at the end of the script #181

ogencoglu opened this issue Nov 26, 2024 · 1 comment
Labels
bug component:PyDIP About the PyDIP Python interface

Comments

@ogencoglu
Copy link

Component
PyDIP - 3.5.1 (latest)

Describe the bug

I have a long python script that performs various computations with numpy, pandas, scipy etc.
At one place, I have replaced my scipy.ndimage.binary_fill_holes() with dip.FillHoles() and it works as expected and is faster. But at the end of the script, python crashes and I get

zsh: segmentation fault

I don't get the error at FillHoles stage but only at the very end (related to destructor, garbage collector maybe?)

Any tips would be appreciated.

System information:

  • MacOS
  • Python3.12
  • pip installed in virtualenv
@ogencoglu ogencoglu added the bug label Nov 26, 2024
@crisluengo crisluengo added the component:PyDIP About the PyDIP Python interface label Nov 26, 2024
@crisluengo
Copy link
Member

Thanks for reporting!

It would be useful to know the exact set of steps needed to reproduce the bug. It likely involves an incompatibility between DIPlib and some other package you're using. We know this for example happens with some Conda-built packages (see #130). Here's a quick guide on how to create a minimal reproducible example: https://stackoverflow.com/help/minimal-reproducible-example. I know that's quite a lot of effort, but it's the only way we can learn what might be causing this issue. Much appreciated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug component:PyDIP About the PyDIP Python interface
Projects
None yet
Development

No branches or pull requests

2 participants