graphhopper / graphhopper-ios

iOS Port of the GraphHopper road routing engine
https://www.graphhopper.com/open-source/
Apache License 2.0
69 stars 28 forks source link

Version of nodes Crash #6

Closed dimohamdy closed 9 years ago

dimohamdy commented 9 years ago

I used Data support .4 but i have crash *\ Terminating app due to uncaught exception 'JavaLangIllegalStateException', reason: 'Version of nodes unsupported: 3, expected:4'

karussell commented 9 years ago

Please use the mailing list for questions. This indicates that you have different (older) graph files on the disc. Make sure you are using the same version for creating and for reading.

dimohamdy commented 9 years ago

I use git clone --recursive https://github.com/graphhopper/graphhopper-ios.git to get graphhopper are this the last version

clns commented 9 years ago

Yes, most probably you have older graph files. Are you using the import method from the sample app? Because if you're using that you shouldn't have problems like this.

Please use the mailing list for questions.

dimohamdy commented 9 years ago

I use it , that is in sample how i can use it

clns commented 9 years ago

What is the exact command you're using to import the data?

dimohamdy commented 9 years ago

hopper = [[GraphHopper alloc] init]; [hopper setCHEnableWithBoolean:YES]; [hopper setAllowWritesWithBoolean:NO]; [hopper setMemoryMapped]; [hopper setEncodingManagerWithEncodingManager:[[EncodingManager alloc] initWithNSString:@"car"]]; [hopper load__WithNSString:location];

clns commented 9 years ago

No, I mean the command you ran to import the data, in the command line (Terminal).

dimohamdy commented 9 years ago

it's a offline Data

clns commented 9 years ago

Did you use this command to import the graph files (from the root of graphhopper-ios)?

$ ./graphhopper-ios-sample/import-sample.sh
karussell commented 9 years ago

Hi Ahmed, please if you really want help you need to be more descriptive and invest a bit more time and words into this. Otherwise @clns probably won't be able to do much for you