{ "id": "125879", "key": "TIMOB-16381", "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": "15922", "description": "2014 Sprint 03", "name": "2014 Sprint 03", "archived": true, "released": true, "releaseDate": "2014-02-14" }, { "id": "15923", "description": "2014 Sprint 03 API", "name": "2014 Sprint 03 API", "archived": true, "released": true, "releaseDate": "2014-02-14" }, { "id": "15857", "description": "Release 3.2.2", "name": "Release 3.2.2", "archived": false, "released": true, "releaseDate": "2014-03-09" }, { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-08-05T02:58:33.000+0000", "created": "2014-02-05T08:39:21.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "module_listview", "qe-3.2.1", "qe-manualtest", "supportTeam", "triage" ], "versions": [ { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" }, { "id": "15856", "description": "Release 3.2.1", "name": "Release 3.2.1", "archived": false, "released": true, "releaseDate": "2014-02-10" } ], "issuelinks": [], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2014-08-05T02:58:33.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": "h5. Problem description \r\n\r\nlistview crashes on setting accessoryType after filtering on itemclick event. But its working well without filtering data in [ListView |http://docs.appcelerator.com/titanium/latest/#!/api/Titanium.UI.ListView]. \r\n\r\n\r\nh5. Testing Environment\r\nMAC OS X 10.8.5\r\nTi SDK 3.2.0.GA \r\nTi CLI 3.2.0\r\nIOS Simulator 7.0.3 \r\n \r\nh5. Test Code\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor : 'white'\r\n});\r\n\r\nvar tasks = [{\r\n\tid : 'trash',\r\n\tname : 'Take Out the Trash',\r\n}, {\r\n\tid : 'dishes',\r\n\tname : 'Do the Dishes',\r\n}, {\r\n\tid : 'doggie',\r\n\tname : 'Walk the Dog',\r\n}];\r\n\r\nvar data = [];\r\nfor (var i = 0; i < tasks.length; i++) {\r\n\tdata.push({\r\n\t\tproperties : {\r\n\t\t\titemId : tasks[i].id,\r\n\t\t\ttitle : tasks[i].name,\r\n\t\t\tsearchableText : tasks[i].name,\r\n\t\t\taccessoryType : Ti.UI.LIST_ACCESSORY_TYPE_NONE,\r\n\t\t\tcolor : 'black'\r\n\t\t}\r\n\t});\r\n}\r\n\r\nvar search = Titanium.UI.createSearchBar({\r\n\tbarColor : '#000',\r\n\tshowCancel : true,\r\n\theight : 43,\r\n\ttop : 0,\r\n});\r\n\r\nvar section = Ti.UI.createListSection();\r\nsection.setItems(data);\r\n\r\nvar listView = Ti.UI.createListView({\r\n\ttop : 25,\r\n\tsearchView : search,\r\n\tsections : [section],\r\n\tcaseInsensitiveSearch : false\r\n});\r\n\r\nlistView.addEventListener('itemclick', function(e) {\r\n\tvar item = section.getItemAt(e.itemIndex);\r\n\titem.properties.accessoryType = Ti.UI.LIST_ACCESSORY_TYPE_CHECKMARK;\r\n\tsection.updateItemAt(e.itemIndex, item);\r\n});\r\nwin.add(listView);\r\nwin.open();\r\n{code}\r\n\r\nh5. Step to reproduces \r\n\r\n# Run this code in IOS Simulator \r\n# Filter on list view \r\n# Click on list item \r\n# App will crash\r\n\r\nh5. Expected Result \r\nApp will not crash \r\n\r\n \r\nThanks\r\n", "attachment": [ { "id": "45631", "filename": "ios6.crash", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-02-05T19:07:20.000+0000", "size": 32005, "mimeType": "application/octet-stream" }, { "id": "45632", "filename": "ios7.crash", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-02-05T19:07:20.000+0000", "size": 35044, "mimeType": "application/octet-stream" } ], "flagged": false, "summary": "iOS: ListView crashes on setting accessoryType after filtering on itemclick event", "creator": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "subtasks": [], "reporter": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "environment": "MAC OS X 10.8.5\r\nTi SDK 3.2.0.GA \r\nTi CLI 3.2.0\r\nIOS Simulator 7.0.3 ", "comment": { "comments": [ { "id": "291457", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Was able to reproduce this issue on both an iOS 6 and 7 devices. Also, this issue appears in both SDK build 3.2.0.GA and latest 3.2.1.\r\n\r\n*Tested on:*\r\n\r\nAppcelerator Studio, build: 3.2.1.201402041206\r\nSDK build: 3.2.0.GA, 3.2.1.v20140203174850\r\nCLI: 3.2.1-beta3\r\nAlloy: 1.3.1-cr2\r\nXcode: 5.0.2\r\nDevices: iphone 5 (7.0.2), iphone 4s (6.0.1)\r\n\r\n*Note:*\r\n1. If trying to reproduce on iOS 7 devices, filter for the second or third item, then select the filtered item. The crash *will not* appear if you filter for the first item.\r\n\r\n2. If trying to reproduce on iOS 6 device, filter *any* items, then select the item. The crash will appear regardless which item you filtered.\r\n\r\n3. Attached my crash logs; ios6.crash and ios7.crash", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-02-05T19:06:02.000+0000", "updated": "2014-02-05T19:07:43.000+0000" }, { "id": "291474", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Pull pending \r\nmaster - https://github.com/appcelerator/titanium_mobile/pull/5324\r\n3_2_X - https://github.com/appcelerator/titanium_mobile/pull/5325", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-02-05T20:14:15.000+0000", "updated": "2014-02-05T20:19:53.000+0000" }, { "id": "294512", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as fixed. Verified ListView does not crash after selecting a filtered list item.\n\nTested on:\n\nAppcelerator Studio, build: 3.2.1.201402061120\nSDK build: 3.2.2.v20140221161255, 3.3.0.v20140224114904\nCLI: 3.2.1\nAlloy: 1.3.1\nXcode: 5.0.2, 5.1 beta 5\nDevices: iphone 4s (6.0.1), iphone 4 (7.0.6), iphone 5 (7.1) ", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-02-24T23:27:17.000+0000", "updated": "2014-02-24T23:27:17.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }