{ "id": "153620", "key": "TIMOB-20138", "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": "16997", "name": "Release 5.2.0", "archived": false, "released": true, "releaseDate": "2016-02-23" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-01-06T21:23:09.000+0000", "created": "2015-12-04T12:18:10.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "5.1.", "ios", "regression", "scrollableView" ], "versions": [ { "id": "14826", "description": "Release 5.1.0-remaining iOS9 features, Android M features", "name": "Release 5.1.0", "archived": false, "released": true, "releaseDate": "2015-11-20" }, { "id": "17532", "name": "Release 5.1.1", "archived": false, "released": true, "releaseDate": "2015-11-24" } ], "issuelinks": [ { "id": "50247", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "154201", "key": "TIMOB-20218", "fields": { "summary": "ScrollableView crash in 5.1.1 when setting the views property after it's been set", "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": "None", "id": "6" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "50233", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "154105", "key": "TIMOB-20196", "fields": { "summary": "iOS: on ScrollableView is not possible to change views", "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": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-02-18T21:09:51.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "Following a typical cycle of having a default view inside a scrollable view and then updating it calling setViews() fails and causes the app to become unresponsive. Tested on iOS > 8.4\r\n\r\nSame effect if you try with a very short delay between the two calls.\r\nCode below works fine in 5.0.2.GA but not in 5.1.0/5.1.1\r\n\r\n{code}\r\n(function() {\r\n\tvar window = Ti.UI.createWindow();\r\n\t\r\n\tvar mainView = Ti.UI.createView({\r\n\t\tbackgroundColor:'#fff',\r\n\t\twidth:Ti.UI.FILL,\r\n\t\theight:Ti.UI.FILL\r\n\t});\r\n\t\t\r\n\tvar scrollableView = Ti.UI.createScrollableView({\r\n\t\tborderColor:'green',\r\n\t\tviews:undefined,\r\n\t\twidth:Ti.UI.FILL,\r\n\t\theight:'60%'\r\n\t});\r\n\t\r\n\tvar viewA = Ti.UI.createView({\r\n\t\tbackgroundColor:'black'\r\n\t});\r\n\tvar colors = ['red', 'green', 'blue'];\t\r\n\tvar viewsB = [];\r\n\tfor(var i = 0;i<3;i++){\r\n\t\tviewsB.push(Ti.UI.createView({\r\n\t\t\tbackgroundColor:colors[i]\r\n\t\t}));\r\n\t}\t\r\n\tscrollableView.setViews([viewA]);\r\n\tmainView.add(scrollableView);\r\n\twindow.add(mainView);\r\n\twindow.open();\r\n\tscrollableView.setViews(viewsB);\t\r\n})();\r\n{code}", "attachment": [ { "id": "57772", "filename": "Ti502-Passes.png", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2015-12-14T11:29:26.000+0000", "size": 16129, "mimeType": "image/png" }, { "id": "57773", "filename": "Ti511-Fails.png", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2015-12-14T11:28:43.000+0000", "size": 16002, "mimeType": "image/png" } ], "flagged": false, "summary": "Consecutive calls to ScrollableView.setViews causes the app to become unresponsive", "creator": { "name": "nipoul", "key": "nipoul", "displayName": "Nikos Poulios", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "nipoul", "key": "nipoul", "displayName": "Nikos Poulios", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Mobile SDK v. 5.1.0.GA/5.1..GA\r\niOS 9", "closedSprints": [ { "id": 555, "state": "closed", "name": "2016 Sprint 1 SDK", "startDate": "2016-01-02T01:31:50.127Z", "endDate": "2016-01-16T01:31:00.000Z", "completeDate": "2016-01-18T00:52:43.848Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "372812", "author": { "name": "gertjans", "key": "gertjans", "displayName": "Gertjan Smits", "active": true, "timeZone": "Europe/Berlin" }, "body": "I'm also having this issue, is this on the radar?", "updateAuthor": { "name": "gertjans", "key": "gertjans", "displayName": "Gertjan Smits", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-12-14T09:32:16.000+0000", "updated": "2015-12-14T09:32:16.000+0000" }, { "id": "372819", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "Attached result on Ti 5.1.1 GA with iOS 9.2 Simulator and Ti 5.0.2.GA with same simulator. It's clear indeed that on 5.1.1 it does not work as expected.", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2015-12-14T11:29:38.000+0000", "updated": "2015-12-14T11:29:38.000+0000" }, { "id": "373116", "author": { "name": "nunocostapt", "key": "nunocostapt", "displayName": "Nuno Costa", "active": true, "timeZone": "Europe/Lisbon" }, "body": "Some issue here, we have app that is havy dependent of this component, is give in us lot of issues lately (infinitive swipe). sdk 5.1.x, ios 9.1", "updateAuthor": { "name": "nunocostapt", "key": "nunocostapt", "displayName": "Nuno Costa", "active": true, "timeZone": "Europe/Lisbon" }, "created": "2015-12-16T17:13:45.000+0000", "updated": "2015-12-16T17:13:45.000+0000" }, { "id": "373585", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified a regression from 5.0.2 GA to 5.1.0 GA using iOS 9.2 simulator.\r\n", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-12-29T00:48:20.000+0000", "updated": "2015-12-29T00:48:20.000+0000" }, { "id": "373586", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Verified problem still exist in 5.1.2.RC. [~penrique] can you take a look? Initially I thought it's to do with https://github.com/appcelerator/titanium_mobile/pull/7553 but it seems not to be the case.", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-12-29T03:27:42.000+0000", "updated": "2015-12-29T03:28:20.000+0000" }, { "id": "373915", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "It seems to me that this is some type of race condition. I'm investigating.", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-01-06T17:59:13.000+0000", "updated": "2016-01-06T17:59:13.000+0000" }, { "id": "373916", "author": { "name": "nunocostapt", "key": "nunocostapt", "displayName": "Nuno Costa", "active": true, "timeZone": "Europe/Lisbon" }, "body": "@Pedro Enrique thanks, we are waiting for this fix to release a out app :) ", "updateAuthor": { "name": "nunocostapt", "key": "nunocostapt", "displayName": "Nuno Costa", "active": true, "timeZone": "Europe/Lisbon" }, "created": "2016-01-06T18:02:32.000+0000", "updated": "2016-01-06T18:02:32.000+0000" }, { "id": "373928", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Fixed in this PR https://github.com/appcelerator/titanium_mobile/pull/7617\r\nIt will be merged one time today.", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-01-06T18:58:39.000+0000", "updated": "2016-01-06T18:58:39.000+0000" }, { "id": "373930", "author": { "name": "nunocostapt", "key": "nunocostapt", "displayName": "Nuno Costa", "active": true, "timeZone": "Europe/Lisbon" }, "body": "Pedro Enrique, count with me to test!", "updateAuthor": { "name": "nunocostapt", "key": "nunocostapt", "displayName": "Nuno Costa", "active": true, "timeZone": "Europe/Lisbon" }, "created": "2016-01-06T19:02:47.000+0000", "updated": "2016-01-06T19:02:47.000+0000" }, { "id": "373951", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "We just merged the pull request. The fix will be available soon in the CI builds. Check here later today http://build.appcelerator.net/", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-01-06T21:22:56.000+0000", "updated": "2016-01-06T21:22:56.000+0000" }, { "id": "374613", "author": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Verified fixed, using:\r\n\r\nMacOS 10.11.2 (15C50)\r\nStudio 4.4.0.201511241829\r\nTi SDK 5.2.0.v20160114021251\r\nAppc NPM 4.2.2\r\nAppc CLI 5.2.0-224\r\nXcode 7.2 (7C68)\r\nNode v0.12.7\r\nJava 1.7.0_80\r\n\r\nApp no longer becomes unresponsive after quickly calling setViews() or after multiple calls to setViews(). Tested with provided sample code and tests from related tickets.", "updateAuthor": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-01-14T22:01:53.000+0000", "updated": "2016-01-14T22:01:53.000+0000" }, { "id": "376693", "author": { "name": "rdperottoni", "key": "rdperottoni", "displayName": "Rodolfo Perottoni", "active": true, "timeZone": "Australia/Brisbane" }, "body": "Tested with *5.2.0.v20160114021251 *and *5.2.0.v20160111111831* - both still make my app freeze whenever changing the *views* property. I've tried cleaning my project and making a fresh installation of the app: no deal.\r\nI'm using 4-5 views inside my scrollableview, i don't know if that means anything, but anyways...", "updateAuthor": { "name": "rdperottoni", "key": "rdperottoni", "displayName": "Rodolfo Perottoni", "active": true, "timeZone": "Australia/Brisbane" }, "created": "2016-02-12T02:04:53.000+0000", "updated": "2016-02-12T02:04:53.000+0000" }, { "id": "376704", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[~rdperottoni] Did you try to reproduce using the sample code? Otherwise can you give us your sample code that cause the freeze?", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-02-12T03:18:32.000+0000", "updated": "2016-02-12T03:18:32.000+0000" }, { "id": "377263", "author": { "name": "nunocostapt", "key": "nunocostapt", "displayName": "Nuno Costa", "active": true, "timeZone": "Europe/Lisbon" }, "body": "@Rodolfo Perottoni yeah!\r\nCan you see my note and see if fix for you? https://github.com/appcelerator/titanium_mobile/pull/7627/files\r\nFixes for me, may help someone!", "updateAuthor": { "name": "nunocostapt", "key": "nunocostapt", "displayName": "Nuno Costa", "active": true, "timeZone": "Europe/Lisbon" }, "created": "2016-02-18T17:58:05.000+0000", "updated": "2016-02-18T17:58:05.000+0000" }, { "id": "377291", "author": { "name": "nunocostapt", "key": "nunocostapt", "displayName": "Nuno Costa", "active": true, "timeZone": "Europe/Lisbon" }, "updateAuthor": { "name": "nunocostapt", "key": "nunocostapt", "displayName": "Nuno Costa", "active": true, "timeZone": "Europe/Lisbon" }, "created": "2016-02-18T21:09:51.000+0000", "updated": "2016-02-18T21:09:51.000+0000" } ], "maxResults": 16, "total": 16, "startAt": 0 } } }