Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Android sometimes crashes while in background with a SIGSEGV error #701

Open
@reyalpsirc

Description

@reyalpsirc

Library version: 9.6.1

We have a launched application which uses the react-native version linked with the 9.6.1 version of this library and we have been seeing reports of Android crashes while the App was in use in background.
Our App uses GPS while in background to track user exercises and so, it needs to keep updating the map in the background (to keep updating the user path).

After symbolicating the crash, this is what shows up on Bugsnag:

SIGSEGV Segmentation violation (invalid memory reference) 
	libmapbox-gl std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> >::basic_string(std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > const&)
	libmapbox-gl mbgl::style::Source::getID() const
	libmapbox-gl _ZZN3jni16MakeNativeMethodIZNS_17NativeMethodMakerIMZNS_30NativePeerMemberFunctionMethodIMN4mbgl7android5LayerEFNS_6UniqueINS_6ObjectINS_9StringTagEEENS_17DefaultRefDeleterIXadL_ZN7_JNIEnv14DeleteLocalRefEP8_jobjectEEEEEERSB_EXadL_ZNS5_5getIdESG_EEEclIS5_S5_vEEDaRKNS_5FieldIT0_xEEEUlSG_RNS7_IS5_EEE_KFSF_SG_SR_EJEEclISS_EEDaPKcRKT_EUlPSB_PNS_7jobjectEE_EEDaSY_SY_S11_PNSt6__ndk19enable_ifIXsr3std8is_classISZ_EE5valueEvE4typeEENUlTyS12_DpT_E_8__invokeIJS14_EEEDaS12_S1C_

How can we fix this or bypass this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions