HXImagePicker icon indicating copy to clipboard operation
HXImagePicker copied to clipboard

崩溃:首次运行demo->选择照片->拍照->使用照片

Open Juice007 opened this issue 8 years ago • 7 comments

崩溃日志:

2016-12-24 17:34:15.625622 HXImagePickerDemo[9698:2285781] 
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** 
-[__NSPlaceholderArray initWithObjects:count:]: attempt to insert nil object from objects[0]'

仅首次运行demo会崩溃! 崩溃情况还原: 首次运行demo -> 选择照片和选择视频 -> 添加照片 -> 相机 -> 拍照 -> 使用照片 -> 崩溃 点击”使用照片“后会弹出”正在保存“的HUD,自动保存照片到相册,然后会弹出请求访问相册的Alert,这个时候就crash了 截图:

比较了很多网上选择图片的框架,觉得这个是最好用的,也用在了公司项目中,但是最近测试发现了这个bug,来下载demo也出现了这个bug,希望作者可以检查一下呢!🙃🙃🙃🙂🙂🙂 Merry Christmas Eve~~

Juice007 avatar Dec 24 '16 09:12 Juice007

app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSPlaceholderArray initWithObjects:count:]: attempt to insert nil object from objects[0]'

lzc1022 avatar Dec 26 '16 02:12 lzc1022

我也重新下了一次,然后真机调试 拍照没有出现你说的这个问题...

SilenceLove avatar Dec 26 '16 07:12 SilenceLove

我看了看后台友盟的分析数据,发生这个问题的全部是iOS10,我找了一个iOS9的手机测试,也是正常的。

Juice007 avatar Dec 27 '16 08:12 Juice007

你加我QQ说吧 294005139

SilenceLove avatar Dec 27 '16 08:12 SilenceLove

我也发现了这个bug,和上面描述的一模一样,必须用一个新的手机,第一次运行

malandiwang avatar Dec 28 '16 09:12 malandiwang

公司项目使用。Masonry布局时在,xcoe8 ,iOS10.2下拍照之后,再选择一个照片之后崩溃,崩溃位置: for (int i = 0; i < assetManager.selectedPhotos.count; i ++) { HX_PhotoModel *modelPH = assetManager.selectedPhotos[i];

        if (modelPH.tableViewIndex == _cellIndex) {
            [collectionView scrollToItemAtIndexPath:[NSIndexPath indexPathForItem:modelPH.collectionViewIndex inSection:0] atScrollPosition:UICollectionViewScrollPositionCenteredVertically animated:NO];
            break;
        }

这时_cellIndex 值为10.

JsonFu avatar Mar 01 '17 19:03 JsonFu

这个问题解决了吗?第一次运行 使用相机拍照 会出现crash

AlasKuNull avatar Apr 24 '17 02:04 AlasKuNull