Skip to content

StackOverflowError for EdgeElevationSmoothingRamer #3202

Closed

Description

@karussell

Somehow for latest planet we get:

2025-10-06 20:39:59.671 [main] INFO  c.g.reader.osm.WaySegmentParser - pass2 - processed ways: 170,000,000, totalMB:148022, usedMB:109797
java.lang.StackOverflowError
        at java.base/java.lang.Math.asin(Math.java:229)
        at com.graphhopper.util.DistanceCalcEarth.calcDist(DistanceCalcEarth.java:54)
        at com.graphhopper.reader.dem.EdgeElevationSmoothingRamer.internSmooth(EdgeElevationSmoothingRamer.java:39)
        at com.graphhopper.reader.dem.EdgeElevationSmoothingRamer.internSmooth(EdgeElevationSmoothingRamer.java:79)
        at com.graphhopper.reader.dem.EdgeElevationSmoothingRamer.internSmooth(EdgeElevationSmoothingRamer.java:79)
        at com.graphhopper.reader.dem.EdgeElevationSmoothingRamer.internSmooth(EdgeElevationSmoothingRamer.java:79)
... 1020 more

with graph.elevation.edge_smoothing.ramer.max_elevation: 5

There are multiple long PointLists that go over a 1000 recursion depth (often ferries):

The algo reaches a depth of over 4k for a way with 19k coordinates!?

Activity

  1. added this to the 11.0 milestone on Oct 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions