{ "id": "159255", "key": "TIMOB-23134", "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": "17706", "name": "Release 5.4.0", "archived": false, "released": true, "releaseDate": "2016-08-11" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-04-05T03:31:11.000+0000", "created": "2016-04-01T14:49:43.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "android", "scrollableView" ], "versions": [], "issuelinks": [ { "id": "51217", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "151766", "key": "TIMOB-20116", "fields": { "summary": "Android - ScrollableView removeView(): java.lang.IndexOutOfBoundsException: Invalid index X, size is X", "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": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "updated": "2016-05-27T18:35:03.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": "I cant clear views through setViews([])\r\n\r\nError:\r\n\r\n\r\n{code}\r\n[ERROR] : TiApplication: (main) [7060,7060] Sending event: exception on thread: main msg:java.lang.IllegalStateException: The application's PagerAdapter changed the adapter's contents without calling PagerAdapter#notifyDataSetChanged! Expected adapter item count: 3, found: 0 Pager id: ffffffff Pager class: class ti.modules.titanium.ui.widget.TiUIScrollableView$1 Problematic adapter: class ti.modules.titanium.ui.widget.TiUIScrollableView$ViewPagerAdapter; Titanium 5.2.1,2016/03/18 22:51,23e1c7d\r\n\r\n[ERROR] : TiApplication: java.lang.IllegalStateException: The application's PagerAdapter changed the adapter's contents without calling PagerAdapter#notifyDataSetChanged! Expected adapter item count: 3, found: 0 Pager id: ffffffff Pager class: class ti.modules.titanium.ui.widget.TiUIScrollableView$1 Problematic adapter: class ti.modules.titanium.ui.widget.TiUIScrollableView$ViewPagerAdapter\r\n\r\n[ERROR] : TiApplication: at android.support.v4.view.ViewPager.populate(ViewPager.java:1000)\r\n\r\n[ERROR] : TiApplication: at android.support.v4.view.ViewPager.populate(ViewPager.java:952)\r\n\r\n[ERROR] : TiApplication: at android.support.v4.view.ViewPager.onMeasure(ViewPager.java:1474)\r\n\r\n[ERROR] : TiApplication: at android.view.View.measure(View.java:15518)\r\n\r\n[ERROR] : TiApplication: at org.appcelerator.titanium.view.TiCompositeLayout.constrainChild(TiCompositeLayout.java:398)\r\n\r\n[ERROR] : TiApplication: at org.appcelerator.titanium.view.TiCompositeLayout.onMeasure(TiCompositeLayout.java:278)\r\n\r\n[ERROR] : TiApplication: at android.view.View.measure(View.java:15518)\r\n\r\n[ERROR] : TiApplication: at org.appcelerator.titanium.view.TiCompositeLayout.constrainChild(TiCompositeLayout.java:398)\r\n\r\n[ERROR] : TiApplication: at org.appcelerator.titanium.view.TiCompositeLayout.onMeasure(TiCompositeLayout.java:278)\r\n\r\n[ERROR] : TiApplication: at android.view.View.measure(View.java:15518)\r\n\r\n[ERROR] : TiApplication: at org.appcelerator.titanium.view.TiCompositeLayout.constrainChild(TiCompositeLayout.java:398)\r\n\r\n[ERROR] : TiApplication: at org.appcelerator.titanium.view.TiCompositeLayout.onMeasure(TiCompositeLayout.java:278)\r\n\r\n[ERROR] : TiApplication: at android.view.View.measure(View.java:15518)\r\n\r\n[ERROR] : TiApplication: at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:4825)\r\n\r\n[ERROR] : TiApplication: at android.widget.FrameLayout.onMeasure(FrameLayout.java:310)\r\n\r\n[ERROR] : TiApplication: at android.support.v7.internal.widget.ContentFrameLayout.onMeasure(ContentFrameLayout.java:124)\r\n\r\n[ERROR] : TiApplication: at android.view.View.measure(View.java:15518)\r\n\r\n[ERROR] : TiApplication: at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:4825)\r\n\r\n[ERROR] : TiApplication: at android.support.v7.internal.widget.ActionBarOverlayLayout.onMeasure(ActionBarOverlayLayout.java:393)\r\n\r\n[ERROR] : TiApplication: at android.view.View.measure(View.java:15518)\r\n\r\n[ERROR] : TiApplication: at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:4825)\r\n\r\n[ERROR] : TiApplication: at android.widget.FrameLayout.onMeasure(FrameLayout.java:310)\r\n\r\n[ERROR] : TiApplication: at android.view.View.measure(View.java:15518)\r\n\r\n[ERROR] : TiApplication: at android.widget.LinearLayout.measureVertical(LinearLayout.java:847)\r\n\r\n[ERROR] : TiApplication: at android.widget.LinearLayout.onMeasure(LinearLayout.java:588)\r\n\r\n[ERROR] : TiApplication: at android.view.View.measure(View.java:15518)\r\n\r\n[ERROR] : TiApplication: at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:4825)\r\n\r\n[ERROR] : TiApplication: at android.widget.FrameLayout.onMeasure(FrameLayout.java:310)\r\n\r\n[ERROR] : TiApplication: at com.android.internal.policy.impl.PhoneWindow$DecorView.onMeasure(PhoneWindow.java:2176)\r\n\r\n[ERROR] : TiApplication: at android.view.View.measure(View.java:15518)\r\n\r\n[ERROR] : TiApplication: at android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:1874)\r\n\r\n[ERROR] : TiApplication: at android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1089)\r\n\r\n[ERROR] : TiApplication: at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1265)\r\n\r\n[ERROR] : TiApplication: at android.view.ViewRootImpl.doTraversal(ViewR\r\n\r\n[ERROR] : TiApplication: at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:4351)\r\n\r\n[ERROR] : TiApplication: at android.view.Choreographer$CallbackRecord.run(Choreographer.java:749)\r\n\r\n[ERROR] : TiApplication: at android.view.Choreographer.doCallbacks(Choreographer.java:562)\r\n\r\n[ERROR] : TiApplication: at android.view.Choreographer.doFrame(Choreographer.java:532)\r\n\r\n[ERROR] : TiApplication: at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:735)\r\n\r\n[ERROR] : TiApplication: at android.os.Handler.handleCallback(Handler.java:725)\r\n\r\n[ERROR] : TiApplication: at android.os.Handler.dispatchMessage(Handler.java:92)\r\n\r\n[ERROR] : TiApplication: at android.os.Looper.loop(Looper.java:137)\r\n\r\n[ERROR] : TiApplication: at android.app.ActivityThread.main(ActivityThread.java:5041)\r\n\r\n[ERROR] : TiApplication: at java.lang.reflect.Method.invokeNative(Native Method)\r\n\r\n[ERROR] : TiApplication: at java.lang.reflect.Method.invoke(Method.java:511)\r\n\r\n[ERROR] : TiApplication: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)\r\n\r\n[ERROR] : TiApplication: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)\r\n{code}\r\n\r\n\r\n\r\nTest code: \r\n\r\nindex.xml\r\n{code:xml}\r\n\r\n\t\r\n\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\r\n\t\t\r\n\t\t\t\t\r\n\t\t\r\n\t\r\n\r\n{code}\r\n\r\nindex.js\r\n{code:javascript}\r\nfunction doClear(e) {\r\n $.scrollableView.setViews([]);\r\n}\r\n\r\n$.index.open();\r\n{code}\r\n\r\n", "attachment": [], "flagged": false, "summary": "Android: ScrollableView crashed when setViews([])", "creator": { "name": "falko", "key": "falko", "displayName": "Andrey Tkachenko", "active": true, "timeZone": "Europe/Moscow" }, "subtasks": [], "reporter": { "name": "falko", "key": "falko", "displayName": "Andrey Tkachenko", "active": true, "timeZone": "Europe/Moscow" }, "environment": "Ti SDK 5.2.1.GA", "closedSprints": [ { "id": 614, "state": "closed", "name": "2016 Sprint 07 SDK", "startDate": "2016-03-26T00:38:56.432Z", "endDate": "2016-04-09T00:38:00.000Z", "completeDate": "2016-04-11T04:41:08.231Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "381310", "author": { "name": "falko", "key": "falko", "displayName": "Andrey Tkachenko", "active": true, "timeZone": "Europe/Moscow" }, "body": "Friday PR: https://github.com/appcelerator/titanium_mobile/pull/7904", "updateAuthor": { "name": "falko", "key": "falko", "displayName": "Andrey Tkachenko", "active": true, "timeZone": "Europe/Moscow" }, "created": "2016-04-01T18:16:42.000+0000", "updated": "2016-04-01T18:16:42.000+0000" }, { "id": "381671", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "Tested code with test case above. Working as expected.", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2016-04-05T03:26:15.000+0000", "updated": "2016-04-05T03:26:15.000+0000" }, { "id": "381673", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "PR https://github.com/appcelerator/titanium_mobile/pull/7904 Merged with test cases in TIMOB-23134 and TIMOB-20116", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2016-04-05T03:30:59.000+0000", "updated": "2016-04-05T03:30:59.000+0000" }, { "id": "387045", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix.\r\n\r\nScrollview does not crash when setView([]).\r\nClosing.\r\n\r\nEnvironment:\r\nAppc Studio : 4.6.0.201605180604\r\nTi SDK : 5.4.0.v20160526011354\r\nTi CLI : 5.0.8\r\nAlloy : 1.8.7\r\nMAC El Capitan : 10.11.4\r\nAppc NPM : 4.2.5-5\r\nAppc CLI : 5.3.0-47\r\nNode: 4.2.2\r\nNexus 6 - Android 6.0.0", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-05-27T18:34:51.000+0000", "updated": "2016-05-27T18:34:51.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }