{ "id": "134478", "key": "TIMOB-17482", "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": "16593", "description": "Release 4.0.0", "name": "Release 4.0.0", "archived": false, "released": true, "releaseDate": "2015-05-21" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-10-15T03:32:42.000+0000", "created": "2014-08-11T09:12:07.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "qe-testadded" ], "versions": [ { "id": "15971", "description": "Release 3.2.3", "name": "Release 3.2.3", "archived": false, "released": true, "releaseDate": "2014-04-30" }, { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" } ], "issuelinks": [], "assignee": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2015-01-27T17:21:36.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": "App crashes if we use the searchBar properties borderRadius, borderColor, or borderWidth. And use this searchBar in a tableView using search property.\r\nh3.Testing Environment:\r\nTitanium SDK: 3.3.0.GA, 3.2.3.GA\r\nTitanium CLI: 3.3.0,\r\nAndroid SDK: 4.2.2, 4.4.2\r\nOS X Version: 10.9.3,\r\nAppcelerator Studio: 3.3.0\r\n\r\nh3.Steps to Reproduce the issue:\r\n1. Create classic project.\r\n2. Paste this code app.js file.\r\n3. Run this code with the testing environment.\r\n\r\nh3.Test Code\r\n{code:title=app.js}\r\nvar win = Titanium.UI.createWindow({\r\n\ttitle : \"search bar\"\r\n});\r\n\r\n// create table view data object\r\nvar data = [];\r\n\r\ndata[0] = Ti.UI.createTableViewRow({\r\n\thasChild : true,\r\n\ttitle : 'Row 1'\r\n});\r\ndata[1] = Ti.UI.createTableViewRow({\r\n\thasDetail : true,\r\n\ttitle : 'Row 2'\r\n});\r\ndata[2] = Ti.UI.createTableViewRow({\r\n\thasCheck : true,\r\n\ttitle : 'Row 3'\r\n});\r\ndata[3] = Ti.UI.createTableViewRow({\r\n\ttitle : 'Row 4'\r\n});\r\n\r\nvar search = Titanium.UI.createSearchBar({\r\n\r\n\tborderRadius : 10,\r\n\tborderColor : 'red',\r\n\tborderWidth : 2,\r\n\tshowCancel : true,\r\n\theight : 60,\r\n\thintText : \"Filter results\",\r\n});\r\n\r\n// create table view\r\nvar tableview = Titanium.UI.createTableView({\r\n\tdata : data,\r\n\ttop : 40,\r\n\tsearch : search,\r\n\tfilterAttribute : \"title\",\r\n});\r\n\r\nwin.add(tableview);\r\n\r\nwin.open();\r\n\r\n{code}\r\n\r\n{code:title=application log}\r\n[ERROR] : TiApplication: (main) [107,107] Sending event: exception on thread: main msg:java.lang.RuntimeException: Unable to start activity ComponentInfo{com.bd.apptest1/org.appcelerator.titanium.TiActivity}: java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first.; Titanium 3.2.3,2014/04/22 10:17,b958a70\r\n[ERROR] : TiApplication: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.bd.apptest1/org.appcelerator.titanium.TiActivity}: java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first.\r\n[ERROR] : TiApplication: \tat android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2180)\r\n[ERROR] : TiApplication: \tat android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)\r\n[ERROR] : TiApplication: \tat android.app.ActivityThread.access$600(ActivityThread.java:141)\r\n[ERROR] : TiApplication: \tat android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)\r\n[ERROR] : TiApplication: \tat android.os.Handler.dispatchMessage(Handler.java:99)\r\n[ERROR] : TiApplication: \tat android.os.Looper.loop(Looper.java:137)\r\n[ERROR] : TiApplication: \tat android.app.ActivityThread.main(ActivityThread.java:5041)\r\n[ERROR] : TiApplication: \tat java.lang.reflect.Method.invokeNative(Native Method)\r\n[ERROR] : TiApplication: \tat java.lang.reflect.Method.invoke(Method.java:511)\r\n[ERROR] : TiApplication: \tat com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)\r\n[ERROR] : TiApplication: \tat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)\r\n[ERROR] : TiApplication: \tat dalvik.system.NativeStart.main(Native Method)\r\n[ERROR] : TiApplication: Caused by: java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first.\r\n[ERROR] : TiApplication: \tat android.view.ViewGroup.addViewInner(ViewGroup.java:3339)\r\n[ERROR] : TiApplication: \tat android.view.ViewGroup.addView(ViewGroup.java:3210)\r\n[ERROR] : TiApplication: \tat android.view.ViewGroup.addView(ViewGroup.java:3186)\r\n[ERROR] : TiApplication: \tat ti.modules.titanium.ui.widget.TiUITableView.processProperties(TiUITableView.java:155)\r\n[ERROR] : TiApplication: \tat org.appcelerator.kroll.KrollProxy.setModelListener(KrollProxy.java:1185)\r\n[ERROR] : TiApplication: \tat org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:480)\r\n[ERROR] : TiApplication: \tat org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:471)\r\n[ERROR] : TiApplication: \tat org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:449)\r\n[ERROR] : TiApplication: \tat org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:487)\r\n[ERROR] : TiApplication: \tat org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:471)\r\n[ERROR] : TiApplication: \tat org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:449)\r\n[ERROR] : TiApplication: \tat org.appcelerator.titanium.proxy.TiViewProxy.handleAdd(TiViewProxy.java:566)\r\n[ERROR] : TiApplication: \tat org.appcelerator.titanium.proxy.TiViewProxy.add(TiViewProxy.java:544)\r\n[ERROR] : TiApplication: \tat ti.modules.titanium.ui.WindowProxy.windowCreated(WindowProxy.java:303)\r\n[ERROR] : TiApplication: \tat org.appcelerator.titanium.TiActivityWindows.windowCreated(TiActivityWindows.java:32)\r\n[ERROR] : TiApplication: \tat org.appcelerator.titanium.TiBaseActivity.windowCreated(TiBaseActivity.java:452)\r\n[ERROR] : TiApplication: \tat org.appcelerator.titanium.TiBaseActivity.onCreate(TiBaseActivity.java:528)\r\n[ERROR] : TiApplication: \tat org.appcelerator.titanium.TiActivity.onCreate(TiActivity.java:18)\r\n[ERROR] : TiApplication: \tat android.app.Activity.performCreate(Activity.java:5104)\r\n[ERROR] : TiApplication: \tat android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1080)\r\n[ERROR] : TiApplication: \tat android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2144)\r\n[ERROR] : TiApplication: \t... 11 more\r\n\r\n{code}\r\nThanks", "attachment": [], "flagged": false, "summary": "Android: App crashes when using searchBar border properties", "creator": { "name": "morahman", "key": "morahman", "displayName": "Motiur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "subtasks": [], "reporter": { "name": "morahman", "key": "morahman", "displayName": "Motiur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "environment": null, "closedSprints": [ { "id": 230, "state": "closed", "name": "2014 Sprint 21 SDK", "startDate": "2014-10-13T22:00:57.270Z", "endDate": "2014-10-25T00:00:00.000Z", "completeDate": "2014-10-27T16:33:06.432Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "319431", "author": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Issue reproduces\r\n\r\nTitanium Command-Line Interface\r\nCLI version 3.3.0, \r\nTitanium SDK version 3.4.0 master, 3.3.0.GA, 3.2.3.GA\r\nAndroid device : Motorola Moto G, Android version : 4.4.4", "updateAuthor": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-08-20T07:51:36.000+0000", "updated": "2014-08-20T07:51:36.000+0000" }, { "id": "326566", "author": { "name": "ac", "key": "ac", "displayName": "Alvin Charles", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Having the exact same issue. No way to style the search bar :(", "updateAuthor": { "name": "ac", "key": "ac", "displayName": "Alvin Charles", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-10-01T10:37:12.000+0000", "updated": "2014-10-01T10:37:12.000+0000" }, { "id": "327980", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "body": "master PR: https://github.com/appcelerator/titanium_mobile/pull/6212", "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-10-14T05:34:51.000+0000", "updated": "2014-10-14T05:34:51.000+0000" }, { "id": "340653", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Verified fix on:\r\n\r\nMac OSX 10.10.1\r\nAppcelerator Studio, build: 3.4.1.201410281743\r\nTitanium SDK build: 3.6.0.v20150126105739\r\nTitanium CLI, build: 3.4.1\r\nAlloy: 1.5.1\r\nAndroid build tools: 21.1.1\r\nNexus 6 (5.0.1), Nexus 4 (4.4.4)\r\n\r\nUsing the provided code built to both devices. The app no longer crashes \r\n\r\nClosing ticket.", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2015-01-26T23:22:26.000+0000", "updated": "2015-01-26T23:22:26.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }