{ "id": "64106", "key": "TIMOB-3474", "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": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2017-01-03T11:20:58.000+0000", "created": "2011-04-15T03:45:40.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-23T21:15: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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "{html}

I have a table view with a form and on submit it brings the user\nto a webview that shows results. That works great. But when the\nuser goes BACK to the form. It appears for a second and then\ncrashes with the following result. This was working great in\nversions prior to 1.6 but since 1.6 its been crashing.
\n
\n2011-03-18 22:04:56.252 APPNAME [58306:7003] bool\n_WebTryThreadLock(bool),
\n0x6c64cc0: Tried to obtain the web lock from a thread other than\nthe main thread or the web
\nthread. This may be a result of calling to UIKit from a secondary\nthread. Crashing now...

\n

Note that this bug only happens when on click I was creating\nwindow object and then use an JS file for the url parameter and\nopening the window. When that window opens the JS file, that file\nused the current window and built the webview.

\n

That used to work fine but now when I go BACK from that webview\nto the prev screen I'd get the _webtrythreadlock error.

\n

So what I did was remove the JS file and simply create the\nwebview on the click event instead. I like to keep things clean and\nuse JS files to keep things organized but In this case its causing\nthe crash it seems.

\n

This is happening in v1.6 and v1.7. I hope I'm correct and this\nhelps. Thanks

{html}", "attachment": [], "flagged": false, "summary": "_WebTryThreadLock Crash when going BACK from WebView window", "creator": { "name": "fishnyc", "key": "fishnyc", "displayName": "fishnyc", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "fishnyc", "key": "fishnyc", "displayName": "fishnyc", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "165527", "author": { "name": "slim.mckins", "key": "slim.mckins", "displayName": "Slim McKinsley", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Use case:\r\nhttp://pastie.org/2509737\r\n\r\nFor additional info, see this Q&A post:\r\nhttp://developer.appcelerator.com/question/117475/webtrythreadlock-crash-when-going-back-from-webview-window", "updateAuthor": { "name": "slim.mckins", "key": "slim.mckins", "displayName": "Slim McKinsley", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-09-09T11:12:42.000+0000", "updated": "2011-09-09T11:12:42.000+0000" }, { "id": "403977", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Not reproducible in recent versions of the SDK (6.0.1.GA / 6.1.0 master).", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-01-03T11:20:58.000+0000", "updated": "2017-01-03T11:20:58.000+0000" }, { "id": "415384", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Can verify this ticket as \"Cannot Reproduce\". Tested with the following environment;\r\niPhone 7 and Simulator (10.2)\r\nMacOS 10.11.6 (15G31)\r\nStudio 4.8.1.201612050850\r\nTi SDK 6.0.3 GA\r\nAppc NPM 4.2.8\r\nAppc CLI 6.1.0\r\nTi CLI 5.0.11\r\nAlloy 1.9.5\r\nArrow 1.10.1\r\nXcode 8.2 (8C38)\r\nNode v4.6.0\r\nJava 1.7.0_80", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-23T21:15:02.000+0000", "updated": "2017-03-23T21:15:02.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }