Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AVCaptureSession startRunning] should be called from background thread. Calling it on the main thread can lead to UI unresponsiveness #119

Open
viihua opened this issue Dec 9, 2022 · 6 comments

Comments

@viihua
Copy link

viihua commented Dec 9, 2022

image

@viihua
Copy link
Author

viihua commented Dec 9, 2022

Xcode14.1&iOS16.1.2

@JJXYZ
Copy link

JJXYZ commented Feb 2, 2023

我也碰到这个问题,还在研究中

@viihua
Copy link
Author

viihua commented Feb 2, 2023

我也碰到这个问题,还在研究中

Xcode14的警告,不在主线程调用就行

@MZC0829
Copy link

MZC0829 commented Apr 24, 2023

XCode14.3 & iOS16.0 也提示这个

等待大佬加入这个
func start() {
if !session.isRunning {
isNeedScanResult = true
DispatchQueue.global(qos: .background).async {
self.session.startRunning()
}
}
}

@viihua
Copy link
Author

viihua commented Apr 24, 2023

别用14.3打包,14.3运行的包,在iOS13上单独运行必崩。

@viihua viihua closed this as completed Apr 24, 2023
@viihua viihua reopened this Apr 24, 2023
@MZC0829
Copy link

MZC0829 commented Apr 25, 2023

别用14.3打包,14.3运行的包,在iOS13上单独运行必崩。

好的好的,感谢提醒

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants