{ "id": "84396", "key": "AC-3017", "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": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2012-02-23T10:36:00.000+0000", "created": "2012-01-01T01:24:07.000+0000", "labels": [ "tc-more-info", "tc-q-and-a" ], "versions": [], "issuelinks": [], "assignee": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "updated": "2016-03-08T07:48:02.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": "14551", "name": "Studio", "description": "Please enter tickets related to Titanium Studio here." }, { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "h2. Problem\r\n\r\nwhen adding the auto capitalization and auto correct attributes to a searchBar component the application crashes immediately.\r\n\r\nh2. Test case\r\n\r\n{code:lang=javascript|title=app.js}\r\nvar tabGroup = Ti.UI.createTabGroup();\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor:'#fff'\r\n});\r\n\r\nwin.add(Ti.UI.createSearchBar({\r\n\tautocorrect : false,\r\n\thintText : \"Search Everywhere\",\r\n\tautocapitalization : false,\r\n\theight : 46,\r\n\tleft : 0,\r\n\ttop : 60,\r\n\twidth : 320\r\n});\r\n\r\ntabGroup.addTab(Ti.UI.createTab({window:win});\r\ntabGroup.open();\r\n{code}\r\n\r\nh2. Logs\r\n\r\n{code:lang=none|title=console}\r\n12-29 10:28:54.745: E/TiAPI(20029): --------added\r\n12-29 10:28:54.764: E/TiAPI(20029): --------window created\r\n12-29 10:28:54.764: E/TiAPI(20029): -------logo created\r\n12-29 10:28:54.768: E/TiAPI(20029): -------searchbar created\r\n12-29 10:28:54.772: E/TiAPI(20029): -------BT1 created\r\n12-29 10:28:54.776: E/TiAPI(20029): -------BTN2 created\r\n12-29 10:28:54.776: E/TiAPI(20029): ------- appSTUDIO logo created\r\n12-29 10:28:54.780: E/TiAPI(20029): -------Bug report pic created\r\n12-29 10:28:54.780: E/TiAPI(20029): ---------window created\r\n12-29 10:28:55.128: E/TiApplication(20029): (main) [14,192] Sending event: exception on thread: main msg:java.lang.NumberFormatException: Unable to convert java.lang.Boolean; Titanium 1.8.0.1,2011/12/22 13:09,fbdc96f\r\n12-29 10:28:55.128: E/TiApplication(20029): java.lang.NumberFormatException: Unable to convert java.lang.Boolean\r\n12-29 10:28:55.128: E/TiApplication(20029): \tat org.appcelerator.titanium.util.TiConvert.toInt(TiConvert.java:307)\r\n12-29 10:28:55.128: E/TiApplication(20029): \tat org.appcelerator.titanium.util.TiConvert.toInt(TiConvert.java:313)\r\n12-29 10:28:55.128: E/TiApplication(20029): \tat ti.modules.titanium.ui.widget.TiUIText.handleKeyboard(TiUIText.java:297)\r\n12-29 10:28:55.128: E/TiApplication(20029): \tat ti.modules.titanium.ui.widget.TiUIText.processProperties(TiUIText.java:145)\r\n12-29 10:28:55.128: E/TiApplication(20029): \tat ti.modules.titanium.ui.widget.searchbar.TiUISearchBar.processProperties(TiUISearchBar.java:93)\r\n12-29 10:28:55.128: E/TiApplication(20029): \tat org.appcelerator.kroll.KrollProxy.setModelListener(KrollProxy.java:641)\r\n12-29 10:28:55.128: E/TiApplication(20029): \tat org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:449)\r\n12-29 10:28:55.128: E/TiApplication(20029): \tat org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:441)\r\n12-29 10:28:55.128: E/TiApplication(20029): \tat org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:427)\r\n12-29 10:28:55.128: E/TiApplication(20029): \tat org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:456)\r\n12-29 10:28:55.128: E/TiApplication(20029): \tat ti.modules.titanium.ui.ActivityWindowProxy.handleMessage(ActivityWindowProxy.java:81)\r\n12-29 10:28:55.128: E/TiApplication(20029): \tat android.os.Handler.dispatchMessage(Handler.java:95)\r\n12-29 10:28:55.128: E/TiApplication(20029): \tat android.os.Looper.loop(Looper.java:123)\r\n12-29 10:28:55.128: E/TiApplication(20029): \tat android.app.ActivityThread.main(ActivityThread.java:3687)\r\n12-29 10:28:55.128: E/TiApplication(20029): \tat java.lang.reflect.Method.invokeNative(Native Method)\r\n12-29 10:28:55.128: E/TiApplication(20029): \tat java.lang.reflect.Method.invoke(Method.java:507)\r\n12-29 10:28:55.128: E/TiApplication(20029): \tat com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:842)\r\n12-29 10:28:55.128: E/TiApplication(20029): \tat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)\r\n12-29 10:28:55.128: E/TiApplication(20029): \tat dalvik.system.NativeStart.main(Native Method)\r\n12-29 10:28:55.174: E/AndroidRuntime(20029): FATAL EXCEPTION: main\r\n12-29 10:28:55.174: E/AndroidRuntime(20029): java.lang.NumberFormatException: Unable to convert java.lang.Boolean\r\n12-29 10:28:55.174: E/AndroidRuntime(20029): \tat org.appcelerator.titanium.util.TiConvert.toInt(TiConvert.java:307)\r\n12-29 10:28:55.174: E/AndroidRuntime(20029): \tat org.appcelerator.titanium.util.TiConvert.toInt(TiConvert.java:313)\r\n12-29 10:28:55.174: E/AndroidRuntime(20029): \tat ti.modules.titanium.ui.widget.TiUIText.handleKeyboard(TiUIText.java:297)\r\n12-29 10:28:55.174: E/AndroidRuntime(20029): \tat ti.modules.titanium.ui.widget.TiUIText.processProperties(TiUIText.java:145)\r\n12-29 10:28:55.174: E/AndroidRuntime(20029): \tat ti.modules.titanium.ui.widget.searchbar.TiUISearchBar.processProperties(TiUISearchBar.java:93)\r\n12-29 10:28:55.174: E/AndroidRuntime(20029): \tat org.appcelerator.kroll.KrollProxy.setModelListener(KrollProxy.java:641)\r\n12-29 10:28:55.174: E/AndroidRuntime(20029): \tat org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:449)\r\n12-29 10:28:55.174: E/AndroidRuntime(20029): \tat org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:441)\r\n12-29 10:28:55.174: E/AndroidRuntime(20029): \tat org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:427)\r\n12-29 10:28:55.174: E/AndroidRuntime(20029): \tat org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:456)\r\n12-29 10:28:55.174: E/AndroidRuntime(20029): \tat ti.modules.titanium.ui.ActivityWindowProxy.handleMessage(ActivityWindowProxy.java:81)\r\n12-29 10:28:55.174: E/AndroidRuntime(20029): \tat android.os.Handler.dispatchMessage(Handler.java:95)\r\n12-29 10:28:55.174: E/AndroidRuntime(20029): \tat android.os.Looper.loop(Looper.java:123)\r\n12-29 10:28:55.174: E/AndroidRuntime(20029): \tat android.app.ActivityThread.main(ActivityThread.java:3687)\r\n12-29 10:28:55.174: E/AndroidRuntime(20029): \tat java.lang.reflect.Method.invokeNative(Native Method)\r\n12-29 10:28:55.174: E/AndroidRuntime(20029): \tat java.lang.reflect.Method.invoke(Method.java:507)\r\n12-29 10:28:55.174: E/AndroidRuntime(20029): \tat com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:842)\r\n12-29 10:28:55.174: E/AndroidRuntime(20029): \tat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)\r\n12-29 10:28:55.174: E/AndroidRuntime(20029): \tat dalvik.system.NativeStart.main(Native Method)\r\n12-29 10:28:55.182: E/(482): Dumpstate > /data/log/dumpstate_app_error\r\n{code}\r\n\r\nh2. Discussions\r\n\r\nInsert a link to your Q&A question and/or helpdesk ticket\r\n", "attachment": [], "flagged": false, "summary": "Android: UI - searchBar autocorrect and autocapitalization causes crash", "creator": { "name": "thepoosh", "key": "thepoosh", "displayName": "moe jo", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "thepoosh", "key": "thepoosh", "displayName": "moe jo", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "* Titanium version 1.8\r\n* Studio 1.0.7.201112281340\r\n* android version 2.3.3\r\n* emulator, Galaxy 2s and Samsung Galaxy Tab\r\n* Mac OSX", "comment": { "comments": [ { "id": "177739", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Thanks for raising this ticket.\r\n\r\nIn order for me to escalate it to the core team, all the fields must be complete. Please check it against the [JIRA Ticket Checklist|https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report#HowtoSubmitaBugReport-JIRATicketChecklist], and add any missing information. For the description, you can use [this template|https://wiki.appcelerator.org/display/guides/JIRA+Ticket+Template] as a starting point.\r\n\r\nFurthermore, a test case must be included and run without modification, as per the [Creating a Test Case|https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report#HowtoSubmitaBugReport-CreatingaTestCase] section.\r\n\r\nOnce it is complete, I will move it to the main project.\r\n\r\nCheers", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2012-01-01T05:11:57.000+0000", "updated": "2012-01-01T05:11:57.000+0000" }, { "id": "177742", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "As I said previously, a test case must be included and run without modification, as per the [Creating a Test Case|https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report#HowtoSubmitaBugReport-CreatingaTestCase] section.\r\n\r\nThank you", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2012-01-01T07:12:08.000+0000", "updated": "2012-01-01T07:12:08.000+0000" }, { "id": "178130", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Are you able to provide the requested information, so I may escalate this ticket?\r\n\r\nThanks", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2012-01-05T09:14:24.000+0000", "updated": "2012-01-05T09:14:24.000+0000" }, { "id": "178462", "author": { "name": "thepoosh", "key": "thepoosh", "displayName": "moe jo", "active": true, "timeZone": "America/Los_Angeles" }, "body": "sorry for the time it took me, my wife just had a baby.", "updateAuthor": { "name": "thepoosh", "key": "thepoosh", "displayName": "moe jo", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-07T23:25:57.000+0000", "updated": "2012-01-07T23:25:57.000+0000" }, { "id": "178632", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Moe\r\n\r\nCongratulations about your new arrival - I hope mother and baby are well. :)\r\n\r\nWould you please refer to the [The Bug-Reporting Lifecycle|https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report#HowtoSubmitaBugReport-TheBugReportingLifecycle]? Hence, an open [Q&A|http://developer.appcelerator.com/questions/created] thread is required, so that it may be verified with the community, before a ticket may be opened.\r\n\r\nThank you", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2012-01-10T05:16:49.000+0000", "updated": "2012-01-10T05:16:49.000+0000" }, { "id": "178633", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Furthermore, please ensure that you are testing with the latest Titanium Mobile release, which is currently, 1.8.0.1.\r\n\r\nThanks", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2012-01-10T05:17:34.000+0000", "updated": "2012-01-10T05:17:34.000+0000" }, { "id": "184067", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "Not a bug. ", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2012-02-23T10:36:00.000+0000", "updated": "2012-02-23T10:36:00.000+0000" }, { "id": "280964", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "Invalid issue. ", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2013-11-24T22:18:23.000+0000", "updated": "2013-11-24T22:18:23.000+0000" } ], "maxResults": 9, "total": 9, "startAt": 0 } } }