Skip to content

mozilla.appservices.fxaclient.InternalException: NSS not initialized #3488

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

Open
AndiAJ opened this issue Mar 31, 2025 · 5 comments
Open

mozilla.appservices.fxaclient.InternalException: NSS not initialized #3488

AndiAJ opened this issue Mar 31, 2025 · 5 comments
Assignees
Labels
🐞 bug Something isn't working 💥 crash eng:bug-auto-found Bug found via automated tests

Comments

@AndiAJ
Copy link
Contributor

AndiAJ commented Mar 31, 2025

Steps to reproduce

  1. The openFXATest UI test started to fail all of a sudden aft this AC update

Firebase Test Run:

Firebase link

Firebase link

Stacktrace:

mozilla.appservices.fxaclient.InternalException: NSS not initialized
at mozilla.appservices.fxaclient.Fxa_clientKt.uniffiCheckCallStatus(fxa_client.kt:323)
at mozilla.appservices.fxaclient.Fxa_clientKt.access$uniffiCheckCallStatus(fxa_client.kt:1)
at mozilla.appservices.fxaclient.FirefoxAccount.beginOauthFlow(fxa_client.kt:6360)
at mozilla.appservices.fxaclient.FxaClient.beginOAuthFlow$lambda$1(FxaClient.kt:118)
at mozilla.appservices.fxaclient.FxaClient.$r8$lambda$b9uDPgqz7M4EaW_CeBsueclMkGE(Unknown Source:0)
at mozilla.appservices.fxaclient.FxaClient$$ExternalSyntheticLambda2.invoke(D8$$SyntheticClass:0)
at mozilla.appservices.fxaclient.FxaClient.withMetrics(FxaClient.kt:546)
at mozilla.appservices.fxaclient.FxaClient.beginOAuthFlow(FxaClient.kt:117)
at mozilla.components.service.fxa.FirefoxAccount$beginOAuthFlow$2$2.invokeSuspend(FirefoxAccount.kt:109)
at mozilla.components.service.fxa.FirefoxAccount$beginOAuthFlow$2$2.invoke(Unknown Source:8)
at mozilla.components.service.fxa.FirefoxAccount$beginOAuthFlow$2$2.invoke(Unknown Source:2)
at mozilla.components.service.fxa.UtilsKt.handleFxaExceptions(Utils.kt:32)
at mozilla.components.service.fxa.UtilsKt.handleFxaExceptions(Utils.kt:64)
at mozilla.components.service.fxa.FirefoxAccount$beginOAuthFlow$2.invokeSuspend(FirefoxAccount.kt:108)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:100)
at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:113)
at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:89)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:586)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:820)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:717)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:704)
Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@687f136, Dispatchers.IO]

@AndiAJ AndiAJ added eng:bug-auto-found Bug found via automated tests 🐞 bug Something isn't working 💥 crash labels Mar 31, 2025
@rvandermeulen
Copy link
Contributor

r-b is also crashing on startup on my phone at the moment, which I'm guessing is related to this.

@jo
Copy link

jo commented Mar 31, 2025

We had some breaking changes in Application Services v138.0 that require consumers to initialize NSS themselves. Instructions on how to update AS can be found in the changelog.

On Android, the following two patches were necessary to implement the aforementioned adjustments:

@jonalmeida jonalmeida self-assigned this Mar 31, 2025
@jonalmeida
Copy link
Collaborator

@jo thanks! Could we get some docs on the README too in the future? :)

@jo
Copy link

jo commented Apr 1, 2025

already did, finally merged 🎉

@AaronMT
Copy link
Contributor

AaronMT commented Apr 17, 2025

nudge Is this prioritized?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working 💥 crash eng:bug-auto-found Bug found via automated tests
Projects
None yet
Development

No branches or pull requests

5 participants