Closed Bug 1804631 Opened 2 years ago Closed 2 years ago

InvalidKeyException: Error executing SQL: file is not a database

Categories

(Fenix :: Logins, defect, P5)

All
Android
defect

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: svillar, Unassigned)

Details

(Keywords: crash)

Crash Data

Steps to reproduce:

This comes from https://github.com/mozilla-mobile/android-components/issues/6681

We upgraded Wolvic to v75 as we were told that no more crashes were reported after that version. The truth is that from our early testing this is still an issue in v75.

Steps:

  1. Setup FirefoxAccounts synchronization in Wolvic. Let it sync pass,history...
  2. Update Wolvic to a newer version
  3. Launch updated Wolvic

Actual results:

App crashes with the trace described in github

Expected results:

No crash :)

:jonalmeida it looks like the bug is still there in v75 at least.

As mentioned in the initial issue, there are 2 possible reasons for this:

  1. The encryption key for the database was lost, missing or corrupt.
  2. The sql database on disk is corrupt.

[edit - fix formatting]

  1. isn't possible in newer versions of Fenix as we no longer use sqlcipher and instead use plain old sqlite. I can't recall what version this changed in.
  2. We still don't handle corrupt sqlite databases - if they happen the exact message is now likely to be different, but we do still see these errors for all our databases.

The severity field is not set for this bug.
:cpeterson, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(cpeterson)

There haven't been any crash reports since Fenix 91.

Severity: -- → S3
Status: UNCONFIRMED → NEW
Crash Signature: [@ mozilla.appservices.logins.InvalidKeyException: at mozilla.appservices.logins.rust.RustError.intoException(RustError.kt:13)]
Ever confirmed: true
Flags: needinfo?(cpeterson)
Keywords: crash
Priority: -- → P5

(In reply to Chris Peterson [:cpeterson] from comment #4)

There haven't been any crash reports since Fenix 91.

Which AC version was it shipped with? We're able to reproduce it easily with v75

Crash Signature: [@ mozilla.appservices.logins.InvalidKeyException: at mozilla.appservices.logins.rust.RustError.intoException(RustError.kt:13)] → [@ mozilla.appservices.logins.InvalidKeyException: at mozilla.appservices.logins.rust.RustError.intoException]

Closing as WFM because there have been no crash reports since Fenix 89.

Status: NEW → RESOLVED
Crash Signature: [@ mozilla.appservices.logins.InvalidKeyException: at mozilla.appservices.logins.rust.RustError.intoException] → [@ mozilla.appservices.logins.InvalidKeyException: at mozilla.appservices.logins.rust.RustError.intoException(RustError.kt:13)]
Closed: 2 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.