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)

NEW
Unassigned

Status

()

Firefox for Android
General
--
critical
6 years ago
2 years ago

People

(Reporter: mbrubeck, Unassigned)

Tracking

({crash})

14 Branch
ARM
Android
crash
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

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

(Reporter)

Description

6 years ago
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.
(Reporter)

Comment 1

6 years ago
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.

Updated

6 years ago
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.throwIndexOutOfB&hellip;

Updated

2 years ago
Crash Signature: [@ 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.throwIndexOutOf&hellip; → [@ 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.throwIndexOutOf&hellip;
You need to log in before you can comment on or make changes to this bug.