Closed Bug 1891867 Opened 1 year ago Closed 1 year ago

Crash in [@ java.lang.IndexOutOfBoundsException: at jdk.internal.util.Preconditions.outOfBounds(Preconditions.java)] from org.mozilla.fenix.onboarding.view.OnboardingScreenKt$OnboardingScreen

Categories

(Firefox for Android :: Onboarding, defect)

Unspecified
Android
defect

Tracking

()

RESOLVED FIXED
127 Branch
Tracking Status
firefox125 --- wontfix
firefox126 --- fixed
firefox127 --- fixed

People

(Reporter: cpeterson, Assigned: harrisono)

References

Details

(Keywords: crash, regression, regressionwindow-wanted, Whiteboard: [fxdroid])

Crash Data

Attachments

(1 file)

Crash report: https://crash-stats.mozilla.org/report/index/471d2715-d122-4c30-b157-2cb530240416

This is not a new crash signature, but it looks like there might have been a regression in Fx 123 (2024-02-20) that increased the crash volume. Looks like all the crashes are from Android versions >= 12 (API 31).

Exception: java.lang.IndexOutOfBoundsException
Message: Index 1 out of bounds for length 1

Top 10 frames:

0  jdk.internal.util.Preconditions  outOfBounds  Preconditions.java:64
1  jdk.internal.util.Preconditions  outOfBoundsCheckIndex  Preconditions.java:70
2  jdk.internal.util.Preconditions  checkIndex  Preconditions.java:266
3  java.util.Objects  checkIndex  Objects.java:359
4  java.util.ArrayList  get  ArrayList.java:434
5  org.mozilla.fenix.onboarding.view.OnboardingScreenKt$OnboardingScreen$3$2  emit  OnboardingScreen.kt:9
6  kotlinx.coroutines.flow.internal.SafeCollectorKt$emitFun$1  invoke  SafeCollector.kt:5
7  kotlinx.coroutines.flow.internal.SafeCollector  emit  SafeCollector.kt:17
8  kotlinx.coroutines.flow.internal.SafeCollector  emit  SafeCollector.kt:1
9  androidx.compose.runtime.SnapshotStateKt__SnapshotFlowKt$snapshotFlow$1  invokeSuspend  SnapshotFlow.kt:184

Roger, could your fix for "Hide default browser onboarding card" bug 1874768 have caused this crash? Bug 1874768 is the only bug in the Fenix::Onboarding component that shipped in Fx 123. These crash reports for IndexOutOfBoundsExceptions from org.mozilla.fenix.onboarding.view.OnboardingScreenKt$OnboardingScreen are not new, but we saw an increase starting in Fx 123.

Flags: needinfo?(royang)
See Also: → 1874768
Assignee: nobody → hoglesby
Status: NEW → ASSIGNED
Whiteboard: [fxdroid]
Attachment #9398449 - Attachment description: WIP: Bug 1891867 - Fix index call in scrollToNextPageOrDismiss in OnboardingScreen → Bug 1891867 - Fix index call in scrollToNextPageOrDismiss in OnboardingScreen

Landing prospective fix to Nightly to soak for the weekend before we uplift to Beta to see if it brings down this crash rate.

Pushed by hoglesby@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/1f87fa022d3d Fix index call in scrollToNextPageOrDismiss in OnboardingScreen r=android-reviewers,Roger
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 127 Branch

:harrisono adding a reminder about Comment 4 when you get a moment.
We are in the final week of beta for Fx126 and will only have 2 beta builds left.

Flags: needinfo?(hoglesby)

I think this is safe to uplift to beta. I'll make a beta uplift request now.

Flags: needinfo?(hoglesby)

Comment on attachment 9398449 [details]
Bug 1891867 - Fix index call in scrollToNextPageOrDismiss in OnboardingScreen

Beta/Release Uplift Approval Request

  • User impact if declined: Potential fix for onboarding card crash will wait for another beta cycle before being released to users.
  • Is this code covered by automated tests?: Yes
  • Has the fix been verified in Nightly?: Yes
  • Needs manual test from QE?: No
  • If yes, steps to reproduce:
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Not risky, has not created crashes in Nightly and is a small logic change to prevent out of index errors.
  • String changes made/needed:
  • Is Android affected?: No
Attachment #9398449 - Flags: approval-mozilla-beta?
Flags: needinfo?(royang)

Comment on attachment 9398449 [details]
Bug 1891867 - Fix index call in scrollToNextPageOrDismiss in OnboardingScreen

Approved for 126.0b8

Attachment #9398449 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: