{ "id": "154597", "key": "TIMOB-20301", "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": "2019-11-15T22:41:57.000+0000", "created": "2016-01-30T16:30:19.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "5.1.2", "appcelerator", "button", "eventlistener", "scrollableview" ], "versions": [ { "id": "17072", "name": "Release 5.1.2", "archived": false, "released": true, "releaseDate": "2016-01-12" } ], "issuelinks": [], "assignee": null, "updated": "2019-11-15T22:41:58.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": "With sdk 5.1.2 I try the code in new project on iPad2 simulator without LiveView and it works fine but not in my real project. Now, in the new project, I have tried with 90 iterations and clicks works for first 18 buttons, in 5.1.1 works fine in all buttons.\r\n{code:javascript}\r\n var win = Ti.UI.createWindow({backgroundColor: 'white'});\r\n\t\r\n\tvar data = [];\r\n\tvar c =1;\r\n\t\r\n\tfor(var i=1; i<=90; i++){\r\n\t\t\r\n\t\tif (c == 1) {\r\n\t\t\tvar page_view = Ti.UI.createView({\r\n\t\t\t\tlayout: 'horizontal'\r\n\t\t\t});\r\n\t\t}\r\n\t\r\n\t\tvar view = Ti.UI.createView({\r\n\t\t\tbackgroundColor: 'green',\r\n\t\t\twidth : 250,\r\n\t\t\tleft: 5\r\n\t\t});\r\n\t\r\n\t\r\n\t\r\n\t\tvar button = Ti.UI.createButton({\r\n\t\t\tbottom : 10,\r\n\t\t\tleft : 10,\r\n\t\t\tright : 10,\r\n\t\t\theight : 40,\r\n\t\t\tcolor : '#fff',\r\n\t\t\tbackgroundColor : 'red',\r\n\t\t\ttitle : \"click\",\r\n ids: i\r\n\t\t});\r\n\t\r\n\t\r\n\t\tview.add(button);\r\n\t\r\n\t\r\n\t\tbutton.addEventListener('click', function(e) {\r\n\t\t\tTi.API.info('button: ' + e.source.ids);\r\n\t\t});\r\n\t\t\r\n\t\tpage_view.add(view);\r\n\r\n\t\tif (c % 3 == 0) {\r\n\t\t\tdata.push(page_view);\r\n\t\t\tc = 1;\r\n\t\t} else {\r\n\t\t\tc++;\r\n\r\n\t\t\tif (i == 90) {\r\n\t\t\t\tdata.push(page_view);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}\r\n\r\n\tvar scroll_view = Ti.UI.createScrollableView({\r\n\t\tshowPagingControl : true,\r\n\t\ttop : 130,\r\n\t\tviews: data,\r\n\t\tlayout: 'horizontal'\r\n\t});\r\n\r\n\r\n\r\n\twin.add(scroll_view);\r\n{code}\r\n\r\n\r\nhttp://stackoverflow.com/questions/35103130/multiple-buttons-dont-fire-clicks-event-5-1-2-memory-lack/35103813#35103813", "attachment": [ { "id": "58098", "filename": "Screen Shot 2016-01-31 at 11.36.07 AM.png", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2016-01-31T05:42:45.000+0000", "size": 309246, "mimeType": "image/png" } ], "flagged": false, "summary": "Memory lack using scrollableview and many buttons. Buttons event don't works.", "creator": { "name": "otto.pic", "key": "otto.pic", "displayName": "Lorenzo Piccinini", "active": true, "timeZone": "Europe/Rome" }, "subtasks": [], "reporter": { "name": "otto.pic", "key": "otto.pic", "displayName": "Lorenzo Piccinini", "active": true, "timeZone": "Europe/Rome" }, "environment": null, "comment": { "comments": [ { "id": "375546", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, I tried your project, It's working fine with SDk 5.1.2.GA. The buttons event is firing as expected. See the attachment.\r\n\r\nMy Environment\r\n{code}\r\nOperating System\r\n Name = Mac OS X\r\n Version = 10.11.2\r\n Architecture = 64bit\r\n # CPUs = 4\r\n Memory = 8589934592\r\nNode.js\r\n Node.js Version = 4.2.2\r\n npm Version = 2.14.7\r\nTitanium CLI\r\n CLI Version = 5.0.5\r\nTitanium SDK\r\n SDK Version = 5.1.2.GA\r\n Target Platform = ipad 2\r\n{code}\r\nThanks.\r\n\r\n\r\n", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2016-01-31T05:46:25.000+0000", "updated": "2016-01-31T05:46:25.000+0000" }, { "id": "375560", "author": { "name": "otto.pic", "key": "otto.pic", "displayName": "Lorenzo Piccinini", "active": true, "timeZone": "Europe/Rome" }, "body": "I have recorded video example. \r\n\r\nDownload here http://smartappsdesign.com/Test.mov", "updateAuthor": { "name": "otto.pic", "key": "otto.pic", "displayName": "Lorenzo Piccinini", "active": true, "timeZone": "Europe/Rome" }, "created": "2016-01-31T11:20:42.000+0000", "updated": "2016-01-31T11:20:42.000+0000" }, { "id": "375578", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, Test on a real device. and make a video of the response. The issue is not reproducible from my end with SDK 5.1.2.GA. Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2016-02-01T06:32:21.000+0000", "updated": "2016-02-01T06:32:21.000+0000" }, { "id": "375648", "author": { "name": "otto.pic", "key": "otto.pic", "displayName": "Lorenzo Piccinini", "active": true, "timeZone": "Europe/Rome" }, "body": "Yes, I confirm the problem on device too.\r\n\r\nhttp://smartappsdesign.com/TestDevice.m4v", "updateAuthor": { "name": "otto.pic", "key": "otto.pic", "displayName": "Lorenzo Piccinini", "active": true, "timeZone": "Europe/Rome" }, "created": "2016-02-01T22:41:41.000+0000", "updated": "2016-02-01T22:41:41.000+0000" }, { "id": "452742", "author": { "name": "ahutton", "key": "ahutton", "displayName": "Alan Hutton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Cannot reproduce. Closing. \r\n\r\nAxway Appcelerator Studio, build: 5.1.4.201909061933 \r\nmacOS : 10.15\r\nNode.js Version : 8.9.1\r\nnpm Version : 5.5.1\r\nAppcelerator CLI : 7.1.1\r\nTitanium CLI\r\nCLI Version : 5.2.1\r\nnode-appc Version : 0.2.49\r\nTitanium SDKs : 8.2.1.GA", "updateAuthor": { "name": "ahutton", "key": "ahutton", "displayName": "Alan Hutton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-11-15T22:41:57.000+0000", "updated": "2019-11-15T22:41:57.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }