[GatekeeperXPC] Connection to assetsd was interrupted or assetsd died

项目中collectionView通过获取的4K录像文件的IDR帧时候,每帧大概有2-4M,在iphone 6上连续加载显示内存会上升但过会就释放了.最后还是会提示如上而崩溃.

我的第一感觉是Image文件过大,频繁调度会被ios认为不安全,所以在显示缩略图的时候就改为了width/height比的screen width值处理,这样的文件不过100K.

   UIGraphicsBeginImageContext(CGSizeMake(KWidth, KWidth * image.size.height/image.size.width));

    [image drawInRect:CGRectMake(0, 0,KWidth , KWidth * image.size.height/image.size.width)];

    UIImage *imageNew = UIGraphicsGetImageFromCurrentImageContext();

    UIGraphicsEndImageContext();

posted @ 2018-07-12 10:00  象棋中的象棋  阅读(1784)  评论(0编辑  收藏  举报