Closed Bug 1884359 Opened 2 years ago Closed 2 years ago

Fenix crashes when tapping on Security Connection icon from toolbar

Categories

(Firefox for Android :: General, defect, P1)

Firefox 125
All
Android
defect

Tracking

()

VERIFIED FIXED
125 Branch
Tracking Status
firefox123 --- unaffected
firefox124 --- unaffected
firefox125 + verified

People

(Reporter: vtamas, Assigned: mcarare)

References

(Regression)

Details

(Keywords: crash, regression)

Crash Data

Attachments

(2 files)

Attached file crash.rtf

Steps to reproduce

  1. Install Fenix and navigate to a page.
  2. Tap on the "lock" icon from the navigation bar.

Expected behavior

The info panel is successfully displayed.

Actual behavior

Fenix crashes.

Device information

  • Firefox version: Nightly 125.0a1 (2024-03-08)
  • Android device: Huawei P40 Lite (Android 10)

Any additional information?

  • Please see the crash log attached.
  • This crash reproduces constantly.
  • It is a regression. Last Good build [2024-03-06] - First Bad build [2024-03-07]
Crash Signature: [@ android.content.res.Resources$NotFoundException: at android.content.res.ResourcesImpl.getResourceEntryName(ResourcesImpl.java) ]
Keywords: crash

We're seeing these crashes in the startup-test-fenix-arm-nightly-robo-opt jobs in CI too.
https://console.firebase.google.com/project/moz-fenix/testlab/histories/bh.80a1a071cfb2770e/matrices/7582776837098590910

Duplicate of this bug: 1884285
Duplicate of this bug: 1884331

Thanks to the excellent debugging work done over in bug 1884285, we've reverted the AGP 8.3.0 update ahead of the Nightly builds starting in a few minutes. We'll see if that resolves these crashes.
https://github.com/mozilla-mobile/firefox-android/commit/6e68351872d08075272be21f3aa397a5b12b989b

AGP being the cause of the crash is the most reasonable conclusion because debug builds do not crash, and those builds do not have optimization enabled.

Reference from AGP 8.3 changelog

https://developer.android.com/build/releases/gradle-plugin#resource-shrinking

Precise resource shrinking on by default
Precise resource shrinking, which removes unused entries from the resources.arsc file and eliminates unused resource files, is on by default. When this shrinking is enabled, your resource table is reduced and only referenced res folder entries are included in the APK.
To turn off precise resource shrinking, set android.enableNewResourceShrinker.preciseShrinking to false in your project's gradle.properties file.

The failing jobs in CI went green with this backout and Mihai was able to confirm locally that the new Nightly build isn't crashing. Builds will go out to users as soon as they get through Play Store review.

Assignee: nobody → mcarare
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 125 Branch
Regressed by: 1879132

Confirmed that the latest Nightly build from Google Play no longer crashes.

Status: RESOLVED → VERIFIED
Component: Crash Reporting → General
Crash Signature: [@ android.content.res.Resources$NotFoundException: at android.content.res.ResourcesImpl.getResourceEntryName(ResourcesImpl.java) ] → [@ android.content.res.Resources$NotFoundException: at android.content.res.ResourcesImpl.getResourceEntryName(ResourcesImpl.java) ] [@ android.content.res.Resources$NotFoundException: at android.content.res.Resources.getResourceEntryName(Resources.java) ]
Priority: -- → P1
Crash Signature: ] → ] [@ android.content.res.Resources$NotFoundException: at android.content.res.ResourcesImpl.getResourceEntryName ]
Summary: Fenix crashes when taping on Security Connection icon from toolbar → Fenix crashes when tapping on Security Connection icon from toolbar
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: