[GraphHopper] Graphhopper for Android 2.3 crashing

David Ssali dssali at eygo.biz
Fri Feb 21 13:12:01 UTC 2014


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 <mailto:GraphHopper at openstreetmap.org>
>>     https://lists.openstreetmap.org/listinfo/graphhopper
>>
>>
>>
>>
>> -- 
>> t
>>
>>
>> _______________________________________________
>> GraphHopper mailing list
>> GraphHopper at openstreetmap.org
>> https://lists.openstreetmap.org/listinfo/graphhopper
>
>
> _______________________________________________
> 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/20140221/f0af7f4f/attachment.html>


More information about the GraphHopper mailing list