-
Notifications
You must be signed in to change notification settings - Fork 474
[Bug] Crash @kotlin.KotlinNullPointerException: at mozilla.components.service.fxa.manager.FxaAccountManager.postAuthenticated(FxaAccountManager.kt:36) #7536
Comments
The obvious thing that can NPE in that stacktrace (unfortunately line numbers are wrong) is fxaDeviceId = account.getCurrentDeviceId()!!. |
|
According to Google Play this is our top crash in 79.0.0. |
The following Fenix issue has STRs: |
Hi, issue is still reproducible with Samsung Galaxy S9 (Android 8) and Google Pixel 3XL (Android 9) on Firefox Release 79.0.1. As long as you leave the "Approval now required" page, after a second or two and before on desktop is displayed "Firefox Account is connected with Firefox for Android." Crash link - Samsung Galaxy S9 (Android 8): https://crash-stats.mozilla.org/report/index/25257b31-c0f6-49ec-9892-2b4df0200731 Same STR, exception is the timing in step 6:
|
Thanks, @Diana-Rus. These STRs are quite different now, and the stacktrace is different. Before we were dealing with error handling around network failures, and this is something else now. I've filed #7944 to investigate. Thanks for reporting :) |
@Diana-Rus landed a fix in #7944 - I'll close this issue for now. We've cut 48.0.12 with this fix in it, which should be available in 79.0.2 fenix release that will be available later today. |
7856: FxA Account Manager refactor r=csadilek a=grigoryk ### State machine changes: - "profile" states have been removed, `profile` is now handled outside of the state machine - states and events have been split into two subtypes: external and internal. External states are the `AccountState`s (authenticated, not authenticated, auth problem, etc) and internal states are `InternalState` (beginning auth, completing auth, recovering from auth problems, etc) - this split should hopefully make navigating the state machine more intuitive - retry logic and error handling was added for all internal transitions which require networking (Closes #7536) ### account manager changes: - removed ability to "set sync config" from the public API. we weren't using it (and have no plans to use this), so the added complexity wasn't benefiting anything. ### async/suspend API changes: account manager, account and device constellation APIs are now `suspend`, which makes both internal code and consuming of these APIs nicer and more flexible. Actual semantics of what's going on didn't change. ### sync manager changes: introduced a delay to the periodic sync scheduling, so that we can properly manage what goes on during startup (Closes #7335) Tests are half-way being updating, so this is still a WIP. cc @csadilek @rfk @eoger @jonalmeida Co-authored-by: Grisha Kruglov <gkruglov@mozilla.com>
Filed from mozilla-mobile/fenix#12000
https://crash-stats.mozilla.org/signature/?product=Fenix&signature=kotlin.KotlinNullPointerException%3A%20at%20mozilla.components.service.fxa.manager.FxaAccountManager.postAuthenticated%28FxaAccountManager.kt%3A36%29
┆Issue is synchronized with this Jira Task
The text was updated successfully, but these errors were encountered: