Closed randyhbh closed 7 years ago
To fix that you need to drag and drop all translation files to your project, the location of the files in your project are: graphhopper/core/src/main/resources/com/graphhopper/util/
as you can see in this link: https://github.com/graphhopper/graphhopper/tree/fe358725e7ae2526dae258bc3dc80a83d616055a/core/src/main/resources/com/graphhopper/util
You can also have look to the sample project that they did the same.
I already fix it but i am facing an error in this line self.hopper!.load__(with: location)
, xcode throw
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'shortcutId 541319 not in bounds [314191 J2OBJC_COMMA() 541246)'
*** First throw call stack:
(
0 CoreFoundation 0x05030bf2 __exceptionPreprocess + 194
1 libobjc.A.dylib 0x04ae9e66 objc_exception_throw + 52
2 CoreFoundation 0x05034d12 +[NSException raise:format:arguments:] + 130
3 Foundation 0x02b76d86 -[NSAssertionHandler handleFailureInFunction:file:lineNumber:description:] + 77
4 WeGoCuba 0x00bf8b51 CHGraphImpl_$1_toPointerWithInt_ + 561
5 WeGoCuba 0x00bf8917 -[CHGraphImpl_$1 toPointerWithInt:] + 39
6 WeGoCuba 0x00beec1e BaseGraph_EdgeIterable_next + 142
7 WeGoCuba 0x00bf1c2d -[BaseGraph_EdgeIterable next] + 29
8 WeGoCuba 0x00b8f1c3 -[DijkstraOneToMany findEndNodeWithInt:withInt:] + 2547
9 WeGoCuba 0x00b85bbf -[PrepareContractionHierarchies findShortcutsWithPrepareContractionHierarchies_ShortcutHandler:] + 1903
10 WeGoCuba 0x00b85364 -[PrepareContractionHierarchies calculatePriorityWithInt:] + 116
11 WeGoCuba 0x00b83155 -[PrepareContractionHierarchies prepareNodes] + 213
12 WeGoCuba 0x00b8304f -[PrepareContractionHierarchies doWork] + 271
13 WeGoCuba 0x00b8080e -[CHAlgoFactoryDecorator_$1 run] + 286
14 WeGoCuba 0x00a59de0 JavaUtilConcurrentThreadPoolExecutor_runTaskWithJavaLangRunnable_ + 46
15 WeGoCuba 0x00a59cb8 JavaUtilConcurrentThreadPoolExecutor_runWorkerWithJavaUtilConcurrentThreadPoolExecutor_Worker_ + 477
16 WeGoCuba 0x00a5c6e2 -[JavaUtilConcurrentThreadPoolExecutor_Worker run] + 29
17 WeGoCuba 0x0089d6ea -[JavaLangThread run] + 108
18 WeGoCuba 0x0089d71e -[JavaLangThread run0WithId:] + 36
19 Foundation 0x02a96bab -[NSThread main] + 68
20 Foundation 0x02a96930 __NSThread__start__ + 1332
21 libsystem_pthread.dylib 0x06246780 _pthread_body + 138
22 libsystem_pthread.dylib 0x062466f6 _pthread_body + 0
23 libsystem_pthread.dylib 0x06243f7a thread_start + 34
)
libc++abi.dylib: terminating with uncaught exception of type NSException
Any help whit this?
Hi @RandyHBH did you notice this line in the error msg "reason: 'shortcutId 541319 not in bounds"?
Possibly you are generating route but the file that you have don't have that part of the city.
When i try to initialize graphhopper give me an error this is my code to initialize graphhoper
and this is the error that xcode give me
EDIT I debug the code and is failing in this line
self.hopper = GraphHopper.init()
bacause inside this is looking forar.txt
IN Transaltion Directory but this file dosn't exist, why is looking for this file? how i can change it?