You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Deadlock in main thread due to EPUBNavigatorViewController.viewDidLoad calling Resource.read via publication.positions with a DefaultHTTPClient-based Fetcher.
Since Resource.read blocks while waiting for a result, and the result can't be processed while the main thread is blocked, this freezes the whole app.
A workaround is to cache the result by calling let _ = publication.positions from a background thread before creating the EPUBNavigatorViewController, presumably preventing later calls of publication.positions from calling Resource.read.