Open Bug 1812181 Opened 3 years ago Updated 6 months ago

Firefox for Android crashes submitting form

Categories

(Firefox for Android :: Browser Engine, defect)

All
Android
defect

Tracking

()

People

(Reporter: csadilek, Unassigned, Mentored)

References

Details

(Keywords: crash)

Crash Data

From github: https://github.com/mozilla-mobile/fenix/issues/27863.

On myprevea.com, attempting to make a payment. I enter my payment details, tap Submit, and Firefox crashes to Android home screen.

8567fb38-eb0c-4efe-b38b-d27163e88f5d
java.lang.IllegalStateException: Fragment CreditCardSaveDialogFragment{ecfb7a6} (359434e7-2c87-4af5-9f08-26406a3d393c) not attached to a context.

java.lang.IllegalStateException: Fragment CreditCardSaveDialogFragment{ecfb7a6} (359434e7-2c87-4af5-9f08-26406a3d393c) not attached to a context.
at androidx.fragment.app.Fragment.requireContext(Fragment.java:2)
at mozilla.components.feature.prompts.creditcard.CreditCardSaveDialogFragment$updateUI$1$1.invokeSuspend(CreditCardSaveDialogFragment.kt:6)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:4)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:18)
at android.os.Handler.handleCallback(Handler.java:942)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:201)
at android.os.Looper.loop(Looper.java:288)
at android.app.ActivityThread.main(ActivityThread.java:7898)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)
Suppressed: kotlinx.coroutines.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@b7de1f5, Dispatchers.IO]

┆Issue is synchronized with this Jira Task

Change performed by the Move to Bugzilla add-on.

This crash looks like an instance of bug 1646250.

Christian says this code "needs a check to see if the fragment is still attached when the IO operation completes."

Maybe someone should audit all our use of fragments.

Blocks: 1646250
Severity: -- → S3
Crash Signature: [@ java.lang.IllegalStateException: at androidx.fragment.app.Fragment.requireContext(Fragment.java) ]
Component: General → Browser Engine
Keywords: crash
Priority: -- → P2
See Also: → 1646250

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

  • Top 10 AArch64 and ARM crashes on nightly

:jonalmeida, could you consider increasing the severity of this top-crash bug?

For more information, please visit BugBot documentation.

Flags: needinfo?(jonalmeida942)
Keywords: topcrash

The overall crash signature is increasing, but this one in particular on the CreditCardSaveDialogFragment is still low volume.

Flags: needinfo?(jonalmeida942)

Based on the topcrash criteria, the crash signature linked to this bug is not a topcrash signature anymore.

For more information, please visit BugBot documentation.

Keywords: topcrash
Assignee: nobody → adriana.maries
Mentor: mcarare

Hello all!
I was not able to reproduce tha crash on the latest Beta 125.0a1, nor on Nightly 125.0a1 from 3/18 with the following devices:

  • Xiaomi mi8 Lite (Android 10), and
  • Oppo Find N2 Flip (Android 13).

The "Save this card" prompt was displayed, and I was able to save the card, or tap the "Not now" option without crashing the app.

Clearing Priority so we can reprioritize these bugs relative to our ux-fun-2024 bugs.

Priority: P2 → --
See Also: → 1907286

The bug assignee is inactive on Bugzilla, so the assignee is being reset.

Assignee: adriana.maries → nobody

The crash report links to this ticket, among others. I originally assumed that adding the link here would add value. I have since been proven wrong. Sorry!

Flags: needinfo?(c52w1h6sv)
You need to log in before you can comment on or make changes to this bug.