Closed Bug 1923859 Opened 5 months ago Closed 5 months ago

Crash in [@ java.lang.UnsatisfiedLinkError: at org.mozilla.gecko.GeckoAppShell.isInteractiveWidgetDefaultResizesVisual(Native Method)]

Categories

(GeckoView :: General, defect)

Unspecified
Android
defect

Tracking

(firefox131 unaffected, firefox132 unaffected, firefox133 fixed)

RESOLVED FIXED
133 Branch
Tracking Status
firefox131 --- unaffected
firefox132 --- unaffected
firefox133 --- fixed

People

(Reporter: dmeehan, Assigned: hiro)

References

(Regression)

Details

(Keywords: crash, regression)

Crash Data

Attachments

(2 files)

Crash report: https://crash-stats.mozilla.org/report/index/6af9afbe-5a0c-4cb7-a363-3247c0241010

Top 10 frames:

0  org.mozilla.gecko.GeckoAppShell  isInteractiveWidgetDefaultResizesVisual  GeckoAppShell.java:-2
1  org.mozilla.geckoview.GeckoRuntime  isInteractiveWidgetDefaultResizesVisual  GeckoRuntime.java:1
2  org.mozilla.fenix.browser.BaseBrowserFragment  configureEngineViewWithDynamicToolbarsMaxHeight$app_fenixNightly  BaseBrowserFragment.kt:183
3  org.mozilla.fenix.browser.BaseBrowserFragment$NavigationButtonsCFR$3$11  invoke  BaseBrowserFragment.kt:8
4  org.mozilla.fenix.components.toolbar.navbar.NavigationBarKt  NavBar-KTwxG1Y  NavigationBar.kt:378
5  org.mozilla.fenix.components.toolbar.navbar.NavigationBarKt  BrowserNavBar  NavigationBar.kt:15
6  org.mozilla.fenix.browser.BaseBrowserFragment$NavigationButtonsCFR$3  invoke  BaseBrowserFragment.kt:173
7  androidx.compose.runtime.internal.ComposableLambdaImpl  invoke  ComposableLambda.jvm.kt:7
8  mozilla.components.compose.cfr.CFRPopupLayoutKt  CFRPopupLayout  CFRPopupLayout.kt:316
9  org.mozilla.fenix.browser.BaseBrowserFragment  NavigationButtonsCFR$app_fenixNightly  BaseBrowserFragment.kt:300

:petru could you help identify the regressor here, could it be Bug 1916154?

Flags: needinfo?(petru)

The cause of the crash is probably bug 1916154 indeed, it started to use a new API from Gecko which apparently can be missing at times 🤨

Unobfuscated stack trace:

java.lang.UnsatisfiedLinkError: No implementation found for boolean org.mozilla.gecko.GeckoAppShell.isInteractiveWidgetDefaultResizesVisual() (tried Java_org_mozilla_gecko_GeckoAppShell_isInteractiveWidgetDefaultResizesVisual and Java_org_mozilla_gecko_GeckoAppShell_isInteractiveWidgetDefaultResizesVisual__) - is the library loaded, e.g. System.loadLibrary?

   at org.mozilla.gecko.GeckoAppShell.isInteractiveWidgetDefaultResizesVisual(GeckoAppShell.java)
   at org.mozilla.geckoview.GeckoRuntime.isInteractiveWidgetDefaultResizesVisual(GeckoRuntime.java:1065)
   at org.mozilla.fenix.browser.BaseBrowserFragment.configureEngineViewWithDynamicToolbarsMaxHeight$app_fenixNightly(BaseBrowserFragment.kt:183)
   at org.mozilla.fenix.browser.BaseBrowserFragment$NavigationButtonsCFR$3$11.invoke(BaseBrowserFragment.kt:1721)
   at org.mozilla.fenix.browser.BaseBrowserFragment$NavigationButtonsCFR$3$11.invoke(BaseBrowserFragment.kt:1633)
   at org.mozilla.fenix.components.toolbar.navbar.NavigationBarKt.NavBar-KTwxG1Y(NavigationBar.kt:349)

Hiro, do you know how this could happen?

Flags: needinfo?(petru) → needinfo?(hikezoe.birchill)
Attached image image.png

Based on breadcrumbs from Sentry this crash does not happen at the instant the app is opened/browser is visible but after some seconds, time in which Gecko should be loaded and available 🤔

Assignee: nobody → hikezoe.birchill
Status: NEW → ASSIGNED

Though I posted a patch, it's speculative based on a fix for a similar case (https://hg.mozilla.org/integration/autoland/rev/fb6f6155866e).

Anyways, I have totally no idea what's going on there. Given that the function isInteractiveWidgetDefaultResizesVisual is supposed to be used when the software keyboard is shown on a web site, which means Gecko itself should have been used, that's totally weird.

Flags: needinfo?(hikezoe.birchill)
Pushed by hikezoe.birchill@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/f4d2777efdbc Bail out if JNI isn't ready to be used in isInteractiveWidgetDefaultResizesVisual. r=geckoview-reviewers,m_kato
Status: ASSIGNED → RESOLVED
Closed: 5 months ago
Resolution: --- → FIXED
Target Milestone: --- → 133 Branch
Crash Signature: [@ java.lang.UnsatisfiedLinkError: at org.mozilla.gecko.GeckoAppShell.isInteractiveWidgetDefaultResizesVisual(Native Method)] → [@ java.lang.UnsatisfiedLinkError: at org.mozilla.gecko.GeckoAppShell.isInteractiveWidgetDefaultResizesVisual(Native Method)] [@ java.lang.UnsatisfiedLinkError: at org.mozilla.gecko.GeckoAppShell.isInteractiveWidgetDefaultResizesVisual(GeckoAppShell.java…
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: