Closed Bug 1838394 Opened 2 years ago Closed 9 months ago

Crash in FxaAccountManager - UnrecoverableKeyException

Categories

(Firefox for Android :: Accounts and Sync, defect, P3)

All
Android
defect

Tracking

()

RESOLVED FIXED

People

(Reporter: rsainani, Unassigned)

References

Details

(Keywords: crash)

Starting 116, there have been crash reports throwing UnrecoverableKeyException - Failed to obtain information about key.

This might be caused by the underlying KeyStoreException-Key not found. Needs investigation.

Tarik, would you happen to know if this change is related.

Flags: needinfo?(teshaq)

Hi Rahul - That change shouldn't relate as it doesn't interact with the FxA state that is usually stored in the key store. I'm not sure what changed to start causing this but we should be catching the exception if we encounter it.

From the stack trace, looks like the crash is when were attempting to read the key store and from the error message it seems like the key is not available. That either:

  • Somehow the account state got lost from persisted storage.
  • The app is querying FxA where a user is not signed in

The surprising part is that we have logic a couple of lines later that attempts to handle the case of key not being present, but I suspect some version of Android might throw an exception instead of triggering the callback with null, unless the underlying libraries we use for the key store have changed recently

Regardless we should catch the exception and handle it the same way we handle the missing key case

Flags: needinfo?(teshaq)
Severity: -- → S2
Keywords: crash
Priority: -- → P3

Hey Rahul, I'm not seeing this crash in Sentry any more. Have we already fixed this?

Flags: needinfo?(rsainani)

Hey Jeff, I'm not seeing the crash or non fatal reports anymore.

Looks like [bug] added more error reporting for this and other FXA exceptions back in November (> 3 months ago), as a result the crash/non fatal reports are not present anymore.

Flags: needinfo?(rsainani)

Looks like this is all done. Closing this bug.

Status: NEW → RESOLVED
Closed: 9 months ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.