WKWebView play video crash on some Model

When I opened the video in HTML, it crashed when I started playing it。 Here is my app crash report:

Code Block
0
CoreFoundation
HALT + 2
arrow_right
1
QuartzCore
CA::Layer::setter(unsigned int, _CAValueType, void const*) + 252
2
QuartzCore
-[CALayer setBackgroundColor:] + 56
3
QuartzCore
-[CAStateSetValue apply:] + 620
4
QuartzCore
-[CAStateController setState:ofLayer:transitionSpeed:] + 1364
5
AVKit
-[AVMicaPackage transitionToStateWithName:onLayer:] + 144
6
AVKit
-[AVMicaPackage transitionToStateWithName:] + 92
7
AVKit
-[AVMicaPackage _setState:] + 108
8
AVKit
-[AVMicaPackage setState:color:] + 116
9
AVKit
-[AVPlaybackControlsRoutePickerView updateButtonAppearance] + 204
10
AVKit
-[AVRoutePickerView layoutSubviews] + 632
11
UIKitCore
-[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 2500
12
QuartzCore
-[CALayer layoutSublayers] + 296
13
QuartzCore
CA::Layer::layout_if_needed(CA::Transaction*) + 524
14
QuartzCore
CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 144
15
QuartzCore
CA::Context::commit_transaction(CA::Transaction*, double, double*) + 416
16
QuartzCore
CA::Transaction::commit() + 732
17
QuartzCore
CA::Transaction::observer_callback(CFRunLoopObserver*, unsigned long, void*) + 96
18
CoreFoundation
CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION + 36
19
CoreFoundation
CFRunLoopDoObservers + 576
20
CoreFoundation
CFRunLoopRun + 1056
21
CoreFoundation
CFRunLoopRunSpecific + 600
22
GraphicsServices
GSEventRunModal + 164
23
UIKitCore
-[UIApplication _run] + 1072
24
UIKitCore
UIApplicationMain + 168
25
AXNews
main.m - 第 15 行
main + 15
26
libdyld.dylib
start + 4


I have the same problem, do you have a solution?

I have the same problem, do you have a solution?

thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BREAKPOINT (code=1, subcode=0x191fe3988)

 * frame #0: 0x0000000191fe3988 CoreFoundation__HALT   frame #1: 0x0000000198bd008c QuartzCoreCA::Layer::setter(unsigned int, _CAValueType, void const*) + 240   frame #2: 0x0000000198bcb54c QuartzCore-[CALayer setBackgroundColor:] + 52   frame #3: 0x0000000198be4fb4 QuartzCore-[CAStateSetValue apply:] + 616   frame #4: 0x0000000198c7169c QuartzCore-[CAStateController setState:ofLayer:transitionSpeed:] + 1352   frame #5: 0x00000001a0a2cd6c AVKit-[AVMicaPackage transitionToStateWithName:onLayer:] + 140   frame #6: 0x00000001a0a2ccc4 AVKit-[AVMicaPackage transitionToStateWithName:] + 88   frame #7: 0x00000001a0a2c704 AVKit-[AVMicaPackage _setState:] + 104   frame #8: 0x00000001a0a2c538 AVKit-[AVMicaPackage setState:color:] + 112   frame #9: 0x00000001a09e87e0 AVKit-[AVPlaybackControlsRoutePickerView updateButtonAppearance] + 196   frame #10: 0x00000001a0a49c04 AVKit__71-[AVPlaybackControlsController _bindInclusionOfControlItems:toKeyPath:]_block_invoke + 228   frame #11: 0x00000001a0a49b10 AVKit__109-[AVPlaybackControlsController _observeBoolForKeyPath:usingKeyValueObservationController:observationHandler:]_block_invoke + 72   frame #12: 0x00000001a0a08b8c AVKit__105-[AVObservationController startObserving:keyPaths:includeInitialValue:includeChanges:observationHandler:]_block_invoke + 248   frame #13: 0x00000001a0a09808 AVKit-[AVProxyKVOObserver _handleValueChangeForKeyPath:ofObject:oldValue:newValue:context:] + 176   frame #14: 0x00000001a0a09708 AVKit-[AVProxyKVOObserver observeValueForKeyPath:ofObject:change:context:] + 236   frame #15: 0x0000000192480afc FoundationNSKeyValueNotifyObserver + 288   frame #16: 0x0000000192482ad8 FoundationNSKeyValueDidChange + 336   frame #17: 0x0000000192482560 Foundation-[NSObject(NSKeyValueObservingPrivate) _changeValueForKeys:count:maybeOldValuesDict:maybeNewValuesDict:usingBlock:] + 624   frame #18: 0x00000001923d2bc4 Foundation-[NSObject(NSKeyValueObservingPrivate) _changeValueForKey:key:key:usingBlock:] + 68   frame #19: 0x000000019247d598 Foundation_NSSetBoolValueAndNotify + 288   frame #20: 0x00000001a0a4a3cc AVKit__52-[AVPlaybackControlsController startUpdatesIfNeeded]_block_invoke + 88   frame #21: 0x00000001a0a08778 AVKit__106-[AVObservationController startObservingNotificationForName:object:notificationCenter:observationHandler:]_block_invoke + 140   frame #22: 0x00000001923b5f30 Foundation-[__NSObserver _doit:] + 316   frame #23: 0x0000000192021504 CoreFoundationCFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER + 20   frame #24: 0x000000019202154c CoreFoundation___CFXRegistrationPost1_block_invoke + 64   frame #25: 0x00000001920208a4 CoreFoundation_CFXRegistrationPost1 + 368   frame #26: 0x000000019202057c CoreFoundation___CFXNotificationPost_block_invoke + 88   frame #27: 0x0000000191f9d2d4 CoreFoundation-[_CFXNotificationRegistrar find:object:observer:enumerator:] + 1412   frame #28: 0x000000019201fedc CoreFoundation_CFXNotificationPost + 1236   frame #29: 0x000000019238d974 Foundation-[NSNotificationCenter postNotificationName:object:userInfo:] + 60   frame #30: 0x00000001a09c6378 AVKit__56+[AVRouteDetectorCoordinator setMultipleRoutesDetected:]_block_invoke + 104   frame #31: 0x0000000117602338 libdispatch.dylib_dispatch_call_block_and_release + 24   frame #32: 0x0000000117603730 libdispatch.dylib_dispatch_client_callout + 16   frame #33: 0x0000000117611710 libdispatch.dylib_dispatch_main_queue_callback_4CF + 976   frame #34: 0x00000001920436bc CoreFoundation__CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12   frame #35: 0x000000019203e590 CoreFoundation__CFRunLoopRun + 1724   frame #36: 0x000000019203dba8 CoreFoundationCFRunLoopRunSpecific + 424   frame #37: 0x000000019c1ad344 GraphicsServicesGSEventRunModal + 160   frame #38: 0x00000001961793e4 UIKitCoreUIApplicationMain + 1932   frame #39: 0x0000000103403e04 MyChevymain(argc=1, argv=0x000000016d1b3790) at main.m:17:16   frame #40: 0x0000000191ec58f0 libdyld.dylib`start + 4 (lldb)  I have the same problem, do you have a solution?

WKWebView play video crash on some Model
 
 
Q