Multi-threading in the multi scale laplacian blob detector broken.
This commit https://github.com/ANTsX/ANTsRCore/commit/3dd62669850690afa59250e6f38bc68dc7526926 will support debugging. As a temporary measure, I added a file called itkMultiScaleLaplacianBlobDetectorImageFilter2.[h,hxx] to the src directory which is a slightly modified copy of the file itkMultiScaleLaplacianBlobDetectorImageFilter.[h,hxx] in ANTs. This supports quicker turn-around of the build/test cycle but would ultimately be removed if the original ANTs version of the code gets fixed.
I also tried to annotate locations of likely issues with FIXME in the above hxx.
To Reproduce
In .Renviron set ITK_GLOBAL_DEFAULT_NUMBER_OF_THREADS=1 and run below code.
Do the same thing with ITK_GLOBAL_DEFAULT_NUMBER_OF_THREADS=2 and we get a segfault.
Describe the bug
Multi-threading in the multi scale laplacian blob detector broken.
This commit https://github.com/ANTsX/ANTsRCore/commit/3dd62669850690afa59250e6f38bc68dc7526926 will support debugging. As a temporary measure, I added a file called
itkMultiScaleLaplacianBlobDetectorImageFilter2.[h,hxx]
to the src directory which is a slightly modified copy of the fileitkMultiScaleLaplacianBlobDetectorImageFilter.[h,hxx]
in ANTs. This supports quicker turn-around of the build/test cycle but would ultimately be removed if the original ANTs version of the code gets fixed.I also tried to annotate locations of likely issues with
FIXME
in the abovehxx
.To Reproduce
In
.Renviron
setITK_GLOBAL_DEFAULT_NUMBER_OF_THREADS=1
and run below code.Do the same thing with
ITK_GLOBAL_DEFAULT_NUMBER_OF_THREADS=2
and we get a segfault.Expected behavior
Either
or