Importing error: fromEdges and to Edges

I am importing the planet file and getting a strange error:

java.lang.IllegalArgumentException: fromEdges and toEdges cannot be size > 1 at the same time
        at com.graphhopper.reader.osm.RestrictionTopology.<init>(RestrictionTopology.java:64)
        at com.graphhopper.reader.osm.RestrictionTopology.way(RestrictionTopology.java:59)
        at com.graphhopper.reader.osm.OSMRestrictionConverter.buildRestrictionTopologyForGraph(OSMRestrictionConverter.java:95)
        at com.graphhopper.reader.osm.OSMReader.addRestrictionsToGraph(OSMReader.java:616)
        at com.graphhopper.reader.osm.OSMReader.readGraph(OSMReader.java:180)
        at com.graphhopper.GraphHopper.importOSM(GraphHopper.java:933)
        at com.graphhopper.GraphHopper.process(GraphHopper.java:823)
        at com.graphhopper.GraphHopper.importAndClose(GraphHopper.java:787)
        at com.graphhopper.application.cli.ImportCommand.run(ImportCommand.java:36)
        at com.graphhopper.application.cli.ImportCommand.run(ImportCommand.java:27)
        at io.dropwizard.core.cli.ConfiguredCommand.run(ConfiguredCommand.java:98)
        at io.dropwizard.core.cli.Cli.run(Cli.java:78)
        at io.dropwizard.core.Application.run(Application.java:94)
        at com.graphhopper.application.GraphHopperApplication.main(GraphHopperApplication.java:38)

I have imported the planet before with 9.1, but this import is using 10.0 and I also added the following to my config:

weighting: custom
     turn_costs:
      vehicle_types: [motorcar, motor_vehicle]
      u_turn_costs: 60
     custom_model_files: [car.json]

Do you see any issues that could be causing this error? This was after about 30 hours of importing.

This was fixed for the master branch, but the fix is not included in 9.1 or 10.0:

So currently there are the following possible solutions for this:

  1. build from source using the master branch
  2. disabling turn costs (probably not what you want)
  3. modifying the OSM file to exclude the turn restriction that causes the error

We might backport the fix and create version 10.1.

Thanks! I will build from source and see how that works.

The problem should be fixed with GraphHopper 10.2