firebase / FirebaseUI-Flutter

Apache License 2.0
92 stars 80 forks source link

🐛 [firebase_ui_auth] App crashes when tap on "Sign in with Google" button #185

Closed tahamaddam closed 7 months ago

tahamaddam commented 7 months ago

Is there an existing issue for this?

What plugin is this bug for?

Firebase UI Auth

What platform(s) does this bug affect?

Android, iOS

List of dependencies used.

flutter pub deps -s list
dependencies:
- flutter 0.0.0
  - characters 1.3.0
  - collection 1.17.2
  - material_color_utilities 0.5.0
  - meta 1.9.1
  - vector_math 2.1.4
  - web 0.1.4-beta
  - sky_engine any
- cupertino_icons 1.0.6
- firebase_core 2.22.0
  - firebase_core_platform_interface ^5.0.0
  - firebase_core_web ^2.8.1
  - flutter any
  - meta ^1.8.0
- firebase_auth 4.13.0
  - firebase_auth_platform_interface ^7.0.4
  - firebase_auth_web ^5.8.7
  - firebase_core ^2.22.0
  - firebase_core_platform_interface ^5.0.0
  - flutter any
  - meta ^1.8.0
- firebase_ui_auth 1.10.0
  - email_validator ^2.1.17
  - firebase_auth ^4.11.1
  - firebase_core ^2.19.0
  - firebase_dynamic_links ^5.4.1
  - firebase_ui_localizations ^1.8.0
  - firebase_ui_oauth ^1.4.14
  - firebase_ui_shared ^1.4.1
  - flutter any
  - flutter_localizations any
- firebase_ui_oauth 1.4.14
  - desktop_webview_auth ^0.0.13
  - firebase_auth ^4.11.1
  - firebase_ui_auth ^1.10.0
  - firebase_ui_shared ^1.4.1
  - flutter_svg ^2.0.7
  - flutter any
- google_sign_in 6.1.6
  - flutter any
  - google_sign_in_android ^6.1.0
  - google_sign_in_ios ^5.5.0
  - google_sign_in_platform_interface ^2.4.0
  - google_sign_in_web ^0.12.0
- firebase_ui_oauth_google 1.2.14
  - firebase_auth ^4.11.1
  - firebase_ui_oauth ^1.4.14
  - flutter any
  - google_sign_in ^6.1.0

dev dependencies:
- flutter_test 0.0.0
  - flutter any
  - test_api 0.6.0
  - matcher 0.12.16
  - path 1.8.3
  - fake_async 1.3.1
  - clock 1.1.1
  - stack_trace 1.11.0
  - vector_math 2.1.4
  - async 2.11.0
  - boolean_selector 2.1.1
  - characters 1.3.0
  - collection 1.17.2
  - material_color_utilities 0.5.0
  - meta 1.9.1
  - source_span 1.10.0
  - stream_channel 2.1.1
  - string_scanner 1.2.0
  - term_glyph 1.2.1
  - web 0.1.4-beta
- flutter_lints 2.0.3
  - lints ^2.0.0

transitive dependencies:
- _fe_analyzer_shared 61.0.0
  - meta ^1.0.2
- _flutterfire_internals 1.3.12
  - collection ^1.0.0
  - firebase_core ^2.22.0
  - firebase_core_platform_interface ^5.0.0
  - flutter any
  - meta ^1.8.0
- analyzer 5.13.0
  - _fe_analyzer_shared ^61.0.0
  - collection ^1.17.0
  - convert ^3.0.0
  - crypto ^3.0.0
  - glob ^2.0.0
  - meta ^1.7.0
  - package_config ^2.0.0
  - path ^1.8.0
  - pub_semver ^2.0.0
  - source_span ^1.8.0
  - watcher ^1.0.0
  - yaml ^3.0.0
- args 2.4.2
- async 2.11.0
  - collection ^1.15.0
  - meta ^1.1.7
- boolean_selector 2.1.1
  - source_span ^1.8.0
  - string_scanner ^1.1.0
- characters 1.3.0
- clock 1.1.1
- collection 1.17.2
- convert 3.1.1
  - typed_data ^1.3.0
- crypto 3.0.3
  - typed_data ^1.3.0
- desktop_webview_auth 0.0.14
  - crypto ^3.0.3
  - flutter any
  - http ^1.0.0
  - flutter_web_plugins any
  - plugin_platform_interface ^2.1.4
- email_validator 2.1.17
- fake_async 1.3.1
  - clock ^1.1.0
  - collection ^1.15.0
- file 7.0.0
  - meta ^1.9.1
  - path ^1.8.3
- firebase_auth_platform_interface 7.0.4
  - _flutterfire_internals ^1.3.12
  - collection ^1.16.0
  - firebase_core ^2.22.0
  - flutter any
  - meta ^1.8.0
  - plugin_platform_interface ^2.1.3
- firebase_auth_web 5.8.7
  - firebase_auth_platform_interface ^7.0.4
  - firebase_core ^2.22.0
  - firebase_core_web ^2.8.1
  - flutter any
  - flutter_web_plugins any
  - http_parser ^4.0.0
  - js ^0.6.3
  - meta ^1.8.0
- firebase_core_platform_interface 5.0.0
  - collection ^1.0.0
  - flutter any
  - flutter_test any
  - meta ^1.8.0
  - plugin_platform_interface ^2.1.3
- firebase_core_web 2.8.1
  - firebase_core_platform_interface ^5.0.0
  - flutter any
  - flutter_web_plugins any
  - js ^0.6.3
  - meta ^1.8.0
- firebase_dynamic_links 5.4.4
  - firebase_core ^2.22.0
  - firebase_core_platform_interface ^5.0.0
  - firebase_dynamic_links_platform_interface ^0.2.6+12
  - flutter any
  - meta ^1.8.0
  - plugin_platform_interface ^2.1.3
- firebase_dynamic_links_platform_interface 0.2.6+12
  - _flutterfire_internals ^1.3.12
  - firebase_core ^2.22.0
  - flutter any
  - meta ^1.8.0
  - plugin_platform_interface ^2.1.3
- firebase_ui_localizations 1.8.0
  - flutter any
  - flutter_localizations any
  - path ^1.8.2
- firebase_ui_shared 1.4.1
  - flutter any
- flutter_localizations 0.0.0
  - flutter any
  - intl 0.18.1
  - characters 1.3.0
  - clock 1.1.1
  - collection 1.17.2
  - material_color_utilities 0.5.0
  - meta 1.9.1
  - path 1.8.3
  - vector_math 2.1.4
  - web 0.1.4-beta
- flutter_svg 2.0.9
  - flutter any
  - vector_graphics ^1.1.9+1
  - vector_graphics_codec ^1.1.9+1
  - vector_graphics_compiler ^1.1.9+1
- flutter_web_plugins 0.0.0
  - flutter any
  - characters 1.3.0
  - collection 1.17.2
  - material_color_utilities 0.5.0
  - meta 1.9.1
  - vector_math 2.1.4
  - web 0.1.4-beta
- glob 2.1.2
  - async ^2.5.0
  - collection ^1.15.0
  - file >=6.1.3 <8.0.0
  - path ^1.8.0
  - string_scanner ^1.1.0
- google_identity_services_web 0.2.2
  - js ^0.6.4
  - meta ^1.3.0
- google_sign_in_android 6.1.20
  - flutter any
  - google_sign_in_platform_interface ^2.2.0
- google_sign_in_ios 5.6.5
  - flutter any
  - google_sign_in_platform_interface ^2.2.0
  - pigeon ^11.0.1
- google_sign_in_platform_interface 2.4.2
  - flutter any
  - plugin_platform_interface ^2.1.0
  - quiver ^3.0.0
- google_sign_in_web 0.12.1
  - flutter any
  - flutter_web_plugins any
  - google_identity_services_web ^0.2.2
  - google_sign_in_platform_interface ^2.4.0
  - http >=0.13.0 <2.0.0
  - js ^0.6.3
- http 1.1.0
  - async ^2.5.0
  - http_parser ^4.0.0
  - meta ^1.3.0
- http_parser 4.0.2
  - collection ^1.15.0
  - source_span ^1.8.0
  - string_scanner ^1.1.0
  - typed_data ^1.3.0
- intl 0.18.1
  - clock ^1.1.0
  - meta ^1.0.2
  - path ^1.8.0
- js 0.6.7
  - meta ^1.7.0
- lints 2.1.1
- matcher 0.12.16
  - async ^2.10.0
  - meta ^1.8.0
  - stack_trace ^1.10.0
  - term_glyph ^1.2.0
  - test_api >=0.5.0 <0.7.0
- material_color_utilities 0.5.0
  - collection ^1.15.0
- meta 1.9.1
- package_config 2.1.0
  - path ^1.8.0
- path 1.8.3
- path_parsing 1.0.1
  - vector_math ^2.1.0
  - meta ^1.3.0
- petitparser 5.4.0
  - meta ^1.9.0
- pigeon 11.0.1
  - analyzer ^5.13.0
  - args ^2.1.0
  - collection ^1.15.0
  - meta ^1.7.0
  - path ^1.8.0
  - yaml ^3.1.1
- plugin_platform_interface 2.1.6
  - meta ^1.3.0
- pub_semver 2.1.4
  - collection ^1.15.0
  - meta ^1.3.0
- quiver 3.2.1
  - matcher ^0.12.10
- sky_engine 0.0.99
- source_span 1.10.0
  - collection ^1.15.0
  - path ^1.8.0
  - term_glyph ^1.2.0
- stack_trace 1.11.0
  - path ^1.8.0
- stream_channel 2.1.1
  - async ^2.5.0
- string_scanner 1.2.0
  - source_span ^1.8.0
- term_glyph 1.2.1
- test_api 0.6.0
  - async ^2.5.0
  - boolean_selector ^2.1.0
  - collection ^1.15.0
  - meta ^1.3.0
  - source_span ^1.8.0
  - stack_trace ^1.10.0
  - stream_channel ^2.1.0
  - string_scanner ^1.1.0
  - term_glyph ^1.2.0
- typed_data 1.3.2
  - collection ^1.15.0
- vector_graphics 1.1.9+1
  - flutter any
  - vector_graphics_codec 1.1.9+1
- vector_graphics_codec 1.1.9+1
- vector_graphics_compiler 1.1.9+1
  - args ^2.3.0
  - meta ^1.7.0
  - path_parsing ^1.0.1
  - xml ^6.3.0
  - vector_graphics_codec 1.1.9+1
  - path ^1.8.0
- vector_math 2.1.4
- watcher 1.1.0
  - async ^2.5.0
  - path ^1.8.0
- web 0.1.4-beta
- xml 6.3.0
  - collection ^1.17.0
  - meta ^1.9.0
  - petitparser ^5.4.0
- yaml 3.1.2
  - collection ^1.15.0
  - source_span ^1.8.0
  - string_scanner ^1.1.0

Steps to reproduce

  1. Register a new firebase app
  2. Create a new flutter project
  3. Enable Authentication under firebase and enable Email/password and Google sign in options
  4. Run flutterfire configure to sync the firebase with local flutter project
  5. Install all necessary dependencies to use firebase_ui_auth package
  6. Edit the code of main.dart to the following
import 'package:experiments/firebase_options.dart';
import 'package:firebase_auth/firebase_auth.dart' hide EmailAuthProvider;
import 'package:firebase_core/firebase_core.dart';
import 'package:firebase_ui_auth/firebase_ui_auth.dart';
import 'package:firebase_ui_oauth_google/firebase_ui_oauth_google.dart';
import 'package:flutter/material.dart';

Future<void> main() async {
  WidgetsFlutterBinding.ensureInitialized();

  await Firebase.initializeApp(
    options: DefaultFirebaseOptions.currentPlatform,
  );
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Experiments',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      home: const AuthenticationHome(),
    );
  }
}

class AuthenticationHome extends StatelessWidget {
  const AuthenticationHome({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: const Text('Firebase Authentication')),
      body: StreamBuilder<User?>(
        stream: FirebaseAuth.instance.authStateChanges(),
        builder: (context, snapshot) {
          if (!snapshot.hasData) {
            return SignInScreen(
              providers: [
                EmailAuthProvider(),
                GoogleProvider(
                    clientId: DefaultFirebaseOptions.currentPlatform.appId),
              ],
            );
          } else {
            return const ProfileScreen();
          }
        },
      ),
    );
  }
}
  1. Run the app on iOS simulator and try to sign in using email and password. Works.

on iOS Emulator

  1. Tap the "Sign in with Google" button and the app crashes with error related to "Runner quits unexpectedly"

on Android Emulator

  1. Tap the "Sign in with Google" button, it allows me to choose the Google account, but then shows the "unknown error occurred" without app being crashed.

Expected Behavior

I expect it to let me select the Google account and then register me as a new user on Firebase.

Actual Behavior

On iOS

App crashes and dialogue box opens to report the crash. The title of the dialogue box says "Runner quits unexpectedly"

-------------------------------------
Translated Report (Full Report Below)
-------------------------------------

Incident Identifier: B6E47EED-F4B5-41F5-9F36-C196551D0517
CrashReporter Key:   44FBAF68-B6DF-FB2C-A9B2-586E9AE2B4F2
Hardware Model:      Macmini9,1
Process:             Runner [44295]
Path:                /Users/USER/Library/Developer/CoreSimulator/Devices/870710BB-C702-4274-B081-667B056FEDCC/data/Containers/Bundle/Application/BA24C56B-3ABC-4104-A858-7E9B9DB4A22F/Runner.app/Runner
Identifier:          com.appsstation.experiments
Version:             1.0.0 (1)
Code Type:           ARM-64 (Native)
Role:                Foreground
Parent Process:      launchd_sim [40818]
Coalition:           com.apple.CoreSimulator.SimDevice.870710BB-C702-4274-B081-667B056FEDCC [111217]
Responsible Process: SimulatorTrampoline [15398]

Date/Time:           2023-11-12 16:38:39.3619 +0800
Launch Time:         2023-11-12 16:32:18.6916 +0800
OS Version:          macOS 14.0 (23A344)
Release Type:        User
Report Version:      104

Exception Type:  EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Termination Reason: SIGNAL 6 Abort trap: 6
Terminating Process: Runner [44295]

Triggered by Thread:  0

Last Exception Backtrace:
0   CoreFoundation                         0x18048d89c __exceptionPreprocess + 160
1   libobjc.A.dylib                        0x18008409c objc_exception_throw + 56
2   CoreFoundation                         0x18048d7b8 -[NSException initWithCoder:] + 0
3   GoogleSignIn                           0x1016d6be0 -[GIDSignIn signInWithOptions:] + 444 (GIDSignIn.m:517)
4   GoogleSignIn                           0x1016d5ae0 -[GIDSignIn signInWithPresentingViewController:hint:additionalScopes:completion:] + 208 (GIDSignIn.m:259)
5   Runner                                 0x10048caac -[FLTGoogleSignInPlugin signInWithCompletion:] + 800
6   Runner                                 0x100491ca0 __FSIGoogleSignInApiSetup_block_invoke.119 + 184
7   Flutter                                0x1049268c8 __48-[FlutterBasicMessageChannel setMessageHandler:]_block_invoke + 168
8   Flutter                                0x104350234 invocation function for block in flutter::PlatformMessageHandlerIos::HandlePlatformMessage(std::_LIBCPP_ABI_NAMESPACE::unique_ptr<flutter::PlatformMessage, std::_LIBCPP_ABI_NAMESPACE::default_delete<flutter::PlatformMessage>>) + 108
9   libdispatch.dylib                      0x18016a4f4 _dispatch_call_block_and_release + 24
10  libdispatch.dylib                      0x18016bd3c _dispatch_client_callout + 16
11  libdispatch.dylib                      0x18017ab24 _dispatch_main_queue_drain + 1272
12  libdispatch.dylib                      0x18017a61c _dispatch_main_queue_callback_4CF + 40
13  CoreFoundation                         0x1803ee1b4 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12
14  CoreFoundation                         0x1803e88cc __CFRunLoopRun + 1936
15  CoreFoundation                         0x1803e7d28 CFRunLoopRunSpecific + 572
16  GraphicsServices                       0x18e7cdbc0 GSEventRunModal + 160
17  UIKitCore                              0x1852bafdc -[UIApplication _run] + 868
18  UIKitCore                              0x1852bec54 UIApplicationMain + 124
19  Runner                                 0x100453140 main + 64 (AppDelegate.swift:5)
20  dyld_sim                               0x100659558 start_sim + 20
21  dyld                                   0x10078e058 start + 2224
22  ???                             0xb844800000000000 ???

Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib                 0x1019c8a4c __pthread_kill + 8
1   libsystem_pthread.dylib                0x1015731d0 pthread_kill + 256
2   libsystem_c.dylib                      0x18015f5ec abort + 104
3   libc++abi.dylib                        0x18028bc78 abort_message + 128
4   libc++abi.dylib                        0x18027d198 demangling_terminate_handler() + 300
5   libobjc.A.dylib                        0x18005fbf0 _objc_terminate() + 124
6   libc++abi.dylib                        0x18028b150 std::__terminate(void (*)()) + 12
7   libc++abi.dylib                        0x18028b100 std::terminate() + 52
8   libdispatch.dylib                      0x18016bd50 _dispatch_client_callout + 36
9   libdispatch.dylib                      0x18017ab24 _dispatch_main_queue_drain + 1272
10  libdispatch.dylib                      0x18017a61c _dispatch_main_queue_callback_4CF + 40
11  CoreFoundation                         0x1803ee1b4 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12
12  CoreFoundation                         0x1803e88cc __CFRunLoopRun + 1936
13  CoreFoundation                         0x1803e7d28 CFRunLoopRunSpecific + 572
14  GraphicsServices                       0x18e7cdbc0 GSEventRunModal + 160
15  UIKitCore                              0x1852bafdc -[UIApplication _run] + 868
16  UIKitCore                              0x1852bec54 UIApplicationMain + 124
17  Runner                                 0x100453140 main + 64 (AppDelegate.swift:5)
18  dyld_sim                               0x100659558 start_sim + 20
19  dyld                                   0x10078e058 start + 2224

Thread 1:: com.apple.uikit.eventfetch-thread
0   libsystem_kernel.dylib                 0x1019c0c10 mach_msg2_trap + 8
1   libsystem_kernel.dylib                 0x1019d1da4 mach_msg2_internal + 76
2   libsystem_kernel.dylib                 0x1019c8e34 mach_msg_overwrite + 532
3   libsystem_kernel.dylib                 0x1019c0f88 mach_msg + 20
4   CoreFoundation                         0x1803eded8 __CFRunLoopServiceMachPort + 156
5   CoreFoundation                         0x1803e85b8 __CFRunLoopRun + 1148
6   CoreFoundation                         0x1803e7d28 CFRunLoopRunSpecific + 572
7   Foundation                             0x180dd7a98 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 208
8   Foundation                             0x180dd7cbc -[NSRunLoop(NSRunLoop) runUntilDate:] + 60
9   UIKitCore                              0x18535d304 -[UIEventFetcher threadMain] + 404
10  Foundation                             0x180dfe27c __NSThread__start__ + 720
11  libsystem_pthread.dylib                0x1015734c0 _pthread_start + 104
12  libsystem_pthread.dylib                0x10156e6f0 thread_start + 8

Thread 2:: io.flutter.1.ui
0   Flutter                                0x104be9d38 dart::kernel::FlowGraphBuilder::StaticCall(dart::TokenPosition, dart::Function const&, long, dart::Array const&, dart::ICData::RebindRule, dart::kernel::InferredTypeMetadata const*, long, bool) + 460
1   Flutter                                0x104bd8ab4 dart::kernel::StreamingFlowGraphBuilder::StaticCall(dart::TokenPosition, dart::Function const&, long, dart::Array const&, dart::ICData::RebindRule, dart::kernel::InferredTypeMetadata const*, long, bool) + 132
2   Flutter                                0x104bdcf50 dart::kernel::StreamingFlowGraphBuilder::BuildSuperMethodInvocation(dart::TokenPosition*) + 1032
3   Flutter                                0x104bd87dc dart::kernel::StreamingFlowGraphBuilder::BuildStatement(dart::TokenPosition*) + 192
4   Flutter                                0x104bdff10 dart::kernel::StreamingFlowGraphBuilder::BuildBlock(dart::TokenPosition*) + 160
5   Flutter                                0x104bd9488 dart::kernel::StreamingFlowGraphBuilder::BuildFunctionBody(dart::Function const&, dart::LocalVariable*, bool) + 228
6   Flutter                                0x104bd9a7c dart::kernel::StreamingFlowGraphBuilder::BuildGraphOfFunction(bool) + 500
7   Flutter                                0x104bd9db8 dart::kernel::StreamingFlowGraphBuilder::BuildGraph() + 304
8   Flutter                                0x104bea484 dart::kernel::FlowGraphBuilder::BuildGraph() + 96
9   Flutter                                0x104acbcb8 dart::DartCompilationPipeline::BuildFlowGraph(dart::Zone*, dart::ParsedFunction*, dart::ZoneGrowableArray<dart::ICData const*>*, long, bool) + 60
10  Flutter                                0x104accd8c dart::CompileParsedFunctionHelper::Compile(dart::CompilationPipeline*) + 1332
11  Flutter                                0x104acd6c8 dart::CompileFunctionHelper(dart::CompilationPipeline*, dart::Function const&, bool, long) + 904
12  Flutter                                0x104acd318 dart::Compiler::CompileFunction(dart::Thread*, dart::Function const&) + 268
13  Flutter                                0x1049f6cdc dart::Function::EnsureHasCode() const + 88
14  Flutter                                0x104a8b298 dart::TrySwitchInstanceCall(dart::Thread*, dart::StackFrame*, dart::Code const&, dart::Function const&, dart::ICData const&, dart::Function const&) + 232
15  Flutter                                0x104a8b3d0 dart::PatchableCallHandler::DoICDataMissJIT(dart::ICData const&, dart::Object const&, dart::Function const&) + 120
16  Flutter                                0x104a8b950 dart::PatchableCallHandler::ResolveSwitchAndReturn(dart::Object const&) + 268
17  Flutter                                0x104a90794 dart::InlineCacheMissHandler(dart::Thread*, dart::Zone*, dart::GrowableArray<dart::Instance const*> const&, dart::ICData const&, dart::NativeArguments) + 220
18  Flutter                                0x104a8bb90 dart::DRT_InlineCacheMissHandlerOneArg(dart::NativeArguments) + 392
19  ???                                    0x106e82f5c ???
20  ???                                    0x106e8441c ???
21  ???                                    0x11877a3f8 ???
22  ???                                    0x1187793fc ???
23  ???                                    0x118779060 ???
24  ???                                    0x118778d9c ???
25  ???                                    0x118778994 ???
26  ???                                    0x115ed9c9c ???
27  ???                                    0x115edf5ec ???
28  ???                                    0x115eddfe8 ???
29  ???                                    0x115ececa4 ???
30  ???                                    0x11734bc68 ???
31  ???                                    0x11734b59c ???
32  ???                                    0x11734b498 ???
33  ???                                    0x11734aed8 ???
34  ???                                    0x117349a68 ???
35  ???                                    0x117349350 ???
36  ???                                    0x1173490a0 ???
37  ???                                    0x10ed98ea0 ???
38  ???                                    0x117348ee4 ???
39  ???                                    0x117348d90 ???
40  ???                                    0x117348cbc ???
41  ???                                    0x106e834e4 ???
42  Flutter                                0x10497cf00 dart::DartEntry::InvokeFunction(dart::Function const&, dart::Array const&, dart::Array const&) + 232
43  Flutter                                0x10497d518 dart::DartEntry::InvokeCallable(dart::Thread*, dart::Function const&, dart::Array const&, dart::Array const&) + 288
44  Flutter                                0x104c8a990 Dart_InvokeClosure + 952
45  Flutter                                0x104745b90 tonic::DartInvokeVoid(_Dart_Handle*) + 24
46  Flutter                                0x1048eb1e4 flutter::PlatformConfiguration::BeginFrame(fml::TimePoint, unsigned long long) + 264
47  Flutter                                0x104922348 flutter::RuntimeController::BeginFrame(fml::TimePoint, unsigned long long) + 52
48  Flutter                                0x104716984 flutter::Animator::BeginFrame(std::_LIBCPP_ABI_NAMESPACE::unique_ptr<flutter::FrameTimingsRecorder, std::_LIBCPP_ABI_NAMESPACE::default_delete<flutter::FrameTimingsRecorder>>) + 360
49  Flutter                                0x10471968c std::_LIBCPP_ABI_NAMESPACE::__function::__func<flutter::Animator::AwaitVSync()::$_0, std::_LIBCPP_ABI_NAMESPACE::allocator<flutter::Animator::AwaitVSync()::$_0>, void (std::_LIBCPP_ABI_NAMESPACE::unique_ptr<flutter::FrameTimingsRecorder, std::_LIBCPP_ABI_NAMESPACE::default_delete<flutter::FrameTimingsRecorder>>)>::operator()(std::_LIBCPP_ABI_NAMESPACE::unique_ptr<flutter::FrameTimingsRecorder, std::_LIBCPP_ABI_NAMESPACE::default_delete<flutter::FrameTimingsRecorder>>&&) + 68
50  Flutter                                0x10473fcb8 std::_LIBCPP_ABI_NAMESPACE::__function::__func<flutter::VsyncWaiter::FireCallback(fml::TimePoint, fml::TimePoint, bool)::$_0, std::_LIBCPP_ABI_NAMESPACE::allocator<flutter::VsyncWaiter::FireCallback(fml::TimePoint, fml::TimePoint, bool)::$_0>, void ()>::operator()() + 112
51  Flutter                                0x10460f3ac fml::MessageLoopImpl::FlushTasks(fml::FlushType) + 156
52  Flutter                                0x104615cd8 fml::MessageLoopDarwin::OnTimerFire(__CFRunLoopTimer*, fml::MessageLoopDarwin*) + 32
53  CoreFoundation                         0x1803eed9c __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 28
54  CoreFoundation                         0x1803eea58 __CFRunLoopDoTimer + 948
55  CoreFoundation                         0x1803ee0f4 __CFRunLoopDoTimers + 284
56  CoreFoundation                         0x1803e8840 __CFRunLoopRun + 1796
57  CoreFoundation                         0x1803e7d28 CFRunLoopRunSpecific + 572
58  Flutter                                0x104615e08 fml::MessageLoopDarwin::Run() + 88
59  Flutter                                0x10460f2c0 fml::MessageLoopImpl::DoRun() + 40
60  Flutter                                0x104614938 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_NAMESPACE::default_delete<std::_LIBCPP_ABI_NAMESPACE::__thread_struct>>, fml::Thread::Thread(std::_LIBCPP_ABI_NAMESPACE::function<void (fml::Thread::ThreadConfig const&)> const&, fml::Thread::ThreadConfig const&)::$_0>>(void*) + 208
61  libsystem_pthread.dylib                0x1015734c0 _pthread_start + 104
62  libsystem_pthread.dylib                0x10156e6f0 thread_start + 8

Thread 3:: io.flutter.1.raster
0   libsystem_kernel.dylib                 0x1019c0c10 mach_msg2_trap + 8
1   libsystem_kernel.dylib                 0x1019d1da4 mach_msg2_internal + 76
2   libsystem_kernel.dylib                 0x1019c8e34 mach_msg_overwrite + 532
3   libsystem_kernel.dylib                 0x1019c0f88 mach_msg + 20
4   CoreFoundation                         0x1803eded8 __CFRunLoopServiceMachPort + 156
5   CoreFoundation                         0x1803e85b8 __CFRunLoopRun + 1148
6   CoreFoundation                         0x1803e7d28 CFRunLoopRunSpecific + 572
7   Flutter                                0x104615e08 fml::MessageLoopDarwin::Run() + 88
8   Flutter                                0x10460f2c0 fml::MessageLoopImpl::DoRun() + 40
9   Flutter                                0x104614938 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_NAMESPACE::default_delete<std::_LIBCPP_ABI_NAMESPACE::__thread_struct>>, fml::Thread::Thread(std::_LIBCPP_ABI_NAMESPACE::function<void (fml::Thread::ThreadConfig const&)> const&, fml::Thread::ThreadConfig const&)::$_0>>(void*) + 208
10  libsystem_pthread.dylib                0x1015734c0 _pthread_start + 104
11  libsystem_pthread.dylib                0x10156e6f0 thread_start + 8

Thread 4:: io.flutter.1.io
0   libsystem_kernel.dylib                 0x1019c0c10 mach_msg2_trap + 8
1   libsystem_kernel.dylib                 0x1019d1da4 mach_msg2_internal + 76
2   libsystem_kernel.dylib                 0x1019c8e34 mach_msg_overwrite + 532
3   libsystem_kernel.dylib                 0x1019c0f88 mach_msg + 20
4   CoreFoundation                         0x1803eded8 __CFRunLoopServiceMachPort + 156
5   CoreFoundation                         0x1803e85b8 __CFRunLoopRun + 1148
6   CoreFoundation                         0x1803e7d28 CFRunLoopRunSpecific + 572
7   Flutter                                0x104615e08 fml::MessageLoopDarwin::Run() + 88
8   Flutter                                0x10460f2c0 fml::MessageLoopImpl::DoRun() + 40
9   Flutter                                0x104614938 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_NAMESPACE::default_delete<std::_LIBCPP_ABI_NAMESPACE::__thread_struct>>, fml::Thread::Thread(std::_LIBCPP_ABI_NAMESPACE::function<void (fml::Thread::ThreadConfig const&)> const&, fml::Thread::ThreadConfig const&)::$_0>>(void*) + 208
10  libsystem_pthread.dylib                0x1015734c0 _pthread_start + 104
11  libsystem_pthread.dylib                0x10156e6f0 thread_start + 8

Thread 5:: io.flutter.1.profiler
0   libsystem_kernel.dylib                 0x1019c0c10 mach_msg2_trap + 8
1   libsystem_kernel.dylib                 0x1019d1da4 mach_msg2_internal + 76
2   libsystem_kernel.dylib                 0x1019c8e34 mach_msg_overwrite + 532
3   libsystem_kernel.dylib                 0x1019c0f88 mach_msg + 20
4   CoreFoundation                         0x1803eded8 __CFRunLoopServiceMachPort + 156
5   CoreFoundation                         0x1803e85b8 __CFRunLoopRun + 1148
6   CoreFoundation                         0x1803e7d28 CFRunLoopRunSpecific + 572
7   Flutter                                0x104615e08 fml::MessageLoopDarwin::Run() + 88
8   Flutter                                0x10460f2c0 fml::MessageLoopImpl::DoRun() + 40
9   Flutter                                0x104614938 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_NAMESPACE::default_delete<std::_LIBCPP_ABI_NAMESPACE::__thread_struct>>, fml::Thread::Thread(std::_LIBCPP_ABI_NAMESPACE::function<void (fml::Thread::ThreadConfig const&)> const&, fml::Thread::ThreadConfig const&)::$_0>>(void*) + 208
10  libsystem_pthread.dylib                0x1015734c0 _pthread_start + 104
11  libsystem_pthread.dylib                0x10156e6f0 thread_start + 8

Thread 6:: io.worker.1
0   libsystem_kernel.dylib                 0x1019c4110 __psynch_cvwait + 8
1   libsystem_pthread.dylib                0x101573a78 _pthread_cond_wait + 1216
2   Flutter                                0x104361ff4 std::_LIBCPP_ABI_NAMESPACE::condition_variable::wait(std::_LIBCPP_ABI_NAMESPACE::unique_lock<std::_LIBCPP_ABI_NAMESPACE::mutex>&) + 24
3   Flutter                                0x10460c364 fml::ConcurrentMessageLoop::WorkerMain() + 156
4   Flutter                                0x10460ca1c 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_NAMESPACE::default_delete<std::_LIBCPP_ABI_NAMESPACE::__thread_struct>>, fml::ConcurrentMessageLoop::ConcurrentMessageLoop(unsigned long)::$_0>>(void*) + 184
5   libsystem_pthread.dylib                0x1015734c0 _pthread_start + 104
6   libsystem_pthread.dylib                0x10156e6f0 thread_start + 8

Thread 7:: io.worker.2
0   libsystem_kernel.dylib                 0x1019c4110 __psynch_cvwait + 8
1   libsystem_pthread.dylib                0x101573a78 _pthread_cond_wait + 1216
2   Flutter                                0x104361ff4 std::_LIBCPP_ABI_NAMESPACE::condition_variable::wait(std::_LIBCPP_ABI_NAMESPACE::unique_lock<std::_LIBCPP_ABI_NAMESPACE::mutex>&) + 24
3   Flutter                                0x10460c364 fml::ConcurrentMessageLoop::WorkerMain() + 156
4   Flutter                                0x10460ca1c 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_NAMESPACE::default_delete<std::_LIBCPP_ABI_NAMESPACE::__thread_struct>>, fml::ConcurrentMessageLoop::ConcurrentMessageLoop(unsigned long)::$_0>>(void*) + 184
5   libsystem_pthread.dylib                0x1015734c0 _pthread_start + 104
6   libsystem_pthread.dylib                0x10156e6f0 thread_start + 8

Thread 8:: io.worker.3
0   libsystem_kernel.dylib                 0x1019c4110 __psynch_cvwait + 8
1   libsystem_pthread.dylib                0x101573a78 _pthread_cond_wait + 1216
2   Flutter                                0x104361ff4 std::_LIBCPP_ABI_NAMESPACE::condition_variable::wait(std::_LIBCPP_ABI_NAMESPACE::unique_lock<std::_LIBCPP_ABI_NAMESPACE::mutex>&) + 24
3   Flutter                                0x10460c364 fml::ConcurrentMessageLoop::WorkerMain() + 156
4   Flutter                                0x10460ca1c 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_NAMESPACE::default_delete<std::_LIBCPP_ABI_NAMESPACE::__thread_struct>>, fml::ConcurrentMessageLoop::ConcurrentMessageLoop(unsigned long)::$_0>>(void*) + 184
5   libsystem_pthread.dylib                0x1015734c0 _pthread_start + 104
6   libsystem_pthread.dylib                0x10156e6f0 thread_start + 8

Thread 9:: io.worker.4
0   libsystem_kernel.dylib                 0x1019c4110 __psynch_cvwait + 8
1   libsystem_pthread.dylib                0x101573a78 _pthread_cond_wait + 1216
2   Flutter                                0x104361ff4 std::_LIBCPP_ABI_NAMESPACE::condition_variable::wait(std::_LIBCPP_ABI_NAMESPACE::unique_lock<std::_LIBCPP_ABI_NAMESPACE::mutex>&) + 24
3   Flutter                                0x10460c364 fml::ConcurrentMessageLoop::WorkerMain() + 156
4   Flutter                                0x10460ca1c 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_NAMESPACE::default_delete<std::_LIBCPP_ABI_NAMESPACE::__thread_struct>>, fml::ConcurrentMessageLoop::ConcurrentMessageLoop(unsigned long)::$_0>>(void*) + 184
5   libsystem_pthread.dylib                0x1015734c0 _pthread_start + 104
6   libsystem_pthread.dylib                0x10156e6f0 thread_start + 8

Thread 10:: io.worker.5
0   libsystem_kernel.dylib                 0x1019c4110 __psynch_cvwait + 8
1   libsystem_pthread.dylib                0x101573a78 _pthread_cond_wait + 1216
2   Flutter                                0x104361ff4 std::_LIBCPP_ABI_NAMESPACE::condition_variable::wait(std::_LIBCPP_ABI_NAMESPACE::unique_lock<std::_LIBCPP_ABI_NAMESPACE::mutex>&) + 24
3   Flutter                                0x10460c364 fml::ConcurrentMessageLoop::WorkerMain() + 156
4   Flutter                                0x10460ca1c 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_NAMESPACE::default_delete<std::_LIBCPP_ABI_NAMESPACE::__thread_struct>>, fml::ConcurrentMessageLoop::ConcurrentMessageLoop(unsigned long)::$_0>>(void*) + 184
5   libsystem_pthread.dylib                0x1015734c0 _pthread_start + 104
6   libsystem_pthread.dylib                0x10156e6f0 thread_start + 8

Thread 11:: io.worker.6
0   libsystem_kernel.dylib                 0x1019c4110 __psynch_cvwait + 8
1   libsystem_pthread.dylib                0x101573a78 _pthread_cond_wait + 1216
2   Flutter                                0x104361ff4 std::_LIBCPP_ABI_NAMESPACE::condition_variable::wait(std::_LIBCPP_ABI_NAMESPACE::unique_lock<std::_LIBCPP_ABI_NAMESPACE::mutex>&) + 24
3   Flutter                                0x10460c364 fml::ConcurrentMessageLoop::WorkerMain() + 156
4   Flutter                                0x10460ca1c 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_NAMESPACE::default_delete<std::_LIBCPP_ABI_NAMESPACE::__thread_struct>>, fml::ConcurrentMessageLoop::ConcurrentMessageLoop(unsigned long)::$_0>>(void*) + 184
5   libsystem_pthread.dylib                0x1015734c0 _pthread_start + 104
6   libsystem_pthread.dylib                0x10156e6f0 thread_start + 8

Thread 12:: io.worker.7
0   libsystem_kernel.dylib                 0x1019c4110 __psynch_cvwait + 8
1   libsystem_pthread.dylib                0x101573a78 _pthread_cond_wait + 1216
2   Flutter                                0x104361ff4 std::_LIBCPP_ABI_NAMESPACE::condition_variable::wait(std::_LIBCPP_ABI_NAMESPACE::unique_lock<std::_LIBCPP_ABI_NAMESPACE::mutex>&) + 24
3   Flutter                                0x10460c364 fml::ConcurrentMessageLoop::WorkerMain() + 156
4   Flutter                                0x10460ca1c 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_NAMESPACE::default_delete<std::_LIBCPP_ABI_NAMESPACE::__thread_struct>>, fml::ConcurrentMessageLoop::ConcurrentMessageLoop(unsigned long)::$_0>>(void*) + 184
5   libsystem_pthread.dylib                0x1015734c0 _pthread_start + 104
6   libsystem_pthread.dylib                0x10156e6f0 thread_start + 8

Thread 13:: io.worker.8
0   libsystem_kernel.dylib                 0x1019c4110 __psynch_cvwait + 8
1   libsystem_pthread.dylib                0x101573a78 _pthread_cond_wait + 1216
2   Flutter                                0x104361ff4 std::_LIBCPP_ABI_NAMESPACE::condition_variable::wait(std::_LIBCPP_ABI_NAMESPACE::unique_lock<std::_LIBCPP_ABI_NAMESPACE::mutex>&) + 24
3   Flutter                                0x10460c364 fml::ConcurrentMessageLoop::WorkerMain() + 156
4   Flutter                                0x10460ca1c 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_NAMESPACE::default_delete<std::_LIBCPP_ABI_NAMESPACE::__thread_struct>>, fml::ConcurrentMessageLoop::ConcurrentMessageLoop(unsigned long)::$_0>>(void*) + 184
5   libsystem_pthread.dylib                0x1015734c0 _pthread_start + 104
6   libsystem_pthread.dylib                0x10156e6f0 thread_start + 8

Thread 14:: dart:io EventHandler
0   libsystem_kernel.dylib                 0x1019c678c kevent + 8
1   Flutter                                0x1048f99d8 dart::bin::EventHandlerImplementation::EventHandlerEntry(unsigned long) + 320
2   Flutter                                0x104915d08 dart::bin::ThreadStart(void*) + 88
3   libsystem_pthread.dylib                0x1015734c0 _pthread_start + 104
4   libsystem_pthread.dylib                0x10156e6f0 thread_start + 8

Thread 15:: Dart Profiler ThreadInterrupter
0   libsystem_kernel.dylib                 0x1019c4110 __psynch_cvwait + 8
1   libsystem_pthread.dylib                0x101573aa4 _pthread_cond_wait + 1260
2   Flutter                                0x104a4db98 dart::Monitor::WaitMicros(long long) + 128
3   Flutter                                0x104aba304 dart::ThreadInterrupter::ThreadMain(unsigned long) + 324
4   Flutter                                0x104a4d31c dart::ThreadStart(void*) + 204
5   libsystem_pthread.dylib                0x1015734c0 _pthread_start + 104
6   libsystem_pthread.dylib                0x10156e6f0 thread_start + 8

Thread 16:: Dart Profiler SampleBlockProcessor
0   libsystem_kernel.dylib                 0x1019c4110 __psynch_cvwait + 8
1   libsystem_pthread.dylib                0x101573aa4 _pthread_cond_wait + 1260
2   Flutter                                0x104a4db98 dart::Monitor::WaitMicros(long long) + 128
3   Flutter                                0x104a526e4 dart::SampleBlockProcessor::ThreadMain(unsigned long) + 192
4   Flutter                                0x104a4d31c dart::ThreadStart(void*) + 204
5   libsystem_pthread.dylib                0x1015734c0 _pthread_start + 104
6   libsystem_pthread.dylib                0x10156e6f0 thread_start + 8

Thread 17:: io.worker.1
0   libsystem_kernel.dylib                 0x1019c4110 __psynch_cvwait + 8
1   libsystem_pthread.dylib                0x101573a78 _pthread_cond_wait + 1216
2   Flutter                                0x104361ff4 std::_LIBCPP_ABI_NAMESPACE::condition_variable::wait(std::_LIBCPP_ABI_NAMESPACE::unique_lock<std::_LIBCPP_ABI_NAMESPACE::mutex>&) + 24
3   Flutter                                0x10460c364 fml::ConcurrentMessageLoop::WorkerMain() + 156
4   Flutter                                0x10460ca1c 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_NAMESPACE::default_delete<std::_LIBCPP_ABI_NAMESPACE::__thread_struct>>, fml::ConcurrentMessageLoop::ConcurrentMessageLoop(unsigned long)::$_0>>(void*) + 184
5   libsystem_pthread.dylib                0x1015734c0 _pthread_start + 104
6   libsystem_pthread.dylib                0x10156e6f0 thread_start + 8

Thread 18:: io.worker.2
0   libsystem_kernel.dylib                 0x1019c4110 __psynch_cvwait + 8
1   libsystem_pthread.dylib                0x101573a78 _pthread_cond_wait + 1216
2   Flutter                                0x104361ff4 std::_LIBCPP_ABI_NAMESPACE::condition_variable::wait(std::_LIBCPP_ABI_NAMESPACE::unique_lock<std::_LIBCPP_ABI_NAMESPACE::mutex>&) + 24
3   Flutter                                0x10460c364 fml::ConcurrentMessageLoop::WorkerMain() + 156
4   Flutter                                0x10460ca1c 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_NAMESPACE::default_delete<std::_LIBCPP_ABI_NAMESPACE::__thread_struct>>, fml::ConcurrentMessageLoop::ConcurrentMessageLoop(unsigned long)::$_0>>(void*) + 184
5   libsystem_pthread.dylib                0x1015734c0 _pthread_start + 104
6   libsystem_pthread.dylib                0x10156e6f0 thread_start + 8

Thread 19:: io.worker.3
0   libsystem_kernel.dylib                 0x1019c4110 __psynch_cvwait + 8
1   libsystem_pthread.dylib                0x101573a78 _pthread_cond_wait + 1216
2   Flutter                                0x104361ff4 std::_LIBCPP_ABI_NAMESPACE::condition_variable::wait(std::_LIBCPP_ABI_NAMESPACE::unique_lock<std::_LIBCPP_ABI_NAMESPACE::mutex>&) + 24
3   Flutter                                0x10460c364 fml::ConcurrentMessageLoop::WorkerMain() + 156
4   Flutter                                0x10460ca1c 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_NAMESPACE::default_delete<std::_LIBCPP_ABI_NAMESPACE::__thread_struct>>, fml::ConcurrentMessageLoop::ConcurrentMessageLoop(unsigned long)::$_0>>(void*) + 184
5   libsystem_pthread.dylib                0x1015734c0 _pthread_start + 104
6   libsystem_pthread.dylib                0x10156e6f0 thread_start + 8

Thread 20:: io.worker.4
0   libsystem_kernel.dylib                 0x1019c4110 __psynch_cvwait + 8
1   libsystem_pthread.dylib                0x101573a78 _pthread_cond_wait + 1216
2   Flutter                                0x104361ff4 std::_LIBCPP_ABI_NAMESPACE::condition_variable::wait(std::_LIBCPP_ABI_NAMESPACE::unique_lock<std::_LIBCPP_ABI_NAMESPACE::mutex>&) + 24
3   Flutter                                0x10460c364 fml::ConcurrentMessageLoop::WorkerMain() + 156
4   Flutter                                0x10460ca1c 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_NAMESPACE::default_delete<std::_LIBCPP_ABI_NAMESPACE::__thread_struct>>, fml::ConcurrentMessageLoop::ConcurrentMessageLoop(unsigned long)::$_0>>(void*) + 184
5   libsystem_pthread.dylib                0x1015734c0 _pthread_start + 104
6   libsystem_pthread.dylib                0x10156e6f0 thread_start + 8

Thread 21:: DartWorker
0   libsystem_kernel.dylib                 0x1019c4110 __psynch_cvwait + 8
1   libsystem_pthread.dylib                0x101573aa4 _pthread_cond_wait + 1260
2   Flutter                                0x104a4db98 dart::Monitor::WaitMicros(long long) + 128
3   Flutter                                0x104995fa4 dart::MutatorThreadPool::OnEnterIdleLocked(dart::MonitorLocker*) + 144
4   Flutter                                0x104abada0 dart::ThreadPool::WorkerLoop(dart::ThreadPool::Worker*) + 136
5   Flutter                                0x104abb0c8 dart::ThreadPool::Worker::Main(unsigned long) + 132
6   Flutter                                0x104a4d31c dart::ThreadStart(void*) + 204
7   libsystem_pthread.dylib                0x1015734c0 _pthread_start + 104
8   libsystem_pthread.dylib                0x10156e6f0 thread_start + 8

Thread 22:
0   libsystem_pthread.dylib                0x10156e6dc start_wqthread + 0

Thread 23:: DartWorker
0   libsystem_kernel.dylib                 0x1019c4110 __psynch_cvwait + 8
1   libsystem_pthread.dylib                0x101573aa4 _pthread_cond_wait + 1260
2   Flutter                                0x104a4db98 dart::Monitor::WaitMicros(long long) + 128
3   Flutter                                0x104abaf00 dart::ThreadPool::WorkerLoop(dart::ThreadPool::Worker*) + 488
4   Flutter                                0x104abb0c8 dart::ThreadPool::Worker::Main(unsigned long) + 132
5   Flutter                                0x104a4d31c dart::ThreadStart(void*) + 204
6   libsystem_pthread.dylib                0x1015734c0 _pthread_start + 104
7   libsystem_pthread.dylib                0x10156e6f0 thread_start + 8

Thread 0 crashed with ARM Thread State (64-bit):
    x0: 0x0000000000000000   x1: 0x0000000000000000   x2: 0x0000000000000000   x3: 0x0000000000000000
    x4: 0x000000018028f32b   x5: 0x000000016f9ad160   x6: 0x000000000000006e   x7: 0x0000000000000000
    x8: 0x0000000100828240   x9: 0x0528e1f22ad44c71  x10: 0x0000000000000200  x11: 0x000000016f9acc90
   x12: 0x0000000000000000  x13: 0x000000018028f353  x14: 0x0000000000000010  x15: 0x00000000c620007d
   x16: 0x0000000000000148  x17: 0x00000000c65ffffc  x18: 0x0000000000000000  x19: 0x0000000000000006
   x20: 0x0000000100828240  x21: 0x0000000000000103  x22: 0x0000000100828320  x23: 0x0000000000000114
   x24: 0x000060000172a040  x25: 0x000060000172a040  x26: 0x0000000000000000  x27: 0x0000000000000000
   x28: 0x0000000000000000   fp: 0x000000016f9ad0d0   lr: 0x00000001015731d0
    sp: 0x000000016f9ad0b0   pc: 0x00000001019c8a4c cpsr: 0x40001000
   far: 0x00000001802806d8  esr: 0x56000080  Address size fault

EOF

On Android

Error signing in with Google:
PlatformException(sign_in_failed, com.google.android.gms.common.api.ApiException:
10:, null,null)

Additional Information

[✓] Flutter (Channel stable, 3.13.1, on macOS 14.0 23A344 darwin-arm64, locale en-CN)
    • Flutter version 3.13.1 on channel stable at /Users/taha/FlutterDev/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision e1e47221e8 (3 months ago), 2023-08-22 21:43:18 -0700
    • Engine revision b20183e040
    • Dart version 3.1.0
    • DevTools version 2.25.0

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /Users/taha/Library/Android/sdk
    • Platform android-34, build-tools 34.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.0.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15A507
    • CocoaPods version 1.13.0

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2022.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)

[✓] VS Code (version 1.84.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.76.0

[✓] Connected device (3 available)
    • iPhone 15 Pro Max (mobile) • 870710BB-C702-4274-B081-667B056FEDCC • ios            • com.apple.CoreSimulator.SimRuntime.iOS-17-0 (simulator)
    • macOS (desktop)            • macos                                • darwin-arm64   • macOS 14.0 23A344 darwin-arm64
    • Chrome (web)               • chrome                               • web-javascript • Google Chrome 119.0.6045.123

[✓] Network resources
    • All expected network resources are available.

• No issues found!
lesnitsky commented 7 months ago

Google sign in docs has this line:

❗️ Important: you need go through configuration steps for each platform as described on the README.

It's not entirely clear from the provided steps if this was done.

lesnitsky commented 7 months ago

but then shows the "unknown error occurred" without app being crashed

this is most likely related to the missing SHA fingerpring of the android emulator.

You can get your SHA fingerprint by running ./gradlew signingReport from android folder. You can add it on your firebase console:

tahamaddam commented 7 months ago

but then shows the "unknown error occurred" without app being crashed

this is most likely related to the missing SHA fingerpring of the android emulator.

You can get your SHA fingerprint by running ./gradlew signingReport from android folder. You can add it on your firebase console:

  • Project overview > Cog icon
  • Project settings
  • Scroll down > SHA certificate fingerprints > Add fingerprint

Thanks, I didn't mention it above but I did create the keystore and added its SHA-1 fingerprint to Android app under Firebase settings.

tahamaddam commented 7 months ago

README

I followed the steps outlined in this official Firebase codelab that uses firebase_ui_auth package. You can see the configuration related to Google Sign-in at step 7. Only two differences in my implementation:

  1. I am using the DefaultFirebaseOptions.currentPlatform.appId to declare the clientId
  2. Bullet point 6 and 7 (to add GoogleService-Info.plist to Runner) is not possible as this file is greyed out. Screenshot below: CleanShot 2023-11-13 at 10 11 41@2x
danagbemava-nc commented 7 months ago

Hi @tahamaddam, did you add the CFBundleURLTypes to your Info.plist?

Did you download the new GoogleService-Info.plist file from the firebase console? If that is the case, that is the file you have to add not the one that is already in your project.

Can you also try re-running flutterfire configure to see if you do get the new GoogleService-Info.plist file?

tahamaddam commented 7 months ago

Hi @tahamaddam, did you add the CFBundleURLTypes to your Info.plist?

Did you download the new GoogleService-Info.plist file from the firebase console? If that is the case, that is the file you have to add not the one that is already in your project.

Can you also try re-running flutterfire configure to see if you do get the new GoogleService-Info.plist file?

Thanks for looking into this.

  1. Yes, I did add the CFBundleURLTypes to the Info.plist as suggested here in point 8
  2. I ran flutterfire configure again after enabling sign-in with Google and cross checked that GoogleService-Info.plist file inside ios/Runner matches with one provided by Firebase.
danagbemava-nc commented 7 months ago

Hi @tahamaddam, please provide the code sample you're experiencing this issue with in a repo that we can clone so that we can investigate this issue.

Thank you

tahamaddam commented 7 months ago

Hi @tahamaddam, please provide the code sample you're experiencing this issue with in a repo that we can clone so that we can investigate this issue.

Thank you

This a new project with only two files, main.dart as shared above and firebase_options.dart which is created by flutterfire configure. In order to replicate, I guess you can create a new flutter project and attach it with firebase project.

Thanks for looking into this.

danagbemava-nc commented 7 months ago

Hi @tahamaddam, this is an issue with your code. The value you have set as your clientId for the GoogleSignIn is not the correct value to set. The client ID can be found in your GoogleService-Info.plist or your google-services.json file for the respective platform.

tahamaddam commented 7 months ago

Hi @tahamaddam, this is an issue with your code. The value you have set as your clientId for the GoogleSignIn is not the correct value to set. The client ID can be found in your GoogleService-Info.plist or your google-services.json file for the respective platform.

Thanks, I tried that too but didn't work. In all the different tries, it never throws any error, always crash.

tahamaddam commented 7 months ago

Thanks everyone for helping. This issue is resolved for iOS

After going through the whole process again, I realized that the Google client_id that I was providing to GoogleProvider(clientId:google-client-id'), by directly copy pasting from Firebase>Authentication>Sign-in Methods>Google (as suggested here, here and other places) is different than the client id present in the GoogleService-Info.plist file generated by the flutterfire configure So after providing the client_id as in GoogleService-Info.plist the app is no longer crashing and I successfully log-in

tahamaddam commented 7 months ago

Though error issue on Android is still existing. "An unknown error occurred"

danagbemava-nc commented 7 months ago

Hi @tahamaddam, what does your code look like now? I just tested google sign in on android and everything seems to work just fine. Would it be possible for you to get us the full error message? You might be able to get this from your debugger

lesnitsky commented 7 months ago

@tahamaddam could you please remove this GoogleProvider(clientId: DefaultFirebaseOptions.currentPlatform.appId),, Firebase appId is not a google client id, and use iOSPreferPlist: true for iOS?

tahamaddam commented 7 months ago

@tahamaddam could you please remove this GoogleProvider(clientId: DefaultFirebaseOptions.currentPlatform.appId),, Firebase appId is not a google client id, and use iOSPreferPlist: true for iOS?

Thanks, as I commented above, this issue has now been resolved for iOS. For Android, I am now trying to produce the error message so can further troubleshoot it.

tahamaddam commented 7 months ago

Hi @tahamaddam, what does your code look like now? I just tested google sign in on android and everything seems to work just fine. Would it be possible for you to get us the full error message? You might be able to get this from your debugger

Thanks, this issue is now also resolved for Android,

How? I replaced the release keystore SHA-1 with debug keystore SHA-1. Did nothing else. I have been told that for release keystore SHA-1, I need to add following to build.gradle

signingConfigs {
        release {
            keyAlias '<alias>'
            keyPassword '<keyPassword>'
            storeFile file('<keystoreFile>')
            storePassword '<storePassword>'
        }
    }

I have not tested with release keystore yet, but I hope it will be okay.

Thanks everyone for helping me out on this.