Fintasys / emoji_picker_flutter

A Flutter package that provides an Emoji picker widget with 1500+ emojis in 8 categories.
MIT License
154 stars 114 forks source link

[Problem] My app are crashing on startup #116

Closed joaogoes1 closed 1 year ago

joaogoes1 commented 1 year ago

When I try to open my app on my iPhone, my app always crashes. It happens just when I try to open by my phone, without using XCode or Flutter CLI. When I use Flutter CLI or XCode, runs normally. The problem doesn't happen on Android.

Log caught in XCode:

Incident Identifier: CA2AEE0D-0608-4E06-A099-8D79BB3006B6
CrashReporter Key:   cab156b9a3efeae0aa7c9681d323e0c48773bcbd
Hardware Model:      iPhone15,3
Process:             Runner [51247]
Path:                /private/var/containers/Bundle/Application/20013EF8-EBF6-4972-876D-D50D4E04479E/Runner.app/Runner
Version:             1.0.0 (1)
Code Type:           ARM-64 (Native)
Role:                Foreground
Parent Process:      launchd [1]

Date/Time:           2022-11-21 13:09:49.0406 -0300
Launch Time:         2022-11-21 13:09:48.8847 -0300
OS Version:          iPhone OS 16.0.3 (20A392)
Release Type:        User
Baseband Version:    1.00.08
Report Version:      104

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000000000000
Exception Codes: 0x0000000000000001, 0x0000000000000000
VM Region Info: 0 is not in any region.  Bytes before following region: 4299210752
      REGION TYPE                 START - END      [ VSIZE] PRT/MAX SHRMOD  REGION DETAIL
      UNUSED SPACE AT START
--->  
      __TEXT                   10040c000-100708000 [ 3056K] r-x/r-x SM=COW  ...er.app/Runner
Termination Reason: SIGNAL 11 Segmentation fault: 11
Terminating Process: exc handler [51247]

Triggered by Thread:  0

Thread 0 name:   Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0   libswiftCore.dylib                     0x1b08bad74 swift_getObjectType + 40
1   emoji_picker_flutter                   0x1036dccd4 static SwiftEmojiPickerFlutterPlugin.register(with:) + 108
2   emoji_picker_flutter                   0x1036dccd4 static SwiftEmojiPickerFlutterPlugin.register(with:) + 108
3   emoji_picker_flutter                   0x1036dcec4 @objc static SwiftEmojiPickerFlutterPlugin.register(with:) + 56
4   emoji_picker_flutter                   0x1036dcc50 +[EmojiPickerFlutterPlugin registerWithRegistrar:] + 72
5   Runner                                 0x10041193c +[GeneratedPluginRegistrant registerWithRegistry:] + 180
6   Runner                                 0x100411c38 AppDelegate.application(_:didFinishLaunchingWithOptions:) + 120
7   Runner                                 0x100411f00 @objc AppDelegate.application(_:didFinishLaunchingWithOptions:) + 188
8   UIKitCore                              0x1b8adcf40 -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 300
9   UIKitCore                              0x1b8adc664 -[UIApplication _callInitializationDelegatesWithActions:forCanvas:payload:fromOriginatingProcess:] + 2848
10  UIKitCore                              0x1b8adb640 -[UIApplication _runWithMainScene:transitionContext:completion:] + 856
11  UIKitCore                              0x1b8adb28c -[_UISceneLifecycleMultiplexer completeApplicationLaunchWithFBSScene:transitionContext:] + 132
12  UIKitCore                              0x1b8820d64 _UIScenePerformActionsWithLifecycleActionMask + 108
13  UIKitCore                              0x1b8b62c3c __101-[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:]_block_invoke + 216
14  UIKitCore                              0x1b8a13888 -[_UISceneLifecycleMultiplexer _performBlock:withApplicationOfDeactivationReasons:fromReasons:] + 220
15  UIKitCore                              0x1b8a136b0 -[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:] + 620
16  UIKitCore                              0x1b8a13260 -[_UISceneLifecycleMultiplexer uiScene:transitionedFromState:withTransitionContext:] + 252
17  UIKitCore                              0x1b8a1312c __186-[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:]_block_invoke + 148
18  UIKitCore                              0x1b90f15a0 +[BSAnimationSettings(UIKit) tryAnimatingWithSettings:fromCurrentState:actions:completion:] + 736
19  UIKitCore                              0x1b918996c _UISceneSettingsDiffActionPerformChangesWithTransitionContextAndCompletion + 224
20  UIKitCore                              0x1b88bf2d8 -[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:] + 316
21  UIKitCore                              0x1b8d31048 __64-[UIScene scene:didUpdateWithDiff:transitionContext:completion:]_block_invoke.215 + 556
22  UIKitCore                              0x1b8991bec -[UIScene _emitSceneSettingsUpdateResponseForCompletion:afterSceneUpdateWork:] + 216
23  UIKitCore                              0x1b8991a5c -[UIScene scene:didUpdateWithDiff:transitionContext:completion:] + 244
24  UIKitCore                              0x1b8990fb0 -[UIApplication workspace:didCreateScene:withTransitionContext:completion:] + 520
25  UIKitCore                              0x1b8990d3c -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] + 288
26  FrontBoardServices                     0x1cbf69d48 -[FBSScene _callOutQueue_agent_didCreateWithTransitionContext:completion:] + 344
27  FrontBoardServices                     0x1cbfa9104 __92-[FBSWorkspaceScenesClient createSceneWithIdentity:parameters:transitionContext:completion:]_block_invoke.78 + 120
28  FrontBoardServices                     0x1cbf6dae4 -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:] + 168
29  FrontBoardServices                     0x1cbfa8d3c __92-[FBSWorkspaceScenesClient createSceneWithIdentity:parameters:transitionContext:completion:]_block_invoke + 360
30  libdispatch.dylib                      0x1bda79fdc _dispatch_client_callout + 20
31  libdispatch.dylib                      0x1bda7da5c _dispatch_block_invoke_direct + 264
32  FrontBoardServices                     0x1cbf77f2c __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 52
33  FrontBoardServices                     0x1cbf77ac8 -[FBSSerialQueue _targetQueue_performNextIfPossible] + 220
34  FrontBoardServices                     0x1cbf7a2a8 -[FBSSerialQueue _performNextFromRunLoopSource] + 28
35  CoreFoundation                         0x1b66ca22c __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28
36  CoreFoundation                         0x1b66d6614 __CFRunLoopDoSource0 + 176
37  CoreFoundation                         0x1b665a57c __CFRunLoopDoSources0 + 340
38  CoreFoundation                         0x1b666feb8 __CFRunLoopRun + 836
39  CoreFoundation                         0x1b66751e4 CFRunLoopRunSpecific + 612
40  GraphicsServices                       0x1ef495368 GSEventRunModal + 164
41  UIKitCore                              0x1b8b24d88 -[UIApplication _run] + 888
42  UIKitCore                              0x1b8b249ec UIApplicationMain + 340
43  Runner                                 0x100412078 main + 64
44  dyld                                   0x1d4999948 start + 2504

Thread 1:
0   libsystem_pthread.dylib                0x202f1cb90 start_wqthread + 0

Thread 2 name:   Dispatch queue: com.google.firebase.auth.globalWorkQueue
Thread 2:
0   libobjc.A.dylib                        0x1af9bda28 objc::scanner::Mixin<objc::RRScanner, (objc::SelectorBundle)1, PrintCustomRR, (objc::scanner::Scope)2>::scanAddedClassImpl(objc_class*, bool) + 284
1   libobjc.A.dylib                        0x1af9bae1c _finishInitializing(objc_class*, objc_class*) + 536
2   libobjc.A.dylib                        0x1af9bae1c _finishInitializing(objc_class*, objc_class*) + 536
3   libobjc.A.dylib                        0x1af9bf200 lockAndFinishInitializing(objc_class*, objc_class*) + 68
4   libobjc.A.dylib                        0x1af9b2268 initializeNonMetaClass + 664
5   libobjc.A.dylib                        0x1af9cc450 initializeAndMaybeRelock(objc_class*, objc_object*, locker_mixin<lockdebug::lock_mixin<objc_lock_base_t> >&, bool) + 184
6   libobjc.A.dylib                        0x1af9afc78 lookUpImpOrForward + 872
7   libobjc.A.dylib                        0x1af9aa0c4 _objc_msgSend_uncached + 68
8   FirebaseAuth                           0x100a74c4c -[FIRAuthStoredUserManager initWithServiceName:] + 176
9   FirebaseAuth                           0x100a555ac __38-[FIRAuth protectedDataInitialization]_block_invoke + 188
10  libdispatch.dylib                      0x1bda784b4 _dispatch_call_block_and_release + 32
11  libdispatch.dylib                      0x1bda79fdc _dispatch_client_callout + 20
12  libdispatch.dylib                      0x1bda81694 _dispatch_lane_serial_drain + 672
13  libdispatch.dylib                      0x1bda821e0 _dispatch_lane_invoke + 384
14  libdispatch.dylib                      0x1bda8ce10 _dispatch_workloop_worker_thread + 652
15  libsystem_pthread.dylib                0x202f1cdf8 _pthread_wqthread + 288
16  libsystem_pthread.dylib                0x202f1cb98 start_wqthread + 8

Thread 3 name:   Dispatch queue: com.apple.UIKit.KeyboardManagement
Thread 3:
0   libsystem_kernel.dylib                 0x1f2ce0680 __ulock_wait + 8
1   libdispatch.dylib                      0x1bda7a9cc _dlock_wait + 56
2   libdispatch.dylib                      0x1bda7a780 _dispatch_thread_event_wait_slow + 56
3   libdispatch.dylib                      0x1bda89860 __DISPATCH_WAIT_FOR_QUEUE__ + 368
4   libdispatch.dylib                      0x1bda8940c _dispatch_sync_f_slow + 144
5   UIKitCore                              0x1b8b2505c __37-[_UIRemoteKeyboards startConnection]_block_invoke_3 + 156
6   CoreFoundation                         0x1b6668a14 __invoking___ + 148
7   CoreFoundation                         0x1b6614f2c -[NSInvocation invoke] + 428
8   Foundation                             0x1b0ad8d38 __NSXPCCONNECTION_IS_CALLING_OUT_TO_REPLY_BLOCK__ + 16
9   Foundation                             0x1b0aaa2fc -[NSXPCConnection _decodeAndInvokeReplyBlockWithEvent:sequence:replyInfo:] + 520
10  Foundation                             0x1b1084f44 __88-[NSXPCConnection _sendInvocation:orArguments:count:methodSignature:selector:withProxy:]_block_invoke_5 + 188
11  libxpc.dylib                           0x202f7d3e4 _xpc_connection_reply_callout + 124
12  libxpc.dylib                           0x202f7047c _xpc_connection_call_reply_async + 88
13  libdispatch.dylib                      0x1bda7a05c _dispatch_client_callout3 + 20
14  libdispatch.dylib                      0x1bda97f58 _dispatch_mach_msg_async_reply_invoke + 344
15  libdispatch.dylib                      0x1bda8156c _dispatch_lane_serial_drain + 376
16  libdispatch.dylib                      0x1bda82214 _dispatch_lane_invoke + 436
17  libdispatch.dylib                      0x1bda8ce10 _dispatch_workloop_worker_thread + 652
18  libsystem_pthread.dylib                0x202f1cdf8 _pthread_wqthread + 288
19  libsystem_pthread.dylib                0x202f1cb98 start_wqthread + 8

Thread 4 name:  com.apple.uikit.eventfetch-thread
Thread 4:
0   libsystem_kernel.dylib                 0x1f2cdfb48 mach_msg2_trap + 8
1   libsystem_kernel.dylib                 0x1f2cf2008 mach_msg2_internal + 80
2   libsystem_kernel.dylib                 0x1f2cf2248 mach_msg_overwrite + 388
3   libsystem_kernel.dylib                 0x1f2ce008c mach_msg + 24
4   CoreFoundation                         0x1b666ee00 __CFRunLoopServiceMachPort + 160
5   CoreFoundation                         0x1b6670044 __CFRunLoopRun + 1232
6   CoreFoundation                         0x1b66751e4 CFRunLoopRunSpecific + 612
7   Foundation                             0x1b0a79818 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 212
8   Foundation                             0x1b0a79700 -[NSRunLoop(NSRunLoop) runUntilDate:] + 64
9   UIKitCore                              0x1b8c5988c -[UIEventFetcher threadMain] + 436
10  Foundation                             0x1b0a92ce8 __NSThread__start__ + 716
11  libsystem_pthread.dylib                0x202f1d6cc _pthread_start + 148
12  libsystem_pthread.dylib                0x202f1cba4 thread_start + 8

Thread 5:
0   libsystem_pthread.dylib                0x202f1cb90 start_wqthread + 0

Thread 6 name:   Dispatch queue: APMExperimentWorkerQueue
Thread 6:
0   libsystem_kernel.dylib                 0x1f2ce01f0 __getattrlist + 8
1   Foundation                             0x1b0ab6a48 +[NSFileAttributes _attributesAtPath:partialReturn:filterResourceFork:error:] + 480
2   Runner                                 0x1004bf594 -[APMSqliteStore openAndValidateDatabase:] + 124
3   Runner                                 0x1004bb1e4 -[APMSqliteStore initWithDatabasePath:error:] + 220
4   Runner                                 0x10043b140 -[APMEDatabase initializeDatabaseResourcesWithContext:databasePath:] + 100
5   Runner                                 0x10043b050 -[APMEDatabase initWithPath:] + 148
6   Runner                                 0x100443f10 -[APMETaskManager startTaskManagerOnWorkerQueue] + 72
7   Runner                                 0x100443eb8 __35-[APMETaskManager startTaskManager]_block_invoke + 36
8   Runner                                 0x1004454fc __46-[APMETaskManager dispatchAsyncOnWorkerQueue:]_block_invoke + 36
9   libdispatch.dylib                      0x1bda784b4 _dispatch_call_block_and_release + 32
10  libdispatch.dylib                      0x1bda79fdc _dispatch_client_callout + 20
11  libdispatch.dylib                      0x1bda81694 _dispatch_lane_serial_drain + 672
12  libdispatch.dylib                      0x1bda821e0 _dispatch_lane_invoke + 384
13  libdispatch.dylib                      0x1bda8ce10 _dispatch_workloop_worker_thread + 652
14  libsystem_pthread.dylib                0x202f1cdf8 _pthread_wqthread + 288
15  libsystem_pthread.dylib                0x202f1cb98 start_wqthread + 8

Thread 7 name:   Dispatch queue: APMAnalyticsQueue
Thread 7:
0   libsystem_c.dylib                      0x1bdac691c localeconv_l + 320
1   libsystem_c.dylib                      0x1bdac691c localeconv_l + 320
2   libsystem_c.dylib                      0x1bdabf110 __vfprintf + 168
3   libsystem_c.dylib                      0x1bdabee4c _vsnprintf + 224
4   libsystem_c.dylib                      0x1bdac3cb0 snprintf + 68
5   Network                                0x1b6ff2628 -[NWOSHostEndpoint createDescription:] + 132
6   Network                                0x1b6b49404 __nw_endpoint_get_logging_description_block_invoke + 40
7   Network                                0x1b6b491a8 nw_endpoint_get_logging_description + 188
8   Network                                0x1b6b004cc -[NWConcrete_nw_resolver initWithEndpoint:parameters:path:log_str:] + 2752
9   Network                                0x1b6b01208 nw_resolver_create_with_path + 148
10  SystemConfiguration                    0x1c05e97cc __SCNetworkReachabilityRestartResolver + 112
11  SystemConfiguration                    0x1c05e8f34 __SCNetworkReachabilitySetDispatchQueue + 888
12  SystemConfiguration                    0x1c05e63c8 SCNetworkReachabilityScheduleWithRunLoop + 540
13  GoogleUtilities                        0x1032e94c0 -[GULReachabilityChecker start] + 280
14  GoogleUtilities                        0x1032e23b4 -[GULNetwork initWithReachabilityHost:] + 184
15  Runner                                 0x10045a4b8 -[APMMeasurement initWithAppID:isAnalyticsCollectionEnabled:isAnalyticsCollectionDeactivated:safelistedEvents:experimentManager:] + 1156
16  Runner                                 0x100459db0 +[APMMeasurement initializeSharedInstanceWithAppID:isAnalyticsCollectionEnabled:isAnalyticsCollectionDeactivated:safelistedEvents:] + 216
17  Runner                                 0x10041916c __46+[APMAnalytics startWithAppID:origin:options:]_block_invoke_2 + 52
18  libdispatch.dylib                      0x1bda784b4 _dispatch_call_block_and_release + 32
19  libdispatch.dylib                      0x1bda79fdc _dispatch_client_callout + 20
20  libdispatch.dylib                      0x1bda81694 _dispatch_lane_serial_drain + 672
21  libdispatch.dylib                      0x1bda821e0 _dispatch_lane_invoke + 384
22  libdispatch.dylib                      0x1bda8ce10 _dispatch_workloop_worker_thread + 652
23  libsystem_pthread.dylib                0x202f1cdf8 _pthread_wqthread + 288
24  libsystem_pthread.dylib                0x202f1cb98 start_wqthread + 8

Thread 8:
0   libsystem_pthread.dylib                0x202f1cb90 start_wqthread + 0

Thread 0 crashed with ARM Thread State (64-bit):
    x0: 0x0000000000000000   x1: 0x80000001036dea40   x2: 0xd000000000000014   x3: 0x00000001c47fba84
    x4: 0x000000028325e2c0   x5: 0x0000000000000003   x6: 0x000000020c7f76e0   x7: 0x00000001007943a8
    x8: 0xd000000000000014   x9: 0x80000001036dea40  x10: 0x000000000000027a  x11: 0x00000000000007fb
   x12: 0x00000000000007fd  x13: 0x000000008d6822fc  x14: 0x000000008d882800  x15: 0x0000000000082800
   x16: 0x00000001b08bad4c  x17: 0x00000001c47eded8  x18: 0x0000000000000000  x19: 0x0000000000000000
   x20: 0x000000020c7f8270  x21: 0x0000000000000001  x22: 0x0000000000000001  x23: 0x0000000000000000
   x24: 0x0000000000000001  x25: 0x0000000209db2000  x26: 0x0000000209dc8000  x27: 0x000000002b870064
   x28: 0x0000000000000010   fp: 0x000000016f9f10e0   lr: 0x3c500001036dccd4
    sp: 0x000000016f9f10d0   pc: 0x00000001b08bad74 cpsr: 0x00001000
   far: 0x0000000000000000  esr: 0x92000006 (Data Abort) byte read Translation fault

Binary Images:
       0x1b049d000 -        0x1b0a05fff libswiftCore.dylib arm64e  <a49d560c13233bfba7e8762be0c1b2ef> /usr/lib/swift/libswiftCore.dylib
       0x1036d8000 -        0x1036dffff emoji_picker_flutter arm64  <8bae672ef43339479f9d3eef4f5d07a8> /private/var/containers/Bundle/Application/20013EF8-EBF6-4972-876D-D50D4E04479E/Runner.app/Frameworks/emoji_picker_flutter.framework/emoji_picker_flutter
       0x10040c000 -        0x100707fff Runner arm64  <d97f8c1a9d3936649afb7ec911c21b8d> /private/var/containers/Bundle/Application/20013EF8-EBF6-4972-876D-D50D4E04479E/Runner.app/Runner
       0x1b8782000 -        0x1b9f48fff UIKitCore arm64e  <7b942fa4cb7633759972f58c14492fb4> /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore
       0x1cbf67000 -        0x1cc00cfff FrontBoardServices arm64e  <8e15b35ea6143142b34d2c3cbbc13a8b> /System/Library/PrivateFrameworks/FrontBoardServices.framework/FrontBoardServices
       0x1bda76000 -        0x1bdabcfff libdispatch.dylib arm64e  <c663d847b94f3fb0925432edbc55315e> /usr/lib/system/libdispatch.dylib
       0x1b65f4000 -        0x1b69d8fff CoreFoundation arm64e  <42c5c91704473995b50fde4d132c2435> /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
       0x1ef494000 -        0x1ef49cfff GraphicsServices arm64e  <03732ba5113235b4b09d8dd49807d246> /System/Library/PrivateFrameworks/GraphicsServices.framework/GraphicsServices
       0x1d4984000 -        0x1d4a06e4f dyld arm64e  <7aa46eb180b2342b9e99be07dbd5696c> /usr/lib/dyld
       0x202f1c000 -        0x202f27fff libsystem_pthread.dylib arm64e  <e0674d941a2936b9a1f9ca129f0cfc7e> /usr/lib/system/libsystem_pthread.dylib
       0x1af9a8000 -        0x1af9ebc3f libobjc.A.dylib arm64e  <b3a78098c0fb3dcdb1ac0712762510db> /usr/lib/libobjc.A.dylib
       0x100a4c000 -        0x100abbfff FirebaseAuth arm64  <4bccf231f029317487f0047efd4efe37> /private/var/containers/Bundle/Application/20013EF8-EBF6-4972-876D-D50D4E04479E/Runner.app/Frameworks/FirebaseAuth.framework/FirebaseAuth
       0x1f2cdf000 -        0x1f2d15ffb libsystem_kernel.dylib arm64e  <d3eb8b567c223265a985a436bc8caf15> /usr/lib/system/libsystem_kernel.dylib
       0x1b0a38000 -        0x1b1382fff Foundation arm64e  <aa92cd58561a341492f4b4120298b39a> /System/Library/Frameworks/Foundation.framework/Foundation
       0x202f60000 -        0x202f9ffff libxpc.dylib arm64e  <bf679bcd7230311ba4da1dc48d787abc> /usr/lib/system/libxpc.dylib
       0x1bdabd000 -        0x1bdb3cfff libsystem_c.dylib arm64e  <82c0f938e2773165a61470151c651798> /usr/lib/system/libsystem_c.dylib
       0x1b69d9000 -        0x1b776efff Network arm64e  <f9e2a76557703360af20ca5b923fcbf2> /System/Library/Frameworks/Network.framework/Network
       0x1c05e0000 -        0x1c065eff3 SystemConfiguration arm64e  <188702b1178b3e2fb4ff77bb3e03c594> /System/Library/Frameworks/SystemConfiguration.framework/SystemConfiguration
       0x1032d4000 -        0x1032f7fff GoogleUtilities arm64  <c7a20050e27d37a08f553bf7dd6864cc> /private/var/containers/Bundle/Application/20013EF8-EBF6-4972-876D-D50D4E04479E/Runner.app/Frameworks/GoogleUtilities.framework/GoogleUtilities

EOF
Fintasys commented 1 year ago

Is there any explicit error message somewhere? The log you provided looks like only Stacktrace to me. Can you try to checkout this project and run the example on iOS and see if it also crashes?

joaogoes1 commented 1 year ago

Hello @Fintasys! Thanks for the response.

After an investigation I discovered the problem is I trying to launch a app, on iOs 16, in debug mode outside of XCode. I didn't know but it is a known issue of Flutter (I'm rookie on iOs world 😅). Sorry for the false alarm.