question

zeleninboris avatar image
zeleninboris asked ·

UPNTileOverlayProviderAndroid crash

Hello. When I am using TileOverlays and I'm getting errors in logcat while loading tiles. One error for each tile.

Such as: 11-05 19:10:23.429 16510-16557/app I/Maps-Polaris: The providerDelegate is not set yet 11-05 19:10:23.429 16510-16557/app E/Maps-Polaris: [1;31mERROR: [jni/../native/renderer/downloader/UPNDownloadService.cpp: downloadDropFailed(), line 446][0m [1;31mERROR: [0m[1;33mDownload Service: download failed [No error][0m 11-05 19:10:23.429 16510-16557/app I/Maps-Polaris: Download Service: will retry drop 14_2 [attempt: 6]

After errors, tiles appear on the map. But errors are not the biggest problem.

1) If there are 3-4 TileOverlays it crashes. 2) If I remove TileOverlay while it loads tiles it crashes. 3) Sometimes, it crashes while moving or zooming.

11-05 19:32:11.097 18953-19128/app W/Maps-Polaris: [1;33m[******************************** ABORT ********************************][0m 11-05 19:32:11.097 18953-19128/app W/Maps-Polaris: [1;33m File: jni/layers/UPNTileOverlayProviderAndroid.cpp[0m 11-05 19:32:11.097 18953-19128/app W/Maps-Polaris: [1;33m Line: 50[0m 11-05 19:32:11.098 18953-19128/app W/Maps-Polaris: [1;33m Function: virtual UPNTileOverlayGetTileResult UPNTileOverlayProviderAndroid::getTile(long int, int, int, int, UPNByteBuffer*)[0m 11-05 19:32:11.098 18953-19128/app W/Maps-Polaris: [0;33m Reason: Exception from java caught while trying JNI call: java.lang.NullPointerException com.amazon.geo.mapsv2.model.TileOverlayManager.getTile(TileOverlayManager.java:318) dalvik.system.NativeStart.run(Native Method)[0m 11-05 19:32:11.129 18953-19128/app I/Maps-Polaris: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** 11-05 19:32:11.129 18953-19128/app I/Maps-Polaris: #00 pc 004f0354 /data/app-lib/com.amazon.geo.mapsv2.services-1/libpolaris_v2.so 11-05 19:32:11.130 18953-19128/app I/Maps-Polaris: #01 pc 004f038c /data/app-lib/com.amazon.geo.mapsv2.services-1/libpolaris_v2.so (_pabort(char const*, int, char const*, char const*, ...)+28x) 11-05 19:32:11.130 18953-19128/app I/Maps-Polaris: #02 pc 00292110 /data/app-lib/com.amazon.geo.mapsv2.services-1/libpolaris_v2.so (UPNTileOverlayProviderAndroid::getTile(long, int, int, int, UPNByteBuffer*)+556x) 11-05 19:32:11.130 18953-19128/app I/Maps-Polaris: #03 pc 002e353c /data/app-lib/com.amazon.geo.mapsv2.services-1/libpolaris_v2.so (UPNTileOverlayAppDropProvider::getTile(DropId const&, UPNByteBuffer*) const+100x) 11-05 19:32:11.130 18953-19128/app I/Maps-Polaris: #04 pc 0033c7d8 /data/app-lib/com.amazon.geo.mapsv2.services-1/libpolaris_v2.so (UPNDownloader::performTileOverlayRequest(UPNDownloadRequest*)+328x) 11-05 19:32:11.130 18953-19128/app I/Maps-Polaris: #05 pc 00342e64 /data/app-lib/com.amazon.geo.mapsv2.services-1/libpolaris_v2.so (UPNDownloader::executeRequest(std::unique_ptr >, bool)+1420x) 11-05 19:32:11.130 18953-19128/app I/Maps-Polaris: #06 pc 00326388 /data/app-lib/com.amazon.geo.mapsv2.services-1/libpolaris_v2.so (UPNDownloaderPool::runThread(UPNDownloader*)+248x) 11-05 19:32:11.131 18953-19128/app I/Maps-Polaris: #07 pc 00503148 /data/app-lib/com.amazon.geo.mapsv2.services-1/libpolaris_v2.so 11-05 19:32:11.131 18953-19128/app I/Maps-Polaris: #08 pc 0000d2e0 /system/lib/libc.so (__thread_entry+72x) 11-05 19:32:11.131 18953-19128/app I/Maps-Polaris: #09 pc 0000d47c /system/lib/libc.so (pthread_create+240x) 11-05 19:32:11.131 18953-19128/app W/Maps-Polaris: [1;33m[***********************************************************************][0m 11-05 19:32:11.131 18953-19128/app A/libc: Fatal signal 11 (SIGSEGV) at 0xdecafbad (code=1), thread 19128 (es.app)

What can I do to fix it?

amazon maps
10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Ross@Amazon avatar image
Ross@Amazon answered ·
Thank you for reporting this error. The Amazon Maps SDK team is looking into implementing a fix with the next release of the API.
10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

zelenin-boris avatar image
zelenin-boris answered ·
A month passed, but crash is still here. I made an example to show two crashes. This is a simple example just with amazon-maps-api-v2.aar and a link for OSM tiles. Crash 1 emulates removing TileOverlay while loading tiles. Instant crash. Crash 2 emulates TileOverlay scheduled refresh. Crash after 10 - 15 refreshes. Tested with 3, 10, 30 and 60 seconds timer. You can find code, .apk file and logs on github repository. https://github.com/zelenin-boris/AmazonMapsTilesCrash
10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Ross@Amazon avatar image
Ross@Amazon answered ·
Thanks for your examples. The development team is still working towards a solution. Your patience is appreciated.
10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

zeleninboris avatar image
zeleninboris answered ·
Do you have any update?
10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Levon@Amazon avatar image
Levon@Amazon answered ·
Thank you for your continued patience. Please rest assured that the team is aware of this issue and is working on a fix for it. Thanks!
10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.