Ios WebView中的随机崩溃

Ios WebView中的随机崩溃,ios,Ios,调用堆栈在下面。我有点被难倒了。应用程序会随机崩溃,并使用此调用堆栈。我唯一的线索是它总是在用户处理UIWebView时出现。 这可能是因为我没有消除webview代理,或者正在呈现的页面中的一些视频元素吗?有人见过类似的东西吗? 谢谢 UIWebView是UIViewController中视图的子视图。 viewDidLoad是webView的初始化位置 - (void)viewDidLoad { [super viewDidLoad]; // Do any additi

调用堆栈在下面。我有点被难倒了。应用程序会随机崩溃,并使用此调用堆栈。我唯一的线索是它总是在用户处理UIWebView时出现。 这可能是因为我没有消除webview代理,或者正在呈现的页面中的一些视频元素吗?有人见过类似的东西吗? 谢谢

UIWebView是UIViewController中视图的子视图。 viewDidLoad是webView的初始化位置

- (void)viewDidLoad {   
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    self.webView.delegate = self;
    self.webView.scalesPageToFit = YES;
    [self.webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:self.startingUrl]]];
}


Thread : Crashed: WebThread
0  libobjc.A.dylib                0x0000000197487bd0 objc_msgSend + 16
1  UIKit                          0x000000018a956ad8 -[UIViewAnimationState animationForLayer:forKey:forView:] + 720
2  UIKit                          0x000000018a6c5df4 -[UIViewAnimationState actionForLayer:forKey:forView:] + 44
3  UIKit                          0x000000018a689fec -[UIView(CALayerDelegate) actionForLayer:forKey:] + 140
4  QuartzCore                     0x0000000189fd5378 -[CALayer actionForKey:] + 104
5  QuartzCore                     0x0000000189fca92c actionForKey(CALayer*, CA::Transaction*, NSString*) + 100
6  QuartzCore                     0x0000000189fca798 CA::Layer::begin_change(CA::Transaction*, unsigned int, objc_object*&) + 176
7  QuartzCore                     0x0000000189fcd7f8 CA::Layer::setter(unsigned int, _CAValueType, void const*) + 160
8  QuartzCore                     0x0000000189fd5304 -[CALayer setOpacity:] + 48
9  UIKit                          0x000000018a689a40 -[UIView(Rendering) setAlpha:] + 112
10 MediaPlayer                    0x0000000187f557b0 -[MPVolumeSlider _layoutForAvailableRoutes] + 1448
11 MediaPlayer                    0x0000000187f5413c -[MPVolumeSlider layoutSubviews] + 80
12 UIKit                          0x000000018a68d760 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 580
13 QuartzCore                     0x0000000189fd5e1c -[CALayer layoutSublayers] + 152
14 QuartzCore                     0x0000000189fd0884 CA::Layer::layout_if_needed(CA::Transaction*) + 320
15 UIKit                          0x000000018a6a1f94 -[UIView(Hierarchy) layoutBelowIfNeeded] + 160
16 UIKit                          0x000000018a6a7830 -[UISlider setValue:animated:] + 196
17 MediaPlayer                    0x0000000187f5492c -[MPVolumeSlider volumeController:volumeValueDidChange:] + 92
18 MediaPlayer                    0x0000000187fc7a00 -[MPVolumeController updateVolumeValue] + 260
19 MediaPlayer                    0x0000000187f54284 -[MPVolumeSlider didMoveToSuperview] + 144
20 UIKit                          0x000000018a68c2bc -[UIView(Hierarchy) _postMovedFromSuperview:] + 484
21 UIKit                          0x000000018a6980b0 -[UIView(Internal) _addSubview:positioned:relativeTo:] + 1792
22 MediaPlayer                    0x0000000187f57528 -[MPVolumeView _createSubviews] + 264
23 MediaPlayer                    0x0000000187f55fa8 -[MPVolumeView _initWithStyle:] + 240
24 MediaPlayer                    0x0000000187f56034 -[MPVolumeView initWithFrame:style:] + 88
25 WebCore                        0x0000000194ebd51c -[WebMediaSessionHelper allocateVolumeView] + 192
26 WebCore                        0x0000000194ebd7f8 -[WebMediaSessionHelper initWithCallback:] + 468
27 WebCore                        0x0000000194ebcbf8 WebCore::MediaSessionManageriOS::MediaSessionManageriOS() + 96
28 WebCore                        0x0000000194ebcb68 WebCore::MediaSessionManager::sharedManager() + 56
29 WebCore                        0x0000000194ebb66c WebCore::MediaSession::MediaSession(WebCore::MediaSessionClient&) + 44
30 WebCore                        0x00000001949fb33c WebCore::HTMLMediaSession::create(WebCore::MediaSessionClient&) + 36
31 WebCore                        0x00000001949e3c34 WebCore::HTMLMediaElement::HTMLMediaElement(WebCore::QualifiedName const&, WebCore::Document&, bool) + 1100
32 WebCore                        0x0000000194a1d024 WebCore::HTMLVideoElement::create(WebCore::QualifiedName const&, WebCore::Document&, bool) + 68
33 WebCore                        0x00000001949d0664 WebCore::videoConstructor(WebCore::QualifiedName const&, WebCore::Document&, WebCore::HTMLFormElement*, bool) + 92
34 WebCore                        0x00000001949cf554 WebCore::HTMLElementFactory::createElement(WebCore::QualifiedName const&, WebCore::Document&, WebCore::HTMLFormElement*, bool) + 336
35 WebCore                        0x00000001944af29c WebCore::HTMLDocument::createElement(WTF::AtomicString const&, int&) + 112
36 WebCore                        0x00000001944af198 WebCore::jsDocumentPrototypeFunctionCreateElement(JSC::ExecState*) + 364
37 JavaScriptCore                 0x00000001874a2fb0 llint_entry + 26160
38 JavaScriptCore                 0x00000001874a2b0c llint_entry + 24972
39 JavaScriptCore                 0x00000001874a29dc llint_entry + 24668
40 JavaScriptCore                 0x000000018749c764 callToJavaScript + 308
41 JavaScriptCore                 0x000000018740aac8 JSC::JITCode::execute(JSC::VM*, JSC::ProtoCallFrame*) + 48
42 JavaScriptCore                 0x00000001871568d0 JSC::Interpreter::execute(JSC::ProgramExecutable*, JSC::ExecState*, JSC::JSObject*) + 7652
43 JavaScriptCore                 0x000000018715497c JSC::evaluate(JSC::ExecState*, JSC::SourceCode const&, JSC::JSValue, JSC::JSValue*) + 476
44 WebCore                        0x00000001950496b0 WebCore::ScriptController::evaluateInWorld(WebCore::ScriptSourceCode const&, WebCore::DOMWrapperWorld&) + 284
45 WebCore                        0x00000001944d27c0 WebCore::ScriptController::evaluate(WebCore::ScriptSourceCode const&) + 52
46 WebCore                        0x00000001944d2728 WebCore::ScriptElement::executeScript(WebCore::ScriptSourceCode const&) + 332
47 WebCore                        0x000000019465639c WebCore::ScriptElement::execute(WebCore::CachedScript*) + 184
48 WebCore                        0x000000019504f6e4 WebCore::ScriptRunner::timerFired(WebCore::Timer<WebCore::ScriptRunner>&) + 492
49 WebCore                        0x00000001944a5560 WebCore::ThreadTimers::sharedTimerFiredInternal() + 148
50 WebCore                        0x00000001944a54a4 WebCore::timerFired(__CFRunLoopTimer*, void*) + 36
51 CoreFoundation                 0x0000000185c0812c __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 28
52 CoreFoundation                 0x0000000185c07ddc __CFRunLoopDoTimer + 888
53 CoreFoundation                 0x0000000185c05828 __CFRunLoopRun + 1372
54 CoreFoundation                 0x0000000185b312d4 CFRunLoopRunSpecific + 396
55 WebCore                        0x000000019452c894 RunWebThread(void*) + 468
56 libsystem_pthread.dylib        0x0000000197ca7dc8 _pthread_body + 164
57 libsystem_pthread.dylib        0x0000000197ca7d24 _pthread_body
-(void)viewDidLoad{
[超级视图下载];
//从nib加载视图后,执行任何其他设置。
self.webView.delegate=self;
self.webView.scalesPageToFit=是;
[self.webView加载请求:[nsurlRequestRequestWithURL:[nsurlUrlWithString:self.startingUrl]];
}
线程:崩溃:WebThread
0 libobjc.A.dylib 0x0000000197487bd0 objc_msgSend+16
1 UIKit 0x000000018a956ad8-[UIViewAnimationState animationForLayer:forKey:forView:+720
2 UIKit 0x000000018a6c5df4-[UIViewAnimationState actionForLayer:forKey:forView:+44
3 UIKit 0x000000018a689fec-[UIView(CALayerDelegate)操作层:forKey:+140
4夸脱核心0x0000000189fd5378-[CALayer actionForKey:+104
5夸脱核心0x0000000189fca92c actionForKey(CALayer*,CA::Transaction*,NSString*)+100
6 QuartzCore 0x0000000189fca798 CA::层::开始更改(CA::事务*,无符号整数,对象*&)+176
7 QuartzCore 0x0000000189fcd7f8 CA::Layer::setter(无符号int,_CAValueType,void const*)+160
8夸脱芯0x0000000189fd5304-[CALayer setOpacity:+48
9 UIKit 0x000000018a689a40-[UIView(渲染)setAlpha:+112
10 MediaPlayer 0x0000000187f557b0-[MPVolumesSlider\u可用路由布局]+1448
11 MediaPlayer 0x0000000187f5413c-[MPVolumeSlider布局子视图]+80
12 UIKit 0x000000018a68d760-[UIView(CALayerDelegate)布局层的子层:+580
13夸脱芯0x0000000189fd5e1c-[CALayer layoutSublayers]+152
14夸脱核心0x0000000189fd0884 CA::图层::布局(如果需要)(CA::事务*)+320
15 UIKit 0x000000018a6a1f94-[UIView(层次结构)布局以下需要]+160
16 UIKit 0x000000018a6a7830-[UISlider设置值:动画:][196
17 MediaPlayer 0x0000000187f5492c-[MPVolumeSlider volumeController:volumeValueDidChange:+92
18 MediaPlayer 0x0000000187fc7a00-[MPVolumeController updateVolumeValue]+260
19 MediaPlayer 0x0000000187f54284-[MPVolumeSlider didMoveToSuperview]+144
20 UIKit 0x000000018a68c2bc-[UIView(层次结构)\u postMovedFromSuperview:+484
21 UIKit 0x000000018a6980b0-[UIView(内部)\ U addSubview:定位:相对位置:][1792
22 MediaPlayer 0x0000000187f57528-[MPVolumeView\u createSubviews]+264
23 MediaPlayer 0x0000000187f55fa8-[MPVolumeView\u initWithStyle:+240
24 MediaPlayer 0x0000000187f56034-[MPVolumeView initWithFrame:style::+88
25 WebCore 0x0000000194ebd51c-[WebMediaSessionHelper分配EvolumeView]+192
26 WebCore 0x0000000194ebd7f8-[WebMediaSessionHelper initWithCallback:+468
27 WebCore 0x0000000194ebcbf8 WebCore::MediaSessionManager::MediaSessionManager()+96
28 WebCore 0x0000000194ebcb68 WebCore::MediaSessionManager::sharedManager()+56
29 WebCore 0x0000000194ebb66c WebCore::MediaSession::MediaSession(WebCore::MediaSessionClient&)+44
30 WebCore 0x00000001949fb33c WebCore::HtmlDiseasion::create(WebCore::MediaSessionClient&)+36
31 WebCore 0x00000001949e3c34 WebCore::HTMLMediaElement::HTMLMediaElement(WebCore::QualifiedName常量和,WebCore::Document和,bool)+1100
32 WebCore 0x0000000194a1d024 WebCore::HTMLVideoElement::create(WebCore::QualifiedName const&,WebCore::Document&,bool)+68
33 WebCore 0x00000001949d0664 WebCore::videoConstructor(WebCore::QualifiedName const&,WebCore::Document&,WebCore::HTMLFormElement*,bool)+92
34 WebCore 0x00000001949cf554 WebCore::HTMLElementFactory::createElement(WebCore::QualifiedName const&,WebCore::Document&,WebCore::HTMLFormElement*,bool)+336
35 WebCore 0x00000001944af29c WebCore::HTMLDocument::createElement(WTF::AtomicString const&,int&)+112
36 WebCore 0x00000001944af198 WebCore::jsDocumentPrototypeFunctionCreateElement(JSC::ExecState*)+364
37 JavaScriptCore 0x00000001874a2fb0 llint_条目+26160
38 JavaScriptCore 0x00000001874a2b0c llint_条目+24972
39 JavaScriptCore 0x00000001874a29dc llint_条目+24668
40 JavaScriptCore 0x000000018749c764调用JavaScript+308
41 JavaScriptCore 0x000000018740aac8 JSC::JITCode::execute(JSC::VM*,JSC::ProtoCallFrame*)+48
42 JavaScriptCore 0x00000001871568d0 JSC::解释器::执行(JSC::ProgramExecutable*,JSC::ExecState*,JSC::JSObject*)+7652
43 JavaScriptCore 0x000000018715497c JSC::evaluate(JSC::ExecState*,JSC::SourceCode const&,JSC::JSValue,JSC::JSValue*)+476
44 WebCore 0x00000001950496b0 WebCore::ScriptController::evaluateInWorld(WebCore::ScriptSourceCode常量&,WebCore::DOMWrapperWorld&)+284
45 WebCore 0x00000001944d27c0 WebCore::ScriptController::evaluate(WebCore::ScriptSourceCode常量&)+52
46 WebCore 0x00000001944d2728我们