[TIMOB-2729] Android: runtime errors and intermittent crash when removing values from picker
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-07-11T09:46:56.000+0000 |
Affected Version/s | Release 3.0.0 |
Fix Version/s | Release 3.0.0, Sprint 2012-18 API |
Components | Android |
Labels | api, module_picker, qe-testadded |
Reporter | Thomas Huelbert |
Assignee | Ping Wang |
Created | 2011-04-15T03:28:01.000+0000 |
Updated | 2013-07-11T09:46:56.000+0000 |
Description
goes back to 1.5.1. found in 1.6.0 (01/03/11 08:14 11dd2b6), droid 1 (2.2.1)
1.Controls> Picker > Android "useSpinner" - text
2. Tap "remove" 8 times
results: run time error
location:
76,0 app://examples/picker_android_spnner_text.js#76
message:Wrapped java.lang.ClassCastException: org.appcelerator.kroll.KrollProxy$1 (app:/examples/picker_android_spinner_text.js #76
This crashed on the droid1 log here: http://pastie.org/1426843">http://pastie.org/1426843
Tested on a Samsung Galaxy S2 using TiSDK 2.2.0v20120821095711, issue still valid.
For functional test: 1. KS->Controls->Picker->Android "useSpinner"-text. Click "Remove all idx 3" 8 times. Check the log and see the output:
2. Run the sample code below. Click 'Add "Manny"'. Check the log and see the output:
Sample code:
PR https://github.com/appcelerator/titanium_mobile/pull/2852
Tested with Droid 1 2.2.3 with 3.0.0.v20121204144658
Reopening just to update the label
Updated label and Verified under: Titanium Studio:3.1.2.201307091843 Titanium SDK: 3.1.2.v20130710144553 acs:1.0.3 alloy:1.1.3 npm:1.2.14 titanium:3.1.1 titanium-code-processor:1.0.1 OS: OSX 10.8 Device:Galaxy Nexus (v 4.0.4) Xcode: 4.5.1