{ "id": "131123", "key": "TIMOB-17244", "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": "2014-06-02T01:52:00.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [ "reprod" ], "versions": [ { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" } ], "issuelinks": [], "assignee": null, "updated": "2018-02-28T20:03:40.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": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "h4. Problem Description\r\nWhen using border-related attributes in Search View, the app crashes\r\n\r\nh4. Testcase\r\n1. Create a new mobile project (classic titanium)\r\n2. Add this code to the app.js\r\n{code}\r\nvar win = Ti.UI.createWindow({});\r\nvar searchingView = Ti.UI.Android.createSearchView({\r\n\tborderColor : \"#000000\", //cause crash\r\n\tborderRadius : 5, //cause crash\r\n\tborderWidth : 1, //cause crash\r\n\tbackgroundColor : \"#E5E4E2\",\r\n\tsearchAsChild : true\r\n});\r\n\r\nvar myTemplate = {\r\n\tchildTemplates : [{\r\n\t\ttype : 'Ti.UI.Label',\r\n\t\tbindId : \"title\",\r\n\t\tproperties : {\r\n\t\t\twidth : Ti.UI.SIZE,\r\n\t\t\theight : 44,\r\n\t\t\tleft : 10,\r\n\t\t\tfont : {\r\n\t\t\t\tfontFamily : \"Arial\",\r\n\t\t\t\tfontWeight : \"normal\",\r\n\t\t\t\tfontSize : 14\r\n\t\t\t},\r\n\t\t\tcolor : \"#6d6e76\"\r\n\t\t}\r\n\t}]\r\n};\r\n\r\nvar listView = Ti.UI.createListView({\r\n\ttop : 0,\r\n\ttemplates : {\r\n\t\t'template' : myTemplate\r\n\t},\r\n\tdefaultItemTemplate : 'template',\r\n\tseparatorInsets : {\r\n\t\tleft : 0,\r\n\t\tright : 0\r\n\t},\r\n\tbackgroundColor : \"#FFFFFF\",\r\n\tseparatorColor : \"#848482\",\r\n\tsearchView : searchingView\r\n});\r\nvar sections = [];\r\n\r\nvar fruitSection = Ti.UI.createListSection();\r\nvar fruitDataSet = [{\r\n\tproperties : {\r\n\t\t\"searchableText\" : \"Row One\",\r\n\t},\r\n\ttitle : {\r\n\t\t\"text\" : \"Row One\"\r\n\t}\r\n}];\r\nfruitSection.setItems(fruitDataSet);\r\nsections.push(fruitSection);\r\n\r\nlistView.setSections(sections);\r\n\r\nwin.setBackgroundColor(\"e2e2e2\");\r\n\r\nwin.add(listView);\r\nwin.open();\r\n{code}\r\n\r\nh4. Expected Result\r\nSet border properties for searchView\r\n\r\nh4. Actual Result\r\nCrash the app\r\n\r\nh4. Extra info\r\n{code}\r\n TiApplication: (main) [152,890] Sending event: exception on thread: main msg:java.lang.RuntimeException: Unable to start activity ComponentInfo{com.negoapps.searchcrash/org.appcelerator.titanium.TiTranslucentActivity}: java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first.; Titanium 3.3.0,2014/05/24 22:42,baea217\r\n[ERROR] : TiApplication: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.negoapps.searchcrash/org.appcelerator.titanium.TiTranslucentActivity}: java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first.\r\n[ERROR] : \r\n{code}", "attachment": [], "flagged": false, "summary": "Android: When using border-related attributes in Search View, the app crashes", "creator": { "name": "jialhe85@gmail.com", "key": "jialhe85@gmail.com", "displayName": "David He", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jialhe85@gmail.com", "key": "jialhe85@gmail.com", "displayName": "David He", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Ti SDK 3.2.0 - possibly in 3.2.2/3.2.3\r\nSamsung Galaxy S3 \r\nAndroid Sys version : 4.3", "comment": { "comments": [ { "id": "311560", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "Thanks for your report. The priority will be set by the Platform team. ", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2014-06-30T06:46:31.000+0000", "updated": "2014-06-30T06:46:31.000+0000" }, { "id": "320561", "author": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Issue reproduces\r\n\r\nTitanium SDK version 3.4.0 master, 3.3.0.GA\r\nTitanium Studio, build: 3.3.0.201407100905\r\nTitanium Command-Line Interface\r\nCLI version 3.3.0, \r\nAndroid device : Samsung Galaxy S3, Android version : 4.3", "updateAuthor": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-08-27T12:50:02.000+0000", "updated": "2014-08-27T12:50:02.000+0000" }, { "id": "340143", "author": { "name": "rborn", "key": "rborn", "displayName": "Dan Tamas", "active": true, "timeZone": "Europe/Berlin" }, "body": "This is still an issue with 3.5.0\r\nAlloy code:\r\n\r\n{code}\r\n\t\t\r\n\r\n\t \t\t\r\n\t \t\t\r\n\r\n \r\n{code}\r\n\r\ntss:\r\n{code}\r\n'.contactSearch':{\r\n\tborderColor:Alloy.CFG.theme.colors.breadcrumbs_bg,\r\n}\r\n{code}\r\n\r\nIf I remove the borderColor in tss it doesn't crash anymore.", "updateAuthor": { "name": "rborn", "key": "rborn", "displayName": "Dan Tamas", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-01-21T19:11:04.000+0000", "updated": "2015-01-21T19:11:04.000+0000" }, { "id": "423012", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I am able to reproduce this issue with the following environment;\r\nPixel (7.1)\r\nTi SDK 6.1.1.v20170626160851\r\nAppc NPM 4.2.9\r\nAppc CLI 6.2.2\r\nTi CLI 5.0.14\r\nAlloy 1.9.11\r\nXcode 8.2 (8C38)\r\nNode v4.8.2\r\nJava 1.8.0_131", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-06-27T22:13:38.000+0000", "updated": "2017-06-27T22:13:38.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }