This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
MapSnapshotter crash when running benchmarks #14747
Copy link
Copy link
Closed
Description
Getting a native crash downstream in metrics:
019-05-23 15:12:50.701 13847-13847/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
2019-05-23 15:12:50.701 13847-13847/? A/DEBUG: Build fingerprint: 'google/sailfish/sailfish:10/QPP3.190404.015/5505587:user/release-keys'
2019-05-23 15:12:50.701 13847-13847/? A/DEBUG: Revision: '0'
2019-05-23 15:12:50.701 13847-13847/? A/DEBUG: ABI: 'arm64'
2019-05-23 15:12:50.702 13847-13847/? A/DEBUG: Timestamp: 2019-05-23 15:12:50+0200
2019-05-23 15:12:50.705 13847-13847/? A/DEBUG: pid: 13421, tid: 13822, name: Thread-18 >>> com.mapbox.mapboxsdk.maps.mapsmetrics <<<
2019-05-23 15:12:50.705 13847-13847/? A/DEBUG: signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr --------
2019-05-23 15:12:50.705 13847-13847/? A/DEBUG: Abort message: 'JNI DETECTED ERROR IN APPLICATION: a thread (tid 13822 is making JNI calls without being attached
in call to DeleteGlobalRef'
2019-05-23 15:12:50.705 13847-13847/? A/DEBUG: x0 0000000000000000 x1 00000000000035fe x2 0000000000000006 x3 00000078a070e3b0
2019-05-23 15:12:50.705 13847-13847/? A/DEBUG: x4 7200000000000000 x5 7200000000000000 x6 7200000000000000 x7 0000000000008072
2019-05-23 15:12:50.705 13847-13847/? A/DEBUG: x8 00000000000000f0 x9 21f5dfedbbe8d8c7 x10 fffffff0fffffbdf x11 0000000000000000
2019-05-23 15:12:50.705 13847-13847/? A/DEBUG: x12 0000000032b885e0 x13 0000000000000002 x14 0000000000000008 x15 0000000000000000
2019-05-23 15:12:50.705 13847-13847/? A/DEBUG: x16 000000798bdbe8a8 x17 000000798bd9bb10 x18 0000000000000000 x19 00000000000000ac
2019-05-23 15:12:50.705 13847-13847/? A/DEBUG: x20 000000000000346d x21 00000000000000b2 x22 00000000000035fe x23 00000000ffffffff
2019-05-23 15:12:50.705 13847-13847/? A/DEBUG: x24 00000078a070f020 x25 00000000ffffffff x26 0000000000000012 x27 0000000000000005
2019-05-23 15:12:50.705 13847-13847/? A/DEBUG: x28 000000790aef7802 x29 00000078a070e460
2019-05-23 15:12:50.705 13847-13847/? A/DEBUG: sp 00000078a070e390 lr 000000798bd4e88c pc 000000798bd4e8ac
2019-05-23 15:12:50.709 13847-13847/? A/DEBUG: backtrace:
2019-05-23 15:12:50.709 13847-13847/? A/DEBUG: #00 pc 00000000000828ac /apex/com.android.runtime/lib64/bionic/libc.so (abort+160) (BuildId: 61d34cb89677d752d9520ba962936b)
2019-05-23 15:12:50.709 13847-13847/? A/DEBUG: #01 pc 00000000004b5114 /apex/com.android.runtime/lib64/libart.so (art::Runtime::Abort(char const*)+2176) (BuildId: 7ba85a422161cf98231c3c1e6ec35b)
2019-05-23 15:12:50.710 13847-13847/? A/DEBUG: #02 pc 000000000000c634 /system/lib64/libbase.so (android::base::LogMessage::~LogMessage()+604) (BuildId: 1b7f9f41fc9f5a269b579cb8481f04)
2019-05-23 15:12:50.710 13847-13847/? A/DEBUG: #03 pc 0000000000376838 /apex/com.android.runtime/lib64/libart.so (art::JavaVMExt::JniAbort(char const*, char const*)+1608) (BuildId: 7ba85a422161cf98231c3c1e6ec35b)
2019-05-23 15:12:50.710 13847-13847/? A/DEBUG: #04 pc 0000000000366844 /apex/com.android.runtime/lib64/libart.so (art::(anonymous namespace)::CheckAttachedThread(char const*)+172) (BuildId: 7ba85a422161cf98231c3c1e6ec35b)
2019-05-23 15:12:50.710 13847-13847/? A/DEBUG: #05 pc 0000000000369838 /apex/com.android.runtime/lib64/libart.so (art::(anonymous namespace)::CheckJNI::DeleteRef(char const*, _JNIEnv*, _jobject*, art::IndirectRefKind)+64) (BuildId: 7ba85a422161cf98231c3c1e6ec35b)
2019-05-23 15:12:50.710 13847-13847/? A/DEBUG: #06 pc 000000000003b554 /data/app/com.mapbox.mapboxsdk.maps.mapsmetrics-YU_GuZTSHZySov6bF6QAaw==/lib/arm64/libmapbox-gl.so (BuildId: 568ca7bd6e33b19f6db3526ba18bf13c2394b3)
2019-05-23 15:12:50.710 13847-13847/? A/DEBUG: #07 pc 000000000008847c /data/app/com.mapbox.mapboxsdk.maps.mapsmetrics-YU_GuZTSHZySov6bF6QAaw==/lib/arm64/libmapbox-gl.so (BuildId: 568ca7bd6e33b19f6db3526ba18bf13c2394b3)
2019-05-23 15:12:50.710 13847-13847/? A/DEBUG: #08 pc 00000000000884c4 /data/app/com.mapbox.mapboxsdk.maps.mapsmetrics-YU_GuZTSHZySov6bF6QAaw==/lib/arm64/libmapbox-gl.so (BuildId: 568ca7bd6e33b19f6db3526ba18bf13c2394b3)
2019-05-23 15:12:50.710 13847-13847/? A/DEBUG: #09 pc 000000000013deb4 /data/app/com.mapbox.mapboxsdk.maps.mapsmetrics-YU_GuZTSHZySov6bF6QAaw==/lib/arm64/libmapbox-gl.so (BuildId: 568ca7bd6e33b19f6db3526ba18bf13c2394b3)
2019-05-23 15:12:50.710 13847-13847/? A/DEBUG: #10 pc 00000000000d749c /data/app/com.mapbox.mapboxsdk.maps.mapsmetrics-YU_GuZTSHZySov6bF6QAaw==/lib/arm64/libmapbox-gl.so (BuildId: 568ca7bd6e33b19f6db3526ba18bf13c2394b3)
2019-05-23 15:12:50.710 13847-13847/? A/DEBUG: #11 pc 00000000000d75d8 /data/app/com.mapbox.mapboxsdk.maps.mapsmetrics-YU_GuZTSHZySov6bF6QAaw==/lib/arm64/libmapbox-gl.so (BuildId: 568ca7bd6e33b19f6db3526ba18bf13c2394b3)
2019-05-23 15:12:50.710 13847-13847/? A/DEBUG: #12 pc 00000000000d4df4 /data/app/com.mapbox.mapboxsdk.maps.mapsmetrics-YU_GuZTSHZySov6bF6QAaw==/lib/arm64/libmapbox-gl.so (BuildId: 568ca7bd6e33b19f6db3526ba18bf13c2394b3)
2019-05-23 15:12:50.710 13847-13847/? A/DEBUG: #13 pc 00000000001aa0d0 /data/app/com.mapbox.mapboxsdk.maps.mapsmetrics-YU_GuZTSHZySov6bF6QAaw==/lib/arm64/libmapbox-gl.so (BuildId: 568ca7bd6e33b19f6db3526ba18bf13c2394b3)
2019-05-23 15:12:50.710 13847-13847/? A/DEBUG: #14 pc 00000000000a83b4 /data/app/com.mapbox.mapboxsdk.maps.mapsmetrics-YU_GuZTSHZySov6bF6QAaw==/lib/arm64/libmapbox-gl.so (BuildId: 568ca7bd6e33b19f6db3526ba18bf13c2394b3)
2019-05-23 15:12:50.710 13847-13847/? A/DEBUG: #15 pc 00000000000a8540 /data/app/com.mapbox.mapboxsdk.maps.mapsmetrics-YU_GuZTSHZySov6bF6QAaw==/lib/arm64/libmapbox-gl.so (BuildId: 568ca7bd6e33b19f6db3526ba18bf13c2394b3)
2019-05-23 15:12:50.710 13847-13847/? A/DEBUG: #16 pc 000000000008b770 /data/app/com.mapbox.mapboxsdk.maps.mapsmetrics-YU_GuZTSHZySov6bF6QAaw==/lib/arm64/libmapbox-gl.so (BuildId: 568ca7bd6e33b19f6db3526ba18bf13c2394b3)
2019-05-23 15:12:50.710 13847-13847/? A/DEBUG: #17 pc 000000000008b524 /data/app/com.mapbox.mapboxsdk.maps.mapsmetrics-YU_GuZTSHZySov6bF6QAaw==/lib/arm64/libmapbox-gl.so (BuildId: 568ca7bd6e33b19f6db3526ba18bf13c2394b3)
2019-05-23 15:12:50.710 13847-13847/? A/DEBUG: #18 pc 00000000000e391c /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+36) (BuildId: 61d34cb89677d752d9520ba962936b)
2019-05-23 15:12:50.710 13847-13847/? A/DEBUG: #19 pc 0000000000084420 /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64) (BuildId: 61d34cb89677d752d9520ba962936b)
Can't run ndk-stack on this trace as it's a release build. We will need to reproduce in this repo with given sample code:
class MapSnapshotterDefault : MicroBenchmark() {
@Test
fun snapshotterOverDenseArea() {
rule.runOnUiThread {
val options = MapSnapshotter.Options(1024, 1024)
.withStyle(Style.MAPBOX_STREETS)
val mapSnapshotter = MapSnapshotter(rule.activity, options)
startBenchMark()
mapSnapshotter.start {
stopBenchMark()
resumeTestExecution()
}
}
holdTestExecution()
}
}
Activity
tobrun commentedon May 23, 2019
Symbolicated crash:
LukasPaczos commentedon May 23, 2019
Most likely caused by #14450.