You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Deadlock in itk::VoronoiDiagram2DGenerator<double>::ConstructDiagram() #4386
I just tried to repro this with master, built with TSan (thread sanitizer) and it doesn't detect any deadlock (in the threading sense).
Debugging it quickly, it seems to be in an infinite loop. while (!(rawEdges[i].empty())) seems to be running forever because near the bottom of that loop the last else keeps adding more items rawEdges[i].push_back(curr);
Activity
github-actions commentedon Jan 8, 2024
Thank you for contributing an issue! 🙏
Welcome to the ITK community! 🤗👋☀️
We are glad you are here and appreciate your contribution. Please keep in mind our community participation guidelines. 📜
Also, please check existing open issues and consider discussion on the ITK Discourse. 📖
This is an automatic message. Allow for time for the ITK community to be able to read the issue and comment on it.
seanm commentedon Jan 23, 2025
I just tried to repro this with master, built with TSan (thread sanitizer) and it doesn't detect any deadlock (in the threading sense).
Debugging it quickly, it seems to be in an infinite loop.
while (!(rawEdges[i].empty()))seems to be running forever because near the bottom of that loop the lastelsekeeps adding more itemsrawEdges[i].push_back(curr);ILoveGoulash commentedon Jun 16, 2025
Hello, we fixed it locally by reverting this modification that was clearly done without much thoughts given and adding
dzenanz commentedon Jun 16, 2025
Could you propose a PR with this change?
BUG: fix an infinite loop in itk::VoronoiDiagram2DGenerator
ILoveGoulash commentedon Jun 16, 2025
Here it is. The example in the OP is fixed by this in our case.
ENH: add regression test for InsightSoftwareConsortium#4386
ENH: add regression test for InsightSoftwareConsortium#4386
ENH: add regression test for InsightSoftwareConsortium#4386
ENH: add regression test for InsightSoftwareConsortium#4386
BUG: fix an infinite loop in itk::VoronoiDiagram2DGenerator
ENH: add regression test for InsightSoftwareConsortium#4386
BUG: fix an infinite loop in itk::VoronoiDiagram2DGenerator
ENH: add regression test for InsightSoftwareConsortium#4386
BUG: fix an infinite loop in itk::VoronoiDiagram2DGenerator
ENH: Add test of infinite loop in VoronoiDiagram2DGenerator
ENH: Add test of infinite loop in VoronoiDiagram2DGenerator
BUG: fix an infinite loop in itk::VoronoiDiagram2DGenerator
ENH: Add test of infinite loop in VoronoiDiagram2DGenerator
BUG: Fix infinite loop in VoronoiDiagram2DGenerator::ConstructDiagram
BUG: Fix infinite loop in VoronoiDiagram2DGenerator::ConstructDiagram
BUG: Fix infinite loop in VoronoiDiagram2DGenerator::ConstructDiagram
BUG: Fix infinite loop in VoronoiDiagram2DGenerator::ConstructDiagram
BUG: Fix infinite loop in VoronoiDiagram2DGenerator::ConstructDiagram