{ "id": "63444", "key": "TIMOB-2812", "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": [], "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2012-08-28T11:41:37.000+0000", "created": "2011-04-15T03:30:10.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "defect", "reported-1.5.1" ], "versions": [], "issuelinks": [ { "id": "20318", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "94532", "key": "TIMOB-9901", "fields": { "summary": "TiAPI: Review and clean up platform bugs and reduce bug count by 20%.", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } } } ], "assignee": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-10T18:18:27.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": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "{html}

Getting this exception regularly after adding a ScrollableViews\n(which works, before the exception) to TableView rows:

\n
\n    var view1 = Titanium.UI.createView();\n    view1.add(thisLabelTitle);\n    var view2 = Titanium.UI.createView({backgroundColor:'#456'});\n    view2.add(thisLabelDesc);\n    var scrollView = Titanium.UI.createScrollableView({\n        views:[view1,view2]\n    });         \n\n    thisRow.add(scrollView);            \n    tableData.push(thisRow);\n
\n

java.lang.IllegalStateException: The specified child already has\na parent. You must call removeView() on the child's parent\nfirst.
\nat android.view.ViewGroup.addViewInner(ViewGroup.java:1970)
\nat android.view.ViewGroup.addView(ViewGroup.java:1865)
\nat android.view.ViewGroup.addView(ViewGroup.java:1822)
\nat android.view.ViewGroup.addView(ViewGroup.java:1802)
\nat\nti.modules.titanium.ui.widget.TiScrollableView$ViewWrapper.doAttachView(TiScrollableView.java:72)
\nat\nti.modules.titanium.ui.widget.TiScrollableView.setViews(TiScrollableView.java:371)
\nat\nti.modules.titanium.ui.widget.TiUIScrollableView.processProperties(TiUIScrollableView.java:41)
\nat\nti.modules.titanium.ui.widget.tableview.TiTableViewRowProxyItem.refreshControls(TiTableViewRowProxyItem.java:134)
\nat\nti.modules.titanium.ui.widget.tableview.TiTableViewRowProxyItem.setRowData(TiTableViewRowProxyItem.java:243)
\nat\nti.modules.titanium.ui.widget.tableview.TiTableViewRowProxyItem.setRowData(TiTableViewRowProxyItem.java:76)
\nat\nti.modules.titanium.ui.widget.tableview.TiTableView$TTVListAdapter.getView(TiTableView.java:202)
\nat android.widget.AbsListView.obtainView(AbsListView.java:1294)
\nat android.widget.ListView.makeAndAddView(ListView.java:1727)
\nat android.widget.ListView.fillDown(ListView.java:652)
\nat android.widget.ListView.fillGap(ListView.java:623)
\nat\nandroid.widget.AbsListView.trackMotionScroll(AbsListView.java:2944)
\nat\nandroid.widget.AbsListView$FlingRunnable.run(AbsListView.java:2485)
\nat android.os.Handler.handleCallback(Handler.java:587)
\nat android.os.Handler.dispatchMessage(Handler.java:92)
\nat android.os.Looper.loop(Looper.java:123)
\nat android.app.ActivityThread.main(ActivityThread.java:4627)
\nat java.lang.reflect.Method.invokeNative(Native Method)
\nat java.lang.reflect.Method.invoke(Method.java:521)
\nat\ncom.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
\nat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
\nat dalvik.system.NativeStart.main(Native Method)

{html}", "attachment": [], "flagged": false, "summary": "ScrollabeView inside TableView crashes regularly after scrolling", "creator": { "name": "nariman", "key": "nariman", "displayName": "Nariman", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "nariman", "key": "nariman", "displayName": "Nariman", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "129474", "author": { "name": "hal", "key": "hal", "displayName": "hal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

It is quite clear that you haven't read the Contribute\nguide before raising this ticket. It is crucial that you follow the\nprocedure that it explains, or else you simply increase the\nwork-load of the core devs and reduce their time spent resolving\nissues.

\n

Please edit this ticket to include the minimum-required\ninformation, otherwise you risk it being marked invalid.

{html}", "updateAuthor": { "name": "hal", "key": "hal", "displayName": "hal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:30:10.000+0000", "updated": "2011-04-15T03:30:10.000+0000" }, { "id": "129475", "author": { "name": "nariman", "key": "nariman", "displayName": "Nariman", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

https://gist.github.com/777402

\n

Android 2.2
\nTitanium SDK 1.5.1
\nTitanium Developer 1.2.2

{html}", "updateAuthor": { "name": "nariman", "key": "nariman", "displayName": "Nariman", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:30:11.000+0000", "updated": "2011-04-15T03:30:11.000+0000" }, { "id": "129476", "author": { "name": "hal", "key": "hal", "displayName": "hal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Nariman - although I haven't tested your code, your new usecase\nsets a good example for others. Thanks for updating!

\n

Adding reported tag, as per guidelines.

{html}", "updateAuthor": { "name": "hal", "key": "hal", "displayName": "hal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:30:12.000+0000", "updated": "2011-04-15T03:30:12.000+0000" }, { "id": "216498", "author": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "body": "Tested on a Samsung Galaxy S2 using TiSDK 2.2.0v20120824175712, unable to reproduce the issue. \r\n\r\nTicket marked as resolved. ", "updateAuthor": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "created": "2012-08-28T11:41:37.000+0000", "updated": "2012-08-28T11:41:37.000+0000" }, { "id": "411220", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as the issue cannot be reproduced.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-10T18:18:27.000+0000", "updated": "2017-03-10T18:18:27.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }