yeatse / NSURLProtocol-WebKitSupport

Make your WKWebView happy with NSURLProtocol
MIT License
663 stars 126 forks source link

使用这个分类造成崩溃 #9

Open paintingStyle opened 6 years ago

paintingStyle commented 6 years ago

偶尔会出现崩溃的, Crashlytics崩溃日志如下: 0 | WebKit | WebKit::LegacyCustomProtocolManagerProxy::stopLoading(unsigned long long) + 20 1 | CFNetwork | __65-[NSURLConnectionInternal _withConnectionAndDelegate:onlyActive:]_block_invoke + 60 2 | CFNetwork | -[NSURLConnectionInternal _withConnectionAndDelegate:onlyActive:] + 200 3 | CFNetwork | -[NSURLConnectionInternal _withActiveConnectionAndDelegate:] + 56 4 | CFNetwork | invocation function for block in URLConnectionClient_Classic::_delegate_didFinishLoading(void () block_pointer) + 100 5 | CFNetwork | invocation function for block in URLConnectionClient_Classic::_withDelegateAsync(char const, void (_CFURLConnection, CFURLConnectionClientCurrent_VMax const*) block_pointer) + 108 6 | libdispatch.dylib |  

2018-05-19 4 55 54
yeatse commented 6 years ago

看起来有点像 #2 的问题,你看看把 WKWebView 所使用的 WKProcessPool 设置成单例是否OK

monzy613 commented 6 years ago

@paintingStyle 这个问题你把WKProcessPool设置成单例试过了吗 我貌似还会出现这个问题

tianwenshi commented 5 years ago

试了,可以的

tianwenshi commented 5 years ago

给力

wangjunhua1 commented 5 years ago

@paintingStyle 这个问题你把WKProcessPool设置成单例试过了吗 我貌似还会出现这个问题

请问这个WKProcessPool 我在项目中完全没有用到 怎么设置成单例呢 ?能具体一点吗?