{ "id": "150786", "key": "AC-418", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "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": "2015-11-10T05:53:08.000+0000", "created": "2015-08-28T00:55:34.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "updated": "2015-11-25T17:21:56.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [], "description": "TiUIView Leaking when being animated on click inside scrollable view. \r\nThis does not occur with the 3.4.1 SDK. \r\n\r\nthe animation is the cause of the leak on SDK 3.5.1 above.\r\nwithout animation there is no leak\r\n\r\n\r\nsample code : App.js\r\n{code:java}\r\nvar isSet= false;\r\nfunction doClick() {\r\n if (!isSet) {\r\n bt.hide();\r\n scView.addView(myView);\r\n isSet = true;\r\n }\r\n }\r\nfunction imageClick() {\r\n var matrix = Ti.UI.create2DMatrix();\r\n matrix = matrix.scale(.9, .9);\r\n animView.animate({\r\n transform: matrix,\r\n duration: 100,\r\n autoreverse: true,\r\n repeat: 1\r\n }, function() {\r\n bt.show();\r\n _.each(scView.views, function(view) {\r\n scView.removeView(view);\r\n });\r\n isSet = false;\r\n });\r\n }\r\n\r\nvar index = Ti.UI.createWindow({\r\n backgroundColor: \"white\",\r\n id: \"index\"\r\n });\r\n \r\nvar scView = Ti.UI.createScrollableView({\r\n bottom: 150,\r\n backgroundColor: \"green\",\r\n id: \"scView\"\r\n });\r\n index.add(scView);\r\n\r\nvar bt = Ti.UI.createButton({\r\n title: \"click here\",\r\n bottom: 100,\r\n width: 200,\r\n height: 50,\r\n color: \"red\",\r\n borderWidth: 2,\r\n id: \"bt\"\r\n });\r\nindex.add(bt);\r\n\r\nbt.addEventListener(\"click\", doClick);\r\n\r\nvar myView = Ti.UI.createView({\r\n backgroundColor: \"pink\",\r\n id: \"myView\"\r\n });\r\nvar animView = Ti.UI.createView({\r\n id: \"animView\"\r\n });\r\n\r\nmyView.add(animView);\r\nanimView.add( Ti.UI.createImageView({\r\n image: \"http://www.grandlifestyle.com/images/clickherered.gif\",\r\n }));\r\nanimView.addEventListener(\"click\", imageClick);\r\nindex.open();\r\nfunction doClick() {\r\n if (!isSet) {\r\n bt.hide();\r\n scView.addView(myView);\r\n isSet = true;\r\n }\r\n }\r\nfunction imageClick() {\r\n var matrix = Ti.UI.create2DMatrix();\r\n matrix = matrix.scale(.9, .9);\r\n animView.animate({\r\n transform: matrix,\r\n duration: 100,\r\n autoreverse: true,\r\n repeat: 1\r\n }, function() {\r\n bt.show();\r\n _.each(scView.views, function(view) {\r\n scView.removeView(view);\r\n });\r\n isSet = false;\r\n });\r\n }\r\n\r\nvar index = Ti.UI.createWindow({\r\n backgroundColor: \"white\",\r\n id: \"index\"\r\n });\r\n \r\nvar scView = Ti.UI.createScrollableView({\r\n bottom: 150,\r\n backgroundColor: \"green\",\r\n id: \"scView\"\r\n });\r\n index.add(scView);\r\n\r\nvar bt = Ti.UI.createButton({\r\n title: \"click here\",\r\n bottom: 100,\r\n width: 200,\r\n height: 50,\r\n color: \"red\",\r\n borderWidth: 2,\r\n id: \"bt\"\r\n });\r\nindex.add(bt);\r\n\r\nbt.addEventListener(\"click\", doClick);\r\n\r\nvar myView = Ti.UI.createView({\r\n backgroundColor: \"pink\",\r\n id: \"myView\"\r\n });\r\nvar animView = Ti.UI.createView({\r\n id: \"animView\"\r\n });\r\n\r\nmyView.add(animView);\r\nanimView.add( Ti.UI.createImageView({\r\n image: \"http://www.grandlifestyle.com/images/clickherered.gif\",\r\n }));\r\nanimView.addEventListener(\"click\", imageClick);\r\nindex.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "TiUIView Leaking when being animated on click inside scrollable view. ", "creator": { "name": "yaovik", "key": "yaovik", "displayName": "Yaovi Kwasi", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "yaovik", "key": "yaovik", "displayName": "Yaovi Kwasi", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "iOS 8.4 SDK 3.5.1 to 4.1.0 ", "comment": { "comments": [ { "id": "369384", "author": { "name": "aislam", "key": "aislam", "displayName": "Aminul Islam", "active": false, "timeZone": "Etc/GMT-6" }, "body": "Hi,\r\nI tested the issue you reported.I can't reproduce it. I recommend you upgrade SDK and Studio to the latest build and let us know if you get the error again.\r\n*Environment*\r\n{code}\r\nOperating System\r\n Name = Mac OS X\r\n Version = 10.10.5\r\n Architecture = 64bit\r\n # CPUs = 4\r\n Memory = 8589934592\r\nNode.js\r\n Node.js Version = 0.10.37\r\n npm Version = 1.4.28\r\nTitanium CLI\r\n CLI Version = 5.0.5\r\nTitanium SDK\r\n SDK Version = 5.1.0.v20151104190037\r\n SDK Path = /Users/Raju/Library/Application Support/Titanium/mobilesdk/osx/5.1.0.v20151104190037\r\n Target Platform = iphone\r\n{code}\r\n\r\nThanks", "updateAuthor": { "name": "aislam", "key": "aislam", "displayName": "Aminul Islam", "active": false, "timeZone": "Etc/GMT-6" }, "created": "2015-11-09T09:57:31.000+0000", "updated": "2015-11-09T09:57:31.000+0000" }, { "id": "371462", "author": { "name": "yaovik", "key": "yaovik", "displayName": "Yaovi Kwasi", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi I was able to reproduce this with the latest SDK (5.1.1.GA), This happens when there is an object assigned to the {color:red}+*transform property in the animation object*+{color}. animate any view with transform and you will see that it will not be garbage collected. Please fix it. ", "updateAuthor": { "name": "yaovik", "key": "yaovik", "displayName": "Yaovi Kwasi", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-11-25T17:17:49.000+0000", "updated": "2015-11-25T17:21:56.000+0000" }, { "id": "371464", "author": { "name": "yaovik", "key": "yaovik", "displayName": "Yaovi Kwasi", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi I was able to reproduce this with the latest SDK (5.1.1.GA), This happens when there is an object assigned to the {color:red}+*transform property in the animation object*+{color}. animate any view with transform and you will see that it will not be garbage collected. Please fix it. ", "updateAuthor": { "name": "yaovik", "key": "yaovik", "displayName": "Yaovi Kwasi", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-11-25T17:20:05.000+0000", "updated": "2015-11-25T17:21:49.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }