{ "id": "159284", "key": "TIMOB-23162", "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": null, "resolutiondate": null, "created": "2016-04-04T11:22:53.000+0000", "priority": null, "labels": [ "picker", "windows_phone", "windowsphone" ], "versions": [ { "id": "17706", "name": "Release 5.4.0", "archived": false, "released": true, "releaseDate": "2016-08-11" } ], "issuelinks": [], "assignee": null, "updated": "2018-02-28T19:55:59.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [], "description": "When I try to add data to Picker, my application crash with Unknown exception.\r\n\r\nI tried with SDK 5.2.0.GA and it's work. But on SDK 5.4.0.v20160402025807 it crash. \r\n\r\nI tried this \t\r\n{code}\r\nvar picker = Ti.UI.createPicker({\r\n columns: [ column1, column2 ]\r\n});\r\n{code}\r\n ==> CRASH\r\nand I tried to create the picker and after add columns or data like this and it crash too.\r\n{code}\r\npicker.add([ column1, column2 ]);\r\n{code}\r\n ==> CRASH\r\nOR\r\n{code}\r\npicker.add(data1);\r\n{code}\r\n ==> CRASH\r\nOR \r\n{code}\r\npicker.add([data1]);\r\n{code}\r\n ==> CRASH\r\n\r\nPlease help.\r\n\r\nThe source code :\r\n\r\n//index.xml\r\n{code}\r\n\r\n\t\r\n\t\r\n\r\n{code}\r\n//index.js\r\n{code}\r\nfunction doClick(e) {\r\n var win = Ti.UI.createWindow({});\r\n\r\n\tvar data1 = [];\r\n\tdata1[0] = Ti.UI.createPickerRow({ title: 'Bananas'});\r\n\tdata1[1] = Ti.UI.createPickerRow({ title: 'Strawberries'});\r\n\tdata1[2] = Ti.UI.createPickerRow({ title: 'Mangos' });\r\n\tdata1[3] = Ti.UI.createPickerRow({ title: 'Grapes' });\r\n\t\r\n\tvar data2 = [];\r\n\tdata2[0] = Ti.UI.createPickerRow({ title: 'red', color: 'red', font: { fontSize: 30, fontFamily: 'Times New Roman' } });\r\n\tdata2[1] = Ti.UI.createPickerRow({ title: 'blue', color: 'blue' });\r\n\tdata2[2] = Ti.UI.createPickerRow({ title: 'yellow', color: 'yellow' });\r\n\tdata2[3] = Ti.UI.createPickerRow({ title: 'green', color: 'green' });\r\n\t\r\n\tvar column1 = Ti.UI.createPickerColumn();\r\n\tvar column2 = Ti.UI.createPickerColumn();\r\n\t\r\n\tfor (var i = 0; i < data1.length; i++) {\r\n\t column1.addRow(data1[i]);\r\n\t}\r\n\t\r\n\tfor (var i = 0; i < data2.length; i++) {\r\n\t column2.addRow(data2[i]);\r\n\t}\r\n\t\r\n\tvar picker = Ti.UI.createPicker({\r\n\t columns: [ column1, column2 ]\r\n\t});\r\n\t// picker.add([ column1, column2 ]);\r\n\t\r\n\tpicker.addEventListener('change', function (e) {\r\n\t Ti.API.info(\"User selected: \" + JSON.stringify(e.selectedValue));\r\n\t});\r\n\t\r\n\twin.add(picker);\r\n\twin.open();\r\n}\r\n\r\n$.index.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "Windows: Cannot add data to Picker on SDK 5.4.0", "creator": { "name": "jmarty", "key": "jmarty", "displayName": "jmarty", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jmarty", "key": "jmarty", "displayName": "jmarty", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Operating System\r\n Name = Microsoft Windows 10 Professionnel\r\n Version = 10.0.10586\r\n Architecture = 32bit\r\n # CPUs = 8\r\n Memory = 7.9GB\r\n\r\nNode.js\r\n Node.js Version = 4.4.2\r\n npm Version = 2.15.0\r\n\r\nTitanium CLI\r\n CLI Version = 5.0.6\r\n node-appc Version = 0.2.31\r\n\r\nTitanium SDKs\r\n 5.4.0.v20160402025807\r\n Version = 5.4.0\r\n Install Location = C:\\ProgramData\\Titanium\\mobilesdk\\win32\\5.4.0.v20160402025807\r\n Platforms = android, mobileweb, windows\r\n git Hash = b32c985\r\n git Timestamp = 04/02/16 02:58\r\n node-appc Version = 0.2.35", "comment": { "comments": [], "maxResults": 2, "total": 2, "startAt": 0 } } }