longitachi / ZLPhotoBrowser

Wechat-like image picker. Support select photos, videos, gif and livePhoto. Support edit image and crop video. 微信样式的图片选择器,支持预览/相册内拍照及录视频、拖拽/滑动选择,编辑图片/视频,支持多语言国际化等功能;
MIT License
4.72k stars 953 forks source link

ZLThumbnailViewController.collectionView(_:didSelectItemAt:) crash #768

Closed iLiuChang closed 1 year ago

iLiuChang commented 1 year ago

偶现

ZLPhotoBrowser 版本: 4.3.6

firebase设备信息

image

firebase闪退信息

image

Xcode Crashes 信息 Exception Type: EXC_BREAKPOINT (SIGTRAP) Exception Codes: 0x0000000000000001, 0x00000001053f93f4 Exception Note: EXC_CORPSE_NOTIFY Termination Reason: SIGNAL 5 Trace/BPT trap: 5 Terminating Process: exc handler [60083] image

liulishuo commented 1 year ago

我这也有类似的日志上报,都是在数组通过下标索引取值时崩溃,很容易联想到是不是index越界了,但为什么不直接显示数组越界的崩溃信息呢?

longitachi commented 1 year ago

下个版本优化下,加一个下标判断