itkApproximateSignedDistanceMapImageFilterTest1 failures

The following test has sporadic failures:

They occur more one highly multi-threaded system.

I narrowed the failure down to the IsoContourDistanceImageFilter by setting this filter to only having 1 thread in the above filter’s composite mini-pipeline.

I believe that I further narrowed it down to the following line:

Which appear to be writing outside the output region for the thread leading to race conditions. I could not find a quick solution to it, and have moved on at the moment.

Any one else care to pick this up?

1 Like

Here is my oafish solution to the concurrent read/write in the output of the filter: