iOS   发布时间:2022-03-30  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了ios – [AVOutputContext(FigRoutingContext)currentRoutingContextFactory]中的崩溃AVFoundation大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
我们在AVFoundation崩溃了.

AVFoundation
 [AVOutputContext(figRoutIngContext)currentRoutIngContextFactory]

EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x0000000a3c27beb8

Crashed: Thread
0  libobjc.A.dylib                0x183b8c910 objc_msgSend + 16
1  AVFoundation                   0x18a5401bc +[AVOutputContext(figRoutIngContext) currentRoutIngContextFactory] + 56
2  AVFoundation                   0x18a53ae28 +[AVfigRoutIngContextOutputContextImpl sharedAudioPresentationOutputContext] + 28
3  AVFoundation                   0x18a4d0a24 +[AVOutputContext sharedAudioPresentationOutputContext] + 40
4  MediaPlayer                    0x195deb1cc -[MPAVLightweightRoutIngController pickedRoutes] + 68
5  MediaPlayer                    0x195e04338 -[MPVolumeView _setShowsVolumeSlider:] + 96
6  MediaPlayer                    0x195e02ad4 -[MPVolumeView layoutSubviews] + 208
7  UIKit                          0x18e593770 -[UIView(CALayerDelegatE) layoutSublayersOfLayer:] + 1420
8  QuartzCore                     0x188b3525c -[CALayer layoutSublayers] + 184
9  QuartzCore                     0x188b393ec CA::Layer::layout_if_needed(CA::transaction*) + 324
10 QuartzCore                     0x188aa5aa0 CA::Context::commit_transaction(CA::transaction*) + 320
11 QuartzCore                     0x188acd5d0 CA::transaction::commit() + 580
12 QuartzCore                     0x188acdd10 CA::transaction::release_thread(void*) + 244
13 libsystem_pthread.dylib        0x1845e457c _pthread_tsd_cleanup + 572
14 libsystem_pthread.dylib        0x1845e42cc _pthread_exit + 88
15 libsystem_pthread.dylib        0x1845e40d4 _pthread_wqthread + 1472
16 libsystem_pthread.dylib        0x1845e3b08 start_wqthread + 4

Crashlytics写道:

但是我们不在app中使用其他线程.

Crashlytics日志:

初始代码

self.volumeView = MPVolumeView.init(frame: CGRect.init(x: 0,y: 2,width: 52.0,height: 30.0))
self.volumeView?.showsVolumeSlider = false            self.volumeView?.showsRouteButton = true

self.volumeView?.setRouteButtonImage(UIImage.init(named: "streaming_icon"),for: .normal)
self.volumeView?.setRouteButtonImage(UIImage.init(named: "SELEcted_streaming_icon"),for: .SELEcted)

self.volumeView.sizeToFit()

请帮助解决此问题.

解决方法

我联系了Apple,他们已经验证了我的理论,即MPVolumeView在后台线程上执行UI布局更改.

错误报告已创建.

更新2018-05-30:ENGIneering已确定您的错误报告(40594280)是39309134的副本,将被关闭.

大佬总结

以上是大佬教程为你收集整理的ios – [AVOutputContext(FigRoutingContext)currentRoutingContextFactory]中的崩溃AVFoundation全部内容,希望文章能够帮你解决ios – [AVOutputContext(FigRoutingContext)currentRoutingContextFactory]中的崩溃AVFoundation所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。