[AC-3881] crash problem on android on a listview
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Needs more info |
Resolution Date | 2016-06-29T14:54:30.000+0000 |
Affected Version/s | Appcelerator Studio 4.5.0 |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | android |
Reporter | alexandre orilia |
Assignee | Shak Hossain |
Created | 2016-06-20T07:56:49.000+0000 |
Updated | 2016-06-29T14:54:30.000+0000 |
Description
Hello,
When I open a window with a listview inside. crash the application ( Android only ).
[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
happens only on LG android 6.0.1 on G4
tks
bye
The issue seems to be with this line [ERROR] : TiApplication: java.lang.IndexOutOfBoundsException: Invalid index 4, size is 1. Please share the test code that causing the problem. Thanks.
list_module.js
List_module.xml
List_module.tss
function openWindow
Tks
Hello, The code you sent has missing components. It's not suffuicient to regenerate. Please attach a full regeneratable test code. Perhaps a sample project that successfully generate the issue.