{ "id": "155049", "key": "AC-688", "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": "2016-03-10T09:20:27.000+0000", "created": "2016-02-20T11:33:47.000+0000", "labels": [ "windows", "windows_phone" ], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-10T09:20:27.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": "Well i m facing an issue of weird crash on Listview on Windows device (Works well on windows emulator)\r\n\r\nIt crashes when the Listview is about to be assigned a section\r\n\r\n $.timeLineList.sections = [section];\r\nPlease help me with this issue, its really urgent For further reference i am providing the appropriate xml and JS code too:\r\n\r\nXML Code:\r\n\r\n \r\n{code:java}\r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n{code}\r\n\r\nJS Code:\r\n\r\n\r\n{code:java}\r\nfor (var i = 0; i < _response.length; i++) {\r\n Ti.App.Properties.setString('timelineId', _response[i].id);\r\n\r\n if (_response[i].postType == \"1\") {\r\n data.push({\r\n\r\n pic : {\r\n image : \"images/icons/homeScreenIcons/ViewResponses.png\"\r\n },\r\n info : {\r\n text : \"Sent to: \" + _response[i].sendTo\r\n },\r\n name : {\r\n text : _response[i].post\r\n },\r\n date : {\r\n text : _response[i].updatedAtDate\r\n },\r\n comments : {\r\n //text: \"146 comments\"\r\n text : _response[i].commentCount + \" comments\"\r\n },\r\n properties : {\r\n name : _response[i].post,\r\n info : \"Sent to: \" + _response[i].sendTo,\r\n date : _response[i].updatedAtDate,\r\n id : _response[i].id,\r\n postType : _response[i].postType,\r\n comments : _response[i].commentCount + \" comments\",\r\n image : \"images/icons/homeScreenIcons/ViewResponses.png\"\r\n }\r\n });\r\n } else if (_response[i].postType == \"2\") {\r\n\r\n var tag = new Array();\r\n tag = _response[i].image.split(',');\r\n Ti.API.info(\"Tags array: \" + tag[0]);\r\n\r\n data.push({\r\n\r\n pic : {\r\n image : \"images/icons/homeScreenIcons/ViewPhotoComment.png\"\r\n },\r\n info : {\r\n text : \"Sent to: \" + _response[i].sendTo\r\n },\r\n name : {\r\n text : _response[i].post\r\n },\r\n date : {\r\n text : _response[i].updatedAtDate\r\n },\r\n comments : {\r\n //text: \"146 comments\"\r\n text : _response[i].commentCount + \" comments\"\r\n },\r\n properties : {\r\n name : _response[i].post,\r\n info : \"Sent to: \" + _response[i].sendTo,\r\n date : _response[i].updatedAtDate,\r\n id : _response[i].id,\r\n postType : _response[i].postType,\r\n comments : _response[i].commentCount,\r\n image : tag\r\n }\r\n });\r\n } else {\r\n data.push({\r\n\r\n pic : {\r\n image : \"images/icons/homeScreenIcons/PollResult.png\"\r\n },\r\n name : {\r\n text : _response[i].post\r\n },\r\n info : {\r\n text : \"Sent to: \" + _response[i].sendTo\r\n },\r\n date : {\r\n text : _response[i].updatedAtDate\r\n },\r\n comments : {\r\n text : _response[i].commentCount + \" Respondents\"\r\n },\r\n properties : {\r\n name : _response[i].post,\r\n info : \"Sent to: \" + _response[i].sendTo,\r\n date : _response[i].updatedAtDate,\r\n id : _response[i].id,\r\n values : _response[i].pollValues,\r\n comments : _response[i].commentCount,\r\n privacy : _response[i].pollPrivacy,\r\n expiration : _response[i].postExpiration\r\n }\r\n });\r\n }\r\n\r\n var _timelineDb = Alloy.createModel('timeline', {\r\n id : _response[i].id,\r\n post : _response[i].post,\r\n postType : _response[i].postType,\r\n tags : _response[i].tags,\r\n userGroupId : _response[i].userGroupId,\r\n badgeCount : _response[i].badgeCount,\r\n createdAtDate : _response[i].createdAtDate,\r\n updatedAtDate : _response[i].updatedAtDate,\r\n createdAt : _response[i].createdAt,\r\n updatedAt : _response[i].updatedAt,\r\n image : _response[i].image ? _response[i].image : \"\",\r\n commentCount : _response[i].commentCount,\r\n sendTo : _response[i].sendTo\r\n });\r\n\r\n timelineDbCollection.add(_timelineDb);\r\n\r\n _timelineDb.save();\r\n }\r\n Ti.API.info('timelineDbCollection:' + JSON.stringify(Alloy.Collections.timeline.toJSON(), null, 2));\r\n\r\n var section = Ti.UI.createListSection({\r\n items : data\r\n });\r\n\r\n $.timeLineList.sections = [section];\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "Windows Phone App Listview Crash", "creator": { "name": "paramsb", "key": "paramsb", "displayName": "Parmeet Singh", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "paramsb", "key": "paramsb", "displayName": "Parmeet Singh", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "SDK : 5.1.2 GA\r\nStudio : 4.5.0\r\nWindows Phone OS : 8.1\r\n", "comment": { "comments": [ { "id": "379326", "author": { "name": "jnaher", "key": "jnaher", "displayName": "Jebun Naher", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello,\r\n\r\nThanks for your report. We tried to run your provided test case but it didn't work on our end. A minimal reproducible test case would help. We would be happy to investigate this issue further once we have a minimal reproducible test case. However we tried to reproduce the issue with the following test case. But no crash occurred on our end. ListView is working as expected. \r\n\r\n*Testing Environment:*\r\nAppcelerator Command-Line Interface, version 5.2.0\r\nAppcelerator Studio, build: 4.5.0.201602170821\r\nSDK : 5.1.2 GA\r\nWindows Phone OS : 8.1\r\n\r\n\r\n*Test Case:*\r\nindex.xml\r\n{code}\r\n\r\n\t\r\n\t\t\r\n \r\n \r\n \r\n \r\n \r\n \r\n\t\t\t\r\n\t\t\r\n\t\r\n\r\n{code}\r\n\r\n*index.js*\r\n{code}\r\nvar data = [];\r\nfor (var i = 0; i < 30; i++) {\r\n\tdata.push({\r\n\t\tproperties : {\r\n\t\t\tbackgroundColor : (i % 2) ? '#44112233' : 'transparent',\r\n\t\t},\r\n\t});\r\n}\r\nvar section = Ti.UI.createListSection({\r\n\titems : data\r\n});\r\n$.timeLineList.sections = [section];\r\n$.index.open(); \r\n{code}\r\n\r\n*Steps to test:*\r\n1. Create an alloy project\r\n2. Replace index.xml and index.js with the sample test case above\r\n3. Run the app\r\n\r\n\r\nRegards", "updateAuthor": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "created": "2016-03-09T11:49:07.000+0000", "updated": "2016-03-10T09:20:11.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }