{ "id": "81208", "key": "TIMOB-5461", "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": "12080", "description": "", "name": "Sprint 2011-40", "archived": true, "released": true, "releaseDate": "2011-10-10" }, { "id": "11331", "description": "", "name": "Release 1.8.0", "archived": true, "released": true, "releaseDate": "2011-10-31" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-01-05T15:22:26.000+0000", "created": "2011-10-06T14:15:43.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "honeycomb", "module_views", "qe-testadded", "stage" ], "versions": [ { "id": "11570", "description": "", "name": "Release 1.7.2", "archived": true, "released": true, "releaseDate": "2011-07-21" } ], "issuelinks": [ { "id": "22920", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "105206", "key": "TIMOB-11822", "fields": { "summary": "Android: Views - Red boarder is not visible on Motorola RAZR i", "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" } }, "priority": { "name": "Low", "id": "4" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2012-11-19T18:44:31.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": "Honeycomb introduced hardware acceleration which can be turned on with a setting in the node of AndroidManifest.xml. When it's turned on, and a view has a borderRadius set (> 0), the app crashes because we use clipPath, which is not supported with hw accel. (cf http://android-developers.blogspot.com/2011/03/android-30-hardware-acceleration.html).\r\n\r\nRe-creation steps:\r\n\r\n* Create an app.\r\n* Make the tiapp.xml's section so:\r\n\r\n{code:title=tiapp.xml}\r\n\t\r\n\t\t11\r\n\t\t\r\n\t\t\t\r\n\t\t\r\n\t\r\n{code}\r\n\r\n* Make the app.js so:\r\n\r\n{code:title=app.js}\r\nTitanium.UI.setBackgroundColor('#000');\r\nvar win = Titanium.UI.createWindow({ \r\n title:'Test',\r\n backgroundColor:'#000',\r\n\texitOnClose: true\r\n});\r\n\r\nwin.add(Ti.UI.createView({\r\n\tbackgroundColor: \"blue\",\r\n\tborderColor: \"red\",\r\n\tborderWidth: 10,\r\n\tborderRadius: 5,\r\n\tleft: \"10dp\",\r\n\tright: \"10dp\",\r\n\ttop: \"50dp\",\r\n\theight: \"200dp\"\r\n}));\r\n\r\nwin.open();\r\n{code}\r\n\r\n* Run the app on the honeycomb device and it will crash. (When testing the fix, it should not crash of course.).\r\n\r\nTypical crash logcat entry looks like:\r\n\r\n{code}\r\nE/AndroidRuntime(26499): java.lang.UnsupportedOperationException\r\nE/AndroidRuntime(26499): \tat android.view.GLES20Canvas.clipPath(GLES20Canvas.java:287)\r\nE/AndroidRuntime(26499): \tat org.appcelerator.titanium.view.TiBackgroundDrawable.draw(TiBackgroundDrawable.java:73)\r\nE/AndroidRuntime(26499): \tat android.view.View.draw(View.java:9264)\r\n... (etc)\r\n{code}\r\n\r\n", "attachment": [], "flagged": false, "summary": "Android: View with border radius crashes Honeycomb when hardware acceleration on", "creator": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Titanium 1.7.2 or 1.8.0, Android 3.0 or above", "comment": { "comments": [ { "id": "168169", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "Pull req ready\r\nhttps://github.com/appcelerator/titanium_mobile/pull/534", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-10-06T14:24:37.000+0000", "updated": "2011-10-06T14:24:37.000+0000" }, { "id": "175091", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with 1.8.0.1.v20111205164258 v8/rhino on\r\nGalaxy 10.1 (3.1)\r\nDroid 1 (2.2.2)\r\nNexus S (2.3.6)\r\nEmulator (4.0)", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-06T16:16:09.000+0000", "updated": "2011-12-06T16:16:09.000+0000" }, { "id": "178222", "author": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening/closing to add/remove labels", "updateAuthor": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-05T15:22:05.000+0000", "updated": "2012-01-05T15:22:05.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }