Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App crashes with cryptic error #1253

Closed
SamuelBrucksch opened this issue Apr 1, 2022 · 13 comments
Closed

App crashes with cryptic error #1253

SamuelBrucksch opened this issue Apr 1, 2022 · 13 comments
Labels
bug 🪲 Something isn't working

Comments

@SamuelBrucksch
Copy link

SamuelBrucksch commented Apr 1, 2022

Hi,

we get following crash on bugsnag:

SIGABRT Abort program 
    /apex/com.android.runtime/lib64/bionic/libc.so:326348 abort
    /data/app/~~9UT7RC2gEdtKWwr639Mihg==/com.iternio.abrpapp-GIMId0UeSTiJHs5HWpCQ_w==/split_config.arm64_v8a.apk!/lib/arm64-v8a/libc++_shared.so:655808 __cxa_bad_cast
    /data/app/~~9UT7RC2gEdtKWwr639Mihg==/com.iternio.abrpapp-GIMId0UeSTiJHs5HWpCQ_w==/split_config.arm64_v8a.apk!/lib/arm64-v8a/libc++_shared.so:656332 0x6d4d9403cc
    /data/app/~~9UT7RC2gEdtKWwr639Mihg==/com.iternio.abrpapp-GIMId0UeSTiJHs5HWpCQ_w==/split_config.arm64_v8a.apk!/lib/arm64-v8a/libc++_shared.so:737804 0x6d4d95420c
    /data/app/~~9UT7RC2gEdtKWwr639Mihg==/com.iternio.abrpapp-GIMId0UeSTiJHs5HWpCQ_w==/split_config.arm64_v8a.apk!/lib/arm64-v8a/libc++_shared.so:735504 __cxa_get_exception_ptr
    /data/app/~~9UT7RC2gEdtKWwr639Mihg==/com.iternio.abrpapp-GIMId0UeSTiJHs5HWpCQ_w==/split_config.arm64_v8a.apk!/lib/arm64-v8a/libc++_shared.so:735376 0x6d4d953890
    /data/app/~~9UT7RC2gEdtKWwr639Mihg==/com.iternio.abrpapp-GIMId0UeSTiJHs5HWpCQ_w==/split_config.arm64_v8a.apk!/lib/arm64-v8a/libmapbox-maps.so:2077120 0x6d492b11c0

Unfortunately I can not reproduce on my Pixel 3 with Andropid 12, however it seems to be related to Pixel 5 and Pixel 4a on Android 12 only at the moment. We did not get reports for other phones and Android OS (yet).

We use mapbox sdk 10.3.0-rc.1 for Android Auto, but also @react-native-mapbox-gl/maps on app side that is based on react native, so not really sure, from which side the error comes. Is there anything you can do to decode the exception and get more information where the error comes from?

Thanks!
Samuel

@SamuelBrucksch SamuelBrucksch added the bug 🪲 Something isn't working label Apr 1, 2022
@pengdev
Copy link
Member

pengdev commented Apr 6, 2022

@SamuelBrucksch thanks for the ticket, could you provide the full crash report so that we can symbolicate it from our side? Also would like to know the Android Maps SDK version that @react-native-mapbox-gl/maps depends on, in addition to the 10.3.0-rc.1, which is used for Android Auto. Ideally could you run ./gradlew app:dependencies and paste the Mapbox related dependencies here?

I tried to symbolicate the address using v10.3.0-rc.1's debug symbol, but it failed to resolve to meaningful line numbers.

@SamuelBrucksch
Copy link
Author

Hi @pengdev

thanks for looking into this. Here are the mapbox related dependencies:

+--- com.mapbox.maps:android:10.3.0-rc.1
|    +--- com.mapbox.base:common:0.5.0
|    +--- com.mapbox.common:okhttp:21.1.0-rc.1
|    |    \--- com.mapbox.common:common:21.1.0-rc.1
|    |         +--- com.mapbox.mapboxsdk:mapbox-sdk-geojson:5.4.1 -> 5.8.0
|    |         |    \--- com.google.code.gson:gson:2.8.6
|    |         \--- com.mapbox.base:common:0.5.0
|    +--- com.mapbox.maps:base:10.3.0-rc.1
|    |    +--- com.mapbox.mapboxsdk:mapbox-android-gestures:0.7.0
|    |    +--- com.mapbox.maps:android-core:10.3.0-rc.1
|    |    |    +--- com.mapbox.mapboxsdk:mapbox-sdk-geojson:5.4.1 -> 5.8.0 (*)
|    |    |    \--- org.jetbrains.kotlin:kotlin-stdlib:1.4.0 -> 1.6.10 (*)
|    |    \--- com.mapbox.common:common:21.1.0-rc.1 (*)
|    +--- com.mapbox.extension:maps-style:10.3.0-rc.1
|    +--- com.mapbox.plugin:maps-logo:10.3.0-rc.1
|    +--- com.mapbox.plugin:maps-compass:10.3.0-rc.1
|    +--- com.mapbox.plugin:maps-gestures:10.3.0-rc.1
|    |    \--- com.mapbox.mapboxsdk:mapbox-android-gestures:0.7.0
|    +--- com.mapbox.plugin:maps-attribution:10.3.0-rc.1
|    +--- com.mapbox.plugin:maps-locationcomponent:10.3.0-rc.1
|    |    \--- com.mapbox.mapboxsdk:mapbox-android-core:5.0.0
|    +--- com.mapbox.plugin:maps-animation:10.3.0-rc.1
|    +--- com.mapbox.plugin:maps-scalebar:10.3.0-rc.1
|    +--- com.mapbox.plugin:maps-overlay:10.3.0-rc.1
|    +--- com.mapbox.plugin:maps-annotation:10.3.0-rc.1
|    |    \--- com.mapbox.extension:maps-style:10.3.0-rc.1
|    +--- com.mapbox.extension:maps-localization:10.3.0-rc.1
|    +--- com.mapbox.plugin:maps-lifecycle:10.3.0-rc.1
|    \--- com.mapbox.plugin:maps-viewport:10.3.0-rc.1
+--- com.mapbox.plugin:maps-locationcomponent:10.3.0-rc.1 (*)

+--- com.mapbox.maps:android:{strictly 10.3.0-rc.1} -> 10.3.0-rc.1 (c)
+--- com.mapbox.plugin:maps-locationcomponent:{strictly 10.3.0-rc.1} -> 10.3.0-rc.1 (c)

+--- com.mapbox.base:common:{strictly 0.5.0} -> 0.5.0 (c)
+--- com.mapbox.common:okhttp:{strictly 21.1.0-rc.1} -> 21.1.0-rc.1 (c)
+--- com.mapbox.maps:base:{strictly 10.3.0-rc.1} -> 10.3.0-rc.1 (c)
+--- com.mapbox.extension:maps-style:{strictly 10.3.0-rc.1} -> 10.3.0-rc.1 (c)
+--- com.mapbox.plugin:maps-logo:{strictly 10.3.0-rc.1} -> 10.3.0-rc.1 (c)
+--- com.mapbox.plugin:maps-compass:{strictly 10.3.0-rc.1} -> 10.3.0-rc.1 (c)
+--- com.mapbox.plugin:maps-gestures:{strictly 10.3.0-rc.1} -> 10.3.0-rc.1 (c)
+--- com.mapbox.plugin:maps-attribution:{strictly 10.3.0-rc.1} -> 10.3.0-rc.1 (c)
+--- com.mapbox.plugin:maps-animation:{strictly 10.3.0-rc.1} -> 10.3.0-rc.1 (c)
+--- com.mapbox.plugin:maps-scalebar:{strictly 10.3.0-rc.1} -> 10.3.0-rc.1 (c)
+--- com.mapbox.plugin:maps-overlay:{strictly 10.3.0-rc.1} -> 10.3.0-rc.1 (c)
+--- com.mapbox.plugin:maps-annotation:{strictly 10.3.0-rc.1} -> 10.3.0-rc.1 (c)
+--- com.mapbox.extension:maps-localization:{strictly 10.3.0-rc.1} -> 10.3.0-rc.1 (c)
+--- com.mapbox.plugin:maps-lifecycle:{strictly 10.3.0-rc.1} -> 10.3.0-rc.1 (c)
+--- com.mapbox.plugin:maps-viewport:{strictly 10.3.0-rc.1} -> 10.3.0-rc.1 (c)
+--- com.mapbox.mapboxsdk:mapbox-android-core:{strictly 5.0.0} -> 5.0.0 (c)

+--- com.mapbox.common:common:{strictly 21.1.0-rc.1} -> 21.1.0-rc.1 (c)
+--- com.mapbox.mapboxsdk:mapbox-android-gestures:{strictly 0.7.0} -> 0.7.0 (c)
+--- com.mapbox.maps:android-core:{strictly 10.3.0-rc.1} -> 10.3.0-rc.1 (c)

+--- com.mapbox.mapboxsdk:mapbox-sdk-geojson:{strictly 5.8.0} -> 5.8.0 (c)

Does it contain everything you need?

@react-native-mapbox-gl/maps is 8.5.0 The related mapbox versions should be these:
https://github.com/rnmapbox/maps/blob/8.5.0/android/rctmgl/build.gradle#L49-L75

The error I pasted above is everything i can see. Unfortunately no other error or additional information available.

@Christophe668
Copy link

Christophe668 commented Apr 13, 2022

Same issue here.

com.mapbox.navigation:core:2.4.0-rc.1

This release depends on, and has been tested with, the following Mapbox dependencies:

Mapbox Maps SDK v10.4.0 ([release notes](https://github.com/mapbox/mapbox-maps-android/releases/tag/android-v10.4.0))
Mapbox Navigation Native v94.0.0
Mapbox Core Common v21.2.0
Mapbox Java v6.4.0-beta.4 ([release notes](https://github.com/mapbox/mapbox-java/releases/tag/v6.4.0-beta.4))
Mapbox Android Core v5.0.1
Mapbox Android Telemetry v8.1.1

Occurrences Last 30 days: 528
Seems to impact Android 12


backtrace:
  #00  pc 000000000004f75c  /apex/com.android.runtime/lib64/bionic/libc.so (abort+168)
  #00  pc 000000000009ce88  /data/app/~~nbxxXlLYyjuesQwpc1rq-A==/bike.cowboy.app-EOJhO1-NgX4ZTqeRml-diw==/split_config.arm64_v8a.apk!libc++_shared.so
  #00  pc 000000000009d094  /data/app/~~nbxxXlLYyjuesQwpc1rq-A==/bike.cowboy.app-EOJhO1-NgX4ZTqeRml-diw==/split_config.arm64_v8a.apk!libc++_shared.so
  #00  pc 00000000000aead0  /data/app/~~nbxxXlLYyjuesQwpc1rq-A==/bike.cowboy.app-EOJhO1-NgX4ZTqeRml-diw==/split_config.arm64_v8a.apk!libc++_shared.so
  #00  pc 00000000000ae0fc  /data/app/~~nbxxXlLYyjuesQwpc1rq-A==/bike.cowboy.app-EOJhO1-NgX4ZTqeRml-diw==/split_config.arm64_v8a.apk!libc++_shared.so
  #00  pc 00000000000ae058  /data/app/~~nbxxXlLYyjuesQwpc1rq-A==/bike.cowboy.app-EOJhO1-NgX4ZTqeRml-diw==/split_config.arm64_v8a.apk!libc++_shared.so (__cxa_throw+112)
  #00  pc 00000000001fb1a8  /data/app/~~nbxxXlLYyjuesQwpc1rq-A==/bike.cowboy.app-EOJhO1-NgX4ZTqeRml-diw==/split_config.arm64_v8a.apk!libmapbox-maps.so
  #00  pc 00000000002328b8  /data/app/~~nbxxXlLYyjuesQwpc1rq-A==/bike.cowboy.app-EOJhO1-NgX4ZTqeRml-diw==/split_config.arm64_v8a.apk!libmapbox-maps.so
  #00  pc 000000000026793c  /data/app/~~nbxxXlLYyjuesQwpc1rq-A==/bike.cowboy.app-EOJhO1-NgX4ZTqeRml-diw==/split_config.arm64_v8a.apk!libmapbox-maps.so
  #00  pc 0000000000487ae0  /data/app/~~nbxxXlLYyjuesQwpc1rq-A==/bike.cowboy.app-EOJhO1-NgX4ZTqeRml-diw==/split_config.arm64_v8a.apk!libmapbox-maps.so
  #00  pc 0000000000487ba0  /data/app/~~nbxxXlLYyjuesQwpc1rq-A==/bike.cowboy.app-EOJhO1-NgX4ZTqeRml-diw==/split_config.arm64_v8a.apk!libmapbox-maps.so
  #00  pc 0000000000486ddc  /data/app/~~nbxxXlLYyjuesQwpc1rq-A==/bike.cowboy.app-EOJhO1-NgX4ZTqeRml-diw==/split_config.arm64_v8a.apk!libmapbox-maps.so
  #00  pc 00000000000167e8  /system/lib64/libutils.so (android::Looper::pollInner(int)+908)
  #00  pc 00000000000163f4  /system/lib64/libutils.so (android::Looper::pollOnce(int, int*, int*, void**)+112)
  #00  pc 00000000001573e8  /system/lib64/libandroid_runtime.so (android::android_os_MessageQueue_nativePollOnce(_JNIEnv*, _jobject*, long, int)+44)
  #00  pc 000000000019d44c  /system/framework/arm64/boot-framework.oat (art_jni_trampoline+108)
  #00  pc 00000000004f6628  /system/framework/arm64/boot-framework.oat (android.os.MessageQueue.next+232)
  #00  pc 00000000004f3c84  /system/framework/arm64/boot-framework.oat (android.os.Looper.loopOnce+100)
  #00  pc 00000000004f3b84  /system/framework/arm64/boot-framework.oat (android.os.Looper.loop+516)
  #00  pc 00000000002cfc6c  /system/framework/arm64/boot-framework.oat (android.app.ActivityThread.main+732)
  #00  pc 00000000002cdfe8  /apex/com.android.art/lib64/libart.so (art_quick_invoke_static_stub+568)
  #00  pc 0000000000362f0c  /apex/com.android.art/lib64/libart.so (_jobject* art::InvokeMethod<(art::PointerSize)8>(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jobject*, _jobject*, unsigned long)+608)
  #00  pc 0000000000362c84  /apex/com.android.art/lib64/libart.so (art::Method_invoke(_JNIEnv*, _jobject*, _jobject*, _jobjectArray*)+52)
  #00  pc 00000000000b2f74  /apex/com.android.art/javalib/arm64/boot.oat (art_jni_trampoline+132)
  #00  pc 000000000081a46c  /system/framework/arm64/boot-framework.oat (com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run+140)
  #00  pc 0000000000822738  /system/framework/arm64/boot-framework.oat (com.android.internal.os.ZygoteInit.main+2232)
  #00  pc 00000000002cdfe8  /apex/com.android.art/lib64/libart.so (art_quick_invoke_static_stub+568)
  #00  pc 00000000004550b4  /apex/com.android.art/lib64/libart.so (art::JValue art::InvokeWithVarArgs<_jmethodID*>(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, std::__va_list)+464)
  #00  pc 0000000000633790  /apex/com.android.art/lib64/libart.so (art::JNI<true>::CallStaticVoidMethodV(_JNIEnv*, _jclass*, _jmethodID*, std::__va_list)+268)
  #00  pc 00000000000b5ad0  /system/lib64/libandroid_runtime.so (_JNIEnv::CallStaticVoidMethod(_jclass*, _jmethodID*, ...)+120)
  #00  pc 00000000000c0f68  /system/lib64/libandroid_runtime.so (android::AndroidRuntime::start(char const*, android::Vector<android::String8> const&, bool)+828)
  #00  pc 0000000000002580  /system/bin/app_process64 (main+1324)
  #00  pc 00000000000484f0  /apex/com.android.runtime/lib64/bionic/libc.so (__libc_init+96)

Another one :
Occurrences last 30 days: 378
Android 11


backtrace:
  #00  pc 0000000000089bcc  /apex/com.android.runtime/lib64/bionic/libc.so (abort+164)
  #00  pc 000000000009ce88  /data/app/~~R3ejYqGiByZ9wq-sohBrlQ==/bike.cowboy.app-FgIMOEu7--nyja6ZsMjCiw==/split_config.arm64_v8a.apk!lib/arm64-v8a/libc++_shared.so (offset 0x1000)
  #00  pc 000000000009d094  /data/app/~~R3ejYqGiByZ9wq-sohBrlQ==/bike.cowboy.app-FgIMOEu7--nyja6ZsMjCiw==/split_config.arm64_v8a.apk!lib/arm64-v8a/libc++_shared.so (offset 0x1000)
  #00  pc 00000000000aead0  /data/app/~~R3ejYqGiByZ9wq-sohBrlQ==/bike.cowboy.app-FgIMOEu7--nyja6ZsMjCiw==/split_config.arm64_v8a.apk!lib/arm64-v8a/libc++_shared.so (offset 0x1000)
  #00  pc 00000000000ae0fc  /data/app/~~R3ejYqGiByZ9wq-sohBrlQ==/bike.cowboy.app-FgIMOEu7--nyja6ZsMjCiw==/split_config.arm64_v8a.apk!lib/arm64-v8a/libc++_shared.so (offset 0x1000)
  #00  pc 00000000000ae058  /data/app/~~R3ejYqGiByZ9wq-sohBrlQ==/bike.cowboy.app-FgIMOEu7--nyja6ZsMjCiw==/split_config.arm64_v8a.apk!lib/arm64-v8a/libc++_shared.so (offset 0x1000) (__cxa_throw+112)
  #00  pc 00000000001fb1a8  /data/app/~~R3ejYqGiByZ9wq-sohBrlQ==/bike.cowboy.app-FgIMOEu7--nyja6ZsMjCiw==/split_config.arm64_v8a.apk!lib/arm64-v8a/libmapbox-maps.so (offset 0x323000)
  #00  pc 00000000002328b8  /data/app/~~R3ejYqGiByZ9wq-sohBrlQ==/bike.cowboy.app-FgIMOEu7--nyja6ZsMjCiw==/split_config.arm64_v8a.apk!lib/arm64-v8a/libmapbox-maps.so (offset 0x323000)
  #00  pc 000000000026793c  /data/app/~~R3ejYqGiByZ9wq-sohBrlQ==/bike.cowboy.app-FgIMOEu7--nyja6ZsMjCiw==/split_config.arm64_v8a.apk!lib/arm64-v8a/libmapbox-maps.so (offset 0x323000)
  #00  pc 0000000000487ae0  /data/app/~~R3ejYqGiByZ9wq-sohBrlQ==/bike.cowboy.app-FgIMOEu7--nyja6ZsMjCiw==/split_config.arm64_v8a.apk!lib/arm64-v8a/libmapbox-maps.so (offset 0x323000)
  #00  pc 0000000000487ba0  /data/app/~~R3ejYqGiByZ9wq-sohBrlQ==/bike.cowboy.app-FgIMOEu7--nyja6ZsMjCiw==/split_config.arm64_v8a.apk!lib/arm64-v8a/libmapbox-maps.so (offset 0x323000)
  #00  pc 0000000000486ddc  /data/app/~~R3ejYqGiByZ9wq-sohBrlQ==/bike.cowboy.app-FgIMOEu7--nyja6ZsMjCiw==/split_config.arm64_v8a.apk!lib/arm64-v8a/libmapbox-maps.so (offset 0x323000)
  #00  pc 0000000000019da8  /system/lib64/libutils.so (android::Looper::pollInner(int)+916)
  #00  pc 00000000000199ac  /system/lib64/libutils.so (android::Looper::pollOnce(int, int*, int*, void**)+112)
  #00  pc 00000000001182fc  /system/lib64/libandroid_runtime.so (android::android_os_MessageQueue_nativePollOnce(_JNIEnv*, _jobject*, long, int)+44)
  #00  pc 000000000021cadc  /system/framework/arm64/boot-framework.oat (art_jni_trampoline+140)
  #00  pc 0000000000650c50  /system/framework/arm64/boot-framework.oat (android.os.MessageQueue.next+192)
  #00  pc 000000000064d6d8  /system/framework/arm64/boot-framework.oat (android.os.Looper.loop+776)
  #00  pc 0000000000408300  /system/framework/arm64/boot-framework.oat (android.app.ActivityThread.main+944)
  #00  pc 00000000001337e8  /apex/com.android.art/lib64/libart.so (art_quick_invoke_static_stub+568)
  #00  pc 00000000001a8a94  /apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+228)
  #00  pc 00000000005558c0  /apex/com.android.art/lib64/libart.so (art::InvokeMethod(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jobject*, _jobject*, unsigned long)+1364)
  #00  pc 00000000004d5170  /apex/com.android.art/lib64/libart.so (art::Method_invoke(_JNIEnv*, _jobject*, _jobject*, _jobjectArray*)+52)
  #00  pc 00000000000896f4  /apex/com.android.art/javalib/arm64/boot.oat (art_jni_trampoline+180)
  #00  pc 0000000000887ee8  /system/framework/arm64/boot-framework.oat (com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run+136)
  #00  pc 00000000008906bc  /system/framework/arm64/boot-framework.oat (com.android.internal.os.ZygoteInit.main+2316)
  #00  pc 00000000001337e8  /apex/com.android.art/lib64/libart.so (art_quick_invoke_static_stub+568)
  #00  pc 00000000001a8a94  /apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+228)
  #00  pc 00000000005542fc  /apex/com.android.art/lib64/libart.so (art::JValue art::InvokeWithVarArgs<art::ArtMethod*>(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, art::ArtMethod*, std::__va_list)+448)
  #00  pc 00000000005547b0  /apex/com.android.art/lib64/libart.so (art::JValue art::InvokeWithVarArgs<_jmethodID*>(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, std::__va_list)+92)
  #00  pc 0000000000438f54  /apex/com.android.art/lib64/libart.so (art::JNI<true>::CallStaticVoidMethodV(_JNIEnv*, _jclass*, _jmethodID*, std::__va_list)+656)
  #00  pc 000000000009d424  /system/lib64/libandroid_runtime.so (_JNIEnv::CallStaticVoidMethod(_jclass*, _jmethodID*, ...)+124)
  #00  pc 00000000000a5364  /system/lib64/libandroid_runtime.so (android::AndroidRuntime::start(char const*, android::Vector<android::String8> const&, bool)+916)
  #00  pc 0000000000003680  /system/bin/app_process64 (main+1592)
  #00  pc 0000000000085190  /apex/com.android.runtime/lib64/bionic/libc.so (__libc_init+108)

Android 7

backtrace:
  #00  pc 000000000006b598  /system/lib64/libc.so (tgkill+8)
  #00  pc 0000000000068a1c  /system/lib64/libc.so (pthread_kill+64)
  #00  pc 0000000000023f68  /system/lib64/libc.so (raise+24)
  #00  pc 000000000001c9ec  /system/lib64/libc.so (abort+52)
  #00  pc 000000000009ce88  /data/app/bike.cowboy.app-1/split_config.arm64_v8a.apk!lib/arm64-v8a/libc++_shared.so (offset 0x1000)
  #00  pc 000000000009d094  /data/app/bike.cowboy.app-1/split_config.arm64_v8a.apk!lib/arm64-v8a/libc++_shared.so (offset 0x1000)
  #00  pc 00000000000aead0  /data/app/bike.cowboy.app-1/split_config.arm64_v8a.apk!lib/arm64-v8a/libc++_shared.so (offset 0x1000)
  #00  pc 00000000000ae0fc  /data/app/bike.cowboy.app-1/split_config.arm64_v8a.apk!lib/arm64-v8a/libc++_shared.so (offset 0x1000)
  #00  pc 00000000000ae058  /data/app/bike.cowboy.app-1/split_config.arm64_v8a.apk!lib/arm64-v8a/libc++_shared.so (offset 0x1000)
  #00  pc 000000000002f1a8  /data/app/bike.cowboy.app-1/split_config.arm64_v8a.apk (offset 0x4ef000)

We get a lot of bad reviews, 1 stars mentionning those crashes

@tobrun
Copy link
Member

tobrun commented Apr 22, 2022

@Christophe668

The crashes listed symbolicates to:

********** Crash dump: **********
#00 0x000000000004f75c /apex/com.android.runtime/lib64/bionic/libc.so (abort+168)
#00 0x000000000009ce88 /data/app/~~nbxxXlLYyjuesQwpc1rq-A==/bike.cowboy.app-EOJhO1-NgX4ZTqeRml-diw==/split_config.arm64_v8a.apk!libc++_shared.so
abort_message
/buildbot/src/android/ndk-release-r21/external/libcxx/../../external/libcxxabi/src/abort_message.cpp:76:5
#00 0x000000000009d094 /data/app/~~nbxxXlLYyjuesQwpc1rq-A==/bike.cowboy.app-EOJhO1-NgX4ZTqeRml-diw==/split_config.arm64_v8a.apk!libc++_shared.so
demangling_terminate_handler()
/buildbot/src/android/ndk-release-r21/external/libcxx/../../external/libcxxabi/src/cxa_default_handlers.cpp:67:21
#00 0x00000000000aead0 /data/app/~~nbxxXlLYyjuesQwpc1rq-A==/bike.cowboy.app-EOJhO1-NgX4ZTqeRml-diw==/split_config.arm64_v8a.apk!libc++_shared.so
std::__terminate(void (*)())
/buildbot/src/android/ndk-release-r21/external/libcxx/../../external/libcxxabi/src/cxa_handlers.cpp:59:9
#00 0x00000000000ae0fc /data/app/~~nbxxXlLYyjuesQwpc1rq-A==/bike.cowboy.app-EOJhO1-NgX4ZTqeRml-diw==/split_config.arm64_v8a.apk!libc++_shared.so
__cxxabiv1::failed_throw(__cxxabiv1::__cxa_exception*)
/buildbot/src/android/ndk-release-r21/external/libcxx/../../external/libcxxabi/src/cxa_exception.cpp:152:5
#00 0x00000000000ae058 /data/app/~~nbxxXlLYyjuesQwpc1rq-A==/bike.cowboy.app-EOJhO1-NgX4ZTqeRml-diw==/split_config.arm64_v8a.apk!libc++_shared.so (__cxa_throw+112)
                                                                                                                                                  __cxa_throw
                                                                                                                                                  /buildbot/src/android/ndk-release-r21/external/libcxx/../../external/libcxxabi/src/cxa_exception.cpp:284:5
#00 0x00000000001fb1a8 /data/app/~~nbxxXlLYyjuesQwpc1rq-A==/bike.cowboy.app-EOJhO1-NgX4ZTqeRml-diw==/split_config.arm64_v8a.apk!libmapbox-maps.so
jni::CheckJavaException(_JNIEnv&)
/src/internal/platform/android/sdk/.cxx/Release/2k4s1d4z/arm64-v8a/../../../../../../../../vendor/mapbox-base/deps/jni.hpp/include/jni/errors.hpp:0:8
#00 0x00000000002328b8 /data/app/~~nbxxXlLYyjuesQwpc1rq-A==/bike.cowboy.app-EOJhO1-NgX4ZTqeRml-diw==/split_config.arm64_v8a.apk!libmapbox-maps.so
std::__ndk1::enable_if<Conjunction<std::__ndk1::is_convertible<jni::Unique<jni::Object<mapbox::bindgen::mapbox::maps::Event>, jni::DefaultRefDeleter<&(_JNIEnv::DeleteLocalRef(_jobject*))> > const&, jni::Object<mapbox::bindgen::mapbox::maps::Event> const&> >::value, void>::type jni::Object<mapbox::bindgen::mapbox::maps::Observer>::Call<jni::Object<mapbox::bindgen::mapbox::maps::Event>, jni::Unique<jni::Object<mapbox::bindgen::mapbox::maps::Event>, jni::DefaultRefDeleter<&(_JNIEnv::DeleteLocalRef(_jobject*))> > >(_JNIEnv&, jni::Method<mapbox::bindgen::mapbox::maps::Observer, void (jni::Object<mapbox::bindgen::mapbox::maps::Event>)> const&, jni::Unique<jni::Object<mapbox::bindgen::mapbox::maps::Event>, jni::DefaultRefDeleter<&(_JNIEnv::DeleteLocalRef(_jobject*))> > const&) const
/src/internal/platform/android/sdk/.cxx/Release/2k4s1d4z/arm64-v8a/../../../../../../../../vendor/mapbox-base/deps/jni.hpp/include/jni/object.hpp:116:17
mapbox::bindgen::mapbox::maps::Observer::notify(mapbox::maps::Event const&)
/src/internal/platform/android/sdk/.cxx/Release/2k4s1d4z/arm64-v8a/../../../../../../../bindings/generated/jni/mapbox/maps/observer.jni.cpp:36:0
#00 0x000000000026793c /data/app/~~nbxxXlLYyjuesQwpc1rq-A==/bike.cowboy.app-EOJhO1-NgX4ZTqeRml-diw==/split_config.arm64_v8a.apk!libmapbox-maps.so
mapbox::maps::ObserverWrapper::notify(mbgl::ObservableEvent const&)
/src/internal/platform/android/sdk/.cxx/Release/2k4s1d4z/arm64-v8a/../../../../../../../src/mapbox/maps/observable_impl.cpp:27:19
#00 0x0000000000487ae0 /data/app/~~nbxxXlLYyjuesQwpc1rq-A==/bike.cowboy.app-EOJhO1-NgX4ZTqeRml-diw==/split_config.arm64_v8a.apk!libmapbox-maps.so
std::__ndk1::unique_lock<std::__ndk1::mutex>::lock()
/opt/android/ndk/21.4.7075529/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/__mutex_base:216:9
mbgl::util::RunLoop::process()
/src/internal/platform/android/sdk/.cxx/Release/2k4s1d4z/arm64-v8a/../../../../../../../../include/mbgl/util/run_loop.hpp:115:0
#00 0x0000000000487ba0 /data/app/~~nbxxXlLYyjuesQwpc1rq-A==/bike.cowboy.app-EOJhO1-NgX4ZTqeRml-diw==/split_config.arm64_v8a.apk!libmapbox-maps.so
mbgl::util::RunLoop::stop()
/src/internal/platform/android/sdk/.cxx/Release/2k4s1d4z/arm64-v8a/../../../../../../../../platform/android/src/run_loop.cpp:251:0
#00 0x0000000000486ddc /data/app/~~nbxxXlLYyjuesQwpc1rq-A==/bike.cowboy.app-EOJhO1-NgX4ZTqeRml-diw==/split_config.arm64_v8a.apk!libmapbox-maps.so
(anonymous namespace)::looperCallbackDefault(int, int, void*)
/src/internal/platform/android/sdk/.cxx/Release/2k4s1d4z/arm64-v8a/../../../../../../../../platform/android/src/run_loop.cpp:50:9
#00 0x00000000000167e8 /system/lib64/libutils.so (android::Looper::pollInner(int)+908)
#00 0x00000000000163f4 /system/lib64/libutils.so (android::Looper::pollOnce(int, int*, int*, void**)+112)
#00 0x00000000001573e8 /system/lib64/libandroid_runtime.so (android::android_os_MessageQueue_nativePollOnce(_JNIEnv*, _jobject*, long, int)+44)
#00 0x000000000019d44c /system/framework/arm64/boot-framework.oat (art_jni_trampoline+108)
#00 0x00000000004f6628 /system/framework/arm64/boot-framework.oat (android.os.MessageQueue.next+232)
#00 0x00000000004f3c84 /system/framework/arm64/boot-framework.oat (android.os.Looper.loopOnce+100)
#00 0x00000000004f3b84 /system/framework/arm64/boot-framework.oat (android.os.Looper.loop+516)
#00 0x00000000002cfc6c /system/framework/arm64/boot-framework.oat (android.app.ActivityThread.main+732)
#00 0x00000000002cdfe8 /apex/com.android.art/lib64/libart.so (art_quick_invoke_static_stub+568)
#00 0x0000000000362f0c /apex/com.android.art/lib64/libart.so (_jobject* art::InvokeMethod<(art::PointerSize)8>(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jobject*, _jobject*, unsigned long)+608)
#00 0x0000000000362c84 /apex/com.android.art/lib64/libart.so (art::Method_invoke(_JNIEnv*, _jobject*, _jobject*, _jobjectArray*)+52)
#00 0x00000000000b2f74 /apex/com.android.art/javalib/arm64/boot.oat (art_jni_trampoline+132)
#00 0x000000000081a46c /system/framework/arm64/boot-framework.oat (com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run+140)
#00 0x0000000000822738 /system/framework/arm64/boot-framework.oat (com.android.internal.os.ZygoteInit.main+2232)
#00 0x00000000002cdfe8 /apex/com.android.art/lib64/libart.so (art_quick_invoke_static_stub+568)
#00 0x00000000004550b4 /apex/com.android.art/lib64/libart.so (art::JValue art::InvokeWithVarArgs<_jmethodID*>(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, std::__va_list)+464)
#00 0x0000000000633790 /apex/com.android.art/lib64/libart.so (art::JNI<true>::CallStaticVoidMethodV(_JNIEnv*, _jclass*, _jmethodID*, std::__va_list)+268)
#00 0x00000000000b5ad0 /system/lib64/libandroid_runtime.so (_JNIEnv::CallStaticVoidMethod(_jclass*, _jmethodID*, ...)+120)
#00 0x00000000000c0f68 /system/lib64/libandroid_runtime.so (android::AndroidRuntime::start(char const*, android::Vector<android::String8> const&, bool)+828)
#00 0x0000000000002580 /system/bin/app_process64 (main+1324)
#00 0x00000000000484f0 /apex/com.android.runtime/lib64/bionic/libc.so (__libc_init+96)

Where you can see mapbox::bindgen::mapbox::maps::Observer::notify(mapbox::maps::Event const&) and afterwards jni::CheckJavaException(_JNIEnv&). This means a java exception was thrown from the event handler (like a callback). There is a chance that this is maps sdk code, nav sdk code or your own. Do you have the ability to see the full logs for these crashes? The java exception will be printed above.

We are aware that this developer experience isn't great and we should check for crashes in these observable handlers and cleanly handle them (eg. rethrowing them on the java end without having the native trace crashing them). Will ticket this out.


@SamuelBrucksch do you have other traces that I could try symbolizing? The one shared above didn't meet the requirements of ndk-stack to be resolved.

@Christophe668
Copy link

We are aware that this developer experience isn't great and we should check for crashes in these observable handlers and cleanly handle them (eg. rethrowing them on the java end without having the native trace crashing them). Will ticket this out.

Thank you, that would be great. We don't have the full stack trace when we get those native crashes on the Google Play platform unfortunately, si indeed we are missing the context unfortunately

@SamuelBrucksch
Copy link
Author

SamuelBrucksch commented May 30, 2022

Hi,

we still see errors like these. Newest ones on a Samsung Galaxy S22+ (SM-S906B) Android 12 API 31:

SIGABRT Abort program 
    /apex/com.android.runtime/lib64/bionic/libc.so:331880 abort
    /data/app/~~L0ALwm4GPqi25FLpyWZbrQ==/com.iternio.abrpapp-JavCVLgQq3Lrd65QHV-ErQ==/base.apk!/lib/arm64-v8a/libc++_shared.so:655808 __cxa_bad_cast
    /data/app/~~L0ALwm4GPqi25FLpyWZbrQ==/com.iternio.abrpapp-JavCVLgQq3Lrd65QHV-ErQ==/base.apk!/lib/arm64-v8a/libc++_shared.so:656332 0x76318e43cc
    /data/app/~~L0ALwm4GPqi25FLpyWZbrQ==/com.iternio.abrpapp-JavCVLgQq3Lrd65QHV-ErQ==/base.apk!/lib/arm64-v8a/libc++_shared.so:737804 0x76318f820c
    /data/app/~~L0ALwm4GPqi25FLpyWZbrQ==/com.iternio.abrpapp-JavCVLgQq3Lrd65QHV-ErQ==/base.apk!/lib/arm64-v8a/libc++_shared.so:735504 __cxa_get_exception_ptr
    /data/app/~~L0ALwm4GPqi25FLpyWZbrQ==/com.iternio.abrpapp-JavCVLgQq3Lrd65QHV-ErQ==/base.apk!/lib/arm64-v8a/libc++_shared.so:735376 0x76318f7890
    /data/app/~~L0ALwm4GPqi25FLpyWZbrQ==/com.iternio.abrpapp-JavCVLgQq3Lrd65QHV-ErQ==/base.apk!/lib/arm64-v8a/libmapbox-maps.so:2077120 0x75c42e31c0

Unfortunately not much more to share...

When will #1363 be available? Maybe that helps in finding the problem...

I asked the affected user to create a bugreport on android and send it to us, maybe it contains something more useful. Looks like he can reproduce this fairly easy, so maybe the bugreport contains the expected log output.

@SamuelBrucksch
Copy link
Author

Maybe related to #1397 in my case

@SamuelBrucksch
Copy link
Author

SamuelBrucksch commented Jun 1, 2022

@tobrun just got this one:

05-30 21:10:27.513 10431 16588 22565 E Mbgl-EglCore: eglCreateWindowSurface: EGL error: 0x300d
05-30 21:10:27.514 10229 11935 12042 E BufferQueueProducer: [SurfaceView - cqr@331c41f@0#10(BLAST Consumer)10](id:2e9f0000000a,api:1,p:16588,c:11935) connect: BufferQueue has been abandoned
05-30 21:10:27.514 10431 16588 22565 E vulkan  : native_window_api_connect() failed: No such device (-19)
05-30 21:10:27.514 10431 16588 22565 D libEGL  : ANGLE Info:Debug.cpp:490 (insertMessage): EGL ERROR: eglCreateWindowSurface: Internal Vulkan error (-1000000001): The requested window is already connected to a VkSurfaceKHR, or to some other non-Vulkan API, in ../../src/libANGLE/renderer/vulkan/android/WindowSurfaceVkAndroid.cpp, createSurfaceVk:32.
05-30 21:10:27.514 10229 19629 25062 I CAR.GAL.GAL.LITE: onChannelOpened: 3
05-30 21:10:27.514 10431 16588 22565 E Mbgl-EglCore: eglCreateWindowSurface: EGL error: 0x300d
05-30 21:10:27.514 10229 19629 25038 I CAR.GAL.GAL.LITE: onChannelOpened: 4
05-30 21:10:27.514 10229 11935 12042 E BufferQueueProducer: [SurfaceView - cqr@331c41f@0#10(BLAST Consumer)10](id:2e9f0000000a,api:1,p:16588,c:11935) connect: BufferQueue has been abandoned
05-30 21:10:27.514 10431 16588 22565 E vulkan  : native_window_api_connect() failed: No such device (-19)
05-30 21:10:27.514 10431 16588 22565 D libEGL  : ANGLE Info:Debug.cpp:490 (insertMessage): EGL ERROR: eglCreateWindowSurface: Internal Vulkan error (-1000000001): The requested window is already connected to a VkSurfaceKHR, or to some other non-Vulkan API, in ../../src/libANGLE/renderer/vulkan/android/WindowSurfaceVkAndroid.cpp, createSurfaceVk:32.
05-30 21:10:27.514 10431 16588 22565 E Mbgl-EglCore: eglCreateWindowSurface: EGL error: 0x300d
05-30 21:10:27.514 10431 24983 24983 F DEBUG   : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
05-30 21:10:27.514 10431 24983 24983 F DEBUG   : Build fingerprint: 'samsung/g0sxeea/g0s:12/SP1A.210812.016/S906BXXS2AVDB:user/release-keys'
05-30 21:10:27.514 10229 19629 25052 I Lite.EP.LITE: Rcvd msg 4:channel opened
05-30 21:10:27.514 10229 19629 25052 I CAR.GAL.GAL.LITE: onChannelOpened: 4
05-30 21:10:27.514 10431 24983 24983 F DEBUG   : Revision: '28'
05-30 21:10:27.514 10431 24983 24983 F DEBUG   : ABI: 'arm64'
05-30 21:10:27.514  1000  1228  1228 I NotificationService: Cannot find enqueued record for key: 0|com.google.android.projection.gearhead|1|null|10229
05-30 21:10:27.514 10431 24983 24983 F DEBUG   : Processor: '5'
05-30 21:10:27.514 10229 11935 12042 E BufferQueueProducer: [SurfaceView - cqr@331c41f@0#10(BLAST Consumer)10](id:2e9f0000000a,api:1,p:16588,c:11935) connect: BufferQueue has been abandoned
05-30 21:10:27.514 10431 24983 24983 F DEBUG   : Timestamp: 2022-05-30 21:10:25.653411770+0200
05-30 21:10:27.514 10431 24983 24983 F DEBUG   : Process uptime: 589s
05-30 21:10:27.514 10431 16588 22565 E vulkan  : native_window_api_connect() failed: No such device (-19)
05-30 21:10:27.514 10431 16588 22565 D libEGL  : ANGLE Info:Debug.cpp:490 (insertMessage): EGL ERROR: eglCreateWindowSurface: Internal Vulkan error (-1000000001): The requested window is already connected to a VkSurfaceKHR, or to some other non-Vulkan API, in ../../src/libANGLE/renderer/vulkan/android/WindowSurfaceVkAndroid.cpp, createSurfaceVk:32.
05-30 21:10:27.515 10431 16588 22565 E Mbgl-EglCore: eglCreateWindowSurface: EGL error: 0x300d
05-30 21:10:27.515 10431 24983 24983 F DEBUG   : Cmdline: com.iternio.abrpapp
05-30 21:10:27.515 10431 24983 24983 F DEBUG   : pid: 16588, tid: 16588, name: iternio.abrpapp  >>> com.iternio.abrpapp <<<
05-30 21:10:27.515 10431 24983 24983 F DEBUG   : uid: 10431
05-30 21:10:27.515 10431 24983 24983 F DEBUG   : tagged_addr_ctrl: 0000000000000001
05-30 21:10:27.515 10229 11935 12042 E BufferQueueProducer: [SurfaceView - cqr@331c41f@0#10(BLAST Consumer)10](id:2e9f0000000a,api:1,p:16588,c:11935) connect: BufferQueue has been abandoned
05-30 21:10:27.515 10431 24983 24983 F DEBUG   : signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr --------
05-30 21:10:27.515 10431 16588 22565 E vulkan  : native_window_api_connect() failed: No such device (-19)
05-30 21:10:27.515 10431 24983 24983 F DEBUG   : Abort message: 'terminating with uncaught exception of type jni::PendingJavaException'
05-30 21:10:27.515 10431 16588 22565 D libEGL  : ANGLE Info:Debug.cpp:490 (insertMessage): EGL ERROR: eglCreateWindowSurface: Internal Vulkan error (-1000000001): The requested window is already connected to a VkSurfaceKHR, or to some other non-Vulkan API, in ../../src/libANGLE/renderer/vulkan/android/WindowSurfaceVkAndroid.cpp, createSurfaceVk:32.
05-30 21:10:27.515 10431 24983 24983 F DEBUG   :     x0  0000000000000000  x1  00000000000040cc  x2  0000000000000006  x3  0000007fccec2f70
05-30 21:10:27.515 10431 24983 24983 F DEBUG   :     x4  736f646277641f73  x5  736f646277641f73  x6  736f646277641f73  x7  7f7f7f7f7f7f7f7f
05-30 21:10:27.515 10431 24983 24983 F DEBUG   :     x8  00000000000000f0  x9  05332f6a787d5359  x10 0000000000000000  x11 ffffff80fffffbdf
05-30 21:10:27.515 10431 16588 22565 E Mbgl-EglCore: eglCreateWindowSurface: EGL error: 0x300d
05-30 21:10:27.515 10431 24983 24983 F DEBUG   :     x12 0000000000000001  x13 000000007fffffff  x14 000000000453b2fc  x15 000005dc16fb3872
05-30 21:10:27.515 10431 24983 24983 F DEBUG   :     x16 000000794ce5e058  x17 000000794ce3b5c0  x18 000000797974a000  x19 00000000000040cc
05-30 21:10:27.515 10431 24983 24983 F DEBUG   :     x20 00000000000040cc  x21 00000000ffffffff  x22 ffffff80ffffffc8  x23 0000007fccec31c0
05-30 21:10:27.515 10431 24983 24983 F DEBUG   :     x24 0000007fccec30a0  x25 0000007fccec30e0  x26 000000260bc4bdcf  x27 00000000000003e8
05-30 21:10:27.515 10431 24983 24983 F DEBUG   :     x28 b40000770580fcf0  x29 0000007fccec2ff0
05-30 21:10:27.515 10431 24983 24983 F DEBUG   :     lr  000000794cdee03c  sp  0000007fccec2f50  pc  000000794cdee068  pst 0000000000001000
05-30 21:10:27.515 10229 11935 12042 E BufferQueueProducer: [SurfaceView - cqr@331c41f@0#10(BLAST Consumer)10](id:2e9f0000000a,api:1,p:16588,c:11935) connect: BufferQueue has been abandoned
05-30 21:10:27.515 10431 24983 24983 F DEBUG   : backtrace:
05-30 21:10:27.515 10431 16588 22565 E vulkan  : native_window_api_connect() failed: No such device (-19)
05-30 21:10:27.515 10431 24983 24983 F DEBUG   :       #00 pc 0000000000051068  /apex/com.android.runtime/lib64/bionic/libc.so (abort+164) (BuildId: 9f96e1e92e346f8dd579bdcb20b6c618)
05-30 21:10:27.515 10431 16588 22565 D libEGL  : ANGLE Info:Debug.cpp:490 (insertMessage): EGL ERROR: eglCreateWindowSurface: Internal Vulkan error (-1000000001): The requested window is already connected to a VkSurfaceKHR, or to some other non-Vulkan API, in ../../src/libANGLE/renderer/vulkan/android/WindowSurfaceVkAndroid.cpp, createSurfaceVk:32.
05-30 21:10:27.515 10431 24983 24983 F DEBUG   :       #01 pc 00000000000a01bc  /data/app/~~L0ALwm4GPqi25FLpyWZbrQ==/com.iternio.abrpapp-JavCVLgQq3Lrd65QHV-ErQ==/base.apk!libc++_shared.so (BuildId: 6de1c39a010a6596b5bb6546e6fe55445b037c1b)
05-30 21:10:27.515 10431 24983 24983 F DEBUG   :       #02 pc 00000000000a03c8  /data/app/~~L0ALwm4GPqi25FLpyWZbrQ==/com.iternio.abrpapp-JavCVLgQq3Lrd65QHV-ErQ==/base.apk!libc++_shared.so (BuildId: 6de1c39a010a6596b5bb6546e6fe55445b037c1b)
05-30 21:10:27.515 10431 16588 22565 E Mbgl-EglCore: eglCreateWindowSurface: EGL error: 0x300d
05-30 21:10:27.515 10431 24983 24983 F DEBUG   :       #03 pc 00000000000b4208  /data/app/~~L0ALwm4GPqi25FLpyWZbrQ==/com.iternio.abrpapp-JavCVLgQq3Lrd65QHV-ErQ==/base.apk!libc++_shared.so (BuildId: 6de1c39a010a6596b5bb6546e6fe55445b037c1b)
05-30 21:10:27.515 10431 24983 24983 F DEBUG   :       #04 pc 00000000000b390c  /data/app/~~L0ALwm4GPqi25FLpyWZbrQ==/com.iternio.abrpapp-JavCVLgQq3Lrd65QHV-ErQ==/base.apk!libc++_shared.so (BuildId: 6de1c39a010a6596b5bb6546e6fe55445b037c1b)
05-30 21:10:27.515 10431 24983 24983 F DEBUG   :       #05 pc 00000000000b388c  /data/app/~~L0ALwm4GPqi25FLpyWZbrQ==/com.iternio.abrpapp-JavCVLgQq3Lrd65QHV-ErQ==/base.apk!libc++_shared.so (__cxa_throw+120) (BuildId: 6de1c39a010a6596b5bb6546e6fe55445b037c1b)
05-30 21:10:27.515 10431 24983 24983 F DEBUG   :       #06 pc 00000000001fb1bc  /data/app/~~L0ALwm4GPqi25FLpyWZbrQ==/com.iternio.abrpapp-JavCVLgQq3Lrd65QHV-ErQ==/base.apk!libmapbox-maps.so (BuildId: 7ee5ad12d3965e22)
05-30 21:10:27.516 10431 24983 24983 F DEBUG   :       #07 pc 0000000000233368  /data/app/~~L0ALwm4GPqi25FLpyWZbrQ==/com.iternio.abrpapp-JavCVLgQq3Lrd65QHV-ErQ==/base.apk!libmapbox-maps.so (BuildId: 7ee5ad12d3965e22)
05-30 21:10:27.516 10431 24983 24983 F DEBUG   :       #08 pc 0000000000269150  /data/app/~~L0ALwm4GPqi25FLpyWZbrQ==/com.iternio.abrpapp-JavCVLgQq3Lrd65QHV-ErQ==/base.apk!libmapbox-maps.so (BuildId: 7ee5ad12d3965e22)
05-30 21:10:27.516 10431 24983 24983 F DEBUG   :       #09 pc 0000000000488308  /data/app/~~L0ALwm4GPqi25FLpyWZbrQ==/com.iternio.abrpapp-JavCVLgQq3Lrd65QHV-ErQ==/base.apk!libmapbox-maps.so (BuildId: 7ee5ad12d3965e22)
05-30 21:10:27.516 10229 11935 12042 E BufferQueueProducer: [SurfaceView - cqr@331c41f@0#10(BLAST Consumer)10](id:2e9f0000000a,api:1,p:16588,c:11935) connect: BufferQueue has been abandoned
05-30 21:10:27.516 10431 24983 24983 F DEBUG   :       #10 pc 00000000004883c8  /data/app/~~L0ALwm4GPqi25FLpyWZbrQ==/com.iternio.abrpapp-JavCVLgQq3Lrd65QHV-ErQ==/base.apk!libmapbox-maps.so (BuildId: 7ee5ad12d3965e22)
05-30 21:10:27.516 10431 24983 24983 F DEBUG   :       #11 pc 0000000000487604  /data/app/~~L0ALwm4GPqi25FLpyWZbrQ==/com.iternio.abrpapp-JavCVLgQq3Lrd65QHV-ErQ==/base.apk!libmapbox-maps.so (BuildId: 7ee5ad12d3965e22)
05-30 21:10:27.516 10431 16588 22565 E vulkan  : native_window_api_connect() failed: No such device (-19)
05-30 21:10:27.516 10431 24983 24983 F DEBUG   :       #12 pc 0000000000016918  /system/lib64/libutils.so (android::Looper::pollInner(int)+912) (BuildId: a8e5883b039c6d018dc9ced53f79b1d0)
05-30 21:10:27.516 10431 16588 22565 D libEGL  : ANGLE Info:Debug.cpp:490 (insertMessage): EGL ERROR: eglCreateWindowSurface: Internal Vulkan error (-1000000001): The requested window is already connected to a VkSurfaceKHR, or to some other non-Vulkan API, in ../../src/libANGLE/renderer/vulkan/android/WindowSurfaceVkAndroid.cpp, createSurfaceVk:32.
05-30 21:10:27.516 10431 24983 24983 F DEBUG   :       #13 pc 0000000000016520  /system/lib64/libutils.so (android::Looper::pollOnce(int, int*, int*, void**)+112) (BuildId: a8e5883b039c6d018dc9ced53f79b1d0)
05-30 21:10:27.516 10431 16588 22565 E Mbgl-EglCore: eglCreateWindowSurface: EGL error: 0x300d
05-30 21:10:27.516 10431 24983 24983 F DEBUG   :       #14 pc 0000000000152c18  /system/lib64/libandroid_runtime.so (android::android_os_MessageQueue_nativePollOnce(_JNIEnv*, _jobject*, long, int)+44) (BuildId: cb611a9f76a240774f7b0ba48fb95270)
05-30 21:10:27.516 10431 24983 24983 F DEBUG   :       #15 pc 000000000028544c  /data/misc/apexdata/com.android.art/dalvik-cache/arm64/boot-framework.oat (art_jni_trampoline+108)
05-30 21:10:27.516 10431 24983 24983 F DEBUG   :       #16 pc 00000000007ecc48  /data/misc/apexdata/com.android.art/dalvik-cache/arm64/boot-framework.oat (android.os.MessageQueue.next+232)
05-30 21:10:27.516 10431 24983 24983 F DEBUG   :       #17 pc 00000000007e9e34  /data/misc/apexdata/com.android.art/dalvik-cache/arm64/boot-framework.oat (android.os.Looper.loopOnce+100)
05-30 21:10:27.516 10431 24983 24983 F DEBUG   :       #18 pc 00000000007e9d34  /data/misc/apexdata/com.android.art/dalvik-cache/arm64/boot-framework.oat (android.os.Looper.loop+516)
05-30 21:10:27.516 10229 11935 12042 E BufferQueueProducer: [SurfaceView - cqr@331c41f@0#10(BLAST Consumer)10](id:2e9f0000000a,api:1,p:16588,c:11935) connect: BufferQueue has been abandoned
05-30 21:10:27.516 10431 24983 24983 F DEBUG   :       #19 pc 0000000000565c90  /data/misc/apexdata/com.android.art/dalvik-cache/arm64/boot-framework.oat (android.app.ActivityThread.main+800)
05-30 21:10:27.516 10431 24983 24983 F DEBUG   :       #20 pc 00000000002ca9e8  /apex/com.android.art/lib64/libart.so (art_quick_invoke_static_stub+568) (BuildId: 34e3dd028e2e682b63a512d6a4f1b5eb)
05-30 21:10:27.516 10431 16588 22565 E vulkan  : native_window_api_connect() failed: No such device (-19)
05-30 21:10:27.516 10431 24983 24983 F DEBUG   :       #21 pc 000000000035b5d0  /apex/com.android.art/lib64/libart.so (_jobject* art::InvokeMethod<(art::PointerSize)8>(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jobject*, _jobject*, unsigned long)+608) (BuildId: 34e3dd028e2e682b63a512d6a4f1b5eb)
05-30 21:10:27.516 10431 16588 22565 D libEGL  : ANGLE Info:Debug.cpp:490 (insertMessage): EGL ERROR: eglCreateWindowSurface: Internal Vulkan error (-1000000001): The requested window is already connected to a VkSurfaceKHR, or to some other non-Vulkan API, in ../../src/libANGLE/renderer/vulkan/android/WindowSurfaceVkAndroid.cpp, createSurfaceVk:32.
05-30 21:10:27.516 10431 24983 24983 F DEBUG   :       #22 pc 000000000035b348  /apex/com.android.art/lib64/libart.so (art::Method_invoke(_JNIEnv*, _jobject*, _jobject*, _jobjectArray*)+52) (BuildId: 34e3dd028e2e682b63a512d6a4f1b5eb)
05-30 21:10:27.516 10431 16588 22565 E Mbgl-EglCore: eglCreateWindowSurface: EGL error: 0x300d
05-30 21:10:27.516 10431 24983 24983 F DEBUG   :       #23 pc 00000000000b2f74  /apex/com.android.art/javalib/arm64/boot.oat (art_jni_trampoline+132) (BuildId: ad9ee401645a5135206a62ff86fc2ef5cdc29120)
05-30 21:10:27.516 10431 24983 24983 F DEBUG   :       #24 pc 0000000000b3df2c  /data/misc/apexdata/com.android.art/dalvik-cache/arm64/boot-framework.oat (com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run+140)
05-30 21:10:27.516 10431 24983 24983 F DEBUG   :       #25 pc 0000000000b47388  /data/misc/apexdata/com.android.art/dalvik-cache/arm64/boot-framework.oat (com.android.internal.os.ZygoteInit.main+2376)
05-30 21:10:27.516 10431 24983 24983 F DEBUG   :       #26 pc 00000000002ca9e8  /apex/com.android.art/lib64/libart.so (art_quick_invoke_static_stub+568) (BuildId: 34e3dd028e2e682b63a512d6a4f1b5eb)
05-30 21:10:27.516 10229 11935 12042 E BufferQueueProducer: [SurfaceView - cqr@331c41f@0#10(BLAST Consumer)10](id:2e9f0000000a,api:1,p:16588,c:11935) connect: BufferQueue has been abandoned
05-30 21:10:27.516 10431 24983 24983 F DEBUG   :       #27 pc 000000000044ca04  /apex/com.android.art/lib64/libart.so (art::JValue art::InvokeWithVarArgs<_jmethodID*>(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, std::__va_list)+464) (BuildId: 34e3dd028e2e682b63a512d6a4f1b5eb)
05-30 21:10:27.516 10431 24983 24983 F DEBUG   :       #28 pc 000000000062cf30  /apex/com.android.art/lib64/libart.so (art::JNI<true>::CallStaticVoidMethodV(_JNIEnv*, _jclass*, _jmethodID*, std::__va_list)+268) (BuildId: 34e3dd028e2e682b63a512d6a4f1b5eb)
05-30 21:10:27.516 10431 16588 22565 E vulkan  : native_window_api_connect() failed: No such device (-19)
05-30 21:10:27.517 10431 24983 24983 F DEBUG   :       #29 pc 00000000000b2ac4  /system/lib64/libandroid_runtime.so (_JNIEnv::CallStaticVoidMethod(_jclass*, _jmethodID*, ...)+120) (BuildId: cb611a9f76a240774f7b0ba48fb95270)
05-30 21:10:27.517 10431 16588 22565 D libEGL  : ANGLE Info:Debug.cpp:490 (insertMessage): EGL ERROR: eglCreateWindowSurface: Internal Vulkan error (-1000000001): The requested window is already connected to a VkSurfaceKHR, or to some other non-Vulkan API, in ../../src/libANGLE/renderer/vulkan/android/WindowSurfaceVkAndroid.cpp, createSurfaceVk:32.
05-30 21:10:27.517 10431 24983 24983 F DEBUG   :       #30 pc 00000000000beb68  /system/lib64/libandroid_runtime.so (android::AndroidRuntime::start(char const*, android::Vector<android::String8> const&, bool)+848) (BuildId: cb611a9f76a240774f7b0ba48fb95270)
05-30 21:10:27.517 10431 16588 22565 E Mbgl-EglCore: eglCreateWindowSurface: EGL error: 0x300d
05-30 21:10:27.517 10431 24983 24983 F DEBUG   :       #31 pc 00000000000025a0  /system/bin/app_process64 (main+1356) (BuildId: 73b34a1dca9817ed76e9e05792a13f29)
05-30 21:10:27.517 10431 24983 24983 F DEBUG   :       #32 pc 0000000000049944  /apex/com.android.runtime/lib64/bionic/libc.so (__libc_init+96) (BuildId: 9f96e1e92e346f8dd579bdcb20b6c618)
05-30 21:10:27.517 10229 11935 12042 E BufferQueueProducer: [SurfaceView - cqr@331c41f@0#10(BLAST Consumer)10](id:2e9f0000000a,api:1,p:16588,c:11935) connect: BufferQueue has been abandoned
05-30 21:10:27.517 10431 16588 22565 E vulkan  : native_window_api_connect() failed: No such device (-19)
05-30 21:10:27.517 10431 16588 22565 D libEGL  : ANGLE Info:Debug.cpp:490 (insertMessage): EGL ERROR: eglCreateWindowSurface: Internal Vulkan error (-1000000001): The requested window is already connected to a VkSurfaceKHR, or to some other non-Vulkan API, in ../../src/libANGLE/renderer/vulkan/android/WindowSurfaceVkAndroid.cpp, createSurfaceVk:32.
05-30 21:10:27.517 10431 16588 22565 E Mbgl-EglCore: eglCreateWindowSurface: EGL error: 0x300d

Does this contain anything useful?

@tobrun
Copy link
Member

tobrun commented Jun 1, 2022

@SamuelBrucksch this one is great, it seems the device is unable to create the GL setup, we need to handle such cases more gracefully by 1) not crashing with a native crash 2) exposing a callback for developers to recover from this. One additional question Samuel, is do you have more context why the system wasn't able to create the GL setup? was it resource constrained? (eg. out of memory) or something else that might be interesting?

@SamuelBrucksch
Copy link
Author

SamuelBrucksch commented Jun 1, 2022

No the user switched to another app and then back to our app in AA. I opened a seperate issue on that, as i saw this log only later, so i guess it is the same: #1397

I also found this one:
#385

Which describes a bit about the lifecycle and AA destroying the surface while leaving the app and recreates it when coming back. It has a similiar error, but i already checked your AA implementation again and we do the same with regards to calling onStop / onStart andf so on as far as i can see. Maybe we continue in #1397 as it seems to be more specific to the actual problem.

@SamuelBrucksch
Copy link
Author

So @tobrun about the better error handling... Is that something that could be added soon and helps in finding where the error occurs?

@yunikkk
Copy link
Contributor

yunikkk commented Jun 7, 2022

@SamuelBrucksch #1363 has been released with 10.6.0-beta.1 thus will be available as part of the stable 10.6.0 (expected next week). At the same time seems it won't help with the EGL issue you're facing with AA, since 1363 only rethrows exception happening in the MapEvents callbacks

@ZiZasaurus
Copy link
Contributor

Closing this ticket in favor of #1397 where the conversation is continued.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🪲 Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants