{ "id": "63361", "key": "TIMOB-2729", "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": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" }, { "id": "14098", "description": "Sprint 2012-18 API", "name": "Sprint 2012-18 API", "archived": true, "released": true, "releaseDate": "2012-09-10" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-07-11T09:46:56.000+0000", "created": "2011-04-15T03:28:01.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "api", "module_picker", "qe-testadded" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [], "assignee": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-07-11T09:46:56.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "{html}

goes back to 1.5.1. found in 1.6.0 (01/03/11 08:14 11dd2b6),\r\ndroid 1 (2.2.1)

\r\n

1.Controls> Picker > Android \"useSpinner\" - text
\r\n2. Tap \"remove\" 8 times

\r\n

results: run time error

\r\n

location:
\r\n76,0 app://examples/picker_android_spnner_text.js#76

\r\n

message:Wrapped java.lang.ClassCastException:\r\norg.appcelerator.kroll.KrollProxy$1\r\n(app:/examples/picker_android_spinner_text.js #76

\r\n

This crashed on the droid1 log here: http://pastie.org/1426843

{html}", "attachment": [], "flagged": false, "summary": "Android: runtime errors and intermittent crash when removing values from picker", "creator": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "216041", "author": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "body": "Tested on a Samsung Galaxy S2 using TiSDK 2.2.0v20120821095711, issue still valid. \r\n\r\n{code}\r\nLocation: [77,20] examples/picker_android_spinner_text.js\r\n\r\nMessage: Uncaught error: Invalid value, expected type Object.\r\n\r\nSource: picker.columns[0].removeRow(picker.columns[0].rows[3]);\r\n{code}", "updateAuthor": { "name": "jyounus", "key": "jyounus", "displayName": "Junaid Younus", "active": true, "timeZone": "Europe/London" }, "created": "2012-08-24T11:36:02.000+0000", "updated": "2012-08-24T11:36:02.000+0000" }, { "id": "216930", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "For functional test:\r\n1. KS->Controls->Picker->Android \"useSpinner\"-text. Click \"Remove all idx 3\" 8 times. Check the log and see the output:\r\n{code}\r\nW/PickerColumnProxy( 4370): Unable to remove the row. Invalid type for row.\r\n{code}\r\n2. Run the sample code below. Click 'Add \"Manny\"'. Check the log and see the output:\r\n{code}\r\nW/PickerColumnProxy( 4859): Unable to add the row. Invalid type for row.\r\n{code}\r\nSample code:\r\n{code}\r\nvar w = Ti.UI.createWindow({\r\n\tbackgroundColor : 'black'\r\n});\r\nvar status = Ti.UI.createLabel({\r\n\ttop : 5,\r\n\tleft : 5,\r\n\tright : 5,\r\n\theight : 40,\r\n\ttextAlign : 'center'\r\n});\r\nw.add(status);\r\n\r\nfunction showStatus(s) {\r\n\tstatus.text = s;\r\n}\r\n\r\nvar names = ['Joanie', 'Mickey', 'Jean-Pierre', 'Gustav', 'Raul', 'Mimi', 'Emily', 'Sandra', 'Carrie', 'Chachi'];\r\nvar verbs = ['loves', 'likes', 'visits', 'loathes', 'waves to', 'babysits', 'accompanies', 'teaches', 'announces', 'supports', 'knows', 'high-fives'];\r\n\r\nvar rows1 = [];\r\nfor (var i = 0; i < names.length; i++) {\r\n\trows1.push(Ti.UI.createPickerRow({\r\n\t\ttitle : names[i]\r\n\t}));\r\n}\r\n\r\nvar rows2 = [];\r\nfor ( i = 0; i < verbs.length; i++) {\r\n\trows2.push(Ti.UI.createPickerRow({\r\n\t\ttitle : verbs[i]\r\n\t}));\r\n}\r\n\r\nvar rows3 = [];\r\nfor ( i = (names.length - 1); i >= 0; i--) {\r\n\trows3.push(Ti.UI.createPickerRow({\r\n\t\ttitle : names[i]\r\n\t}));\r\n}\r\n\r\nvar column1 = Ti.UI.createPickerColumn({\r\n\trows : rows1,\r\n\tfont : {\r\n\t\tfontSize : \"12\"\r\n\t}\r\n});\r\nvar column2 = Ti.UI.createPickerColumn({\r\n\trows : rows2,\r\n\tfont : {\r\n\t\tfontSize : \"12\"\r\n\t}\r\n});\r\nvar column3 = Ti.UI.createPickerColumn({\r\n\trows : rows3,\r\n\tfont : {\r\n\t\tfontSize : \"12\"\r\n\t}\r\n});\r\n\r\nvar picker = Ti.UI.createPicker({\r\n\tuseSpinner : true,\r\n\tvisibleItems : 7,\r\n\ttype : Ti.UI.PICKER_TYPE_PLAIN,\r\n\ttop : 150,\r\n\theight : 200,\r\n\tcolumns : [column1, column2, column3]\r\n});\r\n\r\npicker.addEventListener('change', function(e) {\r\n\tshowStatus(e.selectedValue[0] + \" \" + e.selectedValue[1] + \" \" + e.selectedValue[2]);\r\n});\r\n\r\nw.add(picker);\r\n\r\nvar btnAdd = Ti.UI.createButton({\r\n\tleft : 5,\r\n\theight : 40,\r\n\ttop : 50,\r\n\ttitle : 'Add \"Manny\"'\r\n});\r\nbtnAdd.addEventListener('click', function() {\r\n\tpicker.columns[0].addRow(Ti.UI.createPickerRow({\r\n\t\ttitle : 'Manny'\r\n\t}));\r\n\tpicker.columns[2].addRow(Ti.UI.createPickerRow({\r\n\t\ttitle : 'Manny'\r\n\t}));\r\n\tpicker.columns[1].addRow(\"something\");\r\n\tshowStatus('\"Manny\" added to columns 0 & 2');\r\n});\r\nw.add(btnAdd);\r\n\r\nvar btnRemove = Ti.UI.createButton({\r\n\tleft : 5,\r\n\theight : 40,\r\n\ttop : 100,\r\n\ttitle : 'Remove all idx 8'\r\n});\r\nbtnRemove.addEventListener('click', function() {\r\n\tpicker.columns[0].removeRow(picker.columns[0].rows[8]);\r\n\tpicker.columns[1].removeRow(picker.columns[1].rows[8]);\r\n\tpicker.columns[2].removeRow(picker.columns[2].rows[8]);\r\n\tshowStatus(\"value at index 8 of each col. removed\");\r\n});\r\nw.add(btnRemove);\r\n\r\nw.open(); \r\n{code}", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-29T16:12:27.000+0000", "updated": "2012-08-29T16:12:27.000+0000" }, { "id": "216933", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR https://github.com/appcelerator/titanium_mobile/pull/2852", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-29T16:14:16.000+0000", "updated": "2012-08-29T16:14:16.000+0000" }, { "id": "230061", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with Droid 1 2.2.3 with 3.0.0.v20121204144658", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-12-05T17:46:17.000+0000", "updated": "2012-12-05T17:46:17.000+0000" }, { "id": "261409", "author": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening just to update the label\r\n", "updateAuthor": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-07-11T08:55:54.000+0000", "updated": "2013-07-11T08:55:54.000+0000" }, { "id": "261416", "author": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Updated label and Verified under:\r\n\r\nTitanium Studio:3.1.2.201307091843\r\nTitanium SDK: 3.1.2.v20130710144553\r\nacs:1.0.3\r\nalloy:1.1.3\r\nnpm:1.2.14\r\ntitanium:3.1.1\r\ntitanium-code-processor:1.0.1\r\nOS: OSX 10.8\r\nDevice:Galaxy Nexus (v 4.0.4)\r\nXcode: 4.5.1", "updateAuthor": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-07-11T09:46:56.000+0000", "updated": "2013-07-11T09:46:56.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }