You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Cannot load graph on Android due to mismatching version for road_class EncodedValue #1650
An error happened while creating graph:Version of EncodedValue road_class|version=1237974758|bits=5|index=0|shift=1|store_both_directions=false does not match road_class|version=-2100336611|bits=5|index=0|shift=1|store_both_directions=false. Stored 1237974758 vs. in code -2100336611
The likely reason is that we currently use hashcode as version identifier but it is not intended for that (can change in different JVMs or even different runs).
The question is why this worked in the past e.g. in BaseGraph:
load with new GraphHopper().load(ghLocation) where we create the EncodingManager via EncodingManager.create(encodedValueFactory, flagEncoderFactory, ghLocation)
Activity