{ "id": "172308", "key": "MOD-2464", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10034", "key": "MOD", "name": "Appcelerator Modules", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "20371", "name": "Ti.WKWebView 2.8.2", "archived": false, "released": false } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2018-09-20T10:34:23.000+0000", "created": "2018-09-19T21:20:15.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [], "versions": [], "issuelinks": [ { "id": "56860", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "172201", "key": "TIMOB-26391", "fields": { "summary": "iOS: App randomly freezes on iOS 12 beta when using built-in JSCore", "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": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2018-09-20T10:35:30.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [], "attachment": [ { "id": "65620", "filename": "demo_app.zip", "author": { "name": "ianko", "key": "ianko", "displayName": "Ianko Leite", "active": true, "timeZone": "America/New_York" }, "created": "2018-09-19T21:41:39.000+0000", "size": 1847465, "mimeType": "application/zip" } ], "flagged": false, "summary": "iOS: Ti.WKWebView - Crash when not running on main thread", "creator": { "name": "ianko", "key": "ianko", "displayName": "Ianko Leite", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "ianko", "key": "ianko", "displayName": "Ianko Leite", "active": true, "timeZone": "America/New_York" }, "environment": "Ti.WkWebview versions: 2.3.0 AND 2.8.1 (tested on these versions only)\r\nTitanium SDK version: 7.4.0.v20180906093302\r\nXCode Version: 10.0 (10A254a)\r\nPlatform & version: iOS 12.0\r\nDevice Details: iOS simulator\r\nHost Operating System: Mac OS X", "closedSprints": [ { "id": 1073, "state": "closed", "name": "2018 Sprint 19 SDK", "startDate": "2018-09-09T21:02:56.422Z", "endDate": "2018-09-23T21:02:00.000Z", "completeDate": "2018-09-23T22:28:10.932Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "441829", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "We actually fixed this for the Ti.UI.WebView changes (8.0.0) already, where the web-view will be using the WKWebView. [~vsingh] to double-check.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-09-20T09:25:16.000+0000", "updated": "2018-09-20T09:25:16.000+0000" }, { "id": "441834", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "[~ianko] Found the issue and fixed it. There were actual two issues:\r\n1. The iOS 12 WKWebView is still not thread-safe and now causes a crash when initializing from a background-thread (aka kroll-thread in this case)\r\n2. The native handler of the {{evalJS}} method is now called on the main-thread, causing the current synchronous execution to break due to a deadlock in the run-loop used. Developers should use the asynchronous API moving forward, for best performance, no UI-lacks and future-proof apps.\r\n\r\nNew release including detailed release-notes: https://github.com/appcelerator-modules/Ti.WKWebView/releases/tag/v2.8.2\r\n\r\nCheers!", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-09-20T10:34:04.000+0000", "updated": "2018-09-20T10:34:04.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }