Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WordPress app crashing on AppleAuthenticator.swift #23190

Open
sentry-io bot opened this issue May 10, 2024 · 2 comments
Open

WordPress app crashing on AppleAuthenticator.swift #23190

sentry-io bot opened this issue May 10, 2024 · 2 comments

Comments

@sentry-io
Copy link

sentry-io bot commented May 10, 2024

Sentry Issue: WORDPRESS-IOS-455X

EXC_BREAKPOINT: Fatal error > WordPressAuthenticator/AppleAuthenticator.swift
  File "AppleAuthenticator.swift", in AppleAuthenticator.showLoginEpilogue
  File "AppleAuthenticator.swift", line 113, in AppleAuthenticator.loginSuccessful
  File "AppleAuthenticator.swift", line 281, in AppleAuthenticator.createWordPressComUser
  File "WordPressAuthenticationManager.swift", line 681, in WordPressAuthenticationManager.syncWPCom
  File "<compiler-generated>", in WordPressAuthenticationManager.syncWPCom
...
(14 additional frame(s) were not displayed)
@dangermattic
Copy link
Collaborator

dangermattic commented May 10, 2024

Thanks for reporting! 👍

@dvdchr dvdchr changed the title EXC_BREAKPOINT: Fatal error > WordPressAuthenticator/AppleAuthenticator.swift WordPress app crashing on AppleAuthenticator.swift May 10, 2024
@dvdchr
Copy link
Contributor

dvdchr commented May 10, 2024

The crash occurred on this line due to either the showFromViewController object being nil, or it doesn't have a navigationController:

        guard let navigationController = showFromViewController?.navigationController else {
            fatalError()
        }

Based on the logs, here's a possible reproduction step:

  • Create a new account via Sign In With Apple.
  • Add a new site and select 'Add a self-hosted site'.
  • Suspend/minimize the app.
  • Open the app again.
  • 🔎 Observe if 🔵 Tracked: signed_in <source: apple> is logged again in the console.
  • 🔎 Observe that the app crashes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants