[GraphHopper] Graphhopper for Android 2.3 crashing

David Ssali dssali at eygo.biz
Thu Mar 6 04:04:53 UTC 2014


Peter..
Sorry for the delayed feedback.
I was using version 0.2 but i have since changed to 0.3 and it is all 
working perfectly well.
I think the issue had already been fixed.

Again i say, thank you very much

On 02/21/2014 04:44 PM, Peter K wrote:
> Hey,
>
> that looks like a different problem. Either a bug, which would be very 
> important to get fixed. Or you mixed versions or have mistakes in 
> configuration. Of course there should be a more descriptive error, if 
> that would be the case.
>
> If you can reproduce this and you want me to understand this then 
> please create an issue and a unit tests where this occurs. Or at least 
> describe the steps you did so that I can reproduce it here. E.g. "I 
> use graphhopper version x (or a specific commit), then imported area y 
> and routed from a to b." Also include OS+java version.
>
> Regards,
> Peter.
>
>
>> Hello Peter..
>> Sorry it took a while but here are the logs.
>>
>> E/AndroidRuntime( 1511):     at java.lang.Thread.run(Thread.java:1019)
>> E/AndroidRuntime( 1511): Caused by: java.lang.IllegalStateException: 
>> Base nodes have to be identical was were not: 0 26-7 vs 0 172-7
>> E/AndroidRuntime( 1511):     at 
>> com.graphhopper.routing.QueryGraph$1.execute(QueryGraph.java:191)
>> E/AndroidRuntime( 1511):     at 
>> com.graphhopper.routing.QueryGraph$1.execute(QueryGraph.java:140)
>> E/AndroidRuntime( 1511):     at 
>> gnu.trove.map.hash.TIntObjectHashMap.forEachValue(TIntObjectHashMap.java:402)
>> E/AndroidRuntime( 1511):     at 
>> com.graphhopper.routing.QueryGraph.lookup(QueryGraph.java:139)
>> E/AndroidRuntime( 1511):     at 
>> com.graphhopper.routing.AbstractRoutingAlgorithm.calcPath(AbstractRoutingAlgorithm.java:81)
>> E/AndroidRuntime( 1511):     at 
>> com.graphhopper.GraphHopper.route(GraphHopper.java:619)
>> E/AndroidRuntime( 1511):     at 
>> ug.ramani.ramani.NavigationActivity$20.doInBackground(NavigationActivity.java:1295)
>> E/AndroidRuntime( 1511):     at 
>> ug.ramani.ramani.NavigationActivity$20.doInBackground(NavigationActivity.java:1)
>> E/AndroidRuntime( 1511):     at 
>> android.os.AsyncTask$2.call(AsyncTask.java:185)
>> E/AndroidRuntime( 1511):     at 
>> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:306)
>> E/AndroidRuntime( 1511):     ... 4 more
>>
>>
>> On 02/20/2014 04:44 PM, Peter K wrote:
>>> The exact log entry would be appreciated. Also it seems that 
>>> 'compareTo' and 'equals' are there since API level 1:
>>>
>>> https://developer.android.com/reference/java/lang/String.html#compareTo%28java.lang.String%29
>>>
>>> Peter.
>>>
>>>> I had the same problem, it only work on 2.3.2 or higher version.
>>>>
>>>> One of the problems for olther versions is the String.compare(String)
>>>>
>>>>
>>>> On Thu, Feb 20, 2014 at 1:08 PM, Peter K <peathal at yahoo.de 
>>>> <mailto:peathal at yahoo.de>> wrote:
>>>>
>>>>     Hey David,
>>>>
>>>>     it should work on both although I've tested only 2.3.3
>>>>
>>>>     What is the error message in the log?
>>>>
>>>>     Regards,
>>>>     Peter.
>>>>
>>>>
>>>>     > Hello..
>>>>     > I am trying to build an application to using graphhopper (android
>>>>     > library).
>>>>     > On android v 4.1 and greater, all is well.
>>>>     > When using 2.3 or 2.2, the application crashes when i call the
>>>>     > calcPath function.
>>>>     >
>>>>     > Does graphhoper work on those versions of android?
>>>>     >
>>>>
>>>>
>>>>     ________________________________
>>>>
>
>
> _______________________________________________
> GraphHopper mailing list
> GraphHopper at openstreetmap.org
> https://lists.openstreetmap.org/listinfo/graphhopper

-- 
David Ssali
Team Leader
EYGO LIMITED
P.O. BOX 22214, KAMPALA
Tel: +256 41 469 1531
Mob: +256713178532

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/graphhopper/attachments/20140306/fb4940d4/attachment.html>


More information about the GraphHopper mailing list