Flutter app crashes on iOS more frequently after XCode/Flutter upgrade

I am not sure if it's because of the XCode or Flutter upgrade, but the app crash rate went from ~ 0.5% to ~5-8%. Talking about real devices, app downloaded from App Store.

Any help is very welcome. Full logs are in the txt file.

Incident Identifier: 1B55BCEB-E43F-44B7-9E9A-1D0FDA358716
Hardware Model:      iPhone12,8
Process:             Runner [790]
Path:                /private/var/containers/Bundle/Application/56173D3D-562C-40DA-8799-B8AAE3F87BA4/Runner.app/Runner
Identifier:          com.rangar.rangarr
Version:             30 (1.4.11)
AppStoreTools:       14E221
AppVariant:          1:iPhone12,8:13
Code Type:           ARM-64 (Native)
Role:                Foreground
Parent Process:      launchd [1]
Coalition:           com.rangar.rangarr [403]


Date/Time:           2023-05-09 19:37:36.9022 -0400
Launch Time:         2023-05-09 19:30:14.2538 -0400
OS Version:          iPhone OS 14.7.1 (18G82)
Release Type:        User
Baseband Version:    2.05.01
Report Version:      104

Exception Type:  EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note:  EXC_CORPSE_NOTIFY
Triggered by Thread:  3

Thread 3 name:
Thread 3 Crashed:
0   libsystem_kernel.dylib        	0x00000001d3ef6334 __pthread_kill + 8 (:-1)
1   libsystem_pthread.dylib       	0x00000001f197da9c pthread_kill + 272 (pthread.c:1582)
2   libsystem_c.dylib             	0x00000001af058b84 abort + 124 (abort.c:118)
3   Flutter                       	0x0000000104e3da7c fml::KillProcess() + 12 (logging.cc:144)
4   Flutter                       	0x0000000104e3dbe8 fml::LogMessage::~LogMessage() + 4 (logging.cc:131)
5   Flutter                       	0x0000000104e3dbe8 fml::LogMessage::~LogMessage() + 364 (logging.cc:75)
6   Flutter                       	0x0000000104e41d78 fml::internal::ThreadLocalPointer::swap(void*) + 184 (thread_local.cc:32)
7   Flutter                       	0x0000000104e3f120 fml::ThreadLocalUniquePtr<fml::(anonymous namespace)::TaskSourceGradeHolder>::reset(fml::(anonymous namespace)::TaskSourceGradeHolder*) + 12 (thread_local.h:50)
8   Flutter                       	0x0000000104e3f120 fml::MessageLoopTaskQueues::GetNextTaskToRun(fml::TaskQueueId, fml::TimePoint) + 440 (message_loop_task_queues.cc:140)
9   Flutter                       	0x0000000104e3f120 fml::MessageLoopImpl::FlushTasks(fml::FlushType) + 1716 (message_loop_impl.cc:122)
10  Flutter                       	0x0000000104e41e48 fml::MessageLoopImpl::RunExpiredTasksNow() + 8 (message_loop_impl.cc:139)
11  Flutter                       	0x0000000104e41e48 fml::MessageLoopDarwin::OnTimerFire(__CFRunLoopTimer*, fml::MessageLoopDarwin*) + 32 (message_loop_darwin.mm:85)
12  CoreFoundation                	0x00000001a5c0c1d4 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 32 (CFRunLoop.c:1807)
13  CoreFoundation                	0x00000001a5c0bdd0 __CFRunLoopDoTimer + 1076 (CFRunLoop.c:2415)
14  CoreFoundation                	0x00000001a5c0b220 __CFRunLoopDoTimers + 328 (CFRunLoop.c:2575)
15  CoreFoundation                	0x00000001a5c04fd4 __CFRunLoopRun + 1944 (CFRunLoop.c:3090)
16  CoreFoundation                	0x00000001a5c04308 CFRunLoopRunSpecific + 600 (CFRunLoop.c:3242)
17  Flutter                       	0x0000000104e41f34 fml::MessageLoopDarwin::Run() + 88 (message_loop_darwin.mm:51)
18  Flutter                       	0x0000000104e41a24 fml::MessageLoopImpl::DoRun() + 28 (message_loop_impl.cc:94)
19  Flutter                       	0x0000000104e41a24 fml::MessageLoop::Run() + 32 (message_loop.cc:49)
20  Flutter                       	0x0000000104e41a24 fml::Thread::Thread(std::_LIBCPP_ABI_NAMESPACE::function<void (fml::Thread::ThreadConfig const&)> const&, fml::Thread::ThreadConfig const&)::$_0::operator()() const + 160 (thread.cc:85)
21  Flutter                       	0x0000000104e41a24 decltype(std::declval<fml::Thread::Thread(std::_LIBCPP_ABI_NAMESPACE::function<void (fml::Thread::ThreadConfig const&)> const&, fml::Thread::ThreadConfig const&)::$_0>()()) std::_LIBCPP_ABI_NAMESPA... + 160 (invoke.h:403)
22  Flutter                       	0x0000000104e41a24 void std::_LIBCPP_ABI_NAMESPACE::__thread_execute[abi:v15000]<std::_LIBCPP_ABI_NAMESPACE::unique_ptr<std::_LIBCPP_ABI_NAMESPACE::__thread_struct, std::_LIBCPP_ABI_NAMESPACE::default_delete<std::_LI... + 160 (thread:284)
23  Flutter                       	0x0000000104e41a24 void* std::_LIBCPP_ABI_NAMESPACE::__thread_proxy[abi:v15000]<std::_LIBCPP_ABI_NAMESPACE::tuple<std::_LIBCPP_ABI_NAMESPACE::unique_ptr<std::_LIBCPP_ABI_NAMESPACE::__thread_struct, std::_LIBCPP_ABI_N... + 208 (thread:295)
24  libsystem_pthread.dylib       	0x00000001f197cbfc _pthread_start + 320 (pthread.c:887)
25  libsystem_pthread.dylib       	0x00000001f1985758 thread_start + 8


Deleted everything from the logs above, except Thread 5. Otherwise exceeding character limit. Full logs attached.

here is the screen which i am getting when clicking on 'Open in Project..' on Crash in Xcode Organizer:

Flutter app crashes on iOS more frequently after XCode/Flutter upgrade
 
 
Q