flutter-mapbox-gl / maps

A Mapbox GL flutter package for creating custom maps
Other
1.04k stars 503 forks source link

Random mapbox map error causes flutter app to crash #1301

Closed jafar690 closed 1 year ago

jafar690 commented 1 year ago
F/libc    ( 2802): Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0 in tid 24321 (GLThread 21108), pid 2802 (s_driver_app_v2)
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'google/sdk_gphone_x86/generic_x86_arm:11/RSR1.201013.001/6903271:user/release-keys'
Revision: '0'
ABI: 'x86'
Timestamp: 2023-04-18 13:44:03+0300
pid: 2802, tid: 24321, name: GLThread 21108  >>> ax.synt.dropexpress_driver_app_v2 <<<
uid: 10155
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
Cause: null pointer dereference
    eax 00000000  ebx 9e932fe4  ecx 00000000  edx 87cfc4a8
    edi 9e939c88  esi 87cfb558
    ebp 87cfb4e8  esp 87cfb4d0  eip 9e4b59cc
backtrace:
      #00 pc 0010c9cc  /data/app/~~71R0M9EKEhkJ5SVPkwVq5g==/ax.synt.dropexpress_driver_app_v2-Mqw-IzzlIYD3W5_N0veLnA==/base.apk!libmapbox-gl.so (offset 0x356e000) (BuildId: bfa67f1b2e3e198fb206fad41dace360509cedf7)
      #01 pc 0010c8b0  /data/app/~~71R0M9EKEhkJ5SVPkwVq5g==/ax.synt.dropexpress_driver_app_v2-Mqw-IzzlIYD3W5_N0veLnA==/base.apk!libmapbox-gl.so (offset 0x356e000) (BuildId: bfa67f1b2e3e198fb206fad41dace360509cedf7)
      #02 pc 0007a3ad  /data/app/~~71R0M9EKEhkJ5SVPkwVq5g==/ax.synt.dropexpress_driver_app_v2-Mqw-IzzlIYD3W5_N0veLnA==/base.apk!libmapbox-gl.so (offset 0x356e000) (BuildId: bfa67f1b2e3e198fb206fad41dace360509cedf7)
      #03 pc 02055828  /memfd:jit-cache (deleted) (offset 0x2000000) (art_jni_trampoline+104)
      #04 pc 020480c0  /memfd:jit-cache (deleted) (offset 0x2000000) (com.mapbox.mapboxsdk.maps.renderer.MapRenderer.onDrawFrame+96)
      #05 pc 02051079  /memfd:jit-cache (deleted) (offset 0x2000000) (com.mapbox.mapboxsdk.maps.renderer.glsurfaceview.GLSurfaceViewMapRenderer.onDrawFrame+41)
      #06 pc 0204dc89  /memfd:jit-cache (deleted) (offset 0x2000000) (com.mapbox.mapboxsdk.maps.renderer.glsurfaceview.MapboxGLSurfaceView$GLThread.guardedRun+3513)
      #07 pc 0013b922  /apex/com.android.art/lib/libart.so (art_quick_invoke_stub+338) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
      #08 pc 001d0381  /apex/com.android.art/lib/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+241) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
      #09 pc 00386701  /apex/com.android.art/lib/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+385) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
      #10 pc 0036fc18  /apex/com.android.art/lib/libart.so (art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool, bool) (.llvm.16375758241455872412)+648) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
      #11 pc 00379c1f  /apex/com.android.art/lib/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+207) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
      #12 pc 0037aa20  /apex/com.android.art/lib/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+1040) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
      #13 pc 007a4179  /apex/com.android.art/lib/libart.so (MterpInvokeDirect+633) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
      #14 pc 001358a1  /apex/com.android.art/lib/libart.so (mterp_op_invoke_direct+33) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
      #15 pc 0012e018  [anon:dalvik-classes9.dex extracted in memory from /data/app/~~71R0M9EKEhkJ5SVPkwVq5g==/ax.synt.dropexpress_driver_app_v2-Mqw-IzzlIYD3W5_N0veLnA==/base.apk!classes9.dex] (com.mapbox.mapboxsdk.maps.renderer.glsurfaceview.MapboxGLSurfaceView$GLThread.run+52)
      #16 pc 0036fb02  /apex/com.android.art/lib/libart.so (art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool, bool) (.llvm.16375758241455872412)+370) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
      #17 pc 00379b00  /apex/com.android.art/lib/libart.so (art::interpreter::EnterInterpreterFromEntryPoint(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*)+176) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
      #18 pc 0078b325  /apex/com.android.art/lib/libart.so (artQuickToInterpreterBridge+1061) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
      #19 pc 0014220d  /apex/com.android.art/lib/libart.so (art_quick_to_interpreter_bridge+77) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
      #20 pc 0013b922  /apex/com.android.art/lib/libart.so (art_quick_invoke_stub+338) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
      #21 pc 001d0381  /apex/com.android.art/lib/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+241) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
      #22 pc 0062f37c  /apex/com.android.art/lib/libart.so (art::JValue art::InvokeVirtualOrInterfaceWithJValues<art::ArtMethod*>(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, art::ArtMethod*, jvalue const*)+620) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
      #23 pc 0062f595  /apex/com.android.art/lib/libart.so (art::JValue art::InvokeVirtualOrInterfaceWithJValues<_jmethodID*>(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, jvalue const*)+85) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
      #24 pc 00697701  /apex/com.android.art/lib/libart.so (art::Thread::CreateCallback(void*)+1537) (BuildId: 8191579dfafff37a5cbca70f9a73020f)
      #25 pc 000e6974  /apex/com.android.runtime/lib/bionic/libc.so (__pthread_start(void*)+100) (BuildId: 6e3a0180fa6637b68c0d181c343e6806)
      #26 pc 00078567  /apex/com.android.runtime/lib/bionic/libc.so (__start_thread+71) (BuildId: 6e3a0180fa6637b68c0d181c343e6806)
Restarted application in 9,569ms.
felix-ht commented 1 year ago

should be fixed on master

Diielle commented 1 year ago

should be fixed on master

With the commit of 6 April 2023 (#1293), the crashes in my app had disappeared, But after the next two commits I notice crashes again...

felix-ht commented 1 year ago

@ellexaD can you post your error message?

Diielle commented 1 year ago

@ellexaD can you post your error message?

Yes, @felix-ht Thank


*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: ''
Revision: '0'
ABI: 'arm64'
Timestamp: 2023-04-26 14:31:08+0200
pid: 25333, tid: 25965, name: GLThread 71543  >>> com.example.guide <<<
uid: 10267
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
Cause: null pointer dereference
    x0  0000000000000000  x1  0000000000000000  x2  0000000000000001  x3  0000007e94692530
    x4  0000007e0bee7ab8  x5  000000000000004a  x6  4915ff55284901ff  x7  7f7f7f7f7f7f7f7f
    x8  0000000000000000  x9  0000000000000001  x10 0000000000000001  x11 0000000000000000
    x12 0000007e0bee7c54  x13 0000007e0bee7c48  x14 0000000000000000  x15 0000000000000000
    x16 0000007e0c51cf70  x17 0000007f190ee330  x18 0000007cf6748000  x19 0000007e0bee7bd8
    x20 0000000000000000  x21 0000000000000001  x22 0000007e0bee7ec0  x23 0000007e2c18609d
    x24 0000000000000004  x25 0000007e0bee9020  x26 0000007e2c6814b0  x27 0000000000000001
    x28 0000007e0bee7c50  x29 0000007e0bee7b70
    sp  0000007e0bee7b60  lr  0000007e0c10781c  pc  0000007e0c107948
backtrace:
      #00 pc 000000000011d948  /data/app/com.example.guide-HBJH9x5j1blWOEOqnW_haw==/lib/arm64/libmapbox-gl.so (BuildId: 5340fab4c92fd87f8304775de4bc95627e863fd7)
      #01 pc 000000000011d818  /data/app/com.example.guide-HBJH9x5j1blWOEOqnW_haw==/lib/arm64/libmapbox-gl.so (BuildId: 5340fab4c92fd87f8304775de4bc95627e863fd7)
      #02 pc 00000000000adc2c  /data/app/com.example.guide-HBJH9x5j1blWOEOqnW_haw==/lib/arm64/libmapbox-gl.so (BuildId: 5340fab4c92fd87f8304775de4bc95627e863fd7)
      #03 pc 0000000000140350  /apex/com.android.runtime/lib64/libart.so (art_quick_generic_jni_trampoline+144) (BuildId: 64f7ca74f522ef2c933e507c8abf7ef4)
      #04 pc 0000000000137334  /apex/com.android.runtime/lib64/libart.so (art_quick_invoke_stub+548) (BuildId: 64f7ca74f522ef2c933e507c8abf7ef4)
      #05 pc 0000000000145fec  /apex/com.android.runtime/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+244) (BuildId: 64f7ca74f522ef2c933e507c8abf7ef4)
      #06 pc 00000000002e3800  /apex/com.android.runtime/lib64/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+384) (BuildId: 64f7ca74f522ef2c933e507c8abf7ef4)
      #07 pc 00000000002dea60  /apex/com.android.runtime/lib64/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+892) (BuildId: 64f7ca74f522ef2c933e507c8abf7ef4)
      #08 pc 00000000005a3ae4  /apex/com.android.runtime/lib64/libart.so (MterpInvokeDirect+424) (BuildId: 64f7ca74f522ef2c933e507c8abf7ef4)
      #09 pc 0000000000131914  /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_direct+20) (BuildId: 64f7ca74f522ef2c933e507c8abf7ef4)
      #10 pc 000000000032ecf4  [anon:dalvik-classes6.dex extracted in memory from /data/app/com.example.guide-HBJH9x5j1blWOEOqnW_haw==/base.apk!classes6.dex] (com.mapbox.mapboxsdk.maps.renderer.MapRenderer.onDrawFrame+12)
      #11 pc 00000000005a26d4  /apex/com.android.runtime/lib64/libart.so (MterpInvokeSuper+2248) (BuildId: 64f7ca74f522ef2c933e507c8abf7ef4)
      #12 pc 0000000000131894  /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_super+20) (BuildId: 64f7ca74f522ef2c933e507c8abf7ef4)
      #13 pc 00000000003309c8  [anon:dalvik-classes6.dex extracted in memory from /data/app/com.example.guide-HBJH9x5j1blWOEOqnW_haw==/base.apk!classes6.dex] (com.mapbox.mapboxsdk.maps.renderer.glsurfaceview.GLSurfaceViewMapRenderer.onDrawFrame)
      #14 pc 00000000005a329c  /apex/com.android.runtime/lib64/libart.so (MterpInvokeInterface+1788) (BuildId: 64f7ca74f522ef2c933e507c8abf7ef4)
      #15 pc 0000000000131a14  /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_interface+20) (BuildId: 64f7ca74f522ef2c933e507c8abf7ef4)
      #16 pc 000000000033143e  [anon:dalvik-classes6.dex extracted in memory from /data/app/com.example.guide-HBJH9x5j1blWOEOqnW_haw==/base.apk!classes6.dex] (com.mapbox.mapboxsdk.maps.renderer.glsurfaceview.MapboxGLSurfaceView$GLThread.guardedRun+994)
      #17 pc 00000000005a3d88  /apex/com.android.runtime/lib64/libart.so (MterpInvokeDirect+1100) (BuildId: 64f7ca74f522ef2c933e507c8abf7ef4)
      #18 pc 0000000000131914  /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_direct+20) (BuildId: 64f7ca74f522ef2c933e507c8abf7ef4)
      #19 pc 00000000003319c0  [anon:dalvik-classes6.dex extracted in memory from /data/app/com.example.guide-HBJH9x5j1blWOEOqnW_haw==/base.apk!classes6.dex] (com.mapbox.mapboxsdk.maps.renderer.glsurfaceview.MapboxGLSurfaceView$GLThread.run+48)
      #20 pc 00000000002b4b14  /apex/com.android.runtime/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEbb.llvm.10247671929900336896+240) (BuildId: 64f7ca74f522ef2c933e507c8abf7ef4)
      #21 pc 0000000000592d24  /apex/com.android.runtime/lib64/libart.so (artQuickToInterpreterBridge+1032) (BuildId: 64f7ca74f522ef2c933e507c8abf7ef4)
      #22 pc 0000000000140468  /apex/com.android.runtime/lib64/libart.so (art_quick_to_interpreter_bridge+88) (BuildId: 64f7ca74f522ef2c933e507c8abf7ef4)
      #23 pc 0000000000137334  /apex/com.android.runtime/lib64/libart.so (art_quick_invoke_stub+548) (BuildId: 64f7ca74f522ef2c933e507c8abf7ef4)
      #24 pc 0000000000145fec  /apex/com.android.runtime/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+244) (BuildId: 64f7ca74f522ef2c933e507c8abf7ef4)
      #25 pc 00000000004b171c  /apex/com.android.runtime/lib64/libart.so (art::(anonymous namespace)::InvokeWithArgArray(art::ScopedObjectAccessAlreadyRunnable const&, art::ArtMethod*, art::(anonymous namespace)::ArgArray*, art::JValue*, char const*)+104) (BuildId: 64f7ca74f522ef2c933e507c8abf7ef4)
      #26 pc 00000000004b2830  /apex/com.android.runtime/lib64/libart.so (art::InvokeVirtualOrInterfaceWithJValues(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, jvalue const*)+416) (BuildId: 64f7ca74f522ef2c933e507c8abf7ef4)
      #27 pc 00000000004f31f8  /apex/com.android.runtime/lib64/libart.so (art::Thread::CreateCallback(void*)+1176) (BuildId: 64f7ca74f522ef2c933e507c8abf7ef4)
      #28 pc 00000000000e6b50  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+36) (BuildId: b9254a9320cb794714fda3ae99886b88)
      #29 pc 0000000000084c6c  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64) (BuildId: b9254a9320cb794714fda3ae99886b88)
Lost connection to device.```
Diielle commented 1 year ago

@felix-ht I am using BLoC logic for state management, is it advisable to use another management option?

felix-ht commented 1 year ago

Shouldn't matter, internally all the frameworks do is to trigger widget rebuilds, so use whichever you like.

Are you sure u are on master?

Diielle commented 1 year ago

OK... I think so, in pubspec I include mapbox_gl:` ^0.16.0

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.