Fenix: FNX2-15970 ⁃ [Bug] Nightly crashed on first page load

Created on 7 May 2020  ·  4Comments  ·  Source: mozilla-mobile/fenix

Steps to reproduce

start browser
visit a page

Expected behavior

not crash

Actual behavior

crashed

Device information

  • Android device: one plus 5t
  • Fenix version: nightly
triage 🐞 bug

All 4 comments

05-07 11:06:46.630  8978  9342 D places::db::tx::coop_transaction: ChunkedCoopTransaction commiting after taking allocated time
05-07 11:06:46.637  8978  8978 D GeckoSession: handleMessage GeckoView:StateUpdated uri=null
05-07 11:06:46.747  8978  9032 D ServiceAllocator: org.mozilla.gecko.process.GeckoChildProcessServices$tab0 updateBindings: IDLE priority, 6 importance, 0 successful binds, 0 failed binds, 2 successful unbinds, 0 failed unbinds
05-07 11:06:46.779  8978  8978 D GeckoSession: handleMessage GeckoView:StateUpdated uri=null
05-07 11:06:46.794  8978  8978 D AndroidRuntime: Shutting down VM
--------- beginning of crash
05-07 11:06:46.794  8978  8978 E AndroidRuntime: FATAL EXCEPTION: main
05-07 11:06:46.794  8978  8978 E AndroidRuntime: Process: org.mozilla.fenix.nightly, PID: 8978
05-07 11:06:46.794  8978  8978 E AndroidRuntime: java.lang.IllegalStateException: Cannot add item decoration during a scroll  or layout
05-07 11:06:46.794  8978  8978 E AndroidRuntime:    at androidx.recyclerview.widget.RecyclerView.assertNotInLayoutOrScroll(RecyclerView.java:4)
05-07 11:06:46.794  8978  8978 E AndroidRuntime:    at androidx.recyclerview.widget.LinearLayoutManager.assertNotInLayoutOrScroll(LinearLayoutManager.java:3)
05-07 11:06:46.794  8978  8978 E AndroidRuntime:    at androidx.recyclerview.widget.RecyclerView.addItemDecoration(RecyclerView.java:2)
05-07 11:06:46.794  8978  8978 E AndroidRuntime:    at androidx.recyclerview.widget.RecyclerView.addItemDecoration(RecyclerView.java:9)
05-07 11:06:46.794  8978  8978 E AndroidRuntime:    at org.mozilla.fenix.HomeActivity$onCreateView$adapter$1.invoke(HomeActivity.kt:7)
05-07 11:06:46.794  8978  8978 E AndroidRuntime:    at mozilla.components.browser.tabstray.TabsAdapter.onCreateViewHolder(TabsAdapter.kt:1)
05-07 11:06:46.794  8978  8978 E AndroidRuntime:    at androidx.recyclerview.widget.RecyclerView$Adapter.createViewHolder(RecyclerView.java:2)
05-07 11:06:46.794  8978  8978 E AndroidRuntime:    at androidx.recyclerview.widget.RecyclerView$Recycler.tryGetViewHolderForPositionByDeadline(RecyclerView.java:118)
05-07 11:06:46.794  8978  8978 E AndroidRuntime:    at androidx.recyclerview.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:1)
05-07 11:06:46.794  8978  8978 E AndroidRuntime:    at androidx.recyclerview.widget.LinearLayoutManager$LayoutState.next(LinearLayoutManager.java:8)
05-07 11:06:46.794  8978  8978 E AndroidRuntime:    at androidx.recyclerview.widget.LinearLayoutManager.layoutChunk(LinearLayoutManager.java:1)
05-07 11:06:46.794  8978  8978 E AndroidRuntime:    at androidx.recyclerview.widget.LinearLayoutManager.fill(LinearLayoutManager.java:12)
05-07 11:06:46.794  8978  8978 E AndroidRuntime:    at androidx.recyclerview.widget.LinearLayoutManager.onLayoutChildren(LinearLayoutManager.java:125)
05-07 11:06:46.794  8978  8978 E AndroidRuntime:    at androidx.recyclerview.widget.RecyclerView.dispatchLayoutStep2(RecyclerView.java:8)
05-07 11:06:46.794  8978  8978 E AndroidRuntime:    at androidx.recyclerview.widget.RecyclerView.onMeasure(RecyclerView.java:12)
05-07 11:06:46.794  8978  8978 E AndroidRuntime:    at android.view.View.measure(View.java:23190)
05-07 11:06:46.794  8978  8978 E AndroidRuntime:    at androidx.constraintlayout.widget.ConstraintLayout$Measurer.measure(ConstraintLayout.java:45)
05-07 11:06:46.794  8978  8978 E AndroidRuntime:    at androidx.constraintlayout.solver.widgets.analyzer.BasicMeasure.measure(BasicMeasure.java:15)
05-07 11:06:46.794  8978  8978 E AndroidRuntime:    at androidx.constraintlayout.solver.widgets.analyzer.BasicMeasure.measureChildren(BasicMeasure.java:9)
05-07 11:06:46.794  8978  8978 E AndroidRuntime:    at androidx.constraintlayout.solver.widgets.analyzer.BasicMeasure.solverMeasure(BasicMeasure.java:34)
05-07 11:06:46.794  8978  8978 E AndroidRuntime:    at androidx.constraintlayout.solver.widgets.ConstraintWidgetContainer.measure(ConstraintWidgetContainer.java:3)
05-07 11:06:46.794  8978  8978 E AndroidRuntime:    at androidx.constraintlayout.widget.ConstraintLayout.resolveSystem(ConstraintLayout.java:13)
05-07 11:06:46.794  8978  8978 E AndroidRuntime:    at androidx.constraintlayout.widget.ConstraintLayout.onMeasure(ConstraintLayout.java:11)
05-07 11:06:46.794  8978  8978 E AndroidRuntime:    at android.view.View.measure(View.java:23190)
05-07 11:06:46.794  8978  8978 E AndroidRuntime:    at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6749)
05-07 11:06:46.794  8978  8978 E AndroidRuntime:    at android.widget.FrameLayout.onMeasure(FrameLayout.java:185)
05-07 11:06:46.794  8978  8978 E AndroidRuntime:    at android.view.View.measure(View.java:23190)
05-07 11:06:46.794  8978  8978 E AndroidRuntime:    at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6749)
05-07 11:06:46.794  8978  8978 E AndroidRuntime:    at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1535)
05-07 11:06:46.794  8978  8978 E AndroidRuntime:    at android.widget.LinearLayout.measureVertical(LinearLayout.java:825)
05-07 11:06:46.794  8978  8978 E AndroidRuntime:    at android.widget.LinearLayout.onMeasure(LinearLayout.java:704)
05-07 11:06:46.794  8978  8978 E AndroidRuntime:    at android.view.View.measure(View.java:23190)
05-07 11:06:46.794  8978  8978 E AndroidRuntime:    at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6749)
05-07 11:06:46.794  8978  8978 E AndroidRuntime:    at android.widget.FrameLayout.onMeasure(FrameLayout.java:185)
05-07 11:06:46.794  8978  8978 E AndroidRuntime:    at androidx.appcompat.widget.ContentFrameLayout.onMeasure(ContentFrameLayout.java:21)
05-07 11:06:46.794  8978  8978 E AndroidRuntime:    at android.view.View.measure(View.java:23190)
05-07 11:06:46.794  8978  8978 E AndroidRuntime:    at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6749)
05-07 11:06:46.794  8978  8978 E AndroidRuntime:    at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1535)
05-07 11:06:46.794  8978  8978 E AndroidRuntime:    at android.widget.LinearLayout.measureVertical(LinearLayout.java:825)
05-07 11:06:46.794  8978  8978 E AndroidRuntime:    at android.widget.LinearLayout.onMeasure(LinearLayout.java:704)
05-07 11:06:46.794  8978  8978 E AndroidRuntime:    at android.view.View.measure(View.java:23190)
05-07 11:06:46.794  8978  8978 E AndroidRuntime:    at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6749)
05-07 11:06:46.794  8978  8978 E AndroidRuntime:    at android.widget.FrameLayout.onMeasure(FrameLayout.java:185)
05-07 11:06:46.794  8978  8978 E AndroidRuntime:    at android.view.View.measure(View.java:23190)
05-07 11:06:46.794  8978  8978 E AndroidRuntime:    at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6749)
05-07 11:06:46.794  8978  8978 E AndroidRuntime:    at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1535)
05-07 11:06:46.794  8978  8978 E AndroidRuntime:    at android.widget.LinearLayout.measureVertical(LinearLayout.java:825)
05-07 11:06:46.794  8978  8978 E AndroidRuntime:    at android.widget.LinearLayout.onMeasure(LinearLayout.java:704)
05-07 11:06:46.794  8978  8978 E AndroidRuntime:    at android.view.View.measure(View.java:23190)
05-07 11:06:46.794  8978  8978 E AndroidRuntime:    at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:6749)
05-07 11:06:46.794  8978  8978 E AndroidRuntime:    at android.widget.FrameLayout.onMeasure(FrameLayout.java:185)
05-07 11:06:46.794  8978  8978 E AndroidRuntime:    at com.android.internal.policy.DecorView.onMeasure(DecorView.java:716)
05-07 11:06:46.794  8978  8978 E AndroidRuntime:    at android.view.View.measure(View.java:23190)
05-07 11:06:46.794  8978  8978 E AndroidRuntime:    at android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:2725)
05-07 11:06:46.794  8978  8978 E AndroidRuntime:    at android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1575)
05-07 11:06:46.794  8978  8978 E AndroidRuntime:    at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1858)
05-07 11:06:46.794  8978  8978 E AndroidRuntime:    at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1463)
05-07 11:06:46.794  8978  8978 E AndroidRuntime:    at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:7190)
05-07 11:06:46.794  8978  8978 E AndroidRuntime:    at android.view.Choreographer$CallbackRecord.run(Choreographer.java:949)
05-07 11:06:46.794  8978  8978 E AndroidRuntime:    at android.view.Choreographer.doCallbacks(Choreographer.java:761)
05-07 11:06:46.794  8978  8978 E AndroidRuntime:    at android.view.Choreographer.doFrame(Choreographer.java:696)
05-07 11:06:46.794  8978  8978 E AndroidRuntime:    at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:935)
05-07 11:06:46.794  8978  8978 E AndroidRuntime:    at android.os.Handler.handleCallback(Handler.java:873)
05-07 11:06:46.794  8978  8978 E AndroidRuntime:    at android.os.Handler.dispatchMessage(Handler.java:99)
05-07 11:06:46.794  8978  8978 E AndroidRuntime:    at android.os.Looper.loop(Looper.java:193)
05-07 11:06:46.794  8978  8978 E AndroidRuntime:    at android.app.ActivityThread.main(ActivityThread.java:6718)
05-07 11:06:46.794  8978  8978 E AndroidRuntime:    at java.lang.reflect.Method.invoke(Native Method)
05-07 11:06:46.794  8978  8978 E AndroidRuntime:    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:491)
05-07 11:06:46.794  8978  8978 E AndroidRuntime:    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
05-07 11:06:46.795  8978  8978 I mozac/CrashReporter: Received crash: UncaughtExceptionCrash(throwable=java.lang.IllegalStateException: Cannot add item decoration during a scroll  or layout, breadcrumbs=[Breadcrumb(message=Changing to fragment homeFragment, isCustomTab: false, data={}, category=DestinationChanged, level=INFO, type=DEFAULT, date=Thu May 07 11:06:32 GMT+03:00 2020), Breadcrumb(message=Changing to fragment browserFragment, isCustomTab: false, data={}, category=DestinationChanged, level=INFO, type=DEFAULT, date=Thu May 07 11:06:37 GMT+03:00 2020), Breadcrumb(message=Changing to fragment tabTrayFragment, isCustomTab: false, data={}, category=DestinationChanged, level=INFO, type=DEFAULT, date=Thu May 07 11:06:46 GMT+03:00 2020)], uuid=f918c6a2-a45b-408e-a16f-0499f05ac394)
05-07 11:06:46.804  8978  8978 I mozac/CrashReporter: Showing prompt
05-07 11:06:46.817  8978  8978 I Process : Sending signal. PID: 8978 SIG: 9

Thank you for reporting this! related issue: https://github.com/mozilla-mobile/fenix/issues/10453.

Closing in favor of #10471.

Was this page helpful?
0 / 5 - 0 ratings