Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

[android] while calling map activity again and again it will produce me error #13062

Closed
Guardiola31337 opened this issue Oct 9, 2018 · 2 comments
Labels
Android Mapbox Maps SDK for Android Core The cross-platform C++ core, aka mbgl crash navigation For the Mapbox Navigation SDK for Android or iOS or navigation use cases in general

Comments

@Guardiola31337
Copy link
Contributor

Originally reported in mapbox/mapbox-navigation-android#1401 by @shrutiWV

while running your code in nougat device with using below dependancy

implementation 'com.mapbox.mapboxsdk:mapbox-android-navigation:0.20.0'
implementation 'com.mapbox.mapboxsdk:mapbox-android-navigation-ui:0.20.0'

i follow below procedure

1.home activity
2.call map activity from home
3.press back and back to hoome
4. again call map activity from home
repeat this again and again

it will produce me error :
Fatal signal 11 (SIGSEGV), code 1, fault addr 0x40000 in tid 14643 (FinalizerDaemon)

i am using nexus 5 with OS version 6.0.1 and moto g having OS version 7.0

here is the full log of error:

Build fingerprint: 'google/hammerhead/hammerhead:6.0.1/M4B30Z/3437181:user/release-keys'
10-09 15:41:23.105 196-196/? A/DEBUG: Revision: '11'
ABI: 'arm'
pid: 23074, tid: 23082, name: FinalizerDaemon  >>> com.xyz <<<
signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
10-09 15:41:23.126 196-196/? A/DEBUG: Abort message: 'art/runtime/java_vm_ext.cc:410] JNI DETECTED ERROR IN APPLICATION: thread Thread[6,tid=23082,Native,Thread*=0xacb97700,peer=0x12d69940,"FinalizerDaemon"] using JNIEnv* from thread Thread[6,tid=23082,Native,Thread*=0xacb97700,peer=0x12d69940,"FinalizerDaemon"]'
10-09 15:41:23.127 196-196/? A/DEBUG:     r0 00000000  r1 00005a2a  r2 00000006  r3 b416a978
r4 b416a980  r5 b416a930  r6 0000000b  r7 0000010c
r8 b4cbf378  r9 b4d2a800  sl 00000001  fp 00000001
ip 00000006  sp b4169fc0  lr b6cf6b61  pc b6cf8f50  cpsr 40070010
10-09 15:41:23.152 196-196/? A/DEBUG: backtrace:
#00 pc 00041f50  /system/lib/libc.so (tgkill+12)
#01 pc 0003fb5d  /system/lib/libc.so (pthread_kill+32)
10-09 15:41:23.153 196-196/? A/DEBUG:     #02 pc 0001c30f  /system/lib/libc.so (raise+10)
#03 pc 000194c1  /system/lib/libc.so (__libc_android_abort+34)
#04 pc 000174ac  /system/lib/libc.so (abort+4)
#05 pc 00333971  /system/lib/libart.so (_ZN3art7Runtime5AbortEv+228)
#06 pc 000f45fb  /system/lib/libart.so (_ZN3art10LogMessageD2Ev+2226)
#07 pc 0025aa4f  /system/lib/libart.so (_ZN3art9JavaVMExt8JniAbortEPKcS2_+1550)
#08 pc 0025adfd  /system/lib/libart.so (_ZN3art9JavaVMExt9JniAbortVEPKcS2_St9__va_list+64)
#09 pc 000fd1d1  /system/lib/libart.so (_ZN3art11ScopedCheck6AbortFEPKcz+32)
#10 pc 00102273  /system/lib/libart.so (_ZN3art11ScopedCheck5CheckERNS_18ScopedObjectAccessEbPKcPNS_12JniValueTypeE.constprop.95+4958)
10-09 15:41:23.154 196-196/? A/DEBUG:     #11 pc 00116e2d  /system/lib/libart.so (_ZN3art8CheckJNI9DeleteRefEPKcP7_JNIEnvP8_jobjectNS_15IndirectRefKindE+456)
#12 pc 000261f3  /data/app/com.xyz-1/lib/arm/libmapbox-gl.so
#13 pc 0002621d  /data/app/com.xyz-1/lib/arm/libmapbox-gl.so
#14 pc 000dd3d3  /data/app/com.xyz-1/lib/arm/libmapbox-gl.so
#15 pc 00076c01  /data/app/com.xyz-1/lib/arm/libmapbox-gl.so
#16 pc 00076c2d  /data/app/com.xyz-1/lib/arm/libmapbox-gl.so
#17 pc 00074571  /data/app/com.xyz-1/lib/arm/libmapbox-gl.so
#18 pc 0005d251  /data/app/com.xyz-1/lib/arm/libmapbox-gl.so
10-09 15:41:23.155 196-196/? A/DEBUG:     #19 pc 0005d2e9  /data/app/com.makani-1/lib/arm/libmapbox-gl.so
#20 pc 0005ec01  /data/app/com.xyz-1/lib/arm/libmapbox-gl.so
#21 pc 01318c6f  /data/app/com.xyz-1/oat/arm/base.odex (offset 0x98d000) (void com.mapbox.mapboxsdk.maps.renderer.MapRenderer.finalize()+74)
#22 pc 71d1a819  /data/dalvik-cache/arm/system@[email protected] (offset 0x1ed6000)
10-09 15:41:24.295 196-196/? A/DEBUG: Tombstone written to: /data/tombstones/tombstone_04
10-09 15:41:24.295 196-196/? E/DEBUG: AM write failed: Broken pipe```
@Guardiola31337 Guardiola31337 added Android Mapbox Maps SDK for Android crash navigation For the Mapbox Navigation SDK for Android or iOS or navigation use cases in general Core The cross-platform C++ core, aka mbgl labels Oct 9, 2018
@tobrun
Copy link
Member

tobrun commented Oct 9, 2018

@Guardiola31337
Are you able to reproduce this issue with navigation?
I'm not able to reproduce this with solely using maps:

sd

@tobrun
Copy link
Member

tobrun commented Oct 12, 2018

@Guardiola31337 while this is a native crash comes from the maps sdk, the root cause will be in how the nav SDK interacts with the maps SDK. I'm not able to reproduce this with a simple map activity or with the location layer plugin. I'm closing this issue and reopening downstream.

@tobrun tobrun closed this as completed Oct 12, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Android Mapbox Maps SDK for Android Core The cross-platform C++ core, aka mbgl crash navigation For the Mapbox Navigation SDK for Android or iOS or navigation use cases in general
Projects
None yet
Development

No branches or pull requests

2 participants