Graphhopper routing Engine 1.0 Build fails

Hello,
I just cloned Graphhopper routing engine 1.0.However, the build fails with the following error message:

Running com.graphhopper.routing.RoutingAlgorithmWithOSMTest

RoutingAlgorithmWithOSMTest algoEntry(astar):0.1366467, per run:0.017080838

RoutingAlgorithmWithOSMTest algoEntry(dijkstra):0.1304848, per run:0.0163106

RoutingAlgorithmWithOSMTest algoEntry(astarbi):0.0600534, per run:0.007506675

RoutingAlgorithmWithOSMTest algoEntry(dijkstrabi):0.0619232, per run:0.0077404

2020-05-22 16:07:29,958 [bike2_profile] WARN com.graphhopper.routing.lm.LandmarkStorage - landmark 0 (43.74922499990221,7.438549379375935): too many weights were maxed out (195/1128). Use a bigger factor than 0.02436047089392025. For example use maximum_lm_weight: 2630.43651889867 in your LM profile definition
2020-05-22 16:07:29,959 [bike2_profile] WARN com.graphhopper.routing.lm.LandmarkStorage - landmark 0 (43.74922499990221,7.438549379375935): too many weights were maxed out (168/1127). Use a bigger factor than 0.02436047089392025. For example use maximum_lm_weight: 2465.611556984505 in your LM profile definition
2020-05-22 16:07:38,277 [bike2_profile] WARN com.graphhopper.routing.lm.LandmarkStorage - landmark 13 (52.350915462171635,8.011933036415272): too many weights were maxed out (34/40). Use a bigger factor than 0.004774022256499525. For example use maximum_lm_weight: 615.4067137937604 in your LM profile definition
2020-05-22 16:07:38,542 [motorcycle_profile] WARN com.graphhopper.routing.lm.LandmarkStorage - landmark 6 (43.730797664764474,7.422389814758073): too many weights were maxed out (260/550). Use a bigger factor than 0.016531910370487766. For example use maximum_lm_weight: 2074.51240356627 in your LM profile definition
2020-05-22 16:07:38,545 [motorcycle_profile] WARN com.graphhopper.routing.lm.LandmarkStorage - landmark 11 (43.74633957623704,7.430109175222572): too many weights were maxed out (60/544). Use a bigger factor than 0.016531910370487766. For example use maximum_lm_weight: 2044.331036731028 in your LM profile definition
testMonacoParallel takes a bit time…
Exception in thread “PBF Reader” java.lang.RuntimeException: Unable to read PBF file.
at com.graphhopper.reader.osm.pbf.PbfReader.run(PbfReader.java:50)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.RuntimeException: Unable to get message info for org.openstreetmap.osmosis.osmbinary.Fileformat$BlobHeader
at com.google.protobuf.GeneratedMessageInfoFactory.messageInfoFor(GeneratedMessageInfoFactory.java:62)
at com.google.protobuf.ManifestSchemaFactory$CompositeMessageInfoFactory.messageInfoFor(ManifestSchemaFactory.java:143)
at com.google.protobuf.ManifestSchemaFactory.createSchema(ManifestSchemaFactory.java:55)
at com.google.protobuf.Protobuf.schemaFor(Protobuf.java:93)
at com.google.protobuf.Protobuf.schemaFor(Protobuf.java:107)
at com.google.protobuf.GeneratedMessageLite.parsePartialFrom(GeneratedMessageLite.java:1555)
at com.google.protobuf.GeneratedMessageLite.parseFrom(GeneratedMessageLite.java:1655)
at org.openstreetmap.osmosis.osmbinary.Fileformat$BlobHeader.parseFrom(Fileformat.java:1127)
at com.graphhopper.reader.osm.pbf.PbfStreamSplitter.readHeader(PbfStreamSplitter.java:43)
at com.graphhopper.reader.osm.pbf.PbfStreamSplitter.getNextBlob(PbfStreamSplitter.java:72)
at com.graphhopper.reader.osm.pbf.PbfStreamSplitter.hasNext(PbfStreamSplitter.java:89)
at com.graphhopper.reader.osm.pbf.PbfDecoder.processBlobs(PbfDecoder.java:106)
at com.graphhopper.reader.osm.pbf.PbfDecoder.run(PbfDecoder.java:162)
at com.graphhopper.reader.osm.pbf.PbfReader.run(PbfReader.java:47)
… 1 more
Caused by: java.lang.UnsupportedOperationException
at org.openstreetmap.osmosis.osmbinary.Fileformat$BlobHeader.dynamicMethod(Fileformat.java:1430)
at com.google.protobuf.GeneratedMessageLite.dynamicMethod(GeneratedMessageLite.java:252)
at com.google.protobuf.GeneratedMessageLite.buildMessageInfo(GeneratedMessageLite.java:280)
at com.google.protobuf.GeneratedMessageInfoFactory.messageInfoFor(GeneratedMessageInfoFactory.java:60)
… 14 more
Exception in thread “PBF Reader” java.lang.RuntimeException: Unable to read PBF file.
at com.graphhopper.reader.osm.pbf.PbfReader.run(PbfReader.java:50)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.RuntimeException: Unable to get message info for org.openstreetmap.osmosis.osmbinary.Fileformat$BlobHeader
at com.google.protobuf.GeneratedMessageInfoFactory.messageInfoFor(GeneratedMessageInfoFactory.java:62)
at com.google.protobuf.ManifestSchemaFactory$CompositeMessageInfoFactory.messageInfoFor(ManifestSchemaFactory.java:143)
at com.google.protobuf.ManifestSchemaFactory.createSchema(ManifestSchemaFactory.java:55)
at com.google.protobuf.Protobuf.schemaFor(Protobuf.java:93)
at com.google.protobuf.Protobuf.schemaFor(Protobuf.java:107)
at com.google.protobuf.GeneratedMessageLite.parsePartialFrom(GeneratedMessageLite.java:1555)
at com.google.protobuf.GeneratedMessageLite.parseFrom(GeneratedMessageLite.java:1655)
at org.openstreetmap.osmosis.osmbinary.Fileformat$BlobHeader.parseFrom(Fileformat.java:1127)
at com.graphhopper.reader.osm.pbf.PbfStreamSplitter.readHeader(PbfStreamSplitter.java:43)
at com.graphhopper.reader.osm.pbf.PbfStreamSplitter.getNextBlob(PbfStreamSplitter.java:72)
at com.graphhopper.reader.osm.pbf.PbfStreamSplitter.hasNext(PbfStreamSplitter.java:89)
at com.graphhopper.reader.osm.pbf.PbfDecoder.processBlobs(PbfDecoder.java:106)
at com.graphhopper.reader.osm.pbf.PbfDecoder.run(PbfDecoder.java:162)
at com.graphhopper.reader.osm.pbf.PbfReader.run(PbfReader.java:47)
… 1 more
Caused by: java.lang.UnsupportedOperationException
at org.openstreetmap.osmosis.osmbinary.Fileformat$BlobHeader.dynamicMethod(Fileformat.java:1430)
at com.google.protobuf.GeneratedMessageLite.dynamicMethod(GeneratedMessageLite.java:252)
at com.google.protobuf.GeneratedMessageLite.buildMessageInfo(GeneratedMessageLite.java:280)
at com.google.protobuf.GeneratedMessageInfoFactory.messageInfoFor(GeneratedMessageInfoFactory.java:60)
… 14 more
Tests run: 33, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 19.242 s <<< FAILURE! - in com.graphhopper.routing.RoutingAlgorithmWithOSMTest
testAndorraPbf Time elapsed: 0.065 s <<< ERROR!
java.lang.RuntimeException: cannot handle file …/core/files/andorra.osm.pbf, Graph after reading OSM must not be empty. Read 1 items and 0 locations
at com.graphhopper.routing.RoutingAlgorithmWithOSMTest.runAlgo(RoutingAlgorithmWithOSMTest.java:681)
at com.graphhopper.routing.RoutingAlgorithmWithOSMTest.testAndorraPbf(RoutingAlgorithmWithOSMTest.java:518)
Caused by: java.lang.RuntimeException: Graph after reading OSM must not be empty. Read 1 items and 0 locations
at com.graphhopper.routing.RoutingAlgorithmWithOSMTest.runAlgo(RoutingAlgorithmWithOSMTest.java:657)
at com.graphhopper.routing.RoutingAlgorithmWithOSMTest.testAndorraPbf(RoutingAlgorithmWithOSMTest.java:518)

Running com.graphhopper.routing.TrafficChangeWithNodeOrderingReusingTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0 s - in com.graphhopper.routing.TrafficChangeWithNodeOrderingReusingTest

Results:

Errors:
OSMReaderTest.testDataDateWithinPBF:890 » Runtime Graph after reading OSM must…
RoutingAlgorithmWithOSMTest.testAndorraPbf:518->runAlgo:681 Runtime cannot han…

Tests run: 150, Failures: 0, Errors: 2, Skipped: 1


Reactor Summary:

GraphHopper Parent Project … SUCCESS [ 1.333 s]
GraphHopper API … SUCCESS [ 8.046 s]
GraphHopper Web API … SUCCESS [ 6.138 s]
GraphHopper Core … SUCCESS [ 55.443 s]
GraphHopper Reader for OpenStreetMap Data … FAILURE [ 51.455 s]
GraphHopper Isochrone … SKIPPED
GraphHopper Reader for Gtfs Data … SKIPPED
GraphHopper Tools … SKIPPED
GraphHopper Directions API hand-crafted Java Client. SKIPPED
GraphHopper Dropwizard Bundle … SKIPPED
GraphHopper Web … SKIPPED

BUILD FAILURE

Total time: 02:03 min
Finished at: 2020-05-22T16:07:47-04:00
Final Memory: 30M/423M

This used to build fine under 1.0 SNAPSHOT.

Is there anything I need to do before building?

Thank you in advance

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.

Powered by Discourse