This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Fatal signal with map in Activity #14001
Copy link
Copy link
Closed
Description
Steps to reproduce
- Open activity, where map is initialized.
- Reopen the same activity.
Expected behavior
- Map is shown without any errors.
Actual behavior
App crashes with fatal signal 11.
2019-02-27 16:59:46.650 24997-25014/? A/libc: Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x6579616c in tid 25014 (FinalizerDaemon), pid 24997 (ee.apico.quest)
2019-02-27 16:59:46.940 25352-25352/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
2019-02-27 16:59:46.940 25352-25352/? A/DEBUG: Build fingerprint: 'google/sdk_gphone_x86/generic_x86:9/PSR1.180720.075/5124027:user/release-keys'
2019-02-27 16:59:46.940 25352-25352/? A/DEBUG: Revision: '0'
2019-02-27 16:59:46.940 25352-25352/? A/DEBUG: ABI: 'x86'
2019-02-27 16:59:46.940 25352-25352/? A/DEBUG: pid: 24997, tid: 25014, name: FinalizerDaemon >>> ee.apico.quest <<<
2019-02-27 16:59:46.940 25352-25352/? A/DEBUG: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x6579616c
2019-02-27 16:59:46.940 25352-25352/? A/DEBUG: eax 00002f92 ebx c6c37bf0 ecx c4c76e80 edx 6579616c
2019-02-27 16:59:46.940 25352-25352/? A/DEBUG: edi c32caaf0 esi c857fc00
2019-02-27 16:59:46.940 25352-25352/? A/DEBUG: ebp cc776728 esp cc7766fc eip 6579616c
2019-02-27 16:59:47.055 25352-25352/? A/DEBUG: backtrace:
2019-02-27 16:59:47.055 25352-25352/? A/DEBUG: #00 pc 6579616c <unknown>
2019-02-27 16:59:47.055 25352-25352/? A/DEBUG: #01 pc 0002288c /data/app/ee.apico.quest-hotYBzpM5Aus7xsWiZSaGA==/lib/x86/libmapbox-gl.so
2019-02-27 16:59:47.055 25352-25352/? A/DEBUG: #02 pc 00064d89 /data/app/ee.apico.quest-hotYBzpM5Aus7xsWiZSaGA==/lib/x86/libmapbox-gl.so
2019-02-27 16:59:47.055 25352-25352/? A/DEBUG: #03 pc 00064dd1 /data/app/ee.apico.quest-hotYBzpM5Aus7xsWiZSaGA==/lib/x86/libmapbox-gl.so
2019-02-27 16:59:47.055 25352-25352/? A/DEBUG: #04 pc 0015381b /data/app/ee.apico.quest-hotYBzpM5Aus7xsWiZSaGA==/lib/x86/libmapbox-gl.so
2019-02-27 16:59:47.055 25352-25352/? A/DEBUG: #05 pc 000c7539 /data/app/ee.apico.quest-hotYBzpM5Aus7xsWiZSaGA==/lib/x86/libmapbox-gl.so
2019-02-27 16:59:47.055 25352-25352/? A/DEBUG: #06 pc 000c771d /data/app/ee.apico.quest-hotYBzpM5Aus7xsWiZSaGA==/lib/x86/libmapbox-gl.so
2019-02-27 16:59:47.055 25352-25352/? A/DEBUG: #07 pc 000c4424 /data/app/ee.apico.quest-hotYBzpM5Aus7xsWiZSaGA==/lib/x86/libmapbox-gl.so
2019-02-27 16:59:47.055 25352-25352/? A/DEBUG: #08 pc 0001f07a /data/app/ee.apico.quest-hotYBzpM5Aus7xsWiZSaGA==/lib/x86/libmapbox-gl.so
2019-02-27 16:59:47.055 25352-25352/? A/DEBUG: #09 pc 0001f131 /data/app/ee.apico.quest-hotYBzpM5Aus7xsWiZSaGA==/lib/x86/libmapbox-gl.so
2019-02-27 16:59:47.055 25352-25352/? A/DEBUG: #10 pc 00022370 /data/app/ee.apico.quest-hotYBzpM5Aus7xsWiZSaGA==/lib/x86/libmapbox-gl.so
2019-02-27 16:59:47.055 25352-25352/? A/DEBUG: #11 pc 005f6b97 /system/lib/libart.so (art_quick_generic_jni_trampoline+71)
2019-02-27 16:59:47.055 25352-25352/? A/DEBUG: #12 pc 005f0b82 /system/lib/libart.so (art_quick_invoke_stub+338)
2019-02-27 16:59:47.055 25352-25352/? A/DEBUG: #13 pc 000a30ce /system/lib/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+222)
2019-02-27 16:59:47.055 25352-25352/? A/DEBUG: #14 pc 0029bca2 /system/lib/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+338)
2019-02-27 16:59:47.055 25352-25352/? A/DEBUG: #15 pc 00293e48 /system/lib/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+1048)
2019-02-27 16:59:47.056 25352-25352/? A/DEBUG: #16 pc 005bc493 /system/lib/libart.so (MterpInvokeVirtual+691)
2019-02-27 16:59:47.056 25352-25352/? A/DEBUG: #17 pc 005e2d21 /system/lib/libart.so (ExecuteMterpImpl+14241)
2019-02-27 16:59:47.056 25352-25352/? A/DEBUG: #18 pc 000aec18 /system/framework/boot-core-libart.vdex (java.lang.Daemons$FinalizerDaemon.doFinalize+22)
2019-02-27 16:59:47.056 25352-25352/? A/DEBUG: #19 pc 00266216 /system/lib/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEb.llvm.2093054539+598)
2019-02-27 16:59:47.056 25352-25352/? A/DEBUG: #20 pc 0026c79c /system/lib/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+220)
2019-02-27 16:59:47.056 25352-25352/? A/DEBUG: #21 pc 00293e2b /system/lib/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+1019)
2019-02-27 16:59:47.056 25352-25352/? A/DEBUG: #22 pc 005bda66 /system/lib/libart.so (MterpInvokeDirect+342)
2019-02-27 16:59:47.056 25352-25352/? A/DEBUG: #23 pc 005e2e21 /system/lib/libart.so (ExecuteMterpImpl+14497)
2019-02-27 16:59:47.056 25352-25352/? A/DEBUG: #24 pc 000aed00 /system/framework/boot-core-libart.vdex (java.lang.Daemons$FinalizerDaemon.runInternal+164)
2019-02-27 16:59:47.057 25352-25352/? A/DEBUG: #25 pc 00266216 /system/lib/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEb.llvm.2093054539+598)
2019-02-27 16:59:47.057 25352-25352/? A/DEBUG: #26 pc 0026c79c /system/lib/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+220)
2019-02-27 16:59:47.057 25352-25352/? A/DEBUG: #27 pc 00293e2b /system/lib/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+1019)
2019-02-27 16:59:47.057 25352-25352/? A/DEBUG: #28 pc 005bc493 /system/lib/libart.so (MterpInvokeVirtual+691)
2019-02-27 16:59:47.057 25352-25352/? A/DEBUG: #29 pc 005e2d21 /system/lib/libart.so (ExecuteMterpImpl+14241)
2019-02-27 16:59:47.057 25352-25352/? A/DEBUG: #30 pc 000aeaf8 /system/framework/boot-core-libart.vdex (java.lang.Daemons$Daemon.run+20)
2019-02-27 16:59:47.057 25352-25352/? A/DEBUG: #31 pc 00266216 /system/lib/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEb.llvm.2093054539+598)
2019-02-27 16:59:47.057 25352-25352/? A/DEBUG: #32 pc 0026c79c /system/lib/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+220)
2019-02-27 16:59:47.057 25352-25352/? A/DEBUG: #33 pc 00293e2b /system/lib/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+1019)
2019-02-27 16:59:47.057 25352-25352/? A/DEBUG: #34 pc 005bd574 /system/lib/libart.so (MterpInvokeInterface+1444)
2019-02-27 16:59:47.057 25352-25352/? A/DEBUG: #35 pc 005e2f21 /system/lib/libart.so (ExecuteMterpImpl+14753)
2019-02-27 16:59:47.057 25352-25352/? A/DEBUG: #36 pc 000ca806 /system/framework/boot.vdex (java.lang.Thread.run+12)
2019-02-27 16:59:47.057 25352-25352/? A/DEBUG: #37 pc 00266216 /system/lib/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEb.llvm.2093054539+598)
2019-02-27 16:59:47.057 25352-25352/? A/DEBUG: #38 pc 0026c68e /system/lib/libart.so (art::interpreter::EnterInterpreterFromEntryPoint(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*)+126)
2019-02-27 16:59:47.057 25352-25352/? A/DEBUG: #39 pc 005a953d /system/lib/libart.so (artQuickToInterpreterBridge+1277)
2019-02-27 16:59:47.057 25352-25352/? A/DEBUG: #40 pc 005f6c6d /system/lib/libart.so (art_quick_to_interpreter_bridge+77)
2019-02-27 16:59:47.057 25352-25352/? A/DEBUG: #41 pc 005f0b82 /system/lib/libart.so (art_quick_invoke_stub+338)
2019-02-27 16:59:47.057 25352-25352/? A/DEBUG: #42 pc 000a30ce /system/lib/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+222)
2019-02-27 16:59:47.057 25352-25352/? A/DEBUG: #43 pc 004d3349 /system/lib/libart.so (art::(anonymous namespace)::InvokeWithArgArray(art::ScopedObjectAccessAlreadyRunnable const&, art::ArtMethod*, art::(anonymous namespace)::ArgArray*, art::JValue*, char const*)+89)
2019-02-27 16:59:47.058 25352-25352/? A/DEBUG: #44 pc 004d45f7 /system/lib/libart.so (art::InvokeVirtualOrInterfaceWithJValues(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, jvalue*)+471)
2019-02-27 16:59:47.058 25352-25352/? A/DEBUG: #45 pc 0050958c /system/lib/libart.so (art::Thread::CreateCallback(void*)+1484)
2019-02-27 16:59:47.058 25352-25352/? A/DEBUG: #46 pc 0008f065 /system/lib/libc.so (__pthread_start(void*)+53)
2019-02-27 16:59:47.058 25352-25352/? A/DEBUG: #47 pc 0002485b /system/lib/libc.so (__start_thread+75)
Configuration
Android versions: 25, 28
Device models: Pixel 2 emulator, Nexus 5x emulator, Galaxy s9 (real device)
Mapbox SDK versions:
mapbox-sdk-services:4.3.0
mapbox-android-sdk:7.1.2
mapbox-android-plugin-locationlayer:0.7.0
mapbox-android-plugin-annotation-v7:0.5.0
All mapView lifecycle methods are being called including onDestroy.
Reacted by Roman Ismagilov and tests1028

Activity
Pomis commentedon Feb 27, 2019
Having the same problem
tobrun commentedon Mar 4, 2019
I'm seeing that your are using both the LocationLayerPlugin in combination with v7.x of the Mapbox Maps SDK for Android. With 7.x we migrated this plugin to be part of the SDK as part of the LocationComponent. See our migration guide for more information here.
Afaik this should solve the issue you are seeing, closing this issue as answered and please do reach out if this doesn't fix the crash.
djavid commentedon Mar 5, 2019
Thank you for answer @tobrun . We have not been using this plugin, I still get error on the same screen after removing it.
djavid commentedon Mar 5, 2019
This is another error
djavid commentedon Mar 5, 2019
Also got this type of error
tobrun commentedon Mar 5, 2019
Would you be able to provide an minimal reproducible example? I'm not able to reproduce with the information given.
djavid commentedon Mar 6, 2019
Actually it is complicated to provide you code, but i can describe flow. We have ShowTaskActivity where map layout is inflated on open. Switching to next tasks is held inside this activity. When next task is opened map clears and redraws corresponding data. Also we have a menu activity (ShowTaskList) from where user can switch to any other task, this is made by sending new intent to existing ShowTaskActivity, which handles it in onNewIntent method. After getting intent we re-add map layout and reinitialize all styles, layers, etc.
tobrun commentedon Mar 6, 2019
Since you aren't able to give more information, I can only indicate that you are probably calling methods on Mapbox SDK components when you aren't allowed. You will have to debug which line at what time is triggering this crash. This can be a number of things as calling updates on sources/layers while the underlying style has been removed. or trying to update when the map isn't ready or ..
Happy to look more and reopen if a minimal reproducible example can be provided.
Pomis commentedon Mar 6, 2019
My problem was that I was reinitializing the map each time in the
onNewIntentmethod.tobrun commentedon Mar 6, 2019
@Pomis most important takeaways when trying to recreate the viewhiearchy you need to call the required lifecylce methods to stop/start rendering. Concretely when a view is being attached you will need to call:
When that view will be detached (before the actual detach)
When that view gets reattached
When that view can be disposed
tests1028 commentedon May 14, 2019
i got this error
Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x6579616c in tid 25014 (FinalizerDaemon), pid 24997
Pomis commentedon May 14, 2019
Maybe if you provide a little bit more information, there will be higher chance to resolve your problem
tests1028 commentedon May 14, 2019
i previously used mapbox 6.5+ version. i got fatal signal error. they suggested upgrade version 7.+. so i just updated my mapbox lib project( navigation lib and navigationUI library) project.
inside fragment i used map and close open close open it's crashed second time. the error is fatal signal 11.