Closed Bug 1869134 Opened 5 months ago Closed 5 months ago

Crash in [@ mozilla.appservices.fxaclient.FxaException$SyncScopedKeyMissingInServerResponse: at mozilla.appservices.fxaclient.FfiConverterTypeFxaError.read(fxa_client.kt)] "The sync scoped key was missing"

Categories

(Fenix :: Accounts and Sync, defect, P1)

Firefox 121
Unspecified
Android

Tracking

(firefox120 unaffected, firefox121 fixed, firefox122 fixed)

RESOLVED FIXED
122 Branch
Tracking Status
firefox120 --- unaffected
firefox121 --- fixed
firefox122 --- fixed

People

(Reporter: emanuellclaudiu, Assigned: bdk)

References

Details

(Keywords: crash, regression, topcrash)

Crash Data

Attachments

(2 files)

Version: Firefox 122 → Firefox 120

Can you take a look?

Flags: needinfo?(royang)
Flags: needinfo?(cpeterson)

This looks like a regression in 120.

Exception: mozilla.appservices.fxaclient.FxaException$SyncScopedKeyMissingInServerResponse
Message: The sync scoped key was missing

Frame   Module  Function  Source
0   mozilla.appservices.fxaclient.FfiConverterTypeFxaError  read  fxa_client.kt:6
1   mozilla.appservices.fxaclient.FfiConverterTypeFxaError  read  fxa_client.kt:1
2   mozilla.appservices.fxaclient.FfiConverter$DefaultImpls   liftFromRustBuffer  fxa_client.kt:13
3   mozilla.appservices.fxaclient.FfiConverterRustBuffer$DefaultImpls   liftFromRustBuffer  fxa_client.kt:6
4   mozilla.appservices.fxaclient.FfiConverterTypeFxaError  liftFromRustBuffer  fxa_client.kt:2
5   mozilla.appservices.fxaclient.FfiConverterTypeFxaError  liftFromRustBuffer  fxa_client.kt:1
6   mozilla.appservices.fxaclient.FfiConverterRustBuffer$DefaultImpls   lift  fxa_client.kt:7
7   mozilla.appservices.fxaclient.FfiConverterTypeFxaError  lift  fxa_client.kt:3
8   mozilla.appservices.fxaclient.FfiConverterTypeFxaError  lift  fxa_client.kt:2
9   mozilla.appservices.fxaclient.FxaException$ErrorHandler   lift  fxa_client.kt:2
10  mozilla.appservices.fxaclient.FxaException$ErrorHandler   lift  fxa_client.kt:1
11  mozilla.appservices.fxaclient.Fxa_clientKt  checkCallStatus   fxa_client.kt:75
12  mozilla.appservices.fxaclient.Fxa_clientKt  access$checkCallStatus  fxa_client.kt:1
13  mozilla.appservices.fxaclient.FirefoxAccount  getAccessToken  fxa_client.kt:76
14  mozilla.appservices.fxaclient.FxaClient$getAccessToken$1  invoke  FxaClient.kt:2
15  mozilla.appservices.fxaclient.FxaClient$getAccessToken$1  invoke  FxaClient.kt:1
16  mozilla.appservices.fxaclient.FxaClient   withMetrics   FxaClient.kt:16
17  mozilla.appservices.fxaclient.FxaClient   getAccessToken  FxaClient.kt:12
18  mozilla.appservices.fxaclient.FxaClient   getAccessToken$default  FxaClient.kt:6
19  mozilla.components.service.fxa.FirefoxAccount$getAccessToken$2$2  invokeSuspend   FirefoxAccount.kt:12
20  mozilla.components.service.fxa.FirefoxAccount$getAccessToken$2$2  invoke  FirefoxAccount.kt:11
21  mozilla.components.service.fxa.UtilsKt  handleFxaExceptions   Utils.kt:4
22  mozilla.components.service.fxa.UtilsKt  handleFxaExceptions   Utils.kt:20
23  mozilla.components.service.fxa.FirefoxAccount$getAccessToken$2  invokeSuspend   FirefoxAccount.kt:43
24  kotlin.coroutines.jvm.internal.BaseContinuationImpl   resumeWith  ContinuationImpl.kt:9
25  kotlinx.coroutines.DispatchedTask   run   DispatchedTask.kt:112
26  kotlinx.coroutines.internal.LimitedDispatcher$Worker  run   LimitedDispatcher.kt:4
27  kotlinx.coroutines.scheduling.TaskImpl  run   Tasks.kt:3
28  kotlinx.coroutines.scheduling.CoroutineScheduler$Worker   run   CoroutineScheduler.kt:96
Flags: needinfo?(royang)
Flags: needinfo?(cpeterson)
Keywords: crash, regression
Summary: Crash in [@ mozilla.appservices.fxaclient.FxaException$SyncScopedKeyMissingInServerResponse: at mozilla.appservices.fxaclient.FfiConverterTypeFxaError.read(fxa_client.kt)] → Crash in [@ mozilla.appservices.fxaclient.FxaException$SyncScopedKeyMissingInServerResponse: at mozilla.appservices.fxaclient.FfiConverterTypeFxaError.read(fxa_client.kt)] "The sync scoped key was missing"

I encountered this error and it affects that I can't reopen the app anymore, it crashes every time I open it, you have to reinstall the app again.

The bug is linked to a topcrash signature, which matches the following criterion:

  • Top 10 AArch64 and ARM crashes on nightly

For more information, please visit BugBot documentation.

Keywords: topcrash

@cpeterson: I think this may have been caused by an application-services change and I'm making a patch for it right now. Why do you think it was caused by an experiment?

Flags: needinfo?(cpeterson)
Assignee: nobody → bdeankawamura
Severity: -- → S2
Priority: -- → P1
Flags: needinfo?(cpeterson)
See Also: → 1869319
Version: Firefox 120 → Firefox 121

(In reply to Ben Dean-Kawamura [:bdk] from comment #6)

@cpeterson: I think this may have been caused by an application-services change and I'm making a patch for it right now. Why do you think it was caused by an experiment?

Sorry, I confused this bug with another crash regression.

Status: NEW → RESOLVED
Closed: 5 months ago
Flags: qe-verify+
Resolution: --- → FIXED
Target Milestone: --- → 122 Branch

Comment on attachment 9368518 [details] [review]
[mozilla-mobile/firefox-android] Bug 1869134 - Don't crash on SyncScopedKeyMissingInServerResponse (backport #4795) (#4830)

Beta/Release Uplift Approval Request

  • User impact if declined: Crash. This is one of the top crashers in beta right now.

Unfortunately, there's no real way to reproduce this bug. It only happens with some combination of errors in the app-services and/or server code.

  • Is this code covered by automated tests?: No
  • Has the fix been verified in Nightly?: No
  • Needs manual test from QE?: No
  • If yes, steps to reproduce:
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): The change is very small.
  • String changes made/needed:
  • Is Android affected?: Yes
Attachment #9368518 - Flags: approval-mozilla-beta?
Comment on attachment 9368518 [details] [review]
[mozilla-mobile/firefox-android] Bug 1869134 - Don't crash on SyncScopedKeyMissingInServerResponse (backport #4795) (#4830)

121 is in release, switching the uplift request to release
Attachment #9368518 - Flags: approval-mozilla-beta? → approval-mozilla-release?

The patch landed in nightly and beta is affected.
:bdk, is this bug important enough to require an uplift?

  • If yes, please nominate the patch for beta approval.
  • If no, please set status-firefox121 to wontfix.

For more information, please visit BugBot documentation.

Flags: needinfo?(bdeankawamura)
Comment on attachment 9368518 [details] [review]
[mozilla-mobile/firefox-android] Bug 1869134 - Don't crash on SyncScopedKeyMissingInServerResponse (backport #4795) (#4830)

Approved for 121.0rc2.
Flags: needinfo?(bdeankawamura)
Attachment #9368518 - Flags: approval-mozilla-release? → approval-mozilla-release+
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: