{ "id": "166161", "key": "AC-4809", "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": "2017-03-03T14:30:03.000+0000", "created": "2017-02-21T10:00:34.000+0000", "labels": [ "refresh", "tableView", "windows" ], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-03T14:30: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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "The application closes after calling a second time the method setData of a tableview.\r\n\r\n*Console Log*\r\n{noformat}\r\n-- Start application log -----------------------------------------------------\r\n[INFO] : Finished launching the application\r\n[INFO] : start row creation\r\n[INFO] : add row to table\r\n[INFO] : end row creation\r\n[INFO] : start row creation\r\n[INFO] : add row to table\r\n[INFO] : Disconnected from app\r\n-- End application log -------------------------------------------------------\r\n{noformat}\r\n\r\n\r\n*Test code*\r\n{noformat}\r\nvar win = Ti.UI.createWindow();\r\n\r\nvar tableView = Ti.UI.createTableView({\r\n\tbackgroundColor: 'transparent',\r\n\tseparatorStyle: Ti.UI.TABLE_VIEW_SEPARATOR_STYLE_NONE,\r\n\tdata: []\r\n});\r\nwin.add(tableView);\r\n\r\nfunction createRow()\r\n{\r\n\tconsole.log('start row creation');\r\n\t\r\n\tvar uid = (new Date()).getTime();\r\n\t\r\n\tvar row = Ti.UI.createTableViewRow({\r\n\t\theight: Ti.UI.SIZE,\r\n\t\tselectedBackgroundColor: '#FFFFFF',\r\n\t\tlayout: \"vertical\"\r\n\t});\r\n\t\r\n\tvar label1 = Ti.UI.createLabel({\r\n\t\ttext: 'Test 1 ' + uid,\r\n\t\theight: Ti.UI.SIZE,\r\n\t\tfont: {\r\n\t\t\tfontSize: 20\r\n\t\t},\r\n\t\ttextAlign: 'center'\r\n\t});\r\n\trow.add(label1);\r\n\t\r\n\tvar label2 = Ti.UI.createLabel({\r\n\t\ttext: 'Test 2 ' + uid,\r\n\t\theight: Ti.UI.SIZE,\r\n\t\tfont: {\r\n\t\t\tfontSize: 15\r\n\t\t},\r\n\t\ttextAlign: 'center'\r\n\t});\r\n\trow.add(label2);\r\n\t\r\n\tconsole.log('add row to table');\r\n\t\r\n\ttableView.setData([row]);\r\n\t\r\n\tconsole.log('end row creation');\r\n}\r\n\r\n\r\nwin.addEventListener('open', function()\r\n{\r\n\t\r\n\tsetInterval(createRow, 1000);\r\n});\r\n\r\nwin.open();\r\n{noformat}\r\n", "attachment": [], "flagged": false, "summary": "Windows Phone: App closing on refresh table data with setData", "creator": { "name": "sandrolain", "key": "sandrolain", "displayName": "Sandro Lain", "active": true, "timeZone": "Europe/Rome" }, "subtasks": [], "reporter": { "name": "sandrolain", "key": "sandrolain", "displayName": "Sandro Lain", "active": true, "timeZone": "Europe/Rome" }, "environment": "OS: Windows 10 Pro \r\nEmulator: Mobile Emulator 10.0.14393.0 720p 5 inch 1GB \r\nStudio: 4.8.0.201612050850 \r\nappc 6.1.0 \r\nTitanium SDK 6.1.0.v20170220084235", "comment": { "comments": [ { "id": "407983", "author": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Hello,\r\n\r\nWe have tested this issue but not reproduce it as a bug.\r\n\r\n*Testing Environment:*\r\nAppcelerator Studio, build: 4.8.0.201611121409\r\nSDK: 6.0.1.GA\r\nAppcelerator Command-Line Interface, version 6.1.0\r\nWindows emulator: 8.1 WVGA 4 inch 512MB\r\n\r\n*Test Result:*\r\nApp not closing but showing following log:\r\n-- Start application log -----------------------------------------------------\r\n[INFO] : Finished installing the application\r\n[INFO] : Waiting for app to connect to log relay\r\n[INFO] : Finished launching the application\r\n[INFO] : start row creation\r\n[INFO] : add row to table\r\n[INFO] : end row creation\r\n[INFO] : start row creation\r\n[INFO] : add row to table\r\n[INFO] : end row creation\r\n[INFO] : start row creation\r\n[INFO] : add row to table\r\n[INFO] : end row creation\r\n[INFO] : start row creation\r\n[INFO] : add row to table\r\n[INFO] : end row creation\r\n[INFO] : start row creation\r\n[INFO] : add row to table\r\n\r\nThanks", "updateAuthor": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "created": "2017-02-24T19:30:15.000+0000", "updated": "2017-02-24T19:30:15.000+0000" }, { "id": "408112", "author": { "name": "sandrolain", "key": "sandrolain", "displayName": "Sandro Lain", "active": true, "timeZone": "Europe/Rome" }, "body": "Hello, \r\n\r\nI found the problem in the SDK version 6.1.0.x and Windows Mobile 10, because I'm importing an app from iOS / Android with features found only in the branch 6.1.0 (TCP).\r\n\r\nI found several other issues in Jira were reported in the past as now corrected and marked FIXED.\r\nIt seems to have been a regression in the SDK from different points, or simply the problems have recurred with the transition from Windows Mobile 8 to 10.", "updateAuthor": { "name": "sandrolain", "key": "sandrolain", "displayName": "Sandro Lain", "active": true, "timeZone": "Europe/Rome" }, "created": "2017-02-28T09:02:40.000+0000", "updated": "2017-02-28T09:03:35.000+0000" }, { "id": "408240", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, Please use the latest SDK 6.2.0.GA. The issue is not reproducible in our end. It would be helpful if you provide the links of other issues that you referenced. Always use the latest GA release of SDK's for your build. ", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2017-03-01T19:36:55.000+0000", "updated": "2017-03-01T19:36:55.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }