mapbox/mapbox-gl-native

Native iOS crash when downloading offline regions

felix-mittermeier opened this issue · 3 comments

There is a native crash on iOS when multiple offline region are downloaded, canceled and restarted again simultaneously.
It's hard to provide a minimum reproducible example but maybe the exact log can already help to determine the cause of this. Looks like some kind of wrong pointer reference error.

Summary:

Removing offline pack notification observers
Runner(13750,0x1050eb880) malloc: *** error for object 0x282468840: pointer being freed was not allocated
Runner(13750,0x1050eb880) malloc: *** set a breakpoint in malloc_error_break to debug
* thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGABRT
    frame #0: 0x00000001ba42a7b0 libsystem_kernel.dylib`__pthread_kill + 8
libsystem_kernel.dylib`__pthread_kill:
->  0x1ba42a7b0 <+8>:  b.lo   0x1ba42a7cc               ; <+36>
    0x1ba42a7b4 <+12>: stp    x29, x30, [sp, #-0x10]!
    0x1ba42a7b8 <+16>: mov    x29, sp
    0x1ba42a7bc <+20>: bl     0x1ba4071fc               ; cerror_nocancel
Target 0: (Runner) stopped.
Lost connection to device.
Exited (sigterm)

Extended stack trace:

Click to show the whole log
Exception Type: EXC_CRASH (SIGABRT)
Crashed Thread: 0

Application Specific Information:
Runner > Runner(34050,0x102f10580) malloc: *** error for object 0x163039000: pointer being freed was not allocated


Thread 0 Crashed:
0   libsystem_kernel.dylib          0x38259db78         __pthread_kill
1   libsystem_pthread.dylib         0x3f51d53b8         pthread_kill
2   libsystem_c.dylib               0x32946c518         abort
3   libsystem_malloc.dylib          0x3376e8a00         malloc_vreport
4   libsystem_malloc.dylib          0x3376e8bd8         malloc_report
5   libsystem_malloc.dylib          0x3376cde34         free
6   Mapbox                          0x1037df318         mbgl::style::StyleData::~StyleData
7   Mapbox                          0x103522650         mbgl::OfflineDownloadStatus::~OfflineDownloadStatus
8   Mapbox                          0x1038e049c         MBGLOfflineDownloadObserver::statusChanged
9   libdispatch.dylib               0x312b8fe64         _dispatch_call_block_and_release
10  libdispatch.dylib               0x312b91a28         _dispatch_client_callout
11  libdispatch.dylib               0x312b9ff44         _dispatch_main_queue_drain
12  libdispatch.dylib               0x312b9fb94         _dispatch_main_queue_callback_4CF
13  CoreFoundation                  0x3131e62ec         __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__
14  CoreFoundation                  0x3131a01f0         __CFRunLoopRun
15  CoreFoundation                  0x3131b36b4         CFRunLoopRunSpecific
16  GraphicsServices                0x34b305370         GSEventRunModal
17  UIKitCore                       0x317f89e84         -[UIApplication _run]
18  UIKitCore                       0x317d0b5e8         UIApplicationMain
19  Runner                          0x202cad824         <redacted>
20  <unknown>                       0x102ebdce4         <redacted>

Thread 0 Crashed:
0   libsystem_kernel.dylib          0x38259db78         __pthread_kill
1   libsystem_pthread.dylib         0x3f51d53b8         pthread_kill
2   libsystem_c.dylib               0x32946c518         abort
3   libsystem_malloc.dylib          0x3376e8a00         malloc_vreport
4   libsystem_malloc.dylib          0x3376e8bd8         malloc_report
5   libsystem_malloc.dylib          0x3376cde34         free
6   Mapbox                          0x1037df318         mbgl::style::StyleData::~StyleData
7   Mapbox                          0x103522650         mbgl::OfflineDownloadStatus::~OfflineDownloadStatus
8   Mapbox                          0x1038e049c         MBGLOfflineDownloadObserver::statusChanged
9   libdispatch.dylib               0x312b8fe64         _dispatch_call_block_and_release
10  libdispatch.dylib               0x312b91a28         _dispatch_client_callout
11  libdispatch.dylib               0x312b9ff44         _dispatch_main_queue_drain
12  libdispatch.dylib               0x312b9fb94         _dispatch_main_queue_callback_4CF
13  CoreFoundation                  0x3131e62ec         __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__
14  CoreFoundation                  0x3131a01f0         __CFRunLoopRun
15  CoreFoundation                  0x3131b36b4         CFRunLoopRunSpecific
16  GraphicsServices                0x34b305370         GSEventRunModal
17  UIKitCore                       0x317f89e84         -[UIApplication _run]
18  UIKitCore                       0x317d0b5e8         UIApplicationMain
19  Runner                          0x202cad824         <redacted>
20  <unknown>                       0x102ebdce4         <redacted>

Thread 1
0   libsystem_kernel.dylib          0x382597ab4         __workq_kernreturn
1   libsystem_pthread.dylib         0x3f51cf104         _pthread_wqthread

Thread 2
0   libsystem_kernel.dylib          0x382597ab4         __workq_kernreturn
1   libsystem_pthread.dylib         0x3f51cf104         _pthread_wqthread

Thread 3
0   libsystem_kernel.dylib          0x382597ab4         __workq_kernreturn
1   libsystem_pthread.dylib         0x3f51cf104         _pthread_wqthread

Thread 4
0   libsystem_kernel.dylib          0x382597ab4         __workq_kernreturn
1   libsystem_pthread.dylib         0x3f51cf104         _pthread_wqthread

Thread 5 name: com.apple.uikit.eventfetch-thread
0   libsystem_kernel.dylib          0x3825974e0         mach_msg_trap
1   libsystem_kernel.dylib          0x382597b20         mach_msg
2   CoreFoundation                  0x31319b81c         __CFRunLoopServiceMachPort
3   CoreFoundation                  0x31319fca8         __CFRunLoopRun
4   CoreFoundation                  0x3131b36b4         CFRunLoopRunSpecific
5   Foundation                      0x316188410         -[NSRunLoop(NSRunLoop) runMode:beforeDate:]
6   Foundation                      0x3161c9ca8         -[NSRunLoop(NSRunLoop) runUntilDate:]
7   UIKitCore                       0x317f03fac         -[UIEventFetcher threadMain]
8   Foundation                      0x3161d8558         __NSThread__start__
9   libsystem_pthread.dylib         0x3f51cf9a8         _pthread_start

Thread 6
0   libsystem_kernel.dylib          0x382597ab4         __workq_kernreturn
1   libsystem_pthread.dylib         0x3f51cf104         _pthread_wqthread

Thread 7 name: io.flutter.1.ui
0   libsystem_kernel.dylib          0x3825974e0         mach_msg_trap
1   libsystem_kernel.dylib          0x382597b20         mach_msg
2   CoreFoundation                  0x31319b81c         __CFRunLoopServiceMachPort
3   CoreFoundation                  0x31319fca8         __CFRunLoopRun
4   CoreFoundation                  0x3131b36b4         CFRunLoopRunSpecific
5   Flutter                         0x104567088         <redacted>
6   Flutter                         0x104566848         <redacted>
7   libsystem_pthread.dylib         0x3f51cf9a8         _pthread_start

Thread 8 name: io.flutter.1.raster
0   libsystem_kernel.dylib          0x3825974e0         mach_msg_trap
1   libsystem_kernel.dylib          0x382597b20         mach_msg
2   CoreFoundation                  0x31319b81c         __CFRunLoopServiceMachPort
3   CoreFoundation                  0x31319fca8         __CFRunLoopRun
4   CoreFoundation                  0x3131b36b4         CFRunLoopRunSpecific
5   Flutter                         0x104567088         <redacted>
6   Flutter                         0x104566848         <redacted>
7   libsystem_pthread.dylib         0x3f51cf9a8         _pthread_start

Thread 9 name: io.flutter.1.io
0   libsystem_kernel.dylib          0x3825974e0         mach_msg_trap
1   libsystem_kernel.dylib          0x382597b20         mach_msg
2   CoreFoundation                  0x31319b81c         __CFRunLoopServiceMachPort
3   CoreFoundation                  0x31319fca8         __CFRunLoopRun
4   CoreFoundation                  0x3131b36b4         CFRunLoopRunSpecific
5   Flutter                         0x104567088         <redacted>
6   Flutter                         0x104566848         <redacted>
7   libsystem_pthread.dylib         0x3f51cf9a8         _pthread_start

Thread 10 name: io.worker.1
0   libsystem_kernel.dylib          0x382597f64         __psynch_cvwait
1   libsystem_pthread.dylib         0x3f51d6294         _pthread_cond_wait
2   libc++.1.dylib                  0x344cc3234         std::__1::condition_variable::wait
3   Flutter                         0x104561440         <redacted>
4   libsystem_pthread.dylib         0x3f51cf9a8         _pthread_start

Thread 11 name: io.worker.2
0   libsystem_kernel.dylib          0x382597f64         __psynch_cvwait
1   libsystem_pthread.dylib         0x3f51d6294         _pthread_cond_wait
2   libc++.1.dylib                  0x344cc3234         std::__1::condition_variable::wait
3   Flutter                         0x104561440         <redacted>
4   libsystem_pthread.dylib         0x3f51cf9a8         _pthread_start

Thread 12 name: io.worker.3
0   libsystem_kernel.dylib          0x382597f64         __psynch_cvwait
1   libsystem_pthread.dylib         0x3f51d6294         _pthread_cond_wait
2   libc++.1.dylib                  0x344cc3234         std::__1::condition_variable::wait
3   Flutter                         0x104561440         <redacted>
4   libsystem_pthread.dylib         0x3f51cf9a8         _pthread_start

Thread 13 name: io.worker.4
0   libsystem_kernel.dylib          0x382597f64         __psynch_cvwait
1   libsystem_pthread.dylib         0x3f51d6294         _pthread_cond_wait
2   libc++.1.dylib                  0x344cc3234         std::__1::condition_variable::wait
3   Flutter                         0x104561440         <redacted>
4   libsystem_pthread.dylib         0x3f51cf9a8         _pthread_start

Thread 14 name: io.worker.5
0   libsystem_kernel.dylib          0x382597f64         __psynch_cvwait
1   libsystem_pthread.dylib         0x3f51d6294         _pthread_cond_wait
2   libc++.1.dylib                  0x344cc3234         std::__1::condition_variable::wait
3   Flutter                         0x104561440         <redacted>
4   libsystem_pthread.dylib         0x3f51cf9a8         _pthread_start

Thread 15 name: io.worker.6
0   libsystem_kernel.dylib          0x382597f64         __psynch_cvwait
1   libsystem_pthread.dylib         0x3f51d6294         _pthread_cond_wait
2   libc++.1.dylib                  0x344cc3234         std::__1::condition_variable::wait
3   Flutter                         0x104561440         <redacted>
4   libsystem_pthread.dylib         0x3f51cf9a8         _pthread_start

Thread 16 name: dart:io EventHandler
0   libsystem_kernel.dylib          0x382598e58         kevent
1   Flutter                         0x1047367a4         <redacted>
2   Flutter                         0x104765358         <redacted>
3   libsystem_pthread.dylib         0x3f51cf9a8         _pthread_start

Thread 17
0   libsystem_kernel.dylib          0x382597ab4         __workq_kernreturn
1   libsystem_pthread.dylib         0x3f51cf104         _pthread_wqthread

Thread 18
0   libsystem_kernel.dylib          0x382597a6c         __semwait_signal
1   libsystem_c.dylib               0x3294510d8         nanosleep
2   libsystem_c.dylib               0x32946537c         sleep
3   Sentry                          0x103eb5808         monitorCachedData
4   libsystem_pthread.dylib         0x3f51cf9a8         _pthread_start

Thread 19 name: SentryCrash Exception Handler (Secondary)
0   libsystem_kernel.dylib          0x3825974e0         mach_msg_trap
1   libsystem_kernel.dylib          0x382597b20         mach_msg
2   libsystem_kernel.dylib          0x3825a3a80         thread_suspend
3   Sentry                          0x103ec2a84         handleExceptions
4   libsystem_pthread.dylib         0x3f51cf9a8         _pthread_start

Thread 20 name: SentryCrash Exception Handler (Primary)
0   libsystem_kernel.dylib          0x3825974e0         mach_msg_trap
1   libsystem_kernel.dylib          0x382597b20         mach_msg
2   Sentry                          0x103ec2ab0         handleExceptions
3   libsystem_pthread.dylib         0x3f51cf9a8         _pthread_start

Thread 21
0   libsystem_kernel.dylib          0x382597ab4         __workq_kernreturn
1   libsystem_pthread.dylib         0x3f51cf104         _pthread_wqthread

Thread 22
0   libsystem_pthread.dylib         0x3f51cee54         start_wqthread

Thread 23 name: DartWorker
0   libsystem_kernel.dylib          0x382597f64         __psynch_cvwait
1   libsystem_pthread.dylib         0x3f51d62c0         _pthread_cond_wait
2   Flutter                         0x10482e1d4         <redacted>
3   Flutter                         0x104875874         <redacted>
4   Flutter                         0x10482dafc         <redacted>
5   libsystem_pthread.dylib         0x3f51cf9a8         _pthread_start

Thread 24 name: DartWorker
0   libsystem_kernel.dylib          0x382597f64         __psynch_cvwait
1   libsystem_pthread.dylib         0x3f51d62c0         _pthread_cond_wait
2   Flutter                         0x10482e1d4         <redacted>
3   Flutter                         0x104875874         <redacted>
4   Flutter                         0x10482dafc         <redacted>
5   libsystem_pthread.dylib         0x3f51cf9a8         _pthread_start

Thread 25 name: DartWorker
0   libsystem_kernel.dylib          0x382597f64         __psynch_cvwait
1   libsystem_pthread.dylib         0x3f51d62c0         _pthread_cond_wait
2   Flutter                         0x10482e1d4         <redacted>
3   Flutter                         0x104875874         <redacted>
4   Flutter                         0x10482dafc         <redacted>
5   libsystem_pthread.dylib         0x3f51cf9a8         _pthread_start

Thread 26 name: DartWorker
0   libsystem_kernel.dylib          0x382597f64         __psynch_cvwait
1   libsystem_pthread.dylib         0x3f51d62c0         _pthread_cond_wait
2   Flutter                         0x10482e1d4         <redacted>
3   Flutter                         0x104875874         <redacted>
4   Flutter                         0x10482dafc         <redacted>
5   libsystem_pthread.dylib         0x3f51cf9a8         _pthread_start

Thread 27 name: DartWorker
0   libsystem_kernel.dylib          0x382597f64         __psynch_cvwait
1   libsystem_pthread.dylib         0x3f51d62c0         _pthread_cond_wait
2   Flutter                         0x10482e1d4         <redacted>
3   Flutter                         0x104875874         <redacted>
4   Flutter                         0x10482dafc         <redacted>
5   libsystem_pthread.dylib         0x3f51cf9a8         _pthread_start

Thread 28 name: DartWorker
0   libsystem_kernel.dylib          0x382597f64         __psynch_cvwait
1   libsystem_pthread.dylib         0x3f51d62c0         _pthread_cond_wait
2   Flutter                         0x10482e1d4         <redacted>
3   Flutter                         0x104875874         <redacted>
4   Flutter                         0x10482dafc         <redacted>
5   libsystem_pthread.dylib         0x3f51cf9a8         _pthread_start

Thread 29 name: DartWorker
0   libsystem_kernel.dylib          0x382597f64         __psynch_cvwait
1   libsystem_pthread.dylib         0x3f51d62c0         _pthread_cond_wait
2   Flutter                         0x10482e1d4         <redacted>
3   Flutter                         0x104875874         <redacted>
4   Flutter                         0x10482dafc         <redacted>
5   libsystem_pthread.dylib         0x3f51cf9a8         _pthread_start

Thread 30 name: DartWorker
0   libsystem_kernel.dylib          0x382597f64         __psynch_cvwait
1   libsystem_pthread.dylib         0x3f51d62c0         _pthread_cond_wait
2   Flutter                         0x10482e1d4         <redacted>
3   Flutter                         0x104875874         <redacted>
4   Flutter                         0x10482dafc         <redacted>
5   libsystem_pthread.dylib         0x3f51cf9a8         _pthread_start

Thread 31 name: com.apple.NSURLConnectionLoader
0   libsystem_kernel.dylib          0x3825974e0         mach_msg_trap
1   libsystem_kernel.dylib          0x382597b20         mach_msg
2   CoreFoundation                  0x31319b81c         __CFRunLoopServiceMachPort
3   CoreFoundation                  0x31319fca8         __CFRunLoopRun
4   CoreFoundation                  0x3131b36b4         CFRunLoopRunSpecific
5   CFNetwork                       0x3144474d4         _CFURLStorageSessionDisableCache
6   Foundation                      0x3161d8558         __NSThread__start__
7   libsystem_pthread.dylib         0x3f51cf9a8         _pthread_start

Thread 32
0   libsystem_kernel.dylib          0x382597ab4         __workq_kernreturn
1   libsystem_pthread.dylib         0x3f51cf104         _pthread_wqthread

Thread 33 name: com.mapbox.mbgl.AssetFileSource
0   libsystem_kernel.dylib          0x3825974e0         mach_msg_trap
1   libsystem_kernel.dylib          0x382597b20         mach_msg
2   CoreFoundation                  0x31319b81c         __CFRunLoopServiceMachPort
3   CoreFoundation                  0x31319fca8         __CFRunLoopRun
4   CoreFoundation                  0x3131b36b4         CFRunLoopRunSpecific
5   CoreFoundation                  0x313234894         CFRunLoopRun
6   Mapbox                          0x10350c450         mbgl::util::Thread<T>::Thread<T>::lambda::operator()
7   Mapbox                          0x10350c254         std::__1::thread::thread<T>
8   libsystem_pthread.dylib         0x3f51cf9a8         _pthread_start

Thread 34 name: com.mapbox.mbgl.OnlineFileSource
0   libsystem_kernel.dylib          0x3825974e0         mach_msg_trap
1   libsystem_kernel.dylib          0x382597b20         mach_msg
2   CoreFoundation                  0x31319b81c         __CFRunLoopServiceMachPort
3   CoreFoundation                  0x31319fca8         __CFRunLoopRun
4   CoreFoundation                  0x3131b36b4         CFRunLoopRunSpecific
5   CoreFoundation                  0x313234894         CFRunLoopRun
6   Mapbox                          0x10353c300         mbgl::util::Thread<T>::Thread<T>::lambda::operator()
7   Mapbox                          0x10353c178         std::__1::thread::thread<T>
8   libsystem_pthread.dylib         0x3f51cf9a8         _pthread_start

Thread 35 name: com.mapbox.mbgl.MultiDatabaseFileSource
0   libsystem_kernel.dylib          0x382597d8c         stat
1   libsqlite3.dylib                0x350ea7888         sqlite3_finalize
2   libsqlite3.dylib                0x350ea64e0         sqlite3_finalize
3   libsqlite3.dylib                0x350ea5b3c         sqlite3_finalize
4   libsqlite3.dylib                0x350ec5da0         sqlite3_step
5   libsqlite3.dylib                0x350ec4224         sqlite3_step
6   Mapbox                          0x10353f304         mapbox::sqlite::Query::run
7   Mapbox                          0x10352c42c         mbgl::OfflineDatabase::deleteRegion
8   Mapbox                          0x10350e950         mbgl::DatabaseFileSourceThread::deleteRegion
9   Mapbox                          0x103515c7c         mbgl::MessageImpl<T>::operator()
10  Mapbox                          0x1035437f8         mbgl::Mailbox::receive
11  Mapbox                          0x10354444c         std::__1::__split_buffer<T>::push_front
12  Mapbox                          0x10350855c         mbgl::WorkTaskImpl<T>::operator()
13  Mapbox                          0x1035077b0         mbgl::util::RunLoop::process
14  Mapbox                          0x1034ff074         mbgl::util::AsyncTask::Impl::perform
15  CoreFoundation                  0x31324ff00         __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__
16  CoreFoundation                  0x313260c8c         __CFRunLoopDoSource0
17  CoreFoundation                  0x31319a180         __CFRunLoopDoSources0
18  CoreFoundation                  0x31319fb48         __CFRunLoopRun
19  CoreFoundation                  0x3131b36b4         CFRunLoopRunSpecific
20  CoreFoundation                  0x313234894         CFRunLoopRun
21  Mapbox                          0x103689cb4         mbgl::util::Thread<T>::Thread<T>::lambda::operator()
22  Mapbox                          0x103689bac         std::__1::thread::thread<T>
23  libsystem_pthread.dylib         0x3f51cf9a8         _pthread_start

Thread 36 name: com.mapbox.mbgl.LocalFileSource
0   libsystem_kernel.dylib          0x3825974e0         mach_msg_trap
1   libsystem_kernel.dylib          0x382597b20         mach_msg
2   CoreFoundation                  0x31319b81c         __CFRunLoopServiceMachPort
3   CoreFoundation                  0x31319fca8         __CFRunLoopRun
4   CoreFoundation                  0x3131b36b4         CFRunLoopRunSpecific
5   CoreFoundation                  0x313234894         CFRunLoopRun
6   Mapbox                          0x103518a5c         mbgl::util::Thread<T>::Thread<T>::lambda::operator()
7   Mapbox                          0x1035188bc         std::__1::thread::thread<T>
8   libsystem_pthread.dylib         0x3f51cf9a8         _pthread_start

Thread 37 name: com.mapbox.mbgl.ResourceLoaderThread
0   libsystem_kernel.dylib          0x3825974e0         mach_msg_trap
1   libsystem_kernel.dylib          0x382597b20         mach_msg
2   CoreFoundation                  0x31319b81c         __CFRunLoopServiceMachPort
3   CoreFoundation                  0x31319fca8         __CFRunLoopRun
4   CoreFoundation                  0x3131b36b4         CFRunLoopRunSpecific
5   CoreFoundation                  0x313234894         CFRunLoopRun
6   Mapbox                          0x10351d8e8         mbgl::util::Thread<T>::Thread<T>::lambda::operator()
7   Mapbox                          0x10351d790         std::__1::thread::thread<T>
8   libsystem_pthread.dylib         0x3f51cf9a8         _pthread_start

Thread 38 name: com.mapbox.mbgl.Worker 1
0   libsystem_kernel.dylib          0x382597f64         __psynch_cvwait
1   libsystem_pthread.dylib         0x3f51d6294         _pthread_cond_wait
2   libc++.1.dylib                  0x344cc3234         std::__1::condition_variable::wait
3   Mapbox                          0x103869bd0         std::__1::__deque_base<T>::clear
4   libsystem_pthread.dylib         0x3f51cf9a8         _pthread_start

Thread 39 name: com.mapbox.mbgl.Worker 2
0   libsystem_kernel.dylib          0x382597f64         __psynch_cvwait
1   libsystem_pthread.dylib         0x3f51d6294         _pthread_cond_wait
2   libc++.1.dylib                  0x344cc3234         std::__1::condition_variable::wait
3   Mapbox                          0x103869bd0         std::__1::__deque_base<T>::clear
4   libsystem_pthread.dylib         0x3f51cf9a8         _pthread_start

Thread 40 name: com.mapbox.mbgl.Worker 3
0   libsystem_kernel.dylib          0x382597f64         __psynch_cvwait
1   libsystem_pthread.dylib         0x3f51d6294         _pthread_cond_wait
2   libc++.1.dylib                  0x344cc3234         std::__1::condition_variable::wait
3   Mapbox                          0x103869bd0         std::__1::__deque_base<T>::clear
4   libsystem_pthread.dylib         0x3f51cf9a8         _pthread_start

Thread 41 name: com.mapbox.mbgl.Worker 4
0   libsystem_kernel.dylib          0x382597f64         __psynch_cvwait
1   libsystem_pthread.dylib         0x3f51d6294         _pthread_cond_wait
2   libc++.1.dylib                  0x344cc3234         std::__1::condition_variable::wait
3   Mapbox                          0x103869bd0         std::__1::__deque_base<T>::clear
4   libsystem_pthread.dylib         0x3f51cf9a8         _pthread_start

Thread 42 name: com.mapbox.mbgl.Worker 1
0   libsystem_kernel.dylib          0x382597f64         __psynch_cvwait
1   libsystem_pthread.dylib         0x3f51d6294         _pthread_cond_wait
2   libc++.1.dylib                  0x344cc3234         std::__1::condition_variable::wait
3   Mapbox                          0x103869bd0         std::__1::__deque_base<T>::clear
4   libsystem_pthread.dylib         0x3f51cf9a8         _pthread_start

Thread 43 name: com.mapbox.mbgl.Worker 1
0   libsystem_kernel.dylib          0x382597f64         __psynch_cvwait
1   libsystem_pthread.dylib         0x3f51d6294         _pthread_cond_wait
2   libc++.1.dylib                  0x344cc3234         std::__1::condition_variable::wait
3   Mapbox                          0x103869bd0         std::__1::__deque_base<T>::clear
4   libsystem_pthread.dylib         0x3f51cf9a8         _pthread_start

Thread 44 name: com.mapbox.mbgl.Worker 1
0   libsystem_kernel.dylib          0x382597f64         __psynch_cvwait
1   libsystem_pthread.dylib         0x3f51d6294         _pthread_cond_wait
2   libc++.1.dylib                  0x344cc3234         std::__1::condition_variable::wait
3   Mapbox                          0x103869bd0         std::__1::__deque_base<T>::clear
4   libsystem_pthread.dylib         0x3f51cf9a8         _pthread_start

Thread 45 name: com.mapbox.mbgl.Worker 1
0   libsystem_kernel.dylib          0x382597f64         __psynch_cvwait
1   libsystem_pthread.dylib         0x3f51d6294         _pthread_cond_wait
2   libc++.1.dylib                  0x344cc3234         std::__1::condition_variable::wait
3   Mapbox                          0x103869bd0         std::__1::__deque_base<T>::clear
4   libsystem_pthread.dylib         0x3f51cf9a8         _pthread_start

Thread 46 name: com.mapbox.mbgl.Worker 1
0   libsystem_kernel.dylib          0x382597f64         __psynch_cvwait
1   libsystem_pthread.dylib         0x3f51d6294         _pthread_cond_wait
2   libc++.1.dylib                  0x344cc3234         std::__1::condition_variable::wait
3   Mapbox                          0x103869bd0         std::__1::__deque_base<T>::clear
4   libsystem_pthread.dylib         0x3f51cf9a8         _pthread_start

Thread 47 name: com.mapbox.mbgl.Worker 1
0   libsystem_kernel.dylib          0x382597f64         __psynch_cvwait
1   libsystem_pthread.dylib         0x3f51d6294         _pthread_cond_wait
2   libc++.1.dylib                  0x344cc3234         std::__1::condition_variable::wait
3   Mapbox                          0x103869bd0         std::__1::__deque_base<T>::clear
4   libsystem_pthread.dylib         0x3f51cf9a8         _pthread_start

Thread 48 name: com.mapbox.mbgl.Worker 1
0   libsystem_kernel.dylib          0x382597f64         __psynch_cvwait
1   libsystem_pthread.dylib         0x3f51d6294         _pthread_cond_wait
2   libc++.1.dylib                  0x344cc3234         std::__1::condition_variable::wait
3   Mapbox                          0x103869bd0         std::__1::__deque_base<T>::clear
4   libsystem_pthread.dylib         0x3f51cf9a8         _pthread_start

Thread 49 name: com.mapbox.mbgl.Worker 1
0   libsystem_kernel.dylib          0x382597f64         __psynch_cvwait
1   libsystem_pthread.dylib         0x3f51d6294         _pthread_cond_wait
2   libc++.1.dylib                  0x344cc3234         std::__1::condition_variable::wait
3   Mapbox                          0x103869bd0         std::__1::__deque_base<T>::clear
4   libsystem_pthread.dylib         0x3f51cf9a8         _pthread_start

Thread 50 name: com.mapbox.mbgl.Worker 1
0   libsystem_kernel.dylib          0x382597f64         __psynch_cvwait
1   libsystem_pthread.dylib         0x3f51d6294         _pthread_cond_wait
2   libc++.1.dylib                  0x344cc3234         std::__1::condition_variable::wait
3   Mapbox                          0x103869bd0         std::__1::__deque_base<T>::clear
4   libsystem_pthread.dylib         0x3f51cf9a8         _pthread_start

Thread 51 name: com.mapbox.mbgl.Worker 1
0   libsystem_kernel.dylib          0x382597f64         __psynch_cvwait
1   libsystem_pthread.dylib         0x3f51d6294         _pthread_cond_wait
2   libc++.1.dylib                  0x344cc3234         std::__1::condition_variable::wait
3   Mapbox                          0x103869bd0         std::__1::__deque_base<T>::clear
4   libsystem_pthread.dylib         0x3f51cf9a8         _pthread_start

Thread 52 name: DartWorker
0   libsystem_kernel.dylib          0x382597f64         __psynch_cvwait
1   libsystem_pthread.dylib         0x3f51d62c0         _pthread_cond_wait
2   Flutter                         0x10482e1d4         <redacted>
3   Flutter                         0x104875874         <redacted>
4   Flutter                         0x10482dafc         <redacted>
5   libsystem_pthread.dylib         0x3f51cf9a8         _pthread_start

Thread 53 name: DartWorker
0   libsystem_kernel.dylib          0x382597f64         __psynch_cvwait
1   libsystem_pthread.dylib         0x3f51d62c0         _pthread_cond_wait
2   Flutter                         0x10482e1d4         <redacted>
3   Flutter                         0x104875874         <redacted>
4   Flutter                         0x10482dafc         <redacted>
5   libsystem_pthread.dylib         0x3f51cf9a8         _pthread_start

Thread 54 name: DartWorker
0   libsystem_kernel.dylib          0x382597f64         __psynch_cvwait
1   libsystem_pthread.dylib         0x3f51d62c0         _pthread_cond_wait
2   Flutter                         0x10482e1d4         <redacted>
3   Flutter                         0x104875874         <redacted>
4   Flutter                         0x10482dafc         <redacted>
5   libsystem_pthread.dylib         0x3f51cf9a8         _pthread_start

Thread 55 name: DartWorker
0   libsystem_kernel.dylib          0x382597f64         __psynch_cvwait
1   libsystem_pthread.dylib         0x3f51d62c0         _pthread_cond_wait
2   Flutter                         0x10482e1d4         <redacted>
3   Flutter                         0x104875874         <redacted>
4   Flutter                         0x10482dafc         <redacted>
5   libsystem_pthread.dylib         0x3f51cf9a8         _pthread_start

EOF

Mapbox SDK and iOS are both running on the latest version
Flutter Version: 2.10.5

Same issue here. Any idea what is the reason for this error? I've tried looking for information but there isn't much on it.

Same issue here. Any idea what is the reason for this error? I've tried looking for information but there isn't much on it.

I already tried to handle this in several attempts and used quite a huge amount of time on this but no luck so far unfortunately.

Any update on this? Having the same problem

MGLMapView WARNING UIViewController.automaticallyAdjustsScrollViewInsets is deprecated use MGLMapView.automaticallyAdjustContentInset instead.
libc++abi: terminating with uncaught exception of type std::runtime_error
* thread #48, name = 'com.mapbox.mbgl.ResourceLoaderThread', stop reason = signal SIGABRT
    frame #0: 0x0000000202b25b38 libsystem_kernel.dylib`__pthread_kill + 8
libsystem_kernel.dylib`:
->  0x202b25b38 <+8>:  b.lo   0x202b25b58               ; <+40>
    0x202b25b3c <+12>: pacibsp
    0x202b25b40 <+16>: stp    x29, x30, [sp, #-0x10]!
    0x202b25b44 <+20>: mov    x29, sp
Target 0: (Runner) stopped.