tsiemens / pathfinder-toolkit

A Pathfinder RPG Android app, for managing characters and parties
22 stars 6 forks source link

Array out of bounds in spinner #10

Open tsiemens opened 10 years ago

tsiemens commented 10 years ago

Affects version: 2.0 Device: Moto G Android Version: 4.3

No user comment with this one At a glance, it looks like a spinner in a table row is crashing. I don't think we have any spinners that could have 41 items, so maybe this is a race condition somewhere.

Also could be triggered by the nav drawer.

java.lang.IndexOutOfBoundsException: Invalid index 44, size is 41
at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:255)
at java.util.Arrays$ArrayList.get(Arrays.java:66)
at android.widget.ArrayAdapter.getItem(ArrayAdapter.java:337)
at android.widget.ArrayAdapter.createViewFromResource(ArrayAdapter.java:390)
at android.widget.ArrayAdapter.getView(ArrayAdapter.java:362)
at android.widget.Spinner.makeAndAddView(Spinner.java:551)
at android.widget.Spinner.layout(Spinner.java:499)
at android.widget.Spinner.onLayout(Spinner.java:461)
at android.view.View.layout(View.java:14329)
at android.view.ViewGroup.layout(ViewGroup.java:4572)
at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1671)
at android.widget.LinearLayout.layoutHorizontal(LinearLayout.java:1660)
at android.widget.TableRow.onLayout(TableRow.java:123)
at android.view.View.layout(View.java:14329)
at android.view.ViewGroup.layout(ViewGroup.java:4572)
at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1671)
at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1525)
at android.widget.TableLayout.onLayout(TableLayout.java:448)
at android.view.View.layout(View.java:14329)
at android.view.ViewGroup.layout(ViewGroup.java:4572)
at android.widget.FrameLayout.onLayout(FrameLayout.java:448)
at android.view.View.layout(View.java:14329)
at android.view.ViewGroup.layout(ViewGroup.java:4572)
at android.support.v4.widget.DrawerLayout.onLayout(DrawerLayout.java:653)
at android.view.View.layout(View.java:14329)
at android.view.ViewGroup.layout(ViewGroup.java:4572)
at android.widget.FrameLayout.onLayout(FrameLayout.java:448)
at android.view.View.layout(View.java:14329)
at android.view.ViewGroup.layout(ViewGroup.java:4572)
at com.android.internal.widget.ActionBarOverlayLayout.onLayout(ActionBarOverlayLayout.java:349)
at android.view.View.layout(View.java:14329)
at android.view.ViewGroup.layout(ViewGroup.java:4572)
at android.widget.FrameLayout.onLayout(FrameLayout.java:448)
at android.view.View.layout(View.java:14329)
at android.view.ViewGroup.layout(ViewGroup.java:4572)
at android.view.ViewRootImpl.performLayout(ViewRootImpl.java:2008)
at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1762)
at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1029)
at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5592)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:749)
at android.view.Choreographer.doCallbacks(Choreographer.java:562)
at android.view.Choreographer.doFrame(Choreographer.java:532)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:735)
at android.os.Handler.handleCallback(Handler.java:730)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5222)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:525)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
at dalvik.system.NativeStart.main(Native Method)