mapbox / mapbox-gl-native

Interactive, thoroughly customizable maps in native Android, iOS, macOS, Node.js, and Qt applications, powered by vector tiles and OpenGL
https://mapbox.com/mobile
Other
4.35k stars 1.33k forks source link

Crash on clustering multi points bad_variant_access: in get<T> #16555

Open 14v opened 3 years ago

14v commented 3 years ago

Platform: Android Mapbox SDK version: 9.5.0

Steps to trigger behavior

  1. Add clustered layer as shown in example https://github.com/mapbox/mapbox-android-demo/blob/master/MapboxAndroidDemo/src/main/java/com/mapbox/mapboxandroiddemo/examples/dds/CircleLayerClusteringActivity.java
  2. Add Feature.fromGeometry(MultiPoint) to clustered layer

Expected behavior

Clustering works or there is warning if that clustering multipoints is not supported.

Actual behavior

Crash

 --------- beginning of crash
2020-10-21 22:36:03.655 9069-9382/com.example.app A/libc: /usr/local/google/buildbot/src/android/ndk-release-r21/external/libcxx/../../external/libcxxabi/src/abort_message.cpp:72: abort_message: assertion "terminating with uncaught exception of type mapbox::util::bad_variant_access: in get<T>()" failed
2020-10-21 22:36:03.655 9069-9382/com.example.app A/libc: Fatal signal 6 (SIGABRT), code -6 (SI_TKILL) in tid 9382 (Worker 4), pid 9069 ()
2020-10-21 22:36:03.747 2851-31841/? I/display: [PrimaryDisplay] [DYNAMIC_RECOMP] HWC_2_GLES by low FPS(0)
2020-10-21 22:36:03.750 9436-9436/? E/crash_dump32: unknown process state: t
2020-10-21 22:36:03.759 12128-12128/? I/SKBD: alm isTosAccept false
2020-10-21 22:36:03.795 9436-9436/? I/crash_dump32: obtaining output fd from tombstoned, type: kDebuggerdTombstone
2020-10-21 22:36:03.796 3033-3033/? I//system/bin/tombstoned: received crash request for pid 9382
2020-10-21 22:36:03.797 9436-9436/? I/crash_dump32: performing dump of process 9069 (target tid = 9382)
2020-10-21 22:36:03.835 9436-9436/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
2020-10-21 22:36:03.836 9436-9436/? A/DEBUG: Build fingerprint: 'samsung/gtactive2ltexx/gtactive2lte:9/PPR1.180610.011/T395XXS9CTF5:user/release-keys'
2020-10-21 22:36:03.836 9436-9436/? A/DEBUG: Revision: '4'
2020-10-21 22:36:03.836 9436-9436/? A/DEBUG: ABI: 'arm'
2020-10-21 22:36:03.836 9436-9436/? A/DEBUG: pid: 9069, tid: 9382, name: Worker 4  >>> com.example.app <<<
2020-10-21 22:36:03.836 9436-9436/? A/DEBUG: signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
2020-10-21 22:36:03.836 9436-9436/? A/DEBUG: Abort message: '/usr/local/google/buildbot/src/android/ndk-release-r21/external/libcxx/../../external/libcxxabi/src/abort_message.cpp:72: abort_message: assertion "terminating with uncaught exception of type mapbox::util::bad_variant_access: in get<T>()" failed'
2020-10-21 22:36:03.836 9436-9436/? A/DEBUG:     r0  00000000  r1  000024a6  r2  00000006  r3  00000008
2020-10-21 22:36:03.836 9436-9436/? A/DEBUG:     r4  0000236d  r5  000024a6  r6  ccb6612c  r7  0000010c
2020-10-21 22:36:03.836 9436-9436/? A/DEBUG:     r8  cd5ea2d5  r9  00000000  r10 ccb66650  r11 e79de7d0
2020-10-21 22:36:03.836 9436-9436/? A/DEBUG:     ip  00000041  sp  ccb66118  lr  f02b30c5  pc  f02a9f76
2020-10-21 22:36:03.840 9436-9436/? A/DEBUG: backtrace:
2020-10-21 22:36:03.840 9436-9436/? A/DEBUG:     #00 pc 0001cf76  /system/lib/libc.so (abort+58)
2020-10-21 22:36:03.840 9436-9436/? A/DEBUG:     #01 pc 0001d4a7  /system/lib/libc.so (__assert2+22)
2020-10-21 22:36:03.841 9436-9436/? A/DEBUG:     #02 pc 0028b383  /data/app/com.example.app-NNN==/lib/arm/libmapbox-gl.so
2020-10-21 22:36:03.841 9436-9436/? A/DEBUG:     #03 pc 0028b485  /data/app/com.example.app-NNN==/lib/arm/libmapbox-gl.so
2020-10-21 22:36:03.841 9436-9436/? A/DEBUG:     #04 pc 00289bd5  /data/app/com.example.app-NNN==/lib/arm/libmapbox-gl.so
2020-10-21 22:36:03.841 9436-9436/? A/DEBUG:     #05 pc 00289483  /data/app/com.example.app-NNN==/lib/arm/libmapbox-gl.so
2020-10-21 22:36:03.841 9436-9436/? A/DEBUG:     #06 pc 0028944b  /data/app/com.example.app-NNN==/lib/arm/libmapbox-gl.so (__cxa_throw+74)
2020-10-21 22:36:03.841 9436-9436/? A/DEBUG:     #07 pc 0014035b  /data/app/com.example.app-NNN==/lib/arm/libmapbox-gl.so
2020-10-21 22:36:03.841 9436-9436/? A/DEBUG:     #08 pc 0013ee89  /data/app/com.example.app-NNN==/lib/arm/libmapbox-gl.so
2020-10-21 22:36:03.841 9436-9436/? A/DEBUG:     #09 pc 000a6165  /data/app/com.example.app-NNN==/lib/arm/libmapbox-gl.so
2020-10-21 22:36:03.841 9436-9436/? A/DEBUG:     #10 pc 000a5d15  /data/app/com.example.app-NNN==/lib/arm/libmapbox-gl.so
2020-10-21 22:36:03.841 9436-9436/? A/DEBUG:     #11 pc 000ae343  /data/app/com.example.app-NNN==/lib/arm/libmapbox-gl.so
2020-10-21 22:36:03.841 9436-9436/? A/DEBUG:     #12 pc 001800e1  /data/app/com.example.app-NNN==/lib/arm/libmapbox-gl.so
2020-10-21 22:36:03.841 9436-9436/? A/DEBUG:     #13 pc 000659eb  /system/lib/libc.so (__pthread_start(void*)+154)
2020-10-21 22:36:03.841 9436-9436/? A/DEBUG:     #14 pc 0001e4a5  /system/lib/libc.so (__start_thread+32)