[GraphHopper] getting master working with android

Peter K peathal at yahoo.de
Mon May 6 15:56:02 UTC 2013


The files on google code are for an older release. So your app should
fail when using those.
It looks like your android environment is still not using the latest master.

Try to update eclipse dependencies/refresh etc (e.g. execute
'./graphhopper.sh android')
Then you should see "6" when printing Constants.VERSION_FILE

Regards,
Peter.

> Hi again ;)
> I back to maste branch and this is the logcat when i choose download
> berlin map
>
> 05-06 15:27:42.822: I/(15363): Attempting to load EGL implementation
> /system/lib//egl/libEGL_tegra_impl
> 05-06 15:27:42.857: I/(15363): Loaded EGL implementation
> /system/lib//egl/libEGL_tegra_impl
> 05-06 15:27:42.927: I/(15363): Loading GLESv2 implementation
> /system/lib//egl/libGLESv2_tegra_impl
> 05-06 15:27:44.092: I/AndroidLoggerFactory(15363): Logger name
> 'com.graphhopper.util.Helper' exceeds maximum length of 23 characters,
> using 'c*.g*.u*.Helper' instead.
> 05-06 15:28:01.557: I/GH(15363): downloading
> http://graphhopper.googlecode.com//files/berlin.ghz to
> /storage/sdcard0/graphhopper/maps/berlin.ghz
> 05-06 15:28:24.002: I/AndroidLoggerFactory(15363): Logger name
> 'com.graphhopper.routing.ch.PrepareContractionHierarchies' exceeds
> maximum length of 23 characters, using 'c*.g*.r*.c*.PrepareCon*' instead.
> 05-06 15:28:24.057: I/dalvikvm-heap(15363): Grow heap (frag case) to
> 10.794MB for 1771216-byte allocation
> 05-06 15:28:24.097: I/dalvikvm-heap(15363): Grow heap (frag case) to
> 12.479MB for 1771216-byte allocation
> 05-06 15:28:24.132: I/dalvikvm-heap(15363): Grow heap (frag case) to
> 15.857MB for 3542416-byte allocation
> 05-06 15:28:24.177: I/dalvikvm-heap(15363): Grow heap (frag case) to
> 19.236MB for 3542416-byte allocation
> 05-06 15:28:52.982: I/GH(15363): downloading
> http://graphhopper.googlecode.com//files/berlin.ghz to
> /storage/sdcard0/graphhopper/maps/berlin.ghz
>
>
> Everything seems fine but it does not because routing is never ready
> to use.
>
> Please check this.
> http://imageshack.us/photo/my-images/198/ss2mzq.png/?sa=0
>
>
> Update: there is a problem with names:
> 1) if i dowload maps from
> here https://code.google.com/p/graphhopper/downloads/list shows up the
> message above.
>
> 2) If i build the routing files "manually" using ./graphhopper.sh
> import your-area.osm; shows up the message above.
>
> 3) But if I build the routing files "manually" using ./graphhopper.sh
> import your-area.osm; and rename the spatialNIndex file
> to loc2idIndex. Routing WORKS again!
>
> Hope it helps!
>
>
>
>
>
> 2013/5/6 Peter K <peathal at yahoo.de <mailto:peathal at yahoo.de>>
>
>     Hi Ricardo,
>
>     Currently issue-23 is a work in progress not really suited for
>     normal use - except you want to activly develop on it.
>
>     And for master: I don't need the full logcat output just where
>     something with "Exception" starts :)
>
>     Regards,
>     Peter.
>
>>     I received the subscription thanks!
>>
>>     I decide test issue-23 branch and the problem still here.
>>     When i use the remote option or download option( i.e. Berlin)
>>     then the map shows up but fails when the app invoke
>>     prepareGraph() method: and then show the message:
>>
>>     "An error happened while creating graph: Couldn't load
>>     storage/sdcard0/graphhopper/maps/berling-gh"
>>
>>      protected Path saveDoInBackground(Void... v) throws Exception {
>>                     GraphHopper tmpHopp = new GraphHopper().forMobile();
>>                     tmpHopp.chShortcuts(true, true);
>>                    *tmpHopp.load(mapsFolder + currentArea);*
>>                     log("found graph with " + tmpHopp.graph().nodes()
>>     + " nodes");
>>                     hopper = tmpHopp;
>>                     return null;
>>       }
>>
>>     While i am debuggin i can see how in the
>>     instrucction *tmpHopp.load(mapsFolder + currentArea); *an
>>     exception is thrown and catched and then show the message above.
>>
>>     I cant send you a logcat because everytime i try to use the app
>>     restart the download and then i have to uninstall and clean
>>     graphhopper folder.
>>
>>     Looks like master branch seems more stable than issue-23 branch.
>>
>>
>>
>>
>>
>>
>>     2013/5/6 Peter K <peathal at yahoo.de <mailto:peathal at yahoo.de>>
>>
>>         I sent you an reply to the mailing list + subscribed you.
>>
>>         If you did't recieve it ... I'll really have to consider
>>         switching the mailing list :(
>>
>>         Did you subscribed to the mailing list before posting to it?
>>
>>
>>>         Hi Peter,
>>>         Thanks for reply, but i did not recieve any answer ou vía
>>>         mailing list.
>>>
>>>         Now i have another problem :(
>>>
>>>         Today (before read this message) I cloned master branch  and
>>>         now there are no more problems generating files for routing
>>>         but... when i carry them to SD card and I start the app
>>>         something fails in load method of GraphHopper class.
>>>
>>>         protected Path saveDoInBackground(Void... v) throws Exception {
>>>                         GraphHopper tmpHopp = new
>>>         GraphHopper().forAndroid();
>>>                         tmpHopp.contractionHierarchies(true);
>>>                        *tmpHopp.load(mapsFolder + currentArea);*
>>>                         log("found graph with " +
>>>         tmpHopp.getGraph().nodes() + " nodes");
>>>                         hopper = tmpHopp;
>>>                         return null;
>>>         }
>>>
>>>         I check mapsFolder and currentArea strings and they have
>>>         correct values.
>>>
>>>         More info: i tried with Slovenia and Portugal, in other hand
>>>         if i use remote option and download Berlin or New york
>>>         everything goes well.
>>>
>>>         PD: I'm sorry if this should be and issue in github, but i
>>>         am very new and I am not sure if this can be considered an
>>>         issue.
>>>
>>>
>>>
>>>
>>>         2013/5/6 Peter K <peathal at yahoo.de <mailto:peathal at yahoo.de>>
>>>
>>>             hi ricardo, did you recieve my answer via the mailing list?
>>>
>>>             http://lists.openstreetmap.org/pipermail/graphhopper/2013-May/000108.html
>>>
>>>
>>
>>
>>
>
>
>     -- 
>     GraphHopper.com Your way is our destination!
>
>
>     _______________________________________________
>     GraphHopper mailing list
>     GraphHopper at openstreetmap.org <mailto:GraphHopper at openstreetmap.org>
>     http://lists.openstreetmap.org/listinfo/graphhopper
>
>
>
>
> _______________________________________________
> GraphHopper mailing list
> GraphHopper at openstreetmap.org
> http://lists.openstreetmap.org/listinfo/graphhopper


-- 
GraphHopper.com Your way is our destination!

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


More information about the GraphHopper mailing list