{ "id": "63215", "key": "TIMOB-2583", "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": "11234", "name": "Release 1.6.0 M01", "archived": true, "released": true, "releaseDate": "2010-12-20" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:59:31.000+0000", "created": "2011-04-15T03:23:27.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "android", "defect", "release-1.6.0", "webview" ], "versions": [], "issuelinks": [], "assignee": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2011-04-17T01:59: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": "{html}

To reproduce, here is some code for a window:

\n
\nvar win = Ti.UI.currentWindow;\nvar wv = Ti.UI.createWebView({url: 'http://www.google.com'});\nwv.addEventListener('load', function(e) {\n    wv.evalJS('Mickey'); // ReferenceError in browser JS\n});\nwin.add(wv);\n
\n

In the fail-case, that should lock up your application pretty\ngood!

{html}", "attachment": [], "flagged": false, "summary": "Android: Webview evalJS causes a never-released semaphore lock (and thread lockup) if JS code contains error ", "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": null, "comment": { "comments": [ { "id": "128852", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "{html}

(from [c84d12e41cedeba00f5fd825ca21fd0fcc175d06])\n[#2583 state:fixed-in-qa]Catch JS exceptions in\ngetJSValue and return empty string like iOS \nhttps://github.com/appcelerator/titanium_mobile/commit/c84d12e41ced...

{html}", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-04-15T03:23:27.000+0000", "updated": "2011-04-15T03:23:27.000+0000" }, { "id": "128853", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "{html}

(from [597a4878af606e255811964cc5cbc9b93df5dfb2])\n[#2583] drillbit unit test for evalJS lockup\n\nhttps://github.com/appcelerator/titanium_mobile/commit/597a4878af60...

{html}", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-04-15T03:23:28.000+0000", "updated": "2011-04-15T03:23:28.000+0000" }, { "id": "128854", "author": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

[INFO] Titanium SDK version: 1.6.0 (01/04/11\n08:01 e49700d), code did not lock up app 2.2.1, (droid 1) 1.6\nG1

{html}", "updateAuthor": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:23:28.000+0000", "updated": "2011-04-15T03:23:28.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }