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

In Android,how to solve this crash in MapboxRenderThread #2535

Open
zhaoxianghjun40 opened this issue Dec 2, 2024 · 1 comment
Open

In Android,how to solve this crash in MapboxRenderThread #2535

zhaoxianghjun40 opened this issue Dec 2, 2024 · 1 comment
Labels
bug 🪲 Something isn't working

Comments

@zhaoxianghjun40
Copy link

zhaoxianghjun40 commented Dec 2, 2024

Environment

  • Android OS version: No specific version required.
  • Devices affected: No specific devices required.
  • Maps SDK Version: com.mapbox.maps:android:11.8.0

My app, which is related to maps, frequently encounters crashes, and I have collected similar crash information.
Could you please advise on how to locate and resolve these issues?

  #00 pc 000000000019882c /vendor/lib64/egl/libGLESv2_adreno.so [arm64-v8a::c8ff05ee7770eabb902f5e18c4c04e0a] #01 pc 00000000007c890c /data/app/~~KgsUuxUik8_0VW0C84H-6A==/com.chinasiwei.offroadearth-B7bDCYMIArr_Rlvuu8n0Uw==/lib/arm64/libmapbox-maps.so [arm64-v8a::e42c4c5803359c8c3ee58ce359c23904] 
  #02 pc 00000000005294b0 /data/app/~~KgsUuxUik8_0VW0C84H-6A==/com.chinasiwei.offroadearth-B7bDCYMIArr_Rlvuu8n0Uw==/lib/arm64/libmapbox-maps.so [arm64-v8a::e42c4c5803359c8c3ee58ce359c23904] 
  #03 pc 00000000005a08b8 /data/app/~~KgsUuxUik8_0VW0C84H-6A==/com.chinasiwei.offroadearth-B7bDCYMIArr_Rlvuu8n0Uw==/lib/arm64/libmapbox-maps.so [arm64-v8a::e42c4c5803359c8c3ee58ce359c23904] 
  #04 pc 00000000005b1744 /data/app/~~KgsUuxUik8_0VW0C84H-6A==/com.chinasiwei.offroadearth-B7bDCYMIArr_Rlvuu8n0Uw==/lib/arm64/libmapbox-maps.so [arm64-v8a::e42c4c5803359c8c3ee58ce359c23904] 
  #05 pc 00000000005a300c /data/app/~~KgsUuxUik8_0VW0C84H-6A==/com.chinasiwei.offroadearth-B7bDCYMIArr_Rlvuu8n0Uw==/lib/arm64/libmapbox-maps.so [arm64-v8a::e42c4c5803359c8c3ee58ce359c23904] 
  #06 pc 00000000005a1ab8 /data/app/~~KgsUuxUik8_0VW0C84H-6A==/com.chinasiwei.offroadearth-B7bDCYMIArr_Rlvuu8n0Uw==/lib/arm64/libmapbox-maps.so [arm64-v8a::e42c4c5803359c8c3ee58ce359c23904] 
  #07 pc 000000000044f168 /data/app/~~KgsUuxUik8_0VW0C84H-6A==/com.chinasiwei.offroadearth-B7bDCYMIArr_Rlvuu8n0Uw==/lib/arm64/libmapbox-maps.so [arm64-v8a::e42c4c5803359c8c3ee58ce359c23904] 
  #08 pc 00000000004481bc /data/app/~~KgsUuxUik8_0VW0C84H-6A==/com.chinasiwei.offroadearth-B7bDCYMIArr_Rlvuu8n0Uw==/lib/arm64/libmapbox-maps.so [arm64-v8a::e42c4c5803359c8c3ee58ce359c23904] 
  #09 pc 00000000008545e8 /data/app/~~KgsUuxUik8_0VW0C84H-6A==/com.chinasiwei.offroadearth-B7bDCYMIArr_Rlvuu8n0Uw==/lib/arm64/libmapbox-maps.so [arm64-v8a::e42c4c5803359c8c3ee58ce359c23904] 
  #10 pc 0000000000045dc4 /data/app/~~KgsUuxUik8_0VW0C84H-6A==/com.chinasiwei.offroadearth-B7bDCYMIArr_Rlvuu8n0Uw==/oat/arm64/base.odex [arm64-v8a::eb4fbd440ad57f5912ce1a772bbf27ae] 
  java: 
  com.mapbox.maps.NativeMapImpl.render(SourceFile:3)
  com.mapbox.maps.renderer.MapboxRenderer.render(SourceFile:5) 
  com.mapbox.maps.renderer.MapboxRenderThread.draw(SourceFile:100)
  com.mapbox.maps.renderer.MapboxRenderThread.doFrame(SourceFile:143)
  android.view.Choreographer$CallbackRecord.run(Choreographer.java:1503) 
  android.view.Choreographer$CallbackRecord.run(Choreographer.java:1513) 
  android.view.Choreographer.doCallbacks(Choreographer.java:1128) 
  android.view.Choreographer.doFrame(Choreographer.java:1037) 
  android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:1481) 
  android.os.Handler.handleCallback(Handler.java:942) 
  android.os.Handler.dispatchMessage(Handler.java:99) 
  android.os.Looper.loopOnce(Looper.java:211) android.os.Looper.loop(Looper.java:300) 
  android.os.HandlerThread.run(HandlerThread.java:67)
@zhaoxianghjun40 zhaoxianghjun40 added the bug 🪲 Something isn't working label Dec 2, 2024
@Blizard
Copy link

Blizard commented Dec 6, 2024

Very similar for us. Some users have ANR on the map. We use Mapbox compose.

com.mapbox.extension:maps-compose: 11.8.0
com.mapbox.mapboxsdk:mapbox-sdk-services: 7.3.1

    atsyscall
    atart::ConditionVariable::WaitHoldingLocks(art::Thread*)
    atartJniMethodEnd
    atart_jni_method_end
    atart_jni_trampoline
    atandroid.util.Log$ImmediateLogWriter.write
    atandroid.util.Log.printlns
    atdeleted) (offset 0x2000000) (com.mapbox.common.logger.MapboxLogger$i$1.invoke
    atdeleted) (offset 0x2000000) (com.mapbox.common.logger.MapboxLogger$i$1.invoke
    atdeleted) (offset 0x2000000) (com.mapbox.common.logger.MapboxLogger.log
    atdeleted) (offset 0x2000000) (com.mapbox.common.logger.MapboxLogger.i
    atdeleted) (offset 0x2000000) (com.mapbox.base.common.logger.Logger$DefaultImpls.i$default
    atdeleted) (offset 0x2000000) (com.mapbox.common.BaseLogger.info
    atart_quick_invoke_static_stub
    atart::JNI<false>::CallStaticVoidMethodV(_JNIEnv*, _jclass*, _jmethodID*, std::__va_list)
    at
    at
    at
    at
    at
    at
    atart_jni_trampoline
    atdeleted) (offset 0x2000000) (com.mapbox.common.MapboxMapsAndroidLogger.internalLogI$sdk_base_release
    atdeleted) (offset 0x2000000) (com.mapbox.maps.MapboxLogger.logI
    atdeleted) (offset 0x2000000) (com.mapbox.maps.renderer.MapboxRenderThread.queueRenderEvent
    atdeleted) (offset 0x2000000) (com.mapbox.maps.renderer.MapboxRenderer.scheduleRepaint
    atart_quick_invoke_stub
    atart::JValue art::InvokeVirtualOrInterfaceWithVarArgs<art::ArtMethod*>(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, art::ArtMethod*, std::__va_list)
    atart::JNI<false>::CallVoidMethodV(_JNIEnv*, _jobject*, _jmethodID*, std::__va_list)
    at
    at
    at
    at
    atoffset 0xf08000) (mapbox::common::platform::processTask(std::__ndk1::function<void ()> const&)
    at
    at
    atandroid::Looper::pollInner(int)
    atandroid::Looper::pollOnce(int, int*, int*, void**)
    atandroid::android_os_MessageQueue_nativePollOnce(_JNIEnv*, _jobject*, long, int)
    atart_jni_trampoline
    atandroid.os.MessageQueue.next
    atandroid.os.Looper.loopOnce
    atandroid.os.Looper.loop
    atandroid.app.ActivityThread.main
    atart_quick_invoke_static_stub
    at_jobject* art::InvokeMethod<(art::PointerSize)8>(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jobject*, _jobject*, unsigned long)
    atart::Method_invoke(_JNIEnv*, _jobject*, _jobject*, _jobjectArray*) (.__uniq.165753521025965369065708152063621506277)
    atart_jni_trampoline
    atcom.android.internal.os.RuntimeInit$MethodAndArgsCaller.run
    atcom.android.internal.os.ZygoteInit.main
    atart_quick_invoke_static_stub
    atart::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)
    atart::JValue art::InvokeWithVarArgs<_jmethodID*>(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, std::__va_list)
    atart::JNI<true>::CallStaticVoidMethodV(_JNIEnv*, _jclass*, _jmethodID*, std::__va_list)
    at_JNIEnv::CallStaticVoidMethod(_jclass*, _jmethodID*, ...)
    atandroid::AndroidRuntime::start(char const*, android::Vector<android::String8> const&, bool)
    atmain
    at__libc_init

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

2 participants