Encoders are requesting 69 bits, more than 64 bits of edge flags


#1

I followed the instructions given at https://github.com/graphhopper/graphhopper/tree/master/reader-gtfs

I executed:
master » java -Xmx4g -Xms4g
-Dgraphhopper.datareader.file=brazil-latest.osm.pbf
-Dgraphhopper.gtfs.file=gtfs-sptrans.zip
-Dgraphhopper.graph.flag_encoders=pt
-Dgraphhopper.prepare.ch.weightings=no
-Dgraphhopper.graph.location=./graph-cache
-jar graphhopper-web-0.13-20190411.175247-32.jar server config.yml

Return:
2019-04-25 12:12:14.816 [main] INFO i.d.server.DefaultServerFactory - Registering jersey handler with root path prefix: /
2019-04-25 12:12:14.821 [main] INFO i.d.server.DefaultServerFactory - Registering admin handler with root path prefix: /
java.lang.IllegalArgumentException: Encoders are requesting 69 bits, more than 64 bits of edge flags. (Attempt to add EncodedValue car.average_speed) Decrease the number of vehicles or increase the flags to take long via graph.bytes_for_flags: 8
at com.graphhopper.routing.util.EncodingManager.addEncodedValue(EncodingManager.java:350)
at com.graphhopper.routing.util.EncodingManager.addEncoder(EncodingManager.java:329)
at com.graphhopper.routing.util.EncodingManager.access$300(EncodingManager.java:45)
at com.graphhopper.routing.util.EncodingManager$Builder.add(EncodingManager.java:213)
at com.graphhopper.http.GraphHopperBundle.runPtGraphHopper(GraphHopperBundle.java:212)
at com.graphhopper.http.GraphHopperBundle.run(GraphHopperBundle.java:202)
at com.graphhopper.http.GraphHopperBundle.run(GraphHopperBundle.java:64)
at io.dropwizard.setup.Bootstrap.run(Bootstrap.java:200)
at io.dropwizard.cli.EnvironmentCommand.run(EnvironmentCommand.java:42)
at io.dropwizard.cli.ConfiguredCommand.run(ConfiguredCommand.java:87)
at io.dropwizard.cli.Cli.run(Cli.java:78)
at io.dropwizard.Application.run(Application.java:93)
at com.graphhopper.http.GraphHopperApplication.main(GraphHopperApplication.java:33)


#2

Can you try the latest master?