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

MapSnapshotter crash when running benchmarks #14747

Closed
tobrun opened this issue May 23, 2019 · 2 comments · Fixed by #14757
Closed

MapSnapshotter crash when running benchmarks #14747

tobrun opened this issue May 23, 2019 · 2 comments · Fixed by #14757
Labels
Android Mapbox Maps SDK for Android crash

Comments

@tobrun
Copy link
Member

tobrun commented May 23, 2019

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()
    }
}
@tobrun tobrun added Android Mapbox Maps SDK for Android crash labels May 23, 2019
@tobrun
Copy link
Member Author

tobrun commented May 23, 2019

Symbolicated crash:

********** Crash dump: **********
Build fingerprint: 'google/sailfish/sailfish:10/QPP3.190404.015/5505587:user/release-keys'
Abort message: 'JNI DETECTED ERROR IN APPLICATION: a thread (tid 15444 is making JNI calls without being attached
#00 0x00000000000828ac /apex/com.android.runtime/lib64/bionic/libc.so (abort+160) (BuildId: 61d34cb89677d752d9520ba962936b)
#01 0x00000000004b5114 /apex/com.android.runtime/lib64/libart.so (art::Runtime::Abort(char const*)+2176) (BuildId: 7ba85a422161cf98231c3c1e6ec35b)
#02 0x000000000000c634 /system/lib64/libbase.so (android::base::LogMessage::~LogMessage()+604) (BuildId: 1b7f9f41fc9f5a269b579cb8481f04)
#03 0x0000000000376838 /apex/com.android.runtime/lib64/libart.so (art::JavaVMExt::JniAbort(char const*, char const*)+1608) (BuildId: 7ba85a422161cf98231c3c1e6ec35b)
#04 0x0000000000366844 /apex/com.android.runtime/lib64/libart.so (art::(anonymous namespace)::CheckAttachedThread(char const*)+172) (BuildId: 7ba85a422161cf98231c3c1e6ec35b)
#05 0x0000000000369838 /apex/com.android.runtime/lib64/libart.so (art::(anonymous namespace)::CheckJNI::DeleteRef(char const*, _JNIEnv*, _jobject*, art::IndirectRefKind)+64) (BuildId: 7ba85a422161cf98231c3c1e6ec35b)
#06 0x000000000003ee28 /data/app/com.mapbox.mapboxsdk.testapp-Y08e8C5_g6da__J6yP3Zeg==/lib/arm64/libmapbox-gl.so (BuildId: 86b7192b59cf7ee3e7903d7113ea164858502e)
                                                                                                                  _JNIEnv::DeleteGlobalRef(_jobject*)
                                                                                                                  /home/tobrun/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/jni.h:552:7
#07 0x000000000003f44c /data/app/com.mapbox.mapboxsdk.testapp-Y08e8C5_g6da__J6yP3Zeg==/lib/arm64/libmapbox-gl.so (BuildId: 86b7192b59cf7ee3e7903d7113ea164858502e)
                                                                                                                  jni::DefaultRefDeleter<&(_JNIEnv::DeleteGlobalRef(_jobject*))>::operator()(jni::jobject*) const
                                                                                                                  /home/tobrun/ws/mapbox-gl-native/platform/android/MapboxGLAndroidSDK/.externalNativeBuild/cmake/debug/arm64-v8a/../../../../../../../vendor/jni.hpp/include/jni/ownership.hpp:40:21
#08 0x000000000016d1f0 /data/app/com.mapbox.mapboxsdk.testapp-Y08e8C5_g6da__J6yP3Zeg==/lib/arm64/libmapbox-gl.so (BuildId: 86b7192b59cf7ee3e7903d7113ea164858502e)
                                                                                                                  jni::Unique<jni::Object<mbgl::android::LocalGlyphRasterizer>, jni::DefaultRefDeleter<&(_JNIEnv::DeleteGlobalRef(_jobject*))> >::reset(jni::jobject*)
                                                                                                                  /home/tobrun/ws/mapbox-gl-native/platform/android/MapboxGLAndroidSDK/.externalNativeBuild/cmake/debug/arm64-v8a/../../../../../../../vendor/jni.hpp/include/jni/unique.hpp:85:21
#09 0x000000000016b7f8 /data/app/com.mapbox.mapboxsdk.testapp-Y08e8C5_g6da__J6yP3Zeg==/lib/arm64/libmapbox-gl.so (BuildId: 86b7192b59cf7ee3e7903d7113ea164858502e)
                                                                                                                  jni::Unique<jni::Object<mbgl::android::LocalGlyphRasterizer>, jni::DefaultRefDeleter<&(_JNIEnv::DeleteGlobalRef(_jobject*))> >::~Unique()
                                                                                                                  /home/tobrun/ws/mapbox-gl-native/platform/android/MapboxGLAndroidSDK/.externalNativeBuild/cmake/debug/arm64-v8a/../../../../../../../vendor/jni.hpp/include/jni/unique.hpp:69:17
#10 0x000000000016de70 /data/app/com.mapbox.mapboxsdk.testapp-Y08e8C5_g6da__J6yP3Zeg==/lib/arm64/libmapbox-gl.so (BuildId: 86b7192b59cf7ee3e7903d7113ea164858502e)
                                                                                                                  mbgl::android::LocalGlyphRasterizer::~LocalGlyphRasterizer()
                                                                                                                  /home/tobrun/ws/mapbox-gl-native/platform/android/MapboxGLAndroidSDK/.externalNativeBuild/cmake/debug/arm64-v8a/../../../../../src/text/local_glyph_rasterizer_jni.hpp:18:7
#11 0x000000000016de40 /data/app/com.mapbox.mapboxsdk.testapp-Y08e8C5_g6da__J6yP3Zeg==/lib/arm64/libmapbox-gl.so (BuildId: 86b7192b59cf7ee3e7903d7113ea164858502e)
                                                                                                                  mbgl::LocalGlyphRasterizer::Impl::~Impl()
                                                                                                                  /home/tobrun/ws/mapbox-gl-native/platform/android/MapboxGLAndroidSDK/.externalNativeBuild/cmake/debug/arm64-v8a/../../../../../src/text/local_glyph_rasterizer.cpp:65:29
#12 0x000000000016c044 /data/app/com.mapbox.mapboxsdk.testapp-Y08e8C5_g6da__J6yP3Zeg==/lib/arm64/libmapbox-gl.so (BuildId: 86b7192b59cf7ee3e7903d7113ea164858502e)
                                                                                                                  std::__ndk1::default_delete<mbgl::LocalGlyphRasterizer::Impl>::operator()(mbgl::LocalGlyphRasterizer::Impl*) const
                                                                                                                  /home/tobrun/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:2325:5
                                                                                                                  std::__ndk1::unique_ptr<mbgl::LocalGlyphRasterizer::Impl, std::__ndk1::default_delete<mbgl::LocalGlyphRasterizer::Impl> >::reset(mbgl::LocalGlyphRasterizer::Impl*)
                                                                                                                  /home/tobrun/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:2638:0
                                                                                                                  std::__ndk1::unique_ptr<mbgl::LocalGlyphRasterizer::Impl, std::__ndk1::default_delete<mbgl::LocalGlyphRasterizer::Impl> >::~unique_ptr()
                                                                                                                  /home/tobrun/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:2592:0
                                                                                                                  mbgl::LocalGlyphRasterizer::~LocalGlyphRasterizer()
                                                                                                                  /home/tobrun/ws/mapbox-gl-native/platform/android/MapboxGLAndroidSDK/.externalNativeBuild/cmake/debug/arm64-v8a/../../../../../src/text/local_glyph_rasterizer.cpp:97:0
#13 0x000000000016c07c /data/app/com.mapbox.mapboxsdk.testapp-Y08e8C5_g6da__J6yP3Zeg==/lib/arm64/libmapbox-gl.so (BuildId: 86b7192b59cf7ee3e7903d7113ea164858502e)
                                                                                                                  mbgl::LocalGlyphRasterizer::~LocalGlyphRasterizer()
                                                                                                                  /home/tobrun/ws/mapbox-gl-native/platform/android/MapboxGLAndroidSDK/.externalNativeBuild/cmake/debug/arm64-v8a/../../../../../src/text/local_glyph_rasterizer.cpp:97:1
#14 0x000000000058cc54 /data/app/com.mapbox.mapboxsdk.testapp-Y08e8C5_g6da__J6yP3Zeg==/lib/arm64/libmapbox-gl.so (BuildId: 86b7192b59cf7ee3e7903d7113ea164858502e)
                                                                                                                  std::__ndk1::default_delete<mbgl::LocalGlyphRasterizer>::operator()(mbgl::LocalGlyphRasterizer*) const
                                                                                                                  /home/tobrun/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:2325:5
                                                                                                                  std::__ndk1::unique_ptr<mbgl::LocalGlyphRasterizer, std::__ndk1::default_delete<mbgl::LocalGlyphRasterizer> >::reset(mbgl::LocalGlyphRasterizer*)
                                                                                                                  /home/tobrun/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:2638:0
                                                                                                                  std::__ndk1::unique_ptr<mbgl::LocalGlyphRasterizer, std::__ndk1::default_delete<mbgl::LocalGlyphRasterizer> >::~unique_ptr()
                                                                                                                  /home/tobrun/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:2592:0
                                                                                                                  mbgl::GlyphManager::~GlyphManager()
                                                                                                                  /home/tobrun/ws/mapbox-gl-native/platform/android/MapboxGLAndroidSDK/.externalNativeBuild/cmake/debug/arm64-v8a/../../../../../../../src/mbgl/text/glyph_manager.cpp:19:0
#15 0x000000000034a748 /data/app/com.mapbox.mapboxsdk.testapp-Y08e8C5_g6da__J6yP3Zeg==/lib/arm64/libmapbox-gl.so (BuildId: 86b7192b59cf7ee3e7903d7113ea164858502e)
                                                                                                                  std::__ndk1::default_delete<mbgl::GlyphManager>::operator()(mbgl::GlyphManager*) const
                                                                                                                  /home/tobrun/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:2325:5
                                                                                                                  std::__ndk1::unique_ptr<mbgl::GlyphManager, std::__ndk1::default_delete<mbgl::GlyphManager> >::reset(mbgl::GlyphManager*)
                                                                                                                  /home/tobrun/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:2638:0
                                                                                                                  std::__ndk1::unique_ptr<mbgl::GlyphManager, std::__ndk1::default_delete<mbgl::GlyphManager> >::~unique_ptr()
                                                                                                                  /home/tobrun/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:2592:0
                                                                                                                  mbgl::Renderer::Impl::~Impl()
                                                                                                                  /home/tobrun/ws/mapbox-gl-native/platform/android/MapboxGLAndroidSDK/.externalNativeBuild/cmake/debug/arm64-v8a/../../../../../../../src/mbgl/renderer/renderer_impl.cpp:77:0
#16 0x000000000034a854 /data/app/com.mapbox.mapboxsdk.testapp-Y08e8C5_g6da__J6yP3Zeg==/lib/arm64/libmapbox-gl.so (BuildId: 86b7192b59cf7ee3e7903d7113ea164858502e)
                                                                                                                  mbgl::Renderer::Impl::~Impl()
                                                                                                                  /home/tobrun/ws/mapbox-gl-native/platform/android/MapboxGLAndroidSDK/.externalNativeBuild/cmake/debug/arm64-v8a/../../../../../../../src/mbgl/renderer/renderer_impl.cpp:64:25
#17 0x0000000000344bdc /data/app/com.mapbox.mapboxsdk.testapp-Y08e8C5_g6da__J6yP3Zeg==/lib/arm64/libmapbox-gl.so (BuildId: 86b7192b59cf7ee3e7903d7113ea164858502e)
                                                                                                                  std::__ndk1::default_delete<mbgl::Renderer::Impl>::operator()(mbgl::Renderer::Impl*) const
                                                                                                                  /home/tobrun/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:2325:5
                                                                                                                  std::__ndk1::unique_ptr<mbgl::Renderer::Impl, std::__ndk1::default_delete<mbgl::Renderer::Impl> >::reset(mbgl::Renderer::Impl*)
                                                                                                                  /home/tobrun/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:2638:0
                                                                                                                  mbgl::Renderer::~Renderer()
                                                                                                                  /home/tobrun/ws/mapbox-gl-native/platform/android/MapboxGLAndroidSDK/.externalNativeBuild/cmake/debug/arm64-v8a/../../../../../../../src/mbgl/renderer/renderer.cpp:22:0
#18 0x00000000007e4778 /data/app/com.mapbox.mapboxsdk.testapp-Y08e8C5_g6da__J6yP3Zeg==/lib/arm64/libmapbox-gl.so (BuildId: 86b7192b59cf7ee3e7903d7113ea164858502e)
                                                                                                                  std::__ndk1::default_delete<mbgl::Renderer>::operator()(mbgl::Renderer*) const
                                                                                                                  /home/tobrun/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:2325:5
                                                                                                                  std::__ndk1::unique_ptr<mbgl::Renderer, std::__ndk1::default_delete<mbgl::Renderer> >::reset(mbgl::Renderer*)
                                                                                                                  /home/tobrun/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:2638:0
                                                                                                                  mbgl::HeadlessFrontend::reset()
                                                                                                                  /home/tobrun/ws/mapbox-gl-native/platform/android/MapboxGLAndroidSDK/.externalNativeBuild/cmake/debug/arm64-v8a/../../../../../../default/src/mbgl/gfx/headless_frontend.cpp:48:0
#19 0x000000000021d6bc /data/app/com.mapbox.mapboxsdk.testapp-Y08e8C5_g6da__J6yP3Zeg==/lib/arm64/libmapbox-gl.so (BuildId: 86b7192b59cf7ee3e7903d7113ea164858502e)
                                                                                                                  mbgl::Map::Impl::~Impl()
                                                                                                                  /home/tobrun/ws/mapbox-gl-native/platform/android/MapboxGLAndroidSDK/.externalNativeBuild/cmake/debug/arm64-v8a/../../../../../../../src/mbgl/map/map_impl.cpp:32:22
#20 0x000000000021dae4 /data/app/com.mapbox.mapboxsdk.testapp-Y08e8C5_g6da__J6yP3Zeg==/lib/arm64/libmapbox-gl.so (BuildId: 86b7192b59cf7ee3e7903d7113ea164858502e)
                                                                                                                  mbgl::Map::Impl::~Impl()
                                                                                                                  /home/tobrun/ws/mapbox-gl-native/platform/android/MapboxGLAndroidSDK/.externalNativeBuild/cmake/debug/arm64-v8a/../../../../../../../src/mbgl/map/map_impl.cpp:29:20
#21 0x000000000016e5e0 /data/app/com.mapbox.mapboxsdk.testapp-Y08e8C5_g6da__J6yP3Zeg==/lib/arm64/libmapbox-gl.so (BuildId: 86b7192b59cf7ee3e7903d7113ea164858502e)
                                                                                                                  std::__ndk1::default_delete<mbgl::util::Timer::Impl>::operator()(mbgl::util::Timer::Impl*) const
                                                                                                                  /home/tobrun/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:2325:5
                                                                                                                  std::__ndk1::unique_ptr<mbgl::util::Timer::Impl, std::__ndk1::default_delete<mbgl::util::Timer::Impl> >::reset(mbgl::util::Timer::Impl*)
                                                                                                                  /home/tobrun/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:2638:0
                                                                                                                  std::__ndk1::unique_ptr<mbgl::util::Timer::Impl, std::__ndk1::default_delete<mbgl::util::Timer::Impl> >::~unique_ptr()
                                                                                                                  /home/tobrun/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:2592:0
                                                                                                                  mbgl::util::Timer::~Timer()
                                                                                                                  /home/tobrun/ws/mapbox-gl-native/platform/android/MapboxGLAndroidSDK/.externalNativeBuild/cmake/debug/arm64-v8a/../../../../../src/timer.cpp:64:0
#22 0x000000000017a6a8 /data/app/com.mapbox.mapboxsdk.testapp-Y08e8C5_g6da__J6yP3Zeg==/lib/arm64/libmapbox-gl.so (BuildId: 86b7192b59cf7ee3e7903d7113ea164858502e)
                                                                                                                  mbgl::MapSnapshotter::Impl::~Impl()
                                                                                                                  /home/tobrun/ws/mapbox-gl-native/platform/android/MapboxGLAndroidSDK/.externalNativeBuild/cmake/debug/arm64-v8a/../../../../../../default/src/mbgl/map/map_snapshotter.cpp:15:23
#23 0x000000000017a304 /data/app/com.mapbox.mapboxsdk.testapp-Y08e8C5_g6da__J6yP3Zeg==/lib/arm64/libmapbox-gl.so (BuildId: 86b7192b59cf7ee3e7903d7113ea164858502e)
                                                                                                                  mbgl::EstablishedActor<mbgl::MapSnapshotter::Impl>::~EstablishedActor()
                                                                                                                  /home/tobrun/ws/mapbox-gl-native/platform/android/MapboxGLAndroidSDK/.externalNativeBuild/cmake/debug/arm64-v8a/../../../../../../../include/mbgl/actor/established_actor.hpp:54:26
#24 0x000000000017a1c4 /data/app/com.mapbox.mapboxsdk.testapp-Y08e8C5_g6da__J6yP3Zeg==/lib/arm64/libmapbox-gl.so (BuildId: 86b7192b59cf7ee3e7903d7113ea164858502e)
                                                                                                                  mbgl::util::Thread<mbgl::MapSnapshotter::Impl>::Thread<std::__ndk1::pair<bool, std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > > const&, mbgl::Size const&, float const&, std::experimental::optional<mbgl::CameraOptions> const&, std::experimental::optional<mbgl::LatLngBounds> const&, std::experimental::optional<std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > > const&, std::experimental::optional<std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > > const&, mbgl::ResourceOptions>(std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > const&, std::__ndk1::pair<bool, std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > > const&, mbgl::Size const&, float const&, std::experimental::optional<mbgl::CameraOptions> const&, std::experimental::optional<mbgl::LatLngBounds> const&, std::experimental::optional<std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > > const&, std::experimental::optional<std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > > const&, mbgl::ResourceOptions&&)::'lambda'()::operator()()
                                                                                                                  /home/tobrun/ws/mapbox-gl-native/platform/android/MapboxGLAndroidSDK/.externalNativeBuild/cmake/debug/arm64-v8a/../../../../../../../include/mbgl/util/thread.hpp:73:9
#25 0x0000000000179e84 /data/app/com.mapbox.mapboxsdk.testapp-Y08e8C5_g6da__J6yP3Zeg==/lib/arm64/libmapbox-gl.so (BuildId: 86b7192b59cf7ee3e7903d7113ea164858502e)
                                                                                                                  decltype(std::__ndk1::forward<mbgl::util::Thread<mbgl::MapSnapshotter::Impl>::Thread<std::__ndk1::pair<bool, std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > > const&, mbgl::Size const&, float const&, std::experimental::optional<mbgl::CameraOptions> const&, std::experimental::optional<mbgl::LatLngBounds> const&, std::experimental::optional<std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > > const&, std::experimental::optional<std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > > const&, mbgl::ResourceOptions>(std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > const&, std::__ndk1::pair<bool, std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > > const&, mbgl::Size const&, float const&, std::experimental::optional<mbgl::CameraOptions> const&, std::experimental::optional<mbgl::LatLngBounds> const&, std::experimental::optional<std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > > const&, std::experimental::optional<std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > > const&, mbgl::ResourceOptions&&)::'lambda'()>(fp)()) std::__ndk1::__invoke<mbgl::util::Thread<mbgl::MapSnapshotter::Impl>::Thread<std::__ndk1::pair<bool, std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > > const&, mbgl::Size const&, float const&, std::experimental::optional<mbgl::CameraOptions> const&, std::experimental::optional<mbgl::LatLngBounds> const&, std::experimental::optional<std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > > const&, std::experimental::optional<std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > > const&, mbgl::ResourceOptions>(std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > const&, std::__ndk1::pair<bool, std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > > const&, mbgl::Size const&, float const&, std::experimental::optional<mbgl::CameraOptions> const&, std::experimental::optional<mbgl::LatLngBounds> const&, std::experimental::optional<std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > > const&, std::experimental::optional<std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > > const&, mbgl::ResourceOptions&&)::'lambda'()>(mbgl::util::Thread<mbgl::MapSnapshotter::Impl>::Thread<std::__ndk1::pair<bool, std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > > const&, mbgl::Size const&, float const&, std::experimental::optional<mbgl::CameraOptions> const&, std::experimental::optional<mbgl::LatLngBounds> const&, std::experimental::optional<std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > > const&, std::experimental::optional<std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > > const&, mbgl::ResourceOptions>(std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > const&, std::__ndk1::pair<bool, std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > > const&, mbgl::Size const&, float const&, std::experimental::optional<mbgl::CameraOptions> const&, std::experimental::optional<mbgl::LatLngBounds> const&, std::experimental::optional<std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > > const&, std::experimental::optional<std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > > const&, mbgl::ResourceOptions&&)::'lambda'()&&)
                                                                                                                  /home/tobrun/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/type_traits:4350:1
                                                                                                                  void std::__ndk1::__thread_execute<std::__ndk1::unique_ptr<std::__ndk1::__thread_struct, std::__ndk1::default_delete<std::__ndk1::__thread_struct> >, mbgl::util::Thread<mbgl::MapSnapshotter::Impl>::Thread<std::__ndk1::pair<bool, std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > > const&, mbgl::Size const&, float const&, std::experimental::optional<mbgl::CameraOptions> const&, std::experimental::optional<mbgl::LatLngBounds> const&, std::experimental::optional<std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > > const&, std::experimental::optional<std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > > const&, mbgl::ResourceOptions>(std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > const&, std::__ndk1::pair<bool, std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > > const&, mbgl::Size const&, float const&, std::experimental::optional<mbgl::CameraOptions> const&, std::experimental::optional<mbgl::LatLngBounds> const&, std::experimental::optional<std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > > const&, std::experimental::optional<std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > > const&, mbgl::ResourceOptions&&)::'lambda'()>(std::__ndk1::tuple<std::__ndk1::unique_ptr<std::__ndk1::__thread_struct, std::__ndk1::default_delete<std::__ndk1::__thread_struct> >, mbgl::util::Thread<mbgl::MapSnapshotter::Impl>::Thread<std::__ndk1::pair<bool, std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > > const&, mbgl::Size const&, float const&, std::experimental::optional<mbgl::CameraOptions> const&, std::experimental::optional<mbgl::LatLngBounds> const&, std::experimental::optional<std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > > const&, std::experimental::optional<std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > > const&, mbgl::ResourceOptions>(std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > const&, std::__ndk1::pair<bool, std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > > const&, mbgl::Size const&, float const&, std::experimental::optional<mbgl::CameraOptions> const&, std::experimental::optional<mbgl::LatLngBounds> const&, std::experimental::optional<std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > > const&, std::experimental::optional<std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > > const&, mbgl::ResourceOptions&&)::'lambda'()>&, std::__ndk1::__tuple_indices<>)
                                                                                                                  /home/tobrun/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/thread:342:0
                                                                                                                  void* std::__ndk1::__thread_proxy<std::__ndk1::tuple<std::__ndk1::unique_ptr<std::__ndk1::__thread_struct, std::__ndk1::default_delete<std::__ndk1::__thread_struct> >, mbgl::util::Thread<mbgl::MapSnapshotter::Impl>::Thread<std::__ndk1::pair<bool, std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > > const&, mbgl::Size const&, float const&, std::experimental::optional<mbgl::CameraOptions> const&, std::experimental::optional<mbgl::LatLngBounds> const&, std::experimental::optional<std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > > const&, std::experimental::optional<std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > > const&, mbgl::ResourceOptions>(std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > const&, std::__ndk1::pair<bool, std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > > const&, mbgl::Size const&, float const&, std::experimental::optional<mbgl::CameraOptions> const&, std::experimental::optional<mbgl::LatLngBounds> const&, std::experimental::optional<std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > > const&, std::experimental::optional<std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > > const&, mbgl::ResourceOptions&&)::'lambda'()> >(void*)
                                                                                                                  /home/tobrun/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/thread:352:0
#26 0x00000000000e391c /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+36) (BuildId: 61d34cb89677d752d9520ba962936b)
#27 0x0000000000084420 /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64) (BuildId: 61d34cb89677d752d9520ba962936b)
Crash dump is completed

@LukasPaczos
Copy link
Member

Most likely caused by #14450.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Android Mapbox Maps SDK for Android crash
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants