java.lang.ArrayIndexOutOfBoundsException: length=2; index=2

JIRA | Steve Kondik | 3 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Got a crash just now when I disabled the panel on Flo. D/AudioPolicyManagerBase( 198): startOutput() output 2, stream 1, session 13 I/AudioMixer( 198): found effect "Multichannel Downmix To Stereo" from The Android Open Source Project V/audio_hw_primary( 198): start_output_stream: enter: usecase(1: low-latency-playback) devices(0x2) D/audio_hw_primary( 198): select_devices: out_snd_device(2: speaker) in_snd_device(0: ) D/ACDB-LOADER( 198): ACDB -> send_afe_cal V/audio_hw_primary( 198): enable_snd_device: snd_device(2: speaker) V/audio_hw_primary( 198): enable_audio_route: enter: usecase(1) V/audio_hw_primary( 198): enable_audio_route: apply mixer path: low-latency-playback V/audio_hw_primary( 198): enable_audio_route: exit V/audio_hw_primary( 198): start_output_stream: Opening PCM device card_id(0) device_id(14) V/audio_hw_primary( 198): start_output_stream: exit I/QCOM PowerHAL( 198): Processing audio hint. Metadata: state=0 E/AudioTrack( 620): did not receive expected priority boost on time I/GlobalDismissManager( 6048): no sender configured D/AlertService( 6048): Beginning updateAlertNotification D/AlertService( 6048): alertCursor count:1 D/AlertService( 6048): alertCursor result: alarmTime:1405360200000 alertId:26 eventId:1422 state: 1 minutes:10 declined:false responded:false beginTime:1405360800000 endTime:1405364400000 allDay:false alarmTime:1405360200000 forceQuiet:false newAlertOverride: false I/GlobalDismissManager( 6048): no sender configured D/AlertService( 6048): Quietly posting digest alarm notification, numEvents:1, notificationId:0 D/AlertService( 6048): Canceling leftover notification IDs 1-20 D/AlertService( 6048): Scheduling next alarm with AlarmScheduler. sEventReminderReceived: null D/AlarmScheduler( 6048): Query result count for events starting within 1 week: 19 D/AlarmScheduler( 6048): Scheduling alarm for EVENT_REMINDER_APP broadcast for event 1899 at 1405371001000 (Mon, Jul 14, 2014 01:50pm) I/ActivityManager( 620): Killing 5635:com.cyanogenmod.updater/u0a1 (adj 15): empty #17 D/AlertService( 6081): Beginning updateAlertNotification D/AlertService( 6081): alertCursor count:1 D/AlertService( 6081): alertCursor result: alarmTime:1405360200000 alertId:26 eventId:1422 state: 1 minutes:10 declined:false responded:false beginTime:1405360800000 endTime:1405364400000 allDay:false alarmTime:1405360200000 forceQuiet:false newAlertOverride: false D/AlertService( 6081): Quietly posting digest alarm notification, numEvents:1, notificationId:0 I/ActivityManager( 620): Killing 5655:android.process.media/u0a5 (adj 15): empty #17 D/AlertService( 6081): Canceling leftover notification IDs 1-20 D/AlertService( 6081): Scheduling next alarm with AlarmScheduler. sEventReminderReceived: null D/AlarmScheduler( 6081): Query result count for events starting within 1 week: 19 D/AlarmScheduler( 6081): Scheduling alarm for EVENT_REMINDER_APP broadcast for event 1899 at 1405371001000 (Mon, Jul 14, 2014 01:50pm) I/ActivityManager( 620): Killing 5674:com.android.settings/1000 (adj 15): empty #17 V/audio_hw_primary( 198): out_standby: enter: usecase(1: low-latency-playback) V/audio_hw_primary( 198): stop_output_stream: enter: usecase(1: low-latency-playback) V/audio_hw_primary( 198): disable_audio_route: enter: usecase(1) V/audio_hw_primary( 198): disable_audio_route: reset mixer path: low-latency-playback V/audio_hw_primary( 198): disable_audio_route: exit V/audio_hw_primary( 198): disable_snd_device: snd_device(2: speaker) refcnt=0 V/audio_hw_primary( 198): stop_output_stream: exit: status(0) V/audio_hw_primary( 198): out_standby: exit I/GCM ( 1570): GCM message GSYNC_TICKLE 0:1405363642101739%0#e7a7135310940a91 I/SubscribedFeeds( 1570): Received message D/AndroidRuntime( 1402): Shutting down VM W/dalvikvm( 1402): threadid=1: thread exiting with uncaught exception (group=0x41616db8) E/AndroidRuntime( 1402): FATAL EXCEPTION: main E/AndroidRuntime( 1402): Process: com.android.launcher3, PID: 1402 E/AndroidRuntime( 1402): java.lang.ArrayIndexOutOfBoundsException: length=2; index=2 E/AndroidRuntime( 1402): at com.android.launcher3.PagedView.onLayout(PagedView.java:973) E/AndroidRuntime( 1402): at com.android.launcher3.Workspace.onLayout(Workspace.java:1850) E/AndroidRuntime( 1402): at android.view.View.layout(View.java:14841) E/AndroidRuntime( 1402): at android.view.ViewGroup.layout(ViewGroup.java:4631) E/AndroidRuntime( 1402): at android.widget.FrameLayout.layoutChildren(FrameLayout.java:453) E/AndroidRuntime( 1402): at android.widget.FrameLayout.onLayout(FrameLayout.java:388) E/AndroidRuntime( 1402): at com.android.launcher3.DragLayer.onLayout(DragLayer.java:449) E/AndroidRuntime( 1402): at android.view.View.layout(View.java:14841) E/AndroidRuntime( 1402): at android.view.ViewGroup.layout(ViewGroup.java:4631) E/AndroidRuntime( 1402): at android.widget.FrameLayout.layoutChildren(FrameLayout.java:453) E/AndroidRuntime( 1402): at android.widget.FrameLayout.onLayout(FrameLayout.java:388) E/AndroidRuntime( 1402): at android.view.View.layout(View.java:14841) E/AndroidRuntime( 1402): at android.view.ViewGroup.layout(ViewGroup.java:4631) E/AndroidRuntime( 1402): at android.widget.FrameLayout.layoutChildren(FrameLayout.java:453) E/AndroidRuntime( 1402): at android.widget.FrameLayout.onLayout(FrameLayout.java:388) E/AndroidRuntime( 1402): at android.view.View.layout(View.java:14841) E/AndroidRuntime( 1402): at android.view.ViewGroup.layout(ViewGroup.java:4631) E/AndroidRuntime( 1402): at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1671) E/AndroidRuntime( 1402): at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1525) E/AndroidRuntime( 1402): at android.widget.LinearLayout.onLayout(LinearLayout.java:1434) E/AndroidRuntime( 1402): at android.view.View.layout(View.java:14841) E/AndroidRuntime( 1402): at android.view.ViewGroup.layout(ViewGroup.java:4631) E/AndroidRuntime( 1402): at android.widget.FrameLayout.layoutChildren(FrameLayout.java:453) E/AndroidRuntime( 1402): at android.widget.FrameLayout.onLayout(FrameLayout.java:388) E/AndroidRuntime( 1402): at android.view.View.layout(View.java:14841) E/AndroidRuntime( 1402): at android.view.ViewGroup.layout(ViewGroup.java:4631) E/AndroidRuntime( 1402): at android.view.ViewRootImpl.performLayout(ViewRootImpl.java:1983) E/AndroidRuntime( 1402): at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1740) E/AndroidRuntime( 1402): at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:996) E/AndroidRuntime( 1402): at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5600) E/AndroidRuntime( 1402): at android.view.Choreographer$CallbackRecord.run(Choreographer.java:761) E/AndroidRuntime( 1402): at android.view.Choreographer.doCallbacks(Choreographer.java:574) E/AndroidRuntime( 1402): at android.view.Choreographer.doFrame(Choreographer.java:544) E/AndroidRuntime( 1402): at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:747) E/AndroidRuntime( 1402): at android.os.Handler.handleCallback(Handler.java:733) E/AndroidRuntime( 1402): at android.os.Handler.dispatchMessage(Handler.java:95) E/AndroidRuntime( 1402): at android.os.Looper.loop(Looper.java:136) E/AndroidRuntime( 1402): at android.app.ActivityThread.main(ActivityThread.java:5140) E/AndroidRuntime( 1402): at java.lang.reflect.Method.invokeNative(Native Method) E/AndroidRuntime( 1402): at java.lang.reflect.Method.invoke(Method.java:515) E/AndroidRuntime( 1402): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:796) E/AndroidRuntime( 1402): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:612) E/AndroidRuntime( 1402): at dalvik.system.NativeStart.main(Native Method) W/ActivityManager( 620): Force finishing activity com.android.launcher3/org.cyanogenmod.trebuchet.TrebuchetLauncher D/ConnectivityService( 620): handleInetConditionHoldEnd: net=1, condition=100, published condition=100 D/LogFetchServiceManager( 5919): Received entry added D/StatusBar.NetworkController( 1155): updateConnectivity: intent=Intent { act=android.net.conn.INET_CONDITION_ACTION flg=0x4000010 (has extras) }

    JIRA | 3 years ago | Steve Kondik
    java.lang.ArrayIndexOutOfBoundsException: length=2; index=2
  2. 0

    Got a crash just now when I disabled the panel on Flo. D/AudioPolicyManagerBase( 198): startOutput() output 2, stream 1, session 13 I/AudioMixer( 198): found effect "Multichannel Downmix To Stereo" from The Android Open Source Project V/audio_hw_primary( 198): start_output_stream: enter: usecase(1: low-latency-playback) devices(0x2) D/audio_hw_primary( 198): select_devices: out_snd_device(2: speaker) in_snd_device(0: ) D/ACDB-LOADER( 198): ACDB -> send_afe_cal V/audio_hw_primary( 198): enable_snd_device: snd_device(2: speaker) V/audio_hw_primary( 198): enable_audio_route: enter: usecase(1) V/audio_hw_primary( 198): enable_audio_route: apply mixer path: low-latency-playback V/audio_hw_primary( 198): enable_audio_route: exit V/audio_hw_primary( 198): start_output_stream: Opening PCM device card_id(0) device_id(14) V/audio_hw_primary( 198): start_output_stream: exit I/QCOM PowerHAL( 198): Processing audio hint. Metadata: state=0 E/AudioTrack( 620): did not receive expected priority boost on time I/GlobalDismissManager( 6048): no sender configured D/AlertService( 6048): Beginning updateAlertNotification D/AlertService( 6048): alertCursor count:1 D/AlertService( 6048): alertCursor result: alarmTime:1405360200000 alertId:26 eventId:1422 state: 1 minutes:10 declined:false responded:false beginTime:1405360800000 endTime:1405364400000 allDay:false alarmTime:1405360200000 forceQuiet:false newAlertOverride: false I/GlobalDismissManager( 6048): no sender configured D/AlertService( 6048): Quietly posting digest alarm notification, numEvents:1, notificationId:0 D/AlertService( 6048): Canceling leftover notification IDs 1-20 D/AlertService( 6048): Scheduling next alarm with AlarmScheduler. sEventReminderReceived: null D/AlarmScheduler( 6048): Query result count for events starting within 1 week: 19 D/AlarmScheduler( 6048): Scheduling alarm for EVENT_REMINDER_APP broadcast for event 1899 at 1405371001000 (Mon, Jul 14, 2014 01:50pm) I/ActivityManager( 620): Killing 5635:com.cyanogenmod.updater/u0a1 (adj 15): empty #17 D/AlertService( 6081): Beginning updateAlertNotification D/AlertService( 6081): alertCursor count:1 D/AlertService( 6081): alertCursor result: alarmTime:1405360200000 alertId:26 eventId:1422 state: 1 minutes:10 declined:false responded:false beginTime:1405360800000 endTime:1405364400000 allDay:false alarmTime:1405360200000 forceQuiet:false newAlertOverride: false D/AlertService( 6081): Quietly posting digest alarm notification, numEvents:1, notificationId:0 I/ActivityManager( 620): Killing 5655:android.process.media/u0a5 (adj 15): empty #17 D/AlertService( 6081): Canceling leftover notification IDs 1-20 D/AlertService( 6081): Scheduling next alarm with AlarmScheduler. sEventReminderReceived: null D/AlarmScheduler( 6081): Query result count for events starting within 1 week: 19 D/AlarmScheduler( 6081): Scheduling alarm for EVENT_REMINDER_APP broadcast for event 1899 at 1405371001000 (Mon, Jul 14, 2014 01:50pm) I/ActivityManager( 620): Killing 5674:com.android.settings/1000 (adj 15): empty #17 V/audio_hw_primary( 198): out_standby: enter: usecase(1: low-latency-playback) V/audio_hw_primary( 198): stop_output_stream: enter: usecase(1: low-latency-playback) V/audio_hw_primary( 198): disable_audio_route: enter: usecase(1) V/audio_hw_primary( 198): disable_audio_route: reset mixer path: low-latency-playback V/audio_hw_primary( 198): disable_audio_route: exit V/audio_hw_primary( 198): disable_snd_device: snd_device(2: speaker) refcnt=0 V/audio_hw_primary( 198): stop_output_stream: exit: status(0) V/audio_hw_primary( 198): out_standby: exit I/GCM ( 1570): GCM message GSYNC_TICKLE 0:1405363642101739%0#e7a7135310940a91 I/SubscribedFeeds( 1570): Received message D/AndroidRuntime( 1402): Shutting down VM W/dalvikvm( 1402): threadid=1: thread exiting with uncaught exception (group=0x41616db8) E/AndroidRuntime( 1402): FATAL EXCEPTION: main E/AndroidRuntime( 1402): Process: com.android.launcher3, PID: 1402 E/AndroidRuntime( 1402): java.lang.ArrayIndexOutOfBoundsException: length=2; index=2 E/AndroidRuntime( 1402): at com.android.launcher3.PagedView.onLayout(PagedView.java:973) E/AndroidRuntime( 1402): at com.android.launcher3.Workspace.onLayout(Workspace.java:1850) E/AndroidRuntime( 1402): at android.view.View.layout(View.java:14841) E/AndroidRuntime( 1402): at android.view.ViewGroup.layout(ViewGroup.java:4631) E/AndroidRuntime( 1402): at android.widget.FrameLayout.layoutChildren(FrameLayout.java:453) E/AndroidRuntime( 1402): at android.widget.FrameLayout.onLayout(FrameLayout.java:388) E/AndroidRuntime( 1402): at com.android.launcher3.DragLayer.onLayout(DragLayer.java:449) E/AndroidRuntime( 1402): at android.view.View.layout(View.java:14841) E/AndroidRuntime( 1402): at android.view.ViewGroup.layout(ViewGroup.java:4631) E/AndroidRuntime( 1402): at android.widget.FrameLayout.layoutChildren(FrameLayout.java:453) E/AndroidRuntime( 1402): at android.widget.FrameLayout.onLayout(FrameLayout.java:388) E/AndroidRuntime( 1402): at android.view.View.layout(View.java:14841) E/AndroidRuntime( 1402): at android.view.ViewGroup.layout(ViewGroup.java:4631) E/AndroidRuntime( 1402): at android.widget.FrameLayout.layoutChildren(FrameLayout.java:453) E/AndroidRuntime( 1402): at android.widget.FrameLayout.onLayout(FrameLayout.java:388) E/AndroidRuntime( 1402): at android.view.View.layout(View.java:14841) E/AndroidRuntime( 1402): at android.view.ViewGroup.layout(ViewGroup.java:4631) E/AndroidRuntime( 1402): at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1671) E/AndroidRuntime( 1402): at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1525) E/AndroidRuntime( 1402): at android.widget.LinearLayout.onLayout(LinearLayout.java:1434) E/AndroidRuntime( 1402): at android.view.View.layout(View.java:14841) E/AndroidRuntime( 1402): at android.view.ViewGroup.layout(ViewGroup.java:4631) E/AndroidRuntime( 1402): at android.widget.FrameLayout.layoutChildren(FrameLayout.java:453) E/AndroidRuntime( 1402): at android.widget.FrameLayout.onLayout(FrameLayout.java:388) E/AndroidRuntime( 1402): at android.view.View.layout(View.java:14841) E/AndroidRuntime( 1402): at android.view.ViewGroup.layout(ViewGroup.java:4631) E/AndroidRuntime( 1402): at android.view.ViewRootImpl.performLayout(ViewRootImpl.java:1983) E/AndroidRuntime( 1402): at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1740) E/AndroidRuntime( 1402): at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:996) E/AndroidRuntime( 1402): at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5600) E/AndroidRuntime( 1402): at android.view.Choreographer$CallbackRecord.run(Choreographer.java:761) E/AndroidRuntime( 1402): at android.view.Choreographer.doCallbacks(Choreographer.java:574) E/AndroidRuntime( 1402): at android.view.Choreographer.doFrame(Choreographer.java:544) E/AndroidRuntime( 1402): at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:747) E/AndroidRuntime( 1402): at android.os.Handler.handleCallback(Handler.java:733) E/AndroidRuntime( 1402): at android.os.Handler.dispatchMessage(Handler.java:95) E/AndroidRuntime( 1402): at android.os.Looper.loop(Looper.java:136) E/AndroidRuntime( 1402): at android.app.ActivityThread.main(ActivityThread.java:5140) E/AndroidRuntime( 1402): at java.lang.reflect.Method.invokeNative(Native Method) E/AndroidRuntime( 1402): at java.lang.reflect.Method.invoke(Method.java:515) E/AndroidRuntime( 1402): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:796) E/AndroidRuntime( 1402): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:612) E/AndroidRuntime( 1402): at dalvik.system.NativeStart.main(Native Method) W/ActivityManager( 620): Force finishing activity com.android.launcher3/org.cyanogenmod.trebuchet.TrebuchetLauncher D/ConnectivityService( 620): handleInetConditionHoldEnd: net=1, condition=100, published condition=100 D/LogFetchServiceManager( 5919): Received entry added D/StatusBar.NetworkController( 1155): updateConnectivity: intent=Intent { act=android.net.conn.INET_CONDITION_ACTION flg=0x4000010 (has extras) }

    JIRA | 3 years ago | Steve Kondik
    java.lang.ArrayIndexOutOfBoundsException: length=2; index=2

    Root Cause Analysis

    1. java.lang.ArrayIndexOutOfBoundsException

      length=2; index=2

      at com.android.launcher3.PagedView.onLayout()
    2. com.android.launcher3
      Workspace.onLayout
      1. com.android.launcher3.PagedView.onLayout(PagedView.java:973)
      2. com.android.launcher3.Workspace.onLayout(Workspace.java:1850)
      2 frames
    3. Android Platform
      FrameLayout.onLayout
      1. android.view.View.layout(View.java:14841)
      2. android.view.ViewGroup.layout(ViewGroup.java:4631)
      3. android.widget.FrameLayout.layoutChildren(FrameLayout.java:453)
      4. android.widget.FrameLayout.onLayout(FrameLayout.java:388)
      4 frames
    4. com.android.launcher3
      DragLayer.onLayout
      1. com.android.launcher3.DragLayer.onLayout(DragLayer.java:449)
      1 frame
    5. Android Platform
      ActivityThread.main
      1. android.view.View.layout(View.java:14841)
      2. android.view.ViewGroup.layout(ViewGroup.java:4631)
      3. android.widget.FrameLayout.layoutChildren(FrameLayout.java:453)
      4. android.widget.FrameLayout.onLayout(FrameLayout.java:388)
      5. android.view.View.layout(View.java:14841)
      6. android.view.ViewGroup.layout(ViewGroup.java:4631)
      7. android.widget.FrameLayout.layoutChildren(FrameLayout.java:453)
      8. android.widget.FrameLayout.onLayout(FrameLayout.java:388)
      9. android.view.View.layout(View.java:14841)
      10. android.view.ViewGroup.layout(ViewGroup.java:4631)
      11. android.widget.LinearLayout.setChildFrame(LinearLayout.java:1671)
      12. android.widget.LinearLayout.layoutVertical(LinearLayout.java:1525)
      13. android.widget.LinearLayout.onLayout(LinearLayout.java:1434)
      14. android.view.View.layout(View.java:14841)
      15. android.view.ViewGroup.layout(ViewGroup.java:4631)
      16. android.widget.FrameLayout.layoutChildren(FrameLayout.java:453)
      17. android.widget.FrameLayout.onLayout(FrameLayout.java:388)
      18. android.view.View.layout(View.java:14841)
      19. android.view.ViewGroup.layout(ViewGroup.java:4631)
      20. android.view.ViewRootImpl.performLayout(ViewRootImpl.java:1983)
      21. android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1740)
      22. android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:996)
      23. android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5600)
      24. android.view.Choreographer$CallbackRecord.run(Choreographer.java:761)
      25. android.view.Choreographer.doCallbacks(Choreographer.java:574)
      26. android.view.Choreographer.doFrame(Choreographer.java:544)
      27. android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:747)
      28. android.os.Handler.handleCallback(Handler.java:733)
      29. android.os.Handler.dispatchMessage(Handler.java:95)
      30. android.os.Looper.loop(Looper.java:136)
      31. android.app.ActivityThread.main(ActivityThread.java:5140)
      31 frames
    6. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invokeNative(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:515)
      2 frames
    7. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:796)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:612)
      2 frames
    8. Android Platform
      NativeStart.main
      1. dalvik.system.NativeStart.main(Native Method)
      1 frame