Import OSM-file causes error: java.lang.IllegalStateException: graph is empty after in-place removal


#1

Hello. I tried to import a osm file of this region right here: http://www.openstreetmap.org/export#map=15/53.9209/8.5007

but when i try to import the .osm via the graphhopper.sh i got this:

2016-10-25 17:13:03,613 [main] INFO  com.graphhopper.reader.osm.GraphHopperOSM - using CH|car|RAM_STORE|2D|NoExt|,,,,, memory:totalMB:958, usedMB:25
2016-10-25 17:13:03,753 [main] INFO  com.graphhopper.reader.osm.OSMReader - creating graph. Found nodes (pillar+tower):390, totalMB:958, usedMB:30
2016-10-25 17:13:03,809 [main] INFO  com.graphhopper.reader.osm.OSMReader - 5á623, now parsing ways
2016-10-25 17:13:03,838 [main] INFO  com.graphhopper.reader.osm.OSMReader - 6á099, now parsing relations
2016-10-25 17:13:03,843 [main] INFO  com.graphhopper.reader.osm.OSMReader - finished way processing. nodes: 79, osmIdMap.size:395, osmIdMap:0MB, nodeFlagsMap.size:5, relFlagsMap.size:0, zeroCounter:5 totalMB:958, usedMB:37
2016-10-25 17:13:03,844 [main] INFO  com.graphhopper.reader.osm.OSMReader - time pass1:0s, pass2:0s, total:0s
2016-10-25 17:13:03,845 [main] INFO  com.graphhopper.reader.osm.GraphHopperOSM - start finding subnetworks, totalMB:958, usedMB:37
2016-10-25 17:13:03,853 [main] INFO  com.graphhopper.routing.subnetwork.PrepareRoutingSubnetworks - car findComponents time:0.007008007, size:8
2016-10-25 17:13:03,856 [main] INFO  com.graphhopper.routing.subnetwork.PrepareRoutingSubnetworks - 79 subnetworks found for car, totalMB:958, usedMB:37
2016-10-25 17:13:03,857 [main] INFO  com.graphhopper.routing.subnetwork.PrepareRoutingSubnetworks - optimize to remove subnetworks (79), unvisited-dead-end-nodes (85), maxEdges/node (0)
2016-10-25 17:13:03,858 [main] WARN  com.graphhopper.storage.BaseGraph - More than a half of the network should be removed!? Nodes:79, remove:79
Exception in thread "main" java.lang.IllegalStateException: graph is empty after in-place removal but was 79
        at com.graphhopper.storage.BaseGraph.inPlaceNodeRemove(BaseGraph.java:704)
        at com.graphhopper.storage.GraphHopperStorage.optimize(GraphHopperStorage.java:219)
        at com.graphhopper.routing.subnetwork.PrepareRoutingSubnetworks.doWork(PrepareRoutingSubnetworks.java:90)
        at com.graphhopper.GraphHopper.cleanUp(GraphHopper.java:1127)
        at com.graphhopper.GraphHopper.process(GraphHopper.java:689)
        at com.graphhopper.GraphHopper.importOrLoad(GraphHopper.java:659)
        at com.graphhopper.tools.Import.main(Import.java:31)

what can i do?


No route with very simple routing
#2

Can you please try

prepare.min_network_size=0
prepare.min_one_way_network_size=0

in the config.properties?

See this and this.


#3

worked properly.

Thank you very much! :+1: