Closed Bug 1848134 Opened 2 years ago Closed 1 year ago

[Crash] mozilla.components.support.base.android.UnboundHandlerException: You must bind the NotificationPermissionHandler to an activity

Categories

(Firefox for Android :: Crash Reporting, defect, P3)

Firefox 118
All
Android
defect

Tracking

()

RESOLVED FIXED
134 Branch
Tracking Status
firefox116 --- unaffected
firefox117 --- unaffected
firefox118 --- wontfix
firefox132 --- wontfix
firefox133 --- wontfix
firefox134 --- fixed

People

(Reporter: mlobontiuroman, Assigned: mcarare)

References

Details

(Keywords: crash, Whiteboard: [fxdroid][group1])

Crash Data

Attachments

(2 files)

Steps to reproduce

  1. On Fenix Nightly 118.0a1 from 8/10, load a webiste, then, in the same tab type about:crashparent, to trigger a crash of the app.

Expected behavior

The app crashes, and a notification is displayed for the user to have the option to report the crash, and re-open Fenix.

Actual behavior

The app crashes, but there is no notification. Going to about:crashes, a different crash signature is displayed aside from the one triggerred manually - as seen in the attached screenshot.
The log is:

f85462ea-4bd3-4fde-89be-82b537b98cea
mozilla.components.support.base.android.UnboundHandlerException: You must bind the NotificationPermissionHandler to an activity
----
mozilla.components.support.base.android.UnboundHandlerException: You must bind the NotificationPermissionHandler to an activity
 at mozilla.components.support.base.android.NotificationsDelegate.requestNotificationPermission(NotificationsDelegate.kt:118)
 at mozilla.components.support.base.android.NotificationsDelegate.notify$default(NotificationsDelegate.kt:73)
 at mozilla.components.lib.crash.CrashReporter.onCrash$lib_crash_release(CrashReporter.kt:408)
 at mozilla.components.lib.crash.handler.CrashHandlerService$handleCrashIntent$1.invokeSuspend(CrashHandlerService.kt:23)
 at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:9)
 at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:112)
 at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:4)
 at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:3)
 at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:96)
 Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@8a11f39, Dispatchers.IO]

Device information

  • Firefox version: only on today's Fenix Nightly 118.0a1
  • NOT reproducible on Fenix Beta 117.0b5, nor on RC 116.2.0
  • Android device: Google Pixel 6 (Android 14)
  • NOT reproducible on: Oppo Find X3 Lite (Android 11), nor on Sony Xperia Z5 Premium (Android 7.1.1)
Assignee: nobody → mcarare
Priority: -- → P3
Keywords: crash

Note that this is not a standalone crash, but an error caused by trying to request permission to show the notification. It should be automatically fixed when a new flow for sending crash reports is in place.

See Also: → 1885081
See Also: 1885081
Status: NEW → ASSIGNED
Whiteboard: [fxdroid][group1]
Pushed by mcarare@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/5cacdb321306 Do not throw UnboundHandlerException for crash notifications when permission is not already granted. r=android-reviewers,boek
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 134 Branch
Crash Signature: [@ mozilla.components.support.base.android.UnboundHandlerException: at mozilla.components.support.base.android.NotificationsDelegate.requestNotificationPermission(NotificationsDelegate.kt) ]

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

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

For more information, please visit BugBot documentation.

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

Attachment

General

Created:
Updated:
Size: