Skip to content

Infinite loop in NetworkTools.findClosestLinksSorted #199

Open
@markusstraub

Description

I just wanted to report that NetworkTools.findClosestLinksSorted produces an infinite loop here:

while(tmp.putIfAbsent(d, l) == null) {
while calling this method on a 1km² test map with meter-based projection.

Unfortunately I can not look for a solution any deeper than finding this copy/paste bug (should be l.getToNode() instead of l.getFromNode()

double toNodeDist = CoordUtils.calcEuclideanDistance(l.getFromNode().getCoord(), coord);

.. but even when fixing this the problem does not go away.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions