PDA

View Full Version : Android: libngnative crash on Android Lollipop (5)



Mar
27.11.2014, 18:42
Hi all,
I just upgraded my phone (Nexus 5) to Android 5 and now the app i am developing is crashing when i use the method mMapView.centerMapOnPosition(SKCoordinate c);
The same app works fine with my other devices with android 4.1.2 and 4.4

Here is the crashlog (from adb logcat)


I/GCoreUlr( 1759): Successfully inserted location
I/GCoreUlr( 1759): Not calling LocationReporter, hasMoved: false, elapsed millis: 1790423, request: Stationary(3600000)
F/libc (32266): Fatal signal 6 (SIGABRT), code -6 in tid 32595 (GLThread 5692)
I/DEBUG ( 181): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
I/DEBUG ( 181): Build fingerprint: 'google/hammerhead/hammerhead:5.0/LRX21O/1570415:user/release-keys'
I/DEBUG ( 181): Revision: '11'
I/DEBUG ( 181): ABI: 'arm'
I/DEBUG ( 181): pid: 32266, tid: 32595, name: GLThread 5692 >>> com.app.test <<<
I/DEBUG ( 181): signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
I/DEBUG ( 181): r0 00000000 r1 00007f53 r2 00000006 r3 00000000
I/DEBUG ( 181): r4 99927db8 r5 00000006 r6 0000000c r7 0000010c
I/DEBUG ( 181): r8 999276f0 r9 99927760 sl 60800000 fp 99927684
I/DEBUG ( 181): ip 00007f53 sp 99927618 lr b6efeaf9 pc b6f225d4 cpsr 600f0010
I/DEBUG ( 181):
I/DEBUG ( 181): backtrace:
I/DEBUG ( 181): #00 pc 0003a5d4 /system/lib/libc.so (tgkill+12)
I/DEBUG ( 181): #01 pc 00016af5 /system/lib/libc.so (pthread_kill+52)
I/DEBUG ( 181): #02 pc 00017707 /system/lib/libc.so (raise+10)
I/DEBUG ( 181): #03 pc 00013f75 /system/lib/libc.so (__libc_android_abort+36)
I/DEBUG ( 181): #04 pc 00012a3c /system/lib/libc.so (abort+4)
I/DEBUG ( 181): #05 pc 0058dbe4 /data/app/com.app.test-1/lib/arm/libngnative.so (__gnu_cxx::__verbose_terminate_handler()+276)
I/DEBUG ( 181): #06 pc 0058ad48 /data/app/com.app.test-1/lib/arm/libngnative.so (__cxxabiv1::__terminate(void (*)())+8)
I/DEBUG ( 181): #07 pc 0058ad8c /data/app/com.app.test-1/lib/arm/libngnative.so (std::terminate()+20)
I/DEBUG ( 181): #08 pc 0058af14 /data/app/com.app.test-1/lib/arm/libngnative.so (__cxa_throw+148)
I/DEBUG ( 181): #09 pc 0058b210 /data/app/com.app.test-1/lib/arm/libngnative.so (operator new(unsigned int)+132)
I/DEBUG ( 181): #10 pc 001365e4 /data/app/com.app.test-1/lib/arm/libngnative.so (std::vector<float, std::allocator<float> >::_M_insert_aux(__gnu_cxx::__normal_iterator<float*, std::vector<float, std::allocator<float> > >, float const&)+148)
I/DEBUG ( 181): #11 pc 0015ac94 /data/app/com.app.test-1/lib/arm/libngnative.so (MapRenderer::DrawableObject::createBlockFromSegme nt(vec2<float>&, vec2<float>&, float, std::vector<float, std::allocator<float> >&)+796)
I/DEBUG ( 181): #12 pc 0016a8c4 /data/app/com.app.test-1/lib/arm/libngnative.so (MapRenderer::DrawableObject::recomputeDottedGeome try(float)+460)
I/DEBUG ( 181): #13 pc 0016adfc /data/app/com.app.test-1/lib/arm/libngnative.so (MapRenderer::doDrawObjects(MapViewInterplay&, bool)+548)
I/DEBUG ( 181): #14 pc 0019dd18 /data/app/com.app.test-1/lib/arm/libngnative.so (MapRenderer::doDrawNon3DTerrainFeaturesTwo(MapVie wInterplay&, bool)+76)
I/DEBUG ( 181): #15 pc 001a016c /data/app/com.app.test-1/lib/arm/libngnative.so (MapRenderer::doDrawTiles()+660)
I/DEBUG ( 181): #16 pc 001a28c0 /data/app/com.app.test-1/lib/arm/libngnative.so (MapRenderer::Draw(bool)+520)
I/DEBUG ( 181): #17 pc 001a2f30 /data/app/com.app.test-1/lib/arm/libngnative.so (MapRenderer::DrawWrapper(bool)+116)
I/DEBUG ( 181): #18 pc 00124988 /data/app/com.app.test-1/lib/arm/libngnative.so (NG_Render+40)
I/DEBUG ( 181): #19 pc 00166a4f /data/dalvik-cache/arm/data@app@com.app.test-1@base.apk@classes.dex
W/ActivityManager( 741): Force finishing activity com.app.test/.ActivityMap



Have you any suggestions?

dandronic
28.11.2014, 11:47
We have had reports of the SDK crashing (or misbehaving) on Android L, usually when SKPolylines or SKPolygons are involved. Our development team is currently investigating this, looking for the culprit.

Are you using polylines, polygons or other forms of overlays in your app?

Mar
28.11.2014, 11:56
Yes i'm using polylines and custom annotations.


We have had reports of the SDK crashing (or misbehaving) on Android L, usually when SKPolylines or SKPolygons are involved. Our development team is currently investigating this, looking for the culprit.

Are you using polylines, polygons or other forms of overlays in your app?

dandronic
28.11.2014, 11:59
Then, most likely the polylines are the ones causing the crash.

In the next week(s) we'll know more about the reason for this behaviour and (hopefully) provide a fix.

Mar
28.11.2014, 12:24
I confirm it's a polyline related issue, I disabled the polylines and the app stopped crashing.

dandronic
09.12.2014, 14:51
Hello Mar,
We've fixed the issues our SDK exhibited on Android L and we're currently updating the binaries in our developer zone - in a couple of hours you should be able to access the updated SDK in our download area (http://developer.skobbler.com/download/SKMaps_Android_2.3.0_withDemo.zip).

Mar
11.12.2014, 17:08
Hi,
I tried the last library binaries and now skobbler works fine in my android 5 device!
Thank you!