google / GoogleSignIn-iOS

Enables iOS and macOS apps to sign in with Google.
https://developers.google.com/identity/sign-in/ios
Apache License 2.0
513 stars 205 forks source link

Google Sign-In for iOS crash #411

Open yaofen opened 6 months ago

yaofen commented 6 months ago

Describe the bug After the Google page was closed, Google crashed

Environment All versions of iOS will The currently accessed version is: 'GoogleSignIn', '5.0.2'

Additional context Crashed: com.apple.main-thread 0 libobjc.A.dylib 0x2bdc objc_release_x8 + 16 1 libsystem_blocks.dylib 0x25d4 bool HelperBase::disposeCapture<(HelperBase::BlockCaptureKind)3>(unsigned int, unsigned char) + 68 2 libsystem_blocks.dylib 0x2524 HelperBase::destroyBlock(Block_layout, bool, unsigned char) + 160 3 libsystem_blocks.dylib 0x2450 _call_dispose_helpers_excp + 72 4 libsystem_blocks.dylib 0x23ec _Block_release + 252 5 libsystem_blocks.dylib 0x22b4 bool HelperBase::disposeCapture<(HelperBase::BlockCaptureKind)4>(unsigned int, unsigned char) + 68 6 libsystem_blocks.dylib 0x2538 HelperBase::destroyBlock(Block_layout, bool, unsigned char) + 180 7 libsystem_blocks.dylib 0x2450 _call_dispose_helpers_excp + 72 8 libsystem_blocks.dylib 0x23ec _Block_release + 252 9 libsystem_blocks.dylib 0x22b4 bool HelperBase::disposeCapture<(HelperBase::BlockCaptureKind)4>(unsigned int, unsigned char) + 68 10 libsystem_blocks.dylib 0x2538 HelperBase::destroyBlock(Block_layout, bool, unsigned char) + 180 11 libsystem_blocks.dylib 0x2450 _call_dispose_helpers_excp + 72 12 libsystem_blocks.dylib 0x23ec _Block_release + 252 13 UIKitCore 0x12920c -[UIPresentationController transitionDidFinish:] + 1420 14 UIKitCore 0x6e600c -[_UICurrentContextPresentationController transitionDidFinish:] + 44 15 UIKitCore 0x6e2b6c 56-[UIPresentationController runTransitionForCurrentState]_block_invoke.114 + 320 16 UIKitCore 0x128bec -[_UIViewControllerTransitionContext completeTransition:] + 116 17 UIKitCore 0x29a934 -[UITransitionView notifyDidCompleteTransition:] + 180 18 UIKitCore 0x29a5ec -[UITransitionView _didCompleteTransition:] + 832 19 UIKitCore 0x853f0 UIVIEW_IS_EXECUTING_ANIMATION_COMPLETION_BLOCK__ + 36 20 UIKitCore 0x84b88 -[UIViewAnimationBlockDelegate _didEndBlockAnimation:finished:context:] + 624 21 UIKitCore 0x841f4 -[UIViewAnimationState sendDelegateAnimationDidStop:finished:] + 436 22 UIKitCore 0x66704 -[UIViewAnimationState animationDidStop:finished:] + 192 23 UIKitCore 0x66774 -[UIViewAnimationState animationDidStop:finished:] + 304 24 QuartzCore 0x7198c run_animation_callbacks(void) + 132 25 libdispatch.dylib 0x3dd4 _dispatch_client_callout + 20 26 libdispatch.dylib 0x125a4 _dispatch_main_queue_drain + 988 27 libdispatch.dylib 0x121b8 _dispatch_main_queue_callback_4CF + 44 28 CoreFoundation 0x3751c CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 16 29 CoreFoundation 0x34218 __CFRunLoopRun + 1996 30 CoreFoundation 0x33968 CFRunLoopRunSpecific + 608 31 GraphicsServices 0x34e0 GSEventRunModal + 164 32 UIKitCore 0x22aedc -[UIApplication _run] + 888 33 UIKitCore 0x22a518 UIApplicationMain + 340

117 | Thu May 09 2024 19:34:33 | <LoginVC: 0x14d2ad000 > did Load 118 | Thu May 09 2024 19:34:33 | <SFAuthenticationViewController: 0x14c1d8000 > will disappear 119 | Thu May 09 2024 19:34:33 | <SFBrowserRemoteViewController: 0x14c07ec00 > will disappear 120 | Thu May 09 2024 19:34:33 | <UINavigationController: 0x14d369c00 > will Appear 121 | Thu May 09 2024 19:34:33 | <LoginVC: 0x14d2ad000 > will Appear 122 | Thu May 09 2024 19:34:33 | <UINavigationController: 0x14d369c00 > did Appear 123 | Thu May 09 2024 19:34:33 | <LoginVC: 0x14d2ad000 > did Appear 124 | Thu May 09 2024 19:34:33 | <SFAuthenticationViewController: 0x14c1d8000 > did disappear 125 | Thu May 09 2024 19:34:33 | <SFBrowserRemoteViewController: 0x14c07ec00 > did disappear 128 | Thu May 09 2024 19:34:35 | <UINavigationController: 0x14d369c00 > will disappear 129 | Thu May 09 2024 19:34:35 | <LoginVC: 0x14d2ad000 > will disappear 130 | Thu May 09 2024 19:34:35 | <SFAuthenticationViewController: 0x14c1d8000 > will Appear 131 | Thu May 09 2024 19:34:35 | <SFBrowserRemoteViewController: 0x14c07ec00 > will Appear 133 | Thu May 09 2024 19:34:35 | <SFBrowserRemoteViewController: 0x14f826a00 > did Load 134 | Thu May 09 2024 19:34:36 | <SFAuthenticationViewController: 0x14c1d8000 > did Appear 135 | Thu May 09 2024 19:34:36 | <SFBrowserRemoteViewController: 0x14c07ec00 > did Appear 136 | Thu May 09 2024 19:34:36 | <UINavigationController: 0x14d369c00 > did disappear 137 | Thu May 09 2024 19:34:36 | <LoginVC: 0x14d2ad000 > did disappear

yaofen commented 6 months ago

One of the must-select scenes:

  1. Enter the login page of xxx app, click Google login, and pull up the Google login page;
  2. Call up xxx app through deeplink, then open a new login page, click Google login,
  3. Crash, the crash log is consistent with the above