{ "id": "170998", "key": "TIMOB-25737", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "20238", "description": "", "name": "Release 7.5.0", "archived": false, "released": true, "releaseDate": "2018-11-15" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2019-05-22T19:24:35.000+0000", "created": "2018-01-29T17:39:38.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "android", "engTriage" ], "versions": [ { "id": "19988", "description": "", "name": "Release 7.0.1", "archived": false, "released": true, "releaseDate": "2017-12-21" } ], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2019-05-22T19:24:35.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [], "description": "SDK : 7.0.1\r\n\r\nHi, i have listview with Textfield hidden in a View. When Click in one row the onItemclick event it's fired, in this method i change the visible and height attribute of the view and call updateItemAt. Write in TextField and click the second row, app is killed.\r\n\r\nThis code works perdect on iOS device\r\n\r\n\r\n\r\n\r\nException:\r\n[WARN] : View: requestLayout() improperly called by ti.modules.titanium.ui.widget.listview.TiNestedListView$ApiLevel21$NestedListView{b0dc302 VFED.VC.. ......ID 0,0-1440,2112} during layout: running second layout pass\r\n[ERROR] : TiApplication: (main) [8966,8966] Sending event: exception on thread: main msg:java.lang.IndexOutOfBoundsException: setSpan (2 ... 2) ends beyond length 0; Titanium 7.0.1,2017/12/18 10:42,undefined\r\n[ERROR] : TiApplication: java.lang.IndexOutOfBoundsException: setSpan (2 ... 2) ends beyond length 0\r\n[ERROR] : TiApplication: \tat android.text.SpannableStringBuilder.checkRange(SpannableStringBuilder.java:1265)\r\n[ERROR] : TiApplication: \tat android.text.SpannableStringBuilder.setSpan(SpannableStringBuilder.java:684)\r\n[ERROR] : TiApplication: \tat android.text.SpannableStringBuilder.setSpan(SpannableStringBuilder.java:677)\r\n[ERROR] : TiApplication: \tat android.text.Selection.setSelection(Selection.java:76)\r\n[ERROR] : TiApplication: \tat android.text.Selection.setSelection(Selection.java:87)\r\n[ERROR] : TiApplication: \tat android.widget.EditText.setSelection(EditText.java:103)\r\n[ERROR] : TiApplication: \tat ti.modules.titanium.ui.widget.listview.TiListView$ListViewWrapper.onLayout(TiListView.java:175)\r\n[ERROR] : TiApplication: \tat android.view.View.layout(View.java:17637)\r\n[ERROR] : TiApplication: \tat android.view.ViewGroup.layout(ViewGroup.java:5575)\r\n[ERROR] : TiApplication: \tat org.appcelerator.titanium.view.TiCompositeLayout.onLayout(TiCompositeLayout.java:862)\r\n[ERROR] : TiApplication: \tat android.view.View.layout(View.java:17637)\r\n[ERROR] : TiApplication: \tat android.view.ViewGroup.layout(ViewGroup.java:5575)\r\n[ERROR] : TiApplication: \tat org.appcelerator.titanium.view.TiCompositeLayout.onLayout(TiCompositeLayout.java:862)\r\n[ERROR] : TiApplication: \tat android.view.View.layout(View.java:17637)\r\n[ERROR] : TiApplication: \tat android.view.ViewGroup.layout(ViewGroup.java:5575)\r\n[ERROR] : TiApplication: \tat android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)\r\n[ERROR] : TiApplication: \tat android.widget.FrameLayout.onLayout(FrameLayout.java:261)\r\n[ERROR] : TiApplication: \tat android.view.View.layout(View.java:17637)\r\n[ERROR] : TiApplication: \tat android.view.ViewGroup.layout(ViewGroup.java:5575)\r\n[ERROR] : TiApplication: \tat android.support.v7.widget.ActionBarOverlayLayout.onLayout(ActionBarOverlayLayout.java:443)\r\n[ERROR] : TiApplication: \tat android.view.View.layout(View.java:17637)\r\n[ERROR] : TiApplication: \tat android.view.ViewGroup.layout(ViewGroup.java:5575)\r\n[ERROR] : TiApplication: \tat android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)\r\n[ERROR] : TiApplication: \tat android.widget.FrameLayout.onLayout(FrameLayout.java:261)\r\n[ERROR] : TiApplication: \tat android.view.View.layout(View.java:17637)\r\n[ERROR] : TiApplication: \tat android.view.ViewGroup.layout(ViewGroup.java:5575)\r\n[ERROR] : TiApplication: \tat android.widget.LinearLayout.setChildFrame(LinearLayout.java:1741)\r\n[ERROR] : TiApplication: \tat android.widget.LinearLayout.layoutVertical(LinearLayout.java:1585)\r\n[ERROR] : TiApplication: \tat android.widget.LinearLayout.onLayout(LinearLayout.java:1494)\r\n[ERROR] : TiApplication: \tat android.view.View.layout(View.java:17637)\r\n[ERROR] : TiApplication: \tat android.view.ViewGroup.layout(ViewGroup.java:5575)\r\n[ERROR] : TiApplication: \tat android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)\r\n[ERROR] : TiApplication: \tat android.widget.FrameLayout.onLayout(FrameLayout.java:261)\r\n[ERROR] : TiApplication: \tat com.android.internal.policy.DecorView.onLayout(DecorView.java:726)\r\n[ERROR] : TiApplication: \tat android.view.View.layout(View.java:17637)\r\n[ERROR] : TiApplication: \tat android.view.ViewGroup.layout(ViewGroup.java:5575)\r\n[ERROR] : TiApplication: \tat android.view.ViewRootImpl.performLayout(ViewRootImpl.java:2346)\r\n[ERROR] : TiApplication: \tat android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2068)\r\n[ERROR] : TiApplication: \tat android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1254)\r\n[ERROR] : TiApplication: \tat android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6337)\r\n[ERROR] : TiApplication: \tat android.view.Choreographer$CallbackRecord.run(Choreographer.java:874)\r\n[ERROR] : TiApplication: \tat android.view.Choreographer.doCallbacks(Choreographer.java:686)\r\n[ERROR] : TiApplication: \tat android.view.Choreographer.doFrame(Choreographer.java:621)\r\n[ERROR] : TiApplication: \tat android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:860)\r\n[ERROR] : TiApplication: \tat android.os.Handler.handleCallback(Handler.java:751)\r\n[ERROR] : TiApplication: \tat android.os.Handler.dispatchMessage(Handler.java:95)\r\n[ERROR] : TiApplication: \tat android.os.Looper.loop(Looper.java:154)\r\n[ERROR] : TiApplication: \tat android.app.ActivityThread.main(ActivityThread.java:6119)\r\n[ERROR] : TiApplication: \tat java.lang.reflect.Method.invoke(Native Method)\r\n[ERROR] : TiApplication: \tat com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)\r\n[ERROR] : TiApplication: \tat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)\r\n", "attachment": [ { "id": "64776", "filename": "20180129_180715.gif", "author": { "name": "michele.cavalcanti", "key": "michele.cavalcanti", "displayName": "Michele Cavalcanti", "active": true, "timeZone": "Europe/Rome" }, "created": "2018-01-29T17:24:56.000+0000", "size": 516867, "mimeType": "image/gif" }, { "id": "64775", "filename": "bugAndroid.zip", "author": { "name": "michele.cavalcanti", "key": "michele.cavalcanti", "displayName": "Michele Cavalcanti", "active": true, "timeZone": "Europe/Rome" }, "created": "2018-01-29T17:31:17.000+0000", "size": 1995588, "mimeType": "application/zip" } ], "flagged": false, "summary": "Android - change attribute in ListDataItem - crash app", "creator": { "name": "michele.cavalcanti", "key": "michele.cavalcanti", "displayName": "Michele Cavalcanti", "active": true, "timeZone": "Europe/Rome" }, "subtasks": [], "reporter": { "name": "michele.cavalcanti", "key": "michele.cavalcanti", "displayName": "Michele Cavalcanti", "active": true, "timeZone": "Europe/Rome" }, "environment": "Operating System\r\n Name = Mac OS X\r\n Version = 10.13.2\r\n Architecture = 64bit\r\n # CPUs = 8\r\n Memory = 16.0GB\r\n\r\nNode.js\r\n Node.js Version = 8.9.1\r\n npm Version = 5.5.1\r\n\r\nAppcelerator CLI\r\n Installer = 4.2.11\r\n Core Package = 7.0.1\r\n\r\nTitanium CLI\r\n CLI Version = 5.0.14\r\n node-appc Version = 0.2.41", "comment": { "comments": [ { "id": "434056", "author": { "name": "Emiliano", "key": "emiliano", "displayName": "Emiliano", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I've the same issue...", "updateAuthor": { "name": "Emiliano", "key": "emiliano", "displayName": "Emiliano", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-02-05T18:05:17.000+0000", "updated": "2018-02-05T18:05:17.000+0000" }, { "id": "448598", "author": { "name": "ahutton", "key": "ahutton", "displayName": "Alan Hutton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Unable to reproduce with 7.5.0.GA > 8.0.1.GA", "updateAuthor": { "name": "ahutton", "key": "ahutton", "displayName": "Alan Hutton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-05-22T19:24:35.000+0000", "updated": "2019-05-22T19:24:35.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }