Code Monkey home page Code Monkey logo

Comments (10)

TarekkMA avatar TarekkMA commented on July 21, 2024

Thank you @pamafe1976 for reporting this issue, can you please check if the issue is also happening on the latest stable release of flutter?

from flutterfire.

diogormsf avatar diogormsf commented on July 21, 2024

Hey @TarekkMA, I'm using the latest stable version of flutter and I'm having the same issue:

Future<void> appleSignIn() async {
    final appleProvider = AppleAuthProvider().addScope('email');

    await _firebaseAuth.signInWithProvider(appleProvider);
}
dependencies:
  flutter:
    sdk: flutter

  # The following adds the Cupertino Icons font to your application.
  # Use with the CupertinoIcons class for iOS style icons.
  cupertino_icons: ^1.0.6
  firebase_core: ^2.32.0
  firebase_auth: ^4.20.0
  cloud_firestore: ^4.17.2
  provider: ^6.1.2
  share_plus: ^9.0.0
  google_sign_in: ^6.2.1
  google_mobile_ads: ^5.1.0
  flutter_localizations:
    sdk: flutter
  intl: any
Runner
Termination Reason: SIGNAL 11 Segmentation fault: 11
Terminating Process: exc handler [90833]

Triggered by Thread:  0

Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
0   Runner                        	       0x1028fca4c -[FLTFirebaseAuthPlugin authorizationController:didCompleteWithError:] + 232
1   AuthenticationServices        	       0x1b86a0e3c __44-[ASAuthorizationController _failWithError:]_block_invoke_2 + 212
2   libsystem_trace.dylib         	       0x18009dba4 os_activity_apply_f + 84
3   AuthenticationServices        	       0x1b86a0d4c __44-[ASAuthorizationController _failWithError:]_block_invoke + 100
4   libdispatch.dylib             	       0x180170104 _dispatch_call_block_and_release + 24
5   libdispatch.dylib             	       0x180171978 _dispatch_client_callout + 16
6   libdispatch.dylib             	       0x1801807c8 _dispatch_main_queue_drain + 1276
7   libdispatch.dylib             	       0x1801802bc _dispatch_main_queue_callback_4CF + 40
8   CoreFoundation                	       0x18040e960 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12
9   CoreFoundation                	       0x180409078 __CFRunLoopRun + 1936
10  CoreFoundation                	       0x1804084d4 CFRunLoopRunSpecific + 572
11  GraphicsServices              	       0x18ef2aae4 GSEventRunModal + 160
12  UIKitCore                     	       0x1853d0a28 -[UIApplication _run] + 868
13  UIKitCore                     	       0x1853d46b0 UIApplicationMain + 124
14  Runner                        	       0x1027a53d4 main + 64 (AppDelegate.swift:5)
15  dyld_sim                      	       0x102cb9544 start_sim + 20
16  dyld                          	       0x102e9a0e0 start + 2360

from flutterfire.

Daviswww avatar Daviswww commented on July 21, 2024

I have the same issue as @pamafe1976.

Firebase version

  • firebase_core (2.24.2)
  • firebase_auth (4.16.0)

Flutter version

3.14.0-0.1.pre

Crashlytics log

Crashed: com.apple.main-thread
0  Runner                         0x372a90 handleSignInWithApple + 361 (FLTFirebaseAuthPlugin.m:361)
1  Runner                         0x372ba0 __78-[FLTFirebaseAuthPlugin authorizationController:didCompleteWithAuthorization:]_block_invoke_2 + 425 (FLTFirebaseAuthPlugin.m:425)
2  libdispatch.dylib              0x63850 _dispatch_call_block_and_release + 24
3  libdispatch.dylib              0x647c8 _dispatch_client_callout + 16
4  libdispatch.dylib              0x10e28 _dispatch_main_queue_drain + 928
5  libdispatch.dylib              0x10a78 _dispatch_main_queue_callback_4CF$VARIANT$mp + 36
6  CoreFoundation                 0x93828 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12
7  CoreFoundation                 0x774a8 __CFRunLoopRun + 2096
8  CoreFoundation                 0x7bb58 CFRunLoopRunSpecific + 584
9  GraphicsServices               0x1984 GSEventRunModal + 160
10 UIKitCore                      0x375628 -[UIApplication _run] + 868
11 UIKitCore                      0x3752a0 UIApplicationMain + 312
12 Runner                         0x2c120 main + 11 (AppDelegate.swift:11)
13 ???                            0x1d66dddf0 (Missing)

from flutterfire.

google-oss-bot avatar google-oss-bot commented on July 21, 2024

Hey @pamafe1976. We need more information to resolve this issue but there hasn't been an update in 7 weekdays. I'm marking the issue as stale and if there are no new updates in the next 7 days I will close it automatically.

If you have more information that will help us get to the bottom of this, just add a comment!

from flutterfire.

pamafe1976 avatar pamafe1976 commented on July 21, 2024

@TarekkMA I'm sorry, all the information I have is what I have provided.
I see for what others have posted that the issue appears also in latest flutter stable.

from flutterfire.

russellwheatley avatar russellwheatley commented on July 21, 2024

Hey @pamafe1976 - I couldn't recreate this issue. If you could investigate when this happens and find the conditions that make it reproducible, we can look to fix this. I'd note that one of the crashes reported is different to the one you're experiencing:

0  Runner                         0x372a90 handleSignInWithApple + 361 (FLTFirebaseAuthPlugin.m:361)
1  Runner                         0x372ba0 __78-[FLTFirebaseAuthPlugin authorizationController:didCompleteWithAuthorization:]_block_invoke_2 + 425 (FLTFirebaseAuthPlugin.m:425)

Your crash appears to happen with an unsuccessful sign-in and occurs in the exception handler.

from flutterfire.

pamafe1976 avatar pamafe1976 commented on July 21, 2024

Hi @russellwheatley,
I cannot reproduce it myself, or even guess whats causing it. It happens rarely, and the only code invoking Apple sign in in my app is the one I posted.
Lately, I have received 3 reports with this stack trace:


         Crashed: com.apple.main-thread
         EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x0000000000000010
0  Runner                         0xd3854 handleSignInWithApple + 369 (FLTFirebaseAuthPlugin.m:369)
1  Runner                         0xd3964 __78-[FLTFirebaseAuthPlugin authorizationController:didCompleteWithAuthorization:]_block_invoke_2 + 433 (FLTFirebaseAuthPlugin.m:433)
2  libdispatch.dylib              0x2378 _dispatch_call_block_and_release + 32
3  libdispatch.dylib              0x40d8 _dispatch_client_callout + 20
4  libdispatch.dylib              0x129e8 _dispatch_main_queue_drain + 980
5  libdispatch.dylib              0x12604 _dispatch_main_queue_callback_4CF + 44
6  CoreFoundation                 0x56e78 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 16
7  CoreFoundation                 0x54098 __CFRunLoopRun + 2012
8  CoreFoundation                 0x53424 CFRunLoopRunSpecific + 608
9  GraphicsServices               0x11c4 GSEventRunModal + 164
10 UIKitCore                      0x3e2130 -[UIApplication _run] + 816
11 UIKitCore                      0x49055c UIApplicationMain + 340
12 UIKitCore                      0x79f824 block_destroy_helper.23 + 10212
13 Runner                         0x8b4c main + 4299885388 (AppDelegate.swift:4299885388)
14 ???                            0x1c5a48a74 (Missing)

I'm not sure if it is the same issue. It happened on IOS 16.1.2, IOS 17.5.1 and IOS 18.0.0

I will post if I found any pattern that leads to the crash (By the way, I'm not sure if this is a crash that kills the app or not, how can I tell?)

Regards

from flutterfire.

russellwheatley avatar russellwheatley commented on July 21, 2024

@pamafe1976 - I imagine this would crash the app. Let me know if you find a way to reproduce and I can take a look 👍

from flutterfire.

google-oss-bot avatar google-oss-bot commented on July 21, 2024

Hey @pamafe1976. We need more information to resolve this issue but there hasn't been an update in 7 weekdays. I'm marking the issue as stale and if there are no new updates in the next 7 days I will close it automatically.

If you have more information that will help us get to the bottom of this, just add a comment!

from flutterfire.

Daviswww avatar Daviswww commented on July 21, 2024

Lately, I have received 2 reports with this stack trace:
iOS Version: 15.7.0(iPhone 13 Mini)

Crashed: com.apple.main-thread
0  Runner                         0x3744ac handleSignInWithApple + 361 (FLTFirebaseAuthPlugin.m:361)
1  Runner                         0x3745bc __78-[FLTFirebaseAuthPlugin authorizationController:didCompleteWithAuthorization:]_block_invoke_2 + 425 (FLTFirebaseAuthPlugin.m:425)
2  libdispatch.dylib              0x213c _dispatch_call_block_and_release + 32
3  libdispatch.dylib              0x3dd4 _dispatch_client_callout + 20
4  libdispatch.dylib              0x125a4 _dispatch_main_queue_drain + 988
5  libdispatch.dylib              0x121b8 _dispatch_main_queue_callback_4CF + 44
6  CoreFoundation                 0x56710 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 16
7  CoreFoundation                 0x53914 __CFRunLoopRun + 1996
8  CoreFoundation                 0x52cd8 CFRunLoopRunSpecific + 608
9  GraphicsServices               0x11a8 GSEventRunModal + 164
10 UIKitCore                      0x40a90c -[UIApplication _run] + 888
11 UIKitCore                      0x4be9d0 UIApplicationMain + 340
12 Runner                         0x2c50c main + 11 (AppDelegate.swift:11)
13 ???                            0x1b5ec5e4c (Missing)

iOS Version: 17.5.1(iPhone 11)

Crashed: com.apple.main-thread
0  Runner                         0x3731b8 handleSignInWithApple + 361 (FLTFirebaseAuthPlugin.m:361)
1  Runner                         0x3732c8 __78-[FLTFirebaseAuthPlugin authorizationController:didCompleteWithAuthorization:]_block_invoke_2 + 425 (FLTFirebaseAuthPlugin.m:425)
2  libdispatch.dylib              0x213c _dispatch_call_block_and_release + 32
3  libdispatch.dylib              0x3dd4 _dispatch_client_callout + 20
4  libdispatch.dylib              0x125a4 _dispatch_main_queue_drain + 988
5  libdispatch.dylib              0x121b8 _dispatch_main_queue_callback_4CF + 44
6  CoreFoundation                 0x56710 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 16
7  CoreFoundation                 0x53914 __CFRunLoopRun + 1996
8  CoreFoundation                 0x52cd8 CFRunLoopRunSpecific + 608
9  GraphicsServices               0x11a8 GSEventRunModal + 164
10 UIKitCore                      0x40a90c -[UIApplication _run] + 888
11 UIKitCore                      0x4be9d0 UIApplicationMain + 340
12 Runner                         0x2c120 main + 11 (AppDelegate.swift:11)
13 ???                            0x1c8409e4c (Missing)

from flutterfire.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.