[MOD-2464] iOS: Ti.WKWebView - Crash when not running on main thread
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Resolved |
Resolution | Fixed |
Resolution Date | 2018-09-20T10:34:23.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Ti.WKWebView 2.8.2 |
Components | n/a |
Labels | n/a |
Reporter | Ianko Leite |
Assignee | Hans Knöchel |
Created | 2018-09-19T21:20:15.000+0000 |
Updated | 2018-09-20T10:35:30.000+0000 |
Description
Attachments
File | Date | Size |
---|---|---|
demo_app.zip | 2018-09-19T21:41:39.000+0000 | 1847465 |
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.
[~ianko] Found the issue and fixed it. There were actual two issues: 1. 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) 2. 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. New release including detailed release-notes: https://github.com/appcelerator-modules/Ti.WKWebView/releases/tag/v2.8.2 Cheers!