mapbox-maps-ios icon indicating copy to clipboard operation
mapbox-maps-ios copied to clipboard

Crash: EXC_BAD_ACCESS mapbox::sqlite::Query::_run() in MapboxCommon

Open jeevan2628 opened this issue 10 months ago • 14 comments

Environment

  • Xcode version: 15.4
  • iOS version: 18.0+
  • Devices affected: iPhone
  • Maps SDK Version: 11.6.0+
  • Device State: Background

Observed behavior and steps to reproduce

Observed below crash reported in Firebase. So far more than 50 instances in last 90 days.

Crashed: com.mapbox.common.Unspecified Worker 1
0  MapboxCommon                   0x2bf2c (Missing UUID 6e909b978fe93577ad0b0bc34eca5a3b)
1  MapboxCommon                   0x2b57c (Missing UUID 6e909b978fe93577ad0b0bc34eca5a3b)
2  MapboxCommon                   0x2ad58 (Missing UUID 6e909b978fe93577ad0b0bc34eca5a3b)
3  MapboxCommon                   0x3308c (Missing UUID 6e909b978fe93577ad0b0bc34eca5a3b)
4  MapboxCommon                   0x327c0 (Missing UUID 6e909b978fe93577ad0b0bc34eca5a3b)
5  MapboxCommon                   0x3f6b4 (Missing UUID 6e909b978fe93577ad0b0bc34eca5a3b)
6  MapboxCommon                   0xdd9c (Missing UUID 6e909b978fe93577ad0b0bc34eca5a3b)
7  MapboxCommon                   0x282f94 mapbox::sqlite::Query::_run() + 44
8  MapboxCommon                   0x17d404 mapbox::common::internal::scheduler::override::Set(std::__1::function<std::__1::unique_ptr<mapbox::common::Scheduler, std::__1::default_delete<mapbox::common::Scheduler>> (mapbox::common::ThreadServiceType)>, std::__1::function<std::__1::unique_ptr<mapbox::common::Scheduler, std::__1::default_delete<mapbox::common::Scheduler>> (mapbox::common::ThreadServiceType)>, std::__1::function<std::__1::unique_ptr<mapbox::common::Scheduler, std::__1::default_delete<mapbox::common::Scheduler>> (mapbox::common::Scheduler::DestructionPolicy, mapbox::common::ThreadServiceType)>) + 16216
9  MapboxCommon                   0x2fff44 mapbox::common::TileStoreFactory::replaceImpl(std::__1::unique_ptr<mapbox::common::TileStoreFactory::Impl, std::__1::default_delete<mapbox::common::TileStoreFactory::Impl>>) + 244456
10 MapboxCommon                   0x3008d8 mapbox::common::TileStoreFactory::replaceImpl(std::__1::unique_ptr<mapbox::common::TileStoreFactory::Impl, std::__1::default_delete<mapbox::common::TileStoreFactory::Impl>>) + 246908
11 MapboxCommon                   0x183d68 mapbox::common::SystemInformationProvider::getSystemInformation() + 11544
12 libsystem_pthread.dylib        0x17d0 _pthread_start + 136
13 libsystem_pthread.dylib        0x1480 thread_start + 8
        

Image

Notes / preliminary analysis

Unable to replicate the crash.

jeevan2628 avatar Feb 26 '25 13:02 jeevan2628

Thanks for the report. Internal ticket to track: CORESDK-3390

OdNairy avatar Feb 27 '25 09:02 OdNairy

@jeevan2628 Could we have an exact Maps SDK version? Which style are you using?

OdNairy avatar Feb 27 '25 09:02 OdNairy

@jeevan2628 Could we have an exact Maps SDK version? Which style are you using?

Hello @OdNairy , I am using Mapbox Maps SDK version 11.8.0 and with custom Style URI loaded.

jeevan2628 avatar Feb 28 '25 13:02 jeevan2628

@jeevan2628 The internal team says that a few similar issues were addressed in the latest Maps SDK version. Could you check it out?

OdNairy avatar Mar 04 '25 11:03 OdNairy

Hi @OdNairy Kindly let us know the version that we have to upgrade. Thanks a lot for addressing issue🙏🏼.

jeevan2628 avatar Mar 05 '25 09:03 jeevan2628

We are talking about 11.10.x – the latest stable with some fixes in the 11.11.0 (which is in the beta yet)

OdNairy avatar Mar 05 '25 11:03 OdNairy

Hi @OdNairy & Mapbox team, Apparently, the above issue still circulating in Firebase reports. We have MapboxMaps SDK version 11.12.1 in production. Can you please take a look ? Thanks!

jeevan2628 avatar Jun 30 '25 11:06 jeevan2628

@jeevan2628 could you share the latest crashlog? We need the complete crashlog – just a stacktrace is not enough. It also might help if you share a few crash reports

OdNairy avatar Jun 30 '25 12:06 OdNairy

Hi @OdNairy , Thank you for quick reply ! I have downloaded the stack trace from Firebase and attached here. issue_2d288d9dbaa3eabb892a9e3e88a9d91e_crash_session_047662f4690841cd919fb1246c4a15f4_DNE_0_v2_stacktrace.txt At this moment i don't have crash reports.

jeevan2628 avatar Jun 30 '25 13:06 jeevan2628

@jeevan2628 May I also ask you to share the iOS distribution data? When the very first reports happened?

OdNairy avatar Jun 30 '25 13:06 OdNairy

@OdNairy May I also ask you to share the iOS distribution data?- Sry, I am not sure about the expectation. When the very first reports happened? - Starting from the month of October 2024

jeevan2628 avatar Jun 30 '25 16:06 jeevan2628

May I also ask you to share the iOS distribution data?- Sry, I am not sure about the expectation.

I mean affected iOS versions.

OdNairy avatar Jun 30 '25 18:06 OdNairy

May I also ask you to share the iOS distribution data?- Sry, I am not sure about the expectation.

I mean affected iOS versions.

Image

jeevan2628 avatar Jul 01 '25 07:07 jeevan2628

Oh, this is also 100% in the background mode Thanks for details!

OdNairy avatar Jul 01 '25 08:07 OdNairy