java.lang.IndexOutOfBoundsException: Invalid index 4, size is 1

Appcelerator JIRA | alexandre orilia | 6 months ago
  1. 0

    Hello, When I open a window with a listview inside. crash the application ( Android only ). {code:java} [ERROR] : TiApplication: (main) [69555,75253] Sending event: exception on thread: main msg:java.lang.IndexOutOfBoundsException: Invalid index 4, size is 1; Titanium 5.3.0,2016/06/01 10:18,94fa8af [ERROR] : TiApplication: java.lang.IndexOutOfBoundsException: Invalid index 4, size is 1 [ERROR] : TiApplication: at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:255) [ERROR] : TiApplication: at java.util.ArrayList.get(ArrayList.java:308) [ERROR] : TiApplication: at android.widget.HeaderViewListAdapter.isEnabled(HeaderViewListAdapter.java:164) [ERROR] : TiApplication: at android.widget.AbsListView.onInitializeAccessibilityNodeInfoForItem(AbsListView.java:2525) [ERROR] : TiApplication: at android.widget.ListView.onInitializeAccessibilityNodeInfoForItem(ListView.java:3949) [ERROR] : TiApplication: at android.widget.AbsListView$ListItemAccessibilityDelegate.onInitializeAccessibilityNodeInfo(AbsListView.java:2452) [ERROR] : TiApplication: at android.view.View.onInitializeAccessibilityNodeInfo(View.java:6079) [ERROR] : TiApplication: at android.view.View.createAccessibilityNodeInfoInte [ERROR] : TiApplication: at android.view.View$AccessibilityDelegate.createAccessibilityNodeInfo(View.java:22348) [ERROR] : TiApplication: at android.view.View.createAccessibilityNodeInfo(View.java:6023) [ERROR] : TiApplication: at android.view.accessibility.AccessibilityRecord.setSource(AccessibilityRecord.java:145) [ERROR] : TiApplication: at android.view.accessibility.AccessibilityRecord.setSource(AccessibilityRecord.java:119) [ERROR] : TiApplication: at android.view.View.onInitializeAccessibilityEventInternal(View.java:5977) [ERROR] : TiApplication: at android.view.View$AccessibilityDelegate.onInitializeAccessibilityEvent(View.java:22260) [ERROR] : TiApplication: at android.view.View.onInitializeAccessibilityEvent(View.java:5963) [ERROR] : TiApplication: at android.view.View.sendAccessibilityEventUncheckedInternal(View.java:5830) [ERROR] : TiApplication: at android.view.View$AccessibilityDelegate.sendAccessibilityEventUnchecked(View.java:22199) [ERROR] : TiApplication: at android.view.View.sendAccessibilityEventUnchecked(View.java:5813) [ERROR] : TiApplication: at android.view.ViewRootImpl$SendWindowContentChangedAccessibilityEvent.run(ViewRootImpl.java:7285) [ERROR] : TiApplication: at android.view.ViewRootImpl$SendWindowContentChangedAccessibilityEvent.runOrPost(ViewRootImpl.java:7311) [ERROR] : TiApplication: at android.view.ViewRootImpl.postSendWindowContentChangedCallback(ViewRootImpl.java:6402) [ERROR] : TiApplication: at android.view.ViewRootImpl.notifySubtreeAccessibilityStateChanged(ViewRootImpl.java:6581) [ERROR] : TiApplication: at android.view.ViewGroup.notifySubtreeAccessibilityStateChanged(ViewGroup.java:3003) [ERROR] : TiApplication: at android.view.ViewGroup.notifySubtreeAccessibilityStateChanged(ViewGroup.java:3003) [ERROR] : TiApplication: at android.view.ViewGroup.notifySubtreeAccessibilityStateChanged(ViewGroup.java:3003) [ERROR] : TiApplication: at android.view.ViewGroup.notifySubtreeAccessibilityStateChanged(ViewGroup.java:3003) [ERROR] : TiApplication: at android.view.ViewGroup.notifySubtreeAccessibilityStateChanged(ViewGroup.java:3003) [ERROR] : TiApplication: at android.view.ViewGroup.notifySubtreeAccessibilityStateChanged(ViewGroup.java:3003) [ERROR] : TiApplication: at android.view.ViewGroup.notifySubtreeAccessibilityStateChanged(ViewGroup.java:3003) [ERROR] : TiApplication: at android.view.ViewGroup.notifySubtreeAccessibilityStateChanged(ViewGroup.java:3003) [ERROR] : TiApplication: at android.view.ViewGroup.notifySubtreeAccessibilityStateChanged(ViewGroup.java:3003) [ERROR] : TiApplication: at android.view.ViewGroup.notifySubtreeAccessibilityStateChanged(ViewGroup.java:3003) [ERROR] : TiApplication: at android.view.ViewGroup.notifySubtreeAccessibilityStateChanged(ViewGroup.java:3003) [ERROR] : TiApplication: at android.view.ViewGroup.notifySubtreeAccessibilityStateChanged(ViewGroup.java:3003) [ERROR] : TiApplication: at android.view.ViewGroup.notifySubtreeAccessibilityStateChanged(ViewGroup.java:3003) [ERROR] : TiApplication: at android.view.ViewGroup.notifySubtreeAccessibilityStateChanged(ViewGroup.java:3003) [ERROR] : TiApplication: at android.view.ViewGroup.notifySubtreeAccessibilityStateChanged(ViewGroup.java:3003) [ERROR] : TiApplication: at android.view.ViewGroup.notifySubtreeAccessibilityStateChanged(ViewGroup.java:3003) [ERROR] : TiApplication: at android.view.ViewGroup.notifySubtreeAccessibilityStateChanged(ViewGroup.java:3003) [ERROR] : TiApplication: at android.view.View.notifySubtreeAccessibilityStateChangedIfNeeded(View.java:8803) [ERROR] : TiApplication: at android.view.View.setFrame(View.java:16774) [ERROR] : TiApplication: at android.view.View.layout(View.java:16656) [ERROR] : TiApplication: at android.view.ViewGroup.layout(ViewGroup.java:5439) [ERROR] : TiApplication: at android.widget.ListView.setupChild(ListView.java:1971) [ERROR] : TiApplication: at android.widget.ListView.makeAndAddView(ListView.java:1881) [ERROR] : TiApplication: at android.widget.ListView.fillSpecific(ListView.java:1357) [ERROR] : TiApplication: at android.widget.ListView.layoutChildren(ListView.java:1665) [ERROR] : TiApplication: at {code} happens only on LG android 6.0.1 on G4 tks bye

    Appcelerator JIRA | 6 months ago | alexandre orilia
    java.lang.IndexOutOfBoundsException: Invalid index 4, size is 1
  2. 0

    Hello, When I open a window with a listview inside. crash the application ( Android only ). {code:java} [ERROR] : TiApplication: (main) [69555,75253] Sending event: exception on thread: main msg:java.lang.IndexOutOfBoundsException: Invalid index 4, size is 1; Titanium 5.3.0,2016/06/01 10:18,94fa8af [ERROR] : TiApplication: java.lang.IndexOutOfBoundsException: Invalid index 4, size is 1 [ERROR] : TiApplication: at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:255) [ERROR] : TiApplication: at java.util.ArrayList.get(ArrayList.java:308) [ERROR] : TiApplication: at android.widget.HeaderViewListAdapter.isEnabled(HeaderViewListAdapter.java:164) [ERROR] : TiApplication: at android.widget.AbsListView.onInitializeAccessibilityNodeInfoForItem(AbsListView.java:2525) [ERROR] : TiApplication: at android.widget.ListView.onInitializeAccessibilityNodeInfoForItem(ListView.java:3949) [ERROR] : TiApplication: at android.widget.AbsListView$ListItemAccessibilityDelegate.onInitializeAccessibilityNodeInfo(AbsListView.java:2452) [ERROR] : TiApplication: at android.view.View.onInitializeAccessibilityNodeInfo(View.java:6079) [ERROR] : TiApplication: at android.view.View.createAccessibilityNodeInfoInte [ERROR] : TiApplication: at android.view.View$AccessibilityDelegate.createAccessibilityNodeInfo(View.java:22348) [ERROR] : TiApplication: at android.view.View.createAccessibilityNodeInfo(View.java:6023) [ERROR] : TiApplication: at android.view.accessibility.AccessibilityRecord.setSource(AccessibilityRecord.java:145) [ERROR] : TiApplication: at android.view.accessibility.AccessibilityRecord.setSource(AccessibilityRecord.java:119) [ERROR] : TiApplication: at android.view.View.onInitializeAccessibilityEventInternal(View.java:5977) [ERROR] : TiApplication: at android.view.View$AccessibilityDelegate.onInitializeAccessibilityEvent(View.java:22260) [ERROR] : TiApplication: at android.view.View.onInitializeAccessibilityEvent(View.java:5963) [ERROR] : TiApplication: at android.view.View.sendAccessibilityEventUncheckedInternal(View.java:5830) [ERROR] : TiApplication: at android.view.View$AccessibilityDelegate.sendAccessibilityEventUnchecked(View.java:22199) [ERROR] : TiApplication: at android.view.View.sendAccessibilityEventUnchecked(View.java:5813) [ERROR] : TiApplication: at android.view.ViewRootImpl$SendWindowContentChangedAccessibilityEvent.run(ViewRootImpl.java:7285) [ERROR] : TiApplication: at android.view.ViewRootImpl$SendWindowContentChangedAccessibilityEvent.runOrPost(ViewRootImpl.java:7311) [ERROR] : TiApplication: at android.view.ViewRootImpl.postSendWindowContentChangedCallback(ViewRootImpl.java:6402) [ERROR] : TiApplication: at android.view.ViewRootImpl.notifySubtreeAccessibilityStateChanged(ViewRootImpl.java:6581) [ERROR] : TiApplication: at android.view.ViewGroup.notifySubtreeAccessibilityStateChanged(ViewGroup.java:3003) [ERROR] : TiApplication: at android.view.ViewGroup.notifySubtreeAccessibilityStateChanged(ViewGroup.java:3003) [ERROR] : TiApplication: at android.view.ViewGroup.notifySubtreeAccessibilityStateChanged(ViewGroup.java:3003) [ERROR] : TiApplication: at android.view.ViewGroup.notifySubtreeAccessibilityStateChanged(ViewGroup.java:3003) [ERROR] : TiApplication: at android.view.ViewGroup.notifySubtreeAccessibilityStateChanged(ViewGroup.java:3003) [ERROR] : TiApplication: at android.view.ViewGroup.notifySubtreeAccessibilityStateChanged(ViewGroup.java:3003) [ERROR] : TiApplication: at android.view.ViewGroup.notifySubtreeAccessibilityStateChanged(ViewGroup.java:3003) [ERROR] : TiApplication: at android.view.ViewGroup.notifySubtreeAccessibilityStateChanged(ViewGroup.java:3003) [ERROR] : TiApplication: at android.view.ViewGroup.notifySubtreeAccessibilityStateChanged(ViewGroup.java:3003) [ERROR] : TiApplication: at android.view.ViewGroup.notifySubtreeAccessibilityStateChanged(ViewGroup.java:3003) [ERROR] : TiApplication: at android.view.ViewGroup.notifySubtreeAccessibilityStateChanged(ViewGroup.java:3003) [ERROR] : TiApplication: at android.view.ViewGroup.notifySubtreeAccessibilityStateChanged(ViewGroup.java:3003) [ERROR] : TiApplication: at android.view.ViewGroup.notifySubtreeAccessibilityStateChanged(ViewGroup.java:3003) [ERROR] : TiApplication: at android.view.ViewGroup.notifySubtreeAccessibilityStateChanged(ViewGroup.java:3003) [ERROR] : TiApplication: at android.view.ViewGroup.notifySubtreeAccessibilityStateChanged(ViewGroup.java:3003) [ERROR] : TiApplication: at android.view.ViewGroup.notifySubtreeAccessibilityStateChanged(ViewGroup.java:3003) [ERROR] : TiApplication: at android.view.ViewGroup.notifySubtreeAccessibilityStateChanged(ViewGroup.java:3003) [ERROR] : TiApplication: at android.view.View.notifySubtreeAccessibilityStateChangedIfNeeded(View.java:8803) [ERROR] : TiApplication: at android.view.View.setFrame(View.java:16774) [ERROR] : TiApplication: at android.view.View.layout(View.java:16656) [ERROR] : TiApplication: at android.view.ViewGroup.layout(ViewGroup.java:5439) [ERROR] : TiApplication: at android.widget.ListView.setupChild(ListView.java:1971) [ERROR] : TiApplication: at android.widget.ListView.makeAndAddView(ListView.java:1881) [ERROR] : TiApplication: at android.widget.ListView.fillSpecific(ListView.java:1357) [ERROR] : TiApplication: at android.widget.ListView.layoutChildren(ListView.java:1665) [ERROR] : TiApplication: at {code} happens only on LG android 6.0.1 on G4 tks bye

    Appcelerator JIRA | 6 months ago | alexandre orilia
    java.lang.IndexOutOfBoundsException: Invalid index 4, size is 1
  3. 0

    Strange IndexOutOfBound Exception with listview

    GitHub | 3 years ago | dinash
    java.lang.IndexOutOfBoundsException: Invalid index 4, size is 1
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    High: Stickerbook crash

    GitHub | 2 years ago | itscam
    java.lang.IndexOutOfBoundsException: Invalid index 0, size is 0

  1. bmacedo 4 times, last 5 days ago
  2. mhicauber 1 times, last 5 days ago
  3. filpgame 2 times, last 1 week ago
  4. tvrmsmith 1 times, last 1 week ago
  5. Indri Yunita 12 times, last 1 week ago
67 more registered users
28 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.IndexOutOfBoundsException

    Invalid index 4, size is 1

    at java.util.ArrayList.throwIndexOutOfBoundsException()
  2. Java RT
    ArrayList.get
    1. java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:255)
    2. java.util.ArrayList.get(ArrayList.java:308)
    2 frames
  3. Android Platform
    View.onInitializeAccessibilityNodeInfo
    1. android.widget.HeaderViewListAdapter.isEnabled(HeaderViewListAdapter.java:164)
    2. android.widget.AbsListView.onInitializeAccessibilityNodeInfoForItem(AbsListView.java:2525)
    3. android.widget.ListView.onInitializeAccessibilityNodeInfoForItem(ListView.java:3949)
    4. android.widget.AbsListView$ListItemAccessibilityDelegate.onInitializeAccessibilityNodeInfo(AbsListView.java:2452)
    5. android.view.View.onInitializeAccessibilityNodeInfo(View.java:6079)
    5 frames