Found the problem...

The map (ocbf) files were downloaded to Android's 
/data/net.osmand.dev/files directory and the app is looking them up from 
/storage/emulator/0/*oamand.  *It works after I copied the ocbf to the 
/storage/emulator/0/oamand directory.

On Saturday, 28 October 2017 23:53:16 UTC-4, KINAM CHOI wrote:
>
> Hi,
>
> I cloned the oamand (and the resources) repository (the master and R2.8 
> branch) and successful build the apk.
> The app successfully run and downloaded the Ontario and World map, however 
> the app can't render the map and giving the following exception ...
>
>
> 10-28 23:46:55.298 22916-22938/? I/net.osmand: MapRenderRepositories 
> BLat=43.18277835845947, TLat=44.26259899139404, LLong=-79.70204162597656, 
> RLong=-78.7603530883789, zoom=10
> 10-28 23:46:55.299 22916-22938/? I/net.osmand: MapRenderRepositories 
> Searching: 102 ms  (coastline 4 ms ) (839 results found)
> 10-28 23:46:55.303 22916-22938/? E/net.osmand: MapRenderRepositories 
> Runtime memory exception
>                                               
>  java.lang.NullPointerException: Attempt to get length of null array
>                                                    at 
> net.osmand.binary.BinaryMapDataObject.getSimpleLayer(BinaryMapDataObject.java:160)
>                                                    at 
> net.osmand.plus.render.OsmandRenderer.sortObjectsByProperOrder(OsmandRenderer.java:464)
>                                                    at 
> net.osmand.plus.render.OsmandRenderer.generateNewBitmap(OsmandRenderer.java:265)
>                                                    at 
> net.osmand.plus.render.MapRenderRepositories.loadMap(MapRenderRepositories.java:791)
>                                                    at 
> net.osmand.plus.resources.AsyncLoadingThread.run(AsyncLoadingThread.java:51)
> 10-28 23:48:06.852 22916-22916/? I/net.osmand: MapRenderRepositories 
> RENDER MAP: Interrupt rendering map
> 10-
>
>
> Any ideas? Thanks so much for the help.
>
> Regards,
> KINAM CHOI
>

-- 
You received this message because you are subscribed to the Google Groups 
"Osmand" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to