Closed
Bug 838745
Opened 12 years ago
Closed 12 years ago
java.lang.IndexOutOfBoundsException: Invalid index <n>, size is <n> at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java) at org.mozilla.gecko.AboutHomePromoBox$<m>.onGotTypes(AboutHomePromoBox.java)
Categories
(Firefox for Android Graveyard :: General, defect)
Tracking
(firefox21+ fixed)
RESOLVED
FIXED
Firefox 21
People
(Reporter: scoobidiver, Assigned: mfinkle)
References
Details
(Keywords: crash, regression, topcrash, Whiteboard: [native-crash])
Crash Data
Attachments
(2 files)
1.08 KB,
patch
|
bnicholson
:
review+
|
Details | Diff | Splinter Review |
1.13 KB,
patch
|
bnicholson
:
review+
|
Details | Diff | Splinter Review |
It has been hit by three users in 21.0a1/20130206. The regression range is: http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=2360c3c46aca&tochange=bc108d2ce8d1 It's likely a regression from bug 837142. Here is a crash report: bp-c103928f-406f-40ce-8f89-355bb2130206. java.lang.IndexOutOfBoundsException: Invalid index 1, size is 1 at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:255) at java.util.ArrayList.get(ArrayList.java:308) at org.mozilla.gecko.AboutHomePromoBox$2.onGotTypes(AboutHomePromoBox.java:153) at org.mozilla.gecko.AboutHomePromoBox$3.onPostExecute(AboutHomePromoBox.java:201) at org.mozilla.gecko.AboutHomePromoBox$3.onPostExecute(AboutHomePromoBox.java:185) at org.mozilla.gecko.util.GeckoAsyncTask$BackgroundTaskRunnable$1.run(GeckoAsyncTask.java:37) at android.os.Handler.handleCallback(Handler.java:587) at android.os.Handler.dispatchMessage(Handler.java:92) at android.os.Looper.loop(Looper.java:132) at android.app.ActivityThread.main(ActivityThread.java:4123) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:491) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:849) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:607) at dalvik.system.NativeStart.main(Native Method) More reports at: https://crash-stats.mozilla.com/report/list?signature=java.lang.IndexOutOfBoundsException%3A+Invalid+index+1%2C+size+is+1+at+java.util.ArrayList.throwIndexOutOfBoundsException%28ArrayList.java%29
Assignee | ||
Comment 1•12 years ago
|
||
I forgot to handle the case where we remove a promo choice, reducing the number of "types" available. If that happens, we need to randomize again. This patch does not technically say "if any of the available promo types is removed or added, please randomize". It's kinda more simple than that and says "if the type index from last time is out-of-range, randomize again". This should still work and show a new promo. There is already a check for no promo types, so we don't need to add anything new for that.
Assignee: nobody → mark.finkle
Attachment #710892 -
Flags: review?(wjohnston)
Reporter | ||
Comment 2•12 years ago
|
||
It's #2 top crasher over the last day.
tracking-firefox21:
--- → ?
Keywords: topcrash
Assignee | ||
Comment 3•12 years ago
|
||
Wes - Review ping?
Updated•12 years ago
|
status-firefox21:
--- → affected
Assignee | ||
Comment 4•12 years ago
|
||
Comment on attachment 710892 [details] [diff] [review] patch Over to Brian
Attachment #710892 -
Flags: review?(wjohnston) → review?(bnicholson)
Updated•12 years ago
|
Attachment #710892 -
Flags: review?(bnicholson) → review+
Assignee | ||
Comment 5•12 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/ded7b4099975
Comment 6•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/ded7b4099975
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 21
Reporter | ||
Comment 7•12 years ago
|
||
It's not fixed. See bp-effe19eb-ac9f-4e10-87d6-d387c2130209.
Assignee | ||
Comment 8•12 years ago
|
||
I am obviously a bit rusty in my zero-based array size checks
Attachment #712138 -
Flags: review?(bnicholson)
Assignee | ||
Comment 9•12 years ago
|
||
(In reply to Mark Finkle (:mfinkle) from comment #8) > Created attachment 712138 [details] [diff] [review] > patch 2: stupid mistake > > I am obviously a bit rusty in my zero-based array size checks Tested the patch and it does stop the crash
Comment 10•12 years ago
|
||
Comment on attachment 712138 [details] [diff] [review] patch 2: stupid mistake Oops, sorry for not catching this in the first patch.
Attachment #712138 -
Flags: review?(bnicholson) → review+
Assignee | ||
Comment 11•12 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/f10c91f4206e
Comment 12•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/f10c91f4206e
Status: REOPENED → RESOLVED
Closed: 12 years ago → 12 years ago
Resolution: --- → FIXED
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
•