Closed
Bug 1311414
Opened 9 years ago
Closed 8 years ago
Activity Stream Panel: android.database.CursorIndexOutOfBoundsException: Index 24 requested, with a size of 24
Categories
(Firefox for Android Graveyard :: General, defect, P2)
Tracking
(Not tracked)
RESOLVED
WORKSFORME
People
(Reporter: sebastian, Assigned: liuche)
References
Details
(Whiteboard: [MobileAS])
I see some repeating crashes of the new AS panel on a Nexus 7:
> GeckoCrashHandler E >>> REPORTING UNCAUGHT EXCEPTION FROM THREAD 1 ("main")
> E android.database.CursorIndexOutOfBoundsException: Index 24 requested, with a size of 24
> E at android.database.AbstractCursor.checkPosition(AbstractCursor.java:426)
> E at android.database.AbstractWindowedCursor.checkPosition(AbstractWindowedCursor.java:136)
> E at android.database.AbstractWindowedCursor.getLong(AbstractWindowedCursor.java:74)
> E at android.database.CursorWrapper.getLong(CursorWrapper.java:106)
> E at org.mozilla.gecko.home.activitystream.topsites.TopSitesPageAdapter.swapCursor(TopSitesPageAdapter.java:71)
> E at org.mozilla.gecko.home.activitystream.topsites.TopSitesPagerAdapter.swapCursor(TopSitesPagerAdapter.java:113)
> E at org.mozilla.gecko.home.activitystream.StreamItem$TopPanel.bind(StreamItem.java:59)
> E at org.mozilla.gecko.home.activitystream.StreamRecyclerAdapter.onBindViewHolder(StreamRecyclerAdapter.java:85)
> E at org.mozilla.gecko.home.activitystream.StreamRecyclerAdapter.onBindViewHolder(StreamRecyclerAdapter.java:22)
> E at android.support.v7.widget.RecyclerView$Adapter.onBindViewHolder(Unknown Source)
> [..]
Reporter | ||
Updated•8 years ago
|
Blocks: as-android-blockers
Updated•8 years ago
|
Priority: -- → P2
Whiteboard: [MobileAS]
It appears this code has changed and we no longer call `Cursor.getLong`: https://dxr.mozilla.org/mozilla-central/rev/30ea2905130e85f9e1d8d56fa3097901eec6514b/mobile/android/base/java/org/mozilla/gecko/activitystream/homepanel/topsites/TopSitesPageAdapter.java#58
I can't find this crash in crash-stats.
Sebastian, do you think this crash is still occurring?
Flags: needinfo?(s.kaspari)
Assignee | ||
Updated•8 years ago
|
Assignee: nobody → liuche
Reporter | ||
Comment 2•8 years ago
|
||
(In reply to Michael Comella (:mcomella) from comment #1)
> Sebastian, do you think this crash is still occurring?
The AS top sites code has changed over time. It's very likely that this doesn't happen anymore.
Flags: needinfo?(s.kaspari)
Reporter | ||
Comment 3•8 years ago
|
||
Could be fixed by this patch that introduced an additional cursor size check here:
https://hg.mozilla.org/mozilla-central/rev/7d5fa98f80d1
Assignee | ||
Comment 4•8 years ago
|
||
Agreed, I'll WFM right now, can reopen if there are more reports, but I haven't seen any more crashes through 54.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WORKSFORME
Updated•4 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•