Repository: flutter
Issue: [iOS Crash] Exiting from iOS multitasking UI may cause crash due to exit.
Labels: c: crash,platform-ios,a: existing-apps,a: production,P2,needs repro info,team-engine,triaged-engine

### Steps to reproduce

**In the new version of our application, we integrated Flutter. After going live, we used Bugly to monitor and detected numerous Flutter crashes, with the device crash rate accounting for approximately 3%, which is an extremely high figure. We were unable to identify any specific steps to reproduce the crashes consistently; however, we have collected hundreds of identical crash logs. Could you please assist us in analyzing the potential causes behind these Flutter engine crashes? Thank you.**

### Expected results

no crash

### Actual results

A crash retreat with no fixed steps

### Screenshots or Video

<details open>
<summary>Screenshots / Video demonstration</summary>

<img width="1692" alt="image" src="https://github.com/flutter/flutter/assets/11271005/e9fdf720-0447-4342-8565-5ab2a2fde299">

</details>


### Logs

<details open><summary>Logs</summary>

```console
#11 Thread
0  libsystem_kernel.dylib           ___pthread_kill + 8
1  libsystem_pthread.dylib          _pthread_kill + 268
2  libsystem_c.dylib                _abort + 164
3  Flutter                          fml::LogMessage::~LogMessage()(logging.cc:100)
4  Flutter                          fml::FileMapping::CreateReadOnly(std::_fl::basic_string<char, std::_fl::char_traits<char>, std::_fl::allocator<char> > const&)(mapping.cc:21)
5  Flutter                          fml::internal::ThreadLocalPointer::swap(void*)(thread_local.cc:35)
6  Flutter                          fml::MessageLoopImpl::FlushTasks(fml::FlushType)(thread_local.h:53)
7  Flutter                          fml::MessageLoopDarwin::OnTimerFire(__CFRunLoopTimer*, fml::MessageLoopDarwin*)(message_loop_darwin.mm:86)
8  CoreFoundation                   ___CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 32
9  CoreFoundation                   ___CFRunLoopDoTimer + 1076
10 CoreFoundation                   ___CFRunLoopDoTimers + 328
11 CoreFoundation                   ___CFRunLoopRun + 1944
12 CoreFoundation                   _CFRunLoopRunSpecific + 600
13 Flutter                          fml::MessageLoopDarwin::Run()(message_loop_darwin.mm:52)
14 Flutter                          __thread_proxy<std::_fl::tuple<std::_fl::unique_ptr<std::_fl::__thread_struct, std::_fl::default_delete<std::_fl::__thread_struct> >, (lambda at ../../flutter/fml/thread.cc:79:7)> >(message_loop_impl.cc:0)
15 libsystem_pthread.dylib          __pthread_start + 148


#0 Thread

0  MetalPerformanceShadersGraph     0x00000001bd773000 + 19348
1  libsystem_c.dylib                ___cxa_finalize_ranges + 460
2  libsystem_c.dylib                _exit + 32
3  UIKitCore                        -[UIApplication terminateWithSuccess] + 0
4  UIKitCore                        -[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:] + 128
5  UIKitCore                        -[_UISceneLifecycleMultiplexer forceExitWithTransitionContext:scene:] + 224
6  UIKitCore                        -[UIApplication workspaceShouldExit:withTransitionContext:] + 212
7  FrontBoardServices               ___63-[FBSWorkspaceScenesClient willTerminateWithTransitionContext:]_block_invoke_2 + 80
8  FrontBoardServices               -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:] + 240
9  FrontBoardServices               ___63-[FBSWorkspaceScenesClient willTerminateWithTransitionContext:]_block_invoke + 132
10 libdispatch.dylib                __dispatch_client_callout + 20
11 libdispatch.dylib                __dispatch_block_invoke_direct + 264
12 FrontBoardServices               ___FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 48
13 FrontBoardServices               -[FBSSerialQueue _targetQueue_performNextIfPossible] + 220
14 FrontBoardServices               -[FBSSerialQueue _performNextFromRunLoopSource] + 28
15 CoreFoundation                   ___CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28
16 CoreFoundation                   ___CFRunLoopDoSource0 + 208
17 CoreFoundation                   ___CFRunLoopDoSources0 + 268
18 CoreFoundation                   ___CFRunLoopRun + 820
19 CoreFoundation                   _CFRunLoopRunSpecific + 600
20 GraphicsServices                 _GSEventRunModal + 164
21 UIKitCore                        -[UIApplication _run] + 1100
22 UIKitCore                        _UIApplicationMain + 2092
23 Sample                  main(main.m:35)
24 ???                              0x0000000107a2da24 + 0


#1 Thread

0  libsystem_kernel.dylib           _mach_msg_trap + 8
1  libsystem_kernel.dylib           _mach_msg + 76
2  CoreFoundation                   ___CFRunLoopServiceMachPort + 372
3  CoreFoundation                   ___CFRunLoopRun + 1212
4  CoreFoundation                   _CFRunLoopRunSpecific + 600
5  Foundation                       -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 236
6  Foundation                       -[NSRunLoop(NSRunLoop) runUntilDate:] + 92
7  UIKitCore                        -[UIEventFetcher threadMain] + 524
8  Foundation                       ___NSThread__start__ + 808
9  libsystem_pthread.dylib          __pthread_start + 148


#2 Thread

0  libsystem_kernel.dylib           _mach_msg_trap + 8
1  libsystem_kernel.dylib           _mach_msg + 76
2  CoreFoundation                   ___CFRunLoopServiceMachPort + 372
3  CoreFoundation                   ___CFRunLoopRun + 1212
4  CoreFoundation                   _CFRunLoopRunSpecific + 600
5  CoreFoundation                   _CFRunLoopRun + 64
6  Foundation                       ___NSThread__start__ + 808
7  libsystem_pthread.dylib          __pthread_start + 148


#3 Thread

0  libsystem_kernel.dylib           _mach_msg_trap + 8
1  libsystem_kernel.dylib           _mach_msg + 216
2  Sample                  _handleExceptions + 100
3  libsystem_pthread.dylib          __pthread_start + 148


#4 Thread

0  libsystem_kernel.dylib           _mach_msg_trap + 8
1  libsystem_kernel.dylib           _mach_msg + 216
2  Sample                  _handleExceptions + 100
3  libsystem_pthread.dylib          __pthread_start + 148


#5 Thread

0  libsystem_kernel.dylib           ___semwait_signal + 8
1  libsystem_c.dylib                _nanosleep + 216
2  Sample                  -[RMAppActivityTracker monitorThreadMain] + 200
3  Foundation                       ___NSThread__start__ + 808
4  libsystem_pthread.dylib          __pthread_start + 148


#6 Thread

0  libsystem_kernel.dylib           _mach_msg_trap + 8
1  libsystem_kernel.dylib           _mach_msg + 76
2  CoreFoundation                   ___CFRunLoopServiceMachPort + 372
3  CoreFoundation                   ___CFRunLoopRun + 1212
4  CoreFoundation                   _CFRunLoopRunSpecific + 600
5  Foundation                       -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 236
6  Sample                  -[BuglyThreadActivityTracker onAnchorThreadStart] + 432
7  Foundation                       ___NSThread__start__ + 808
8  libsystem_pthread.dylib          __pthread_start + 148


#7 Thread

0  libsystem_kernel.dylib           _select$DARWIN_EXTSN + 8
1  CoreFoundation                   ___CFSocketManager + 648
2  libsystem_pthread.dylib          __pthread_start + 148


#8 Thread

0  libsystem_kernel.dylib           _semaphore_wait_trap + 8
1  libdispatch.dylib                __dispatch_sema4_wait + 28
2  libdispatch.dylib                __dispatch_semaphore_wait_slow + 132
3  Sample                  -[RMReportQueue syncReport:result:] + 620
4  Sample                  ___38-[RMReportQueue reportRequest:result:]_block_invoke + 44
5  Foundation                       ___NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK__ + 24
6  Foundation                       -[NSBlockOperation main] + 104
7  Foundation                       ___NSOPERATION_IS_INVOKING_MAIN__ + 24
8  Foundation                       -[NSOperation start] + 804
9  Foundation                       ___NSOPERATIONQUEUE_IS_STARTING_AN_OPERATION__ + 24
10 Foundation                       ___NSOQSchedule_f + 184
11 libdispatch.dylib                __dispatch_block_async_invoke2 + 148
12 libdispatch.dylib                __dispatch_client_callout + 20
13 libdispatch.dylib                __dispatch_continuation_pop + 504
14 libdispatch.dylib                __dispatch_async_redirect_invoke + 596
15 libdispatch.dylib                __dispatch_root_queue_drain + 396
16 libdispatch.dylib                __dispatch_worker_thread2 + 164
17 libsystem_pthread.dylib          __pthread_wqthread + 228


#9 Thread

0  libsystem_kernel.dylib           _kevent + 8
1  Sample                  txliteav::TXCIOListener::Listen(int) + 136
2  Sample                  void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, txliteav::TXCIOLooper::Start()::$_2> >(void*) + 1448
3  libsystem_pthread.dylib          __pthread_start + 148


#10 Thread

0  libsystem_kernel.dylib           _mach_msg_trap + 8
1  libsystem_kernel.dylib           _mach_msg + 76
2  CoreFoundation                   ___CFRunLoopServiceMachPort + 372
3  CoreFoundation                   ___CFRunLoopRun + 1212
4  CoreFoundation                   _CFRunLoopRunSpecific + 600
5  CFNetwork                        __CFURLStorageSessionCopyIdentifier + 59784
6  Foundation                       ___NSThread__start__ + 808
7  libsystem_pthread.dylib          __pthread_start + 148


#12 Thread

0  libsystem_kernel.dylib           _mach_msg_trap + 8
1  libsystem_kernel.dylib           _mach_msg + 76
2  CoreFoundation                   ___CFRunLoopServiceMachPort + 372
3  CoreFoundation                   ___CFRunLoopRun + 1212
4  CoreFoundation                   _CFRunLoopRunSpecific + 600
5  Flutter                          fml::MessageLoopDarwin::Run()(message_loop_darwin.mm:52)
6  Flutter                          __thread_proxy<std::_fl::tuple<std::_fl::unique_ptr<std::_fl::__thread_struct, std::_fl::default_delete<std::_fl::__thread_struct> >, (lambda at ../../flutter/fml/thread.cc:79:7)> >(message_loop_impl.cc:0)
7  libsystem_pthread.dylib          __pthread_start + 148


#13 Thread

0  libsystem_kernel.dylib           _mach_msg_trap + 8
1  libsystem_kernel.dylib           _mach_msg + 76
2  CoreFoundation                   ___CFRunLoopServiceMachPort + 372
3  CoreFoundation                   ___CFRunLoopRun + 1212
4  CoreFoundation                   _CFRunLoopRunSpecific + 600
5  Flutter                          fml::MessageLoopDarwin::Run()(message_loop_darwin.mm:52)
6  Flutter                          __thread_proxy<std::_fl::tuple<std::_fl::unique_ptr<std::_fl::__thread_struct, std::_fl::default_delete<std::_fl::__thread_struct> >, (lambda at ../../flutter/fml/thread.cc:79:7)> >(message_loop_impl.cc:0)
7  libsystem_pthread.dylib          __pthread_start + 148


#14 Thread

0  libsystem_kernel.dylib           ___psynch_cvwait + 8
1  libsystem_pthread.dylib          __pthread_cond_wait + 1228
2  Flutter                          std::_fl::condition_variable::wait(std::_fl::unique_lock<std::_fl::mutex>&)(condition_variable.cpp:47)
3  Flutter                          __thread_proxy<std::_fl::tuple<std::_fl::unique_ptr<std::_fl::__thread_struct, std::_fl::default_delete<std::_fl::__thread_struct> >, (lambda at ../../flutter/fml/concurrent_message_loop.cc:17:27)> >(__mutex_base:0)
4  libsystem_pthread.dylib          __pthread_start + 148


#15 Thread

0  libsystem_kernel.dylib           ___psynch_cvwait + 8
1  libsystem_pthread.dylib          __pthread_cond_wait + 1228
2  Flutter                          std::_fl::condition_variable::wait(std::_fl::unique_lock<std::_fl::mutex>&)(condition_variable.cpp:47)
3  Flutter                          __thread_proxy<std::_fl::tuple<std::_fl::unique_ptr<std::_fl::__thread_struct, std::_fl::default_delete<std::_fl::__thread_struct> >, (lambda at ../../flutter/fml/concurrent_message_loop.cc:17:27)> >(__mutex_base:0)
4  libsystem_pthread.dylib          __pthread_start + 148


#16 Thread

0  libsystem_kernel.dylib           ___psynch_cvwait + 8
1  libsystem_pthread.dylib          __pthread_cond_wait + 1228
2  Flutter                          std::_fl::condition_variable::wait(std::_fl::unique_lock<std::_fl::mutex>&)(condition_variable.cpp:47)
3  Flutter                          __thread_proxy<std::_fl::tuple<std::_fl::unique_ptr<std::_fl::__thread_struct, std::_fl::default_delete<std::_fl::__thread_struct> >, (lambda at ../../flutter/fml/concurrent_message_loop.cc:17:27)> >(__mutex_base:0)
4  libsystem_pthread.dylib          __pthread_start + 148


#17 Thread

0  libsystem_kernel.dylib           ___psynch_cvwait + 8
1  libsystem_pthread.dylib          __pthread_cond_wait + 1228
2  Flutter                          std::_fl::condition_variable::wait(std::_fl::unique_lock<std::_fl::mutex>&)(condition_variable.cpp:47)
3  Flutter                          __thread_proxy<std::_fl::tuple<std::_fl::unique_ptr<std::_fl::__thread_struct, std::_fl::default_delete<std::_fl::__thread_struct> >, (lambda at ../../flutter/fml/concurrent_message_loop.cc:17:27)> >(__mutex_base:0)
4  libsystem_pthread.dylib          __pthread_start + 148


#18 Thread

0  libsystem_kernel.dylib           ___psynch_cvwait + 8
1  libsystem_pthread.dylib          __pthread_cond_wait + 1228
2  Flutter                          std::_fl::condition_variable::wait(std::_fl::unique_lock<std::_fl::mutex>&)(condition_variable.cpp:47)
3  Flutter                          __thread_proxy<std::_fl::tuple<std::_fl::unique_ptr<std::_fl::__thread_struct, std::_fl::default_delete<std::_fl::__thread_struct> >, (lambda at ../../flutter/fml/concurrent_message_loop.cc:17:27)> >(__mutex_base:0)
4  libsystem_pthread.dylib          __pthread_start + 148


#19 Thread

0  libsystem_kernel.dylib           ___psynch_cvwait + 8
1  libsystem_pthread.dylib          __pthread_cond_wait + 1228
2  Flutter                          std::_fl::condition_variable::wait(std::_fl::unique_lock<std::_fl::mutex>&)(condition_variable.cpp:47)
3  Flutter                          __thread_proxy<std::_fl::tuple<std::_fl::unique_ptr<std::_fl::__thread_struct, std::_fl::default_delete<std::_fl::__thread_struct> >, (lambda at ../../flutter/fml/concurrent_message_loop.cc:17:27)> >(__mutex_base:0)
4  libsystem_pthread.dylib          __pthread_start + 148


#20 Thread

0  libsystem_kernel.dylib           _kevent + 8
1  Flutter                          dart::bin::EventHandlerImplementation::EventHandlerEntry(unsigned long)(eventhandler_macos.cc:459)
2  Flutter                          ThreadStart(thread_macos.cc:0)
3  libsystem_pthread.dylib          __pthread_start + 148


#21 Thread

0  libsystem_kernel.dylib           ___psynch_cvwait + 8
1  libsystem_pthread.dylib          __pthread_cond_wait + 1228
2  Flutter                          std::_fl::condition_variable::wait(std::_fl::unique_lock<std::_fl::mutex>&)(condition_variable.cpp:47)
3  Flutter                          __thread_proxy<std::_fl::tuple<std::_fl::unique_ptr<std::_fl::__thread_struct, std::_fl::default_delete<std::_fl::__thread_struct> >, (lambda at ../../flutter/fml/concurrent_message_loop.cc:17:27)> >(__mutex_base:0)
4  libsystem_pthread.dylib          __pthread_start + 148


#22 Thread

0  libsystem_kernel.dylib           ___psynch_cvwait + 8
1  libsystem_pthread.dylib          __pthread_cond_wait + 1228
2  Flutter                          std::_fl::condition_variable::wait(std::_fl::unique_lock<std::_fl::mutex>&)(condition_variable.cpp:47)
3  Flutter                          __thread_proxy<std::_fl::tuple<std::_fl::unique_ptr<std::_fl::__thread_struct, std::_fl::default_delete<std::_fl::__thread_struct> >, (lambda at ../../flutter/fml/concurrent_message_loop.cc:17:27)> >(__mutex_base:0)
4  libsystem_pthread.dylib          __pthread_start + 148


#23 Thread

0  libsystem_kernel.dylib           ___psynch_cvwait + 8
1  libsystem_pthread.dylib          __pthread_cond_wait + 1228
2  Flutter                          std::_fl::condition_variable::wait(std::_fl::unique_lock<std::_fl::mutex>&)(condition_variable.cpp:47)
3  Flutter                          __thread_proxy<std::_fl::tuple<std::_fl::unique_ptr<std::_fl::__thread_struct, std::_fl::default_delete<std::_fl::__thread_struct> >, (lambda at ../../flutter/fml/concurrent_message_loop.cc:17:27)> >(__mutex_base:0)
4  libsystem_pthread.dylib          __pthread_start + 148


#24 Thread

0  libsystem_kernel.dylib           ___psynch_cvwait + 8
1  libsystem_pthread.dylib          __pthread_cond_wait + 1228
2  Flutter                          std::_fl::condition_variable::wait(std::_fl::unique_lock<std::_fl::mutex>&)(condition_variable.cpp:47)
3  Flutter                          __thread_proxy<std::_fl::tuple<std::_fl::unique_ptr<std::_fl::__thread_struct, std::_fl::default_delete<std::_fl::__thread_struct> >, (lambda at ../../flutter/fml/concurrent_message_loop.cc:17:27)> >(__mutex_base:0)
4  libsystem_pthread.dylib          __pthread_start + 148


#25 Thread

0  libsystem_kernel.dylib           _mach_msg_trap + 8
1  libsystem_kernel.dylib           _mach_msg + 76
2  CoreFoundation                   ___CFRunLoopServiceMachPort + 372
3  CoreFoundation                   ___CFRunLoopRun + 1212
4  CoreFoundation                   _CFRunLoopRunSpecific + 600
5  Flutter                          fml::MessageLoopDarwin::Run()(message_loop_darwin.mm:52)
6  Flutter                          __thread_proxy<std::_fl::tuple<std::_fl::unique_ptr<std::_fl::__thread_struct, std::_fl::default_delete<std::_fl::__thread_struct> >, (lambda at ../../flutter/fml/thread.cc:79:7)> >(message_loop_impl.cc:0)
7  libsystem_pthread.dylib          __pthread_start + 148


#26 Thread

0  libsystem_kernel.dylib           _mach_msg_trap + 8
1  libsystem_kernel.dylib           _mach_msg + 76
2  CoreFoundation                   ___CFRunLoopServiceMachPort + 372
3  CoreFoundation                   ___CFRunLoopRun + 1212
4  CoreFoundation                   _CFRunLoopRunSpecific + 600
5  Flutter                          fml::MessageLoopDarwin::Run()(message_loop_darwin.mm:52)
6  Flutter                          __thread_proxy<std::_fl::tuple<std::_fl::unique_ptr<std::_fl::__thread_struct, std::_fl::default_delete<std::_fl::__thread_struct> >, (lambda at ../../flutter/fml/thread.cc:79:7)> >(message_loop_impl.cc:0)
7  libsystem_pthread.dylib          __pthread_start + 148


#27 Thread

0  libsystem_kernel.dylib           _mach_msg_trap + 8
1  libsystem_kernel.dylib           _mach_msg + 76
2  CoreFoundation                   ___CFRunLoopServiceMachPort + 372
3  CoreFoundation                   ___CFRunLoopRun + 1212
4  CoreFoundation                   _CFRunLoopRunSpecific + 600
5  Flutter                          fml::MessageLoopDarwin::Run()(message_loop_darwin.mm:52)
6  Flutter                          __thread_proxy<std::_fl::tuple<std::_fl::unique_ptr<std::_fl::__thread_struct, std::_fl::default_delete<std::_fl::__thread_struct> >, (lambda at ../../flutter/fml/thread.cc:79:7)> >(message_loop_impl.cc:0)
7  libsystem_pthread.dylib          __pthread_start + 148


#28 Thread

0  libsystem_kernel.dylib           ___psynch_cvwait + 8
1  libsystem_pthread.dylib          __pthread_cond_wait + 1228
2  Flutter                          std::_fl::condition_variable::wait(std::_fl::unique_lock<std::_fl::mutex>&)(condition_variable.cpp:47)
3  Flutter                          __thread_proxy<std::_fl::tuple<std::_fl::unique_ptr<std::_fl::__thread_struct, std::_fl::default_delete<std::_fl::__thread_struct> >, (lambda at ../../flutter/fml/concurrent_message_loop.cc:17:27)> >(__mutex_base:0)
4  libsystem_pthread.dylib          __pthread_start + 148


#29 Thread

0  libsystem_kernel.dylib           ___psynch_cvwait + 8
1  libsystem_pthread.dylib          __pthread_cond_wait + 1228
2  Flutter                          std::_fl::condition_variable::wait(std::_fl::unique_lock<std::_fl::mutex>&)(condition_variable.cpp:47)
3  Flutter                          __thread_proxy<std::_fl::tuple<std::_fl::unique_ptr<std::_fl::__thread_struct, std::_fl::default_delete<std::_fl::__thread_struct> >, (lambda at ../../flutter/fml/concurrent_message_loop.cc:17:27)> >(__mutex_base:0)
4  libsystem_pthread.dylib          __pthread_start + 148


#30 Thread

0  libsystem_kernel.dylib           ___psynch_cvwait + 8
1  libsystem_pthread.dylib          __pthread_cond_wait + 1228
2  Flutter                          std::_fl::condition_variable::wait(std::_fl::unique_lock<std::_fl::mutex>&)(condition_variable.cpp:47)
3  Flutter                          __thread_proxy<std::_fl::tuple<std::_fl::unique_ptr<std::_fl::__thread_struct, std::_fl::default_delete<std::_fl::__thread_struct> >, (lambda at ../../flutter/fml/concurrent_message_loop.cc:17:27)> >(__mutex_base:0)
4  libsystem_pthread.dylib          __pthread_start + 148


#31 Thread

0  libsystem_kernel.dylib           ___psynch_cvwait + 8
1  libsystem_pthread.dylib          __pthread_cond_wait + 1228
2  Flutter                          std::_fl::condition_variable::wait(std::_fl::unique_lock<std::_fl::mutex>&)(condition_variable.cpp:47)
3  Flutter                          __thread_proxy<std::_fl::tuple<std::_fl::unique_ptr<std::_fl::__thread_struct, std::_fl::default_delete<std::_fl::__thread_struct> >, (lambda at ../../flutter/fml/concurrent_message_loop.cc:17:27)> >(__mutex_base:0)
4  libsystem_pthread.dylib          __pthread_start + 148


#32 Thread

0  libsystem_kernel.dylib           _kevent + 8
1  ImSDK                            0x000000010841c000 + 3342284
2  ImSDK                            0x000000010841c000 + 3470000
3  ImSDK                            0x000000010841c000 + 3486492
4  libsystem_pthread.dylib          __pthread_start + 148


#33 Thread

0  libsystem_kernel.dylib           ___psynch_cvwait + 8
1  libsystem_pthread.dylib          __pthread_cond_wait + 1228
2  libc++.1.dylib                   std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 28
3  JavaScriptCore                   void std::__1::condition_variable_any::wait<std::__1::unique_lock<bmalloc::Mutex> >(std::__1::unique_lock<bmalloc::Mutex>&) + 108
4  JavaScriptCore                   bmalloc::Scavenger::threadRunLoop() + 340
5  JavaScriptCore                   bmalloc::Scavenger::Scavenger(std::__1::scoped_lock<bmalloc::Mutex> const&) + 0
6  JavaScriptCore                   std::__1::__thread_specific_ptr<std::__1::__thread_struct>::set_pointer(std::__1::__thread_struct*) + 0
7  libsystem_pthread.dylib          __pthread_start + 148


#34 Thread

0  libsystem_kernel.dylib           ___workq_kernreturn + 8
1  libsystem_pthread.dylib          __pthread_wqthread + 364


#35 Thread

0  libsystem_kernel.dylib           ___workq_kernreturn + 8
1  libsystem_pthread.dylib          __pthread_wqthread + 364


#36 Thread

0  libsystem_kernel.dylib           ___workq_kernreturn + 8
1  libsystem_pthread.dylib          __pthread_wqthread + 364


#37 Thread

0  libsystem_kernel.dylib           _mach_msg_trap + 8
1  libsystem_kernel.dylib           _mach_msg + 76
2  CoreFoundation                   ___CFRunLoopServiceMachPort + 372
3  CoreFoundation                   ___CFRunLoopRun + 1212
4  CoreFoundation                   _CFRunLoopRunSpecific + 600
5  AudioSession                     CADeprecated::GenericRunLoopThread::Entry(void*) + 164
6  AudioSession                     CADeprecated::CAPThread::Entry(CADeprecated::CAPThread*) + 92
7  libsystem_pthread.dylib          __pthread_start + 148


#38 Thread

0  libsystem_kernel.dylib           _semaphore_timedwait_trap + 8
1  libdispatch.dylib                __dispatch_sema4_timedwait + 64
8  libdispatch.dylib                __dispatch_call_block_and_release + 32
9  libdispatch.dylib                __dispatch_client_callout + 20
10 libdispatch.dylib                __dispatch_queue_override_invoke + 792
11 libdispatch.dylib                __dispatch_root_queue_drain + 396
12 libdispatch.dylib                __dispatch_worker_thread2 + 164
13 libsystem_pthread.dylib          __pthread_wqthread + 228


#39 Thread

0  libsystem_kernel.dylib           ___workq_kernreturn + 8
1  libsystem_pthread.dylib          __pthread_wqthread + 364


#40 Thread

0  libsystem_kernel.dylib           ___workq_kernreturn + 8
1  libsystem_pthread.dylib          __pthread_wqthread + 364


#41 Thread

0  libsystem_kernel.dylib           ___workq_kernreturn + 8
1  libsystem_pthread.dylib          __pthread_wqthread + 364


#42 Thread

0  libsystem_kernel.dylib           ___workq_kernreturn + 8
1  libsystem_pthread.dylib          __pthread_wqthread + 364


#43 Thread

0  libsystem_kernel.dylib           ___workq_kernreturn + 8
1  libsystem_pthread.dylib          __pthread_wqthread + 364


#44 Thread

0  libsystem_kernel.dylib           ___workq_kernreturn + 8
1  libsystem_pthread.dylib          __pthread_wqthread + 364


#45 Thread

0  libsystem_kernel.dylib           ___workq_kernreturn + 8
1  libsystem_pthread.dylib          __pthread_wqthread + 364


#46 Thread

0  libsystem_kernel.dylib           _mach_msg_trap + 8
1  libsystem_kernel.dylib           _mach_msg + 76
2  libdispatch.dylib                __dispatch_mach_send_and_wait_for_reply + 520
3  libdispatch.dylib                _dispatch_mach_send_with_result_and_wait_for_reply + 56
4  libxpc.dylib                     _xpc_connection_send_message_with_reply_sync + 240
5  Security                         _securityd_message_with_reply_sync + 104
6  Security                         _securityd_send_sync_and_do + 88
7  Security                         ___SecItemDelete_block_invoke_2 + 344
8  Security                         ___SecItemAuthDoQuery_block_invoke + 540
9  Security                         _SecItemAuthDoQuery + 1292
10 Security                         _SecOSStatusWith + 56
18 CFNetwork                        __CFHostIsDomainTopLevelForCertificatePolicy + 3044
19 Foundation                       ___NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK__ + 24
20 Foundation                       -[NSBlockOperation main] + 104
21 Foundation                       ___NSOPERATION_IS_INVOKING_MAIN__ + 24
22 Foundation                       -[NSOperation start] + 804
23 Foundation                       ___NSOPERATIONQUEUE_IS_STARTING_AN_OPERATION__ + 24
24 Foundation                       ___NSOQSchedule_f + 184
25 libdispatch.dylib                __dispatch_block_async_invoke2 + 148
26 libdispatch.dylib                __dispatch_client_callout + 20
27 libdispatch.dylib                __dispatch_continuation_pop + 504
28 libdispatch.dylib                __dispatch_async_redirect_invoke + 596
29 libdispatch.dylib                __dispatch_root_queue_drain + 396
30 libdispatch.dylib                __dispatch_worker_thread2 + 164
31 libsystem_pthread.dylib          __pthread_wqthread + 228


#47 Thread

0  libsystem_kernel.dylib           ___workq_kernreturn + 8
1  libsystem_pthread.dylib          __pthread_wqthread + 364


#48 Thread

0  libsystem_kernel.dylib           ___workq_kernreturn + 8
1  libsystem_pthread.dylib          __pthread_wqthread + 364


#49 Thread
0  libsystem_kernel.dylib           ___workq_kernreturn + 8
1  libsystem_pthread.dylib          __pthread_wqthread + 364


#50 Thread




#51 Thread

0  libsystem_kernel.dylib           _semaphore_timedwait_trap + 8
1  libdispatch.dylib                __dispatch_sema4_timedwait + 64
8  libdispatch.dylib                __dispatch_call_block_and_release + 32
9  libdispatch.dylib                __dispatch_client_callout + 20
10 libdispatch.dylib                __dispatch_queue_override_invoke + 792
11 libdispatch.dylib                __dispatch_root_queue_drain + 396
12 libdispatch.dylib                __dispatch_worker_thread2 + 164
13 libsystem_pthread.dylib          __pthread_wqthread + 228


#52 Thread




#53 Thread

0  libsystem_kernel.dylib           _mach_msg_trap + 8
1  libsystem_kernel.dylib           _mach_msg + 76
2  CoreFoundation                   ___CFRunLoopServiceMachPort + 372
3  CoreFoundation                   ___CFRunLoopRun + 1212
4  CoreFoundation                   _CFRunLoopRunSpecific + 600
5  Foundation                       -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 236
6  CocoaAsyncSocket                 +[GCDAsyncSocket cfstreamThread:](GCDAsyncSocket.m:7686)
7  Foundation                       ___NSThread__start__ + 808
8  libsystem_pthread.dylib          __pthread_start + 148


#54 Thread

0  libsystem_kernel.dylib           ___psynch_cvwait + 8
1  libsystem_pthread.dylib          __pthread_cond_wait + 1272
2  Flutter                          dart::Monitor::WaitMicros(long long)(os_thread_macos.cc:451)
3  Flutter                          dart::ThreadPool::Worker::Main(unsigned long)(intrusive_dlist.h:112)
4  Flutter                          ThreadStart(os_thread_macos.cc:0)
5  libsystem_pthread.dylib          __pthread_start + 148

```

</details>


### Flutter Doctor output

<details open><summary>Doctor output</summary>

```console
[✓] Flutter (Channel stable, 3.19.5, on macOS 14.5 23F79 darwin-arm64, locale zh-Hans-CN)
    • Flutter version 3.19.5 on channel stable at /Users/ryan/development/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 300451adae (9 weeks ago), 2024-03-27 21:54:07 -0500
    • Engine revision e76c956498
    • Dart version 3.3.3
    • DevTools version 2.31.1
    • Pub download mirror https://pub.flutter-io.cn
    • Flutter download mirror https://storage.flutter-io.cn
```

</details>