Closed Bug 767192 Opened 12 years ago Closed 6 years ago

java.lang.IndexOutOfBoundsException: Invalid index <n>, size is <n> at java.util.ArrayList.get(ArrayList.java) at com.android.internal.view.menu.MenuBuilder.findItem(MenuBuilder.java)

Categories

(Firefox for Android Graveyard :: General, defect)

14 Branch
ARM
Android
defect
Not set
critical

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: mbrubeck, Unassigned)

Details

(Keywords: crash, Whiteboard: [native-crash])

Crash Data

This bug was filed from the Socorro interface and is 
report bp-e586487f-d8bb-49f1-95bc-673622120619 .
============================================================= 

java.lang.IndexOutOfBoundsException: Invalid index 11, size is 11
	at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:257)
	at java.util.ArrayList.get(ArrayList.java:311)
	at com.android.internal.view.menu.MenuBuilder.findItem(MenuBuilder.java:607)
	at org.mozilla.gecko.GeckoApp.onPrepareOptionsMenu(GeckoApp.java:407)
	at org.mozilla.gecko.GeckoApp.invalidateOptionsMenu(GeckoApp.java:386)
	at org.mozilla.gecko.GeckoApp$4.run(GeckoApp.java:707)
	at android.os.Handler.handleCallback(Handler.java:587)
	at android.os.Handler.dispatchMessage(Handler.java:92)
	at android.os.Looper.loop(Looper.java:150)
	at android.app.ActivityThread.main(ActivityThread.java:4389)
	at java.lang.reflect.Method.invokeNative(Native Method)
	at java.lang.reflect.Method.invoke(Method.java:507)
	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)

bp-86200615-fee9-4e29-afc8-52b7d2120621 and bp-7ecc36d2-065e-4737-b3d4-36b992120619 are possibly related, but have somewhat different stacks.
The only way I can see this failing is (a) there's a horrible bug in findItem on some versions of Android (but looking at the history of MenuBuilder.java does not show any obvious bugs or changes to this code upstream), or (b) we are modifying the menu on some other thread while findItem is running.
Crash Signature: [@ java.lang.IndexOutOfBoundsException: Invalid index 11, size is 11 at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java)] → [@ java.lang.IndexOutOfBoundsException: Invalid index 15, size is 15 at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java)] [@ java.lang.IndexOutOfBoundsException: Invalid index 13 size is 13 at java.util.ArrayList.throwIndexOutOfBoundsEx…
Crash Signature: , size is 11 at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java)] [@ java.lang.IndexOutOfBoundsException: Invalid index 10, size is 10 at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java)] → , size is 11 at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java)] [@ java.lang.IndexOutOfBoundsException: Invalid index 10, size is 10 at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java)] [@ java.lang.IndexOutOfBounds…
Closing because no crash reported since 12 weeks.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
Closing because no crash reported since 12 weeks.
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.