我有一个随机UIWebView使用崩溃iOS8.1和UIWebView,使用iPhone5的.在我的测试中,崩溃不会出现在iOS7上.
我创建了这个github存储库来重现崩溃:https: //github.com/crarau/WebViewCrash
基本上我正在添加一个UIWebView并加载www.amazon.com
随机的应用程序崩溃的上WebThread与EXC_ARM_BREAKPOINT
在控制台上启用Zombie跟踪后,会显示以下消息:
[UIViewAnimationState release]: message sent to deallocated instance 0x14deff70
Run Code Online (Sandbox Code Playgroud)
这里UIView加载时会发生什么:
[super viewDidLoad];
NSURLRequest * urlRequest = [NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.amazon.com"]];
self.webView.layer.cornerRadius = 0;
self.webView.userInteractionEnabled = YES;
self.webView.multipleTouchEnabled = YES;
self.webView.backgroundColor = [UIColor clearColor];
self.webView.scrollView.scrollEnabled = NO;
self.webView.scrollView.bounces = NO;
[self.webView loadRequest:urlRequest];
Run Code Online (Sandbox Code Playgroud)
异常堆栈跟踪:
Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000001, 0x000000000000defe
Triggered by Thread: 2
Thread …Run Code Online (Sandbox Code Playgroud)