[GraphHopper] Graphhopper for Android 2.3 crashing
Peter K
peathal at yahoo.de
Fri Feb 21 13:44:15 UTC 2014
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?
>>> >
>>>
>>>
>>> ________________________________
>>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/graphhopper/attachments/20140221/152f20dd/attachment.html>
More information about the GraphHopper
mailing list