diplib icon indicating copy to clipboard operation
diplib copied to clipboard

Python zsh: segmentation fault at the end of the script

Open ogencoglu opened this issue 1 year ago • 1 comments

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 avatar Nov 26 '24 07:11 ogencoglu

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!

crisluengo avatar Nov 26 '24 17:11 crisluengo