Exception during preprocessing: Conversion pillarNode to towerNode already happended!?

Hi,

During preprocessing of an osm file I get a runtime exception: “Conversion pillarNode to towerNode already happended!? osmId:1330994133 pillarIndex:841101”. This happens with an osm file I cropped using a polygon with osmconvert (however, I have other cropped files that work fine). Is it possible that something during cropping in osmconvert went wrong?

– GraphHopper version 0.12.0
– Contraction Hierachies
– CarFlagEncoder
– minNetworkSize: 200
– minOneWayNetworkSize: 100

Stack trace:

2019-07-09 09:48:33,175  INFO GraphHopper:590 version 0.12.0|2019-03-25T14:19:57Z (5,14,4,3,3,2)
2019-07-09 09:48:33,178  INFO GraphHopper:592 graph CH|car|RAM_STORE|2D|NoExt|,,,,, details:edges:0(0MB), nodes:0(0MB), name:(0MB), geo:0(0MB), bounds:1.7976931348623157E308,-1.7976931348623157E308,1.7976931348623157E308,-1.7976931348623157E308, CHGraph|fastest|car, shortcuts:0, nodesCH:(0MB)
2019-07-09 09:48:33,203  INFO GraphHopper:667 start creating graph from output//Route2BeelineDistanceJob//cropped.osm
2019-07-09 09:48:33,203  INFO GraphHopper:653 using CH|car|RAM_STORE|2D|NoExt|,,,,, memory:totalMB:83413, usedMB:6099
2019-07-09 09:48:55,717  INFO OSMReader:246 creating graph. Found nodes (pillar+tower):2?062?270, totalMB:83413, usedMB:3417
2019-07-09 09:49:08,942  INFO OSMReader:267 14?169?550, now parsing ways
2019-07-09 09:49:13,215 ERROR OSMReader:694 Couldn't properly add edge with osm ids:[1330994118, 1335609360, 1335609347, 1335609341, 1330994118, 1330994133, 1330994134, 1335609495, 1330994135, 1330994131, 1330994128, 1330994127, 1330994123, 1330994130]
java.lang.RuntimeException: Conversion pillarNode to towerNode already happended!? osmId:1330994133 pillarIndex:841101
at com.graphhopper.reader.osm.OSMReader.handlePillarNode(OSMReader.java:790)
at com.graphhopper.reader.osm.OSMReader.addOSMWay(OSMReader.java:636)
at com.graphhopper.reader.osm.OSMReader.processWay(OSMReader.java:406)
at com.graphhopper.reader.osm.OSMReader.writeOsm2Graph(OSMReader.java:270)
at com.graphhopper.reader.osm.OSMReader.readGraph(OSMReader.java:146)
at com.graphhopper.GraphHopper.importData(GraphHopper.java:654)
at com.graphhopper.GraphHopper.process(GraphHopper.java:625)
at com.graphhopper.GraphHopper.importOrLoad(GraphHopper.java:603)

Best, Johannes