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

Fatal error: Unexpectedly found nil while implicitly unwrapping an Optional value: file HXPhotoPicker/PhotoPreviewContentVideoView.swift, line 97 2024-06-25 16:46:19.950345+0800 996[21232:6601403] Fatal error: Unexpectedly found nil while implicitly unwrapping an Optional value: file HXPhotoPicker/PhotoPreviewContentVideoView.swift, line 97 #705

Closed
jozdee opened this issue Jun 25, 2024 · 6 comments

Comments

@jozdee
Copy link

jozdee commented Jun 25, 2024

switch photoAsset.mediaSubType { 崩溃:Thread 1: Fatal error: Unexpectedly found nil while implicitly unwrapping an Optional value
引入项目后:
操作复现方式:选择视频,点击编辑进去一下,在退出或者确定都能复现

但是在demo又无法复现,麻烦作者做一下容错处理

@jozdee
Copy link
Author

jozdee commented Jun 25, 2024

WX20240625-175908@2x
使用redBookConfig 崩溃

@SilenceLove
Copy link
Owner

在主线程调用

@jozdee
Copy link
Author

jozdee commented Jun 26, 2024

在主线程调用

希望大佬有时间能将SystemCameraViewController像CameraController一样暴露出去给oc来使用,因为发现在iPhone6等机型上用SystemCameraViewController获取画面的速度快很多

@Wuou
Copy link
Contributor

Wuou commented Jul 1, 2024

一模一样的crash,选择照片后进入预留页面退出后直接crash。demo不会

@jozdee
Copy link
Author

jozdee commented Jul 1, 2024

一模一样的crash,选择照片后进入预留页面退出后直接crash。demo不会

增加判断解决了,应该是上面强制解包造成的

guard let photoAsset = photoAsset else {

return

}

@Wuou
Copy link
Contributor

Wuou commented Jul 1, 2024

一模一样的crash,选择照片后进入预留页面退出后直接crash。demo不会

增加判断解决了,应该是上面强制解包造成的

guard let photoAsset = photoAsset else {

return

}

是的 我也是这么处理的。。

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