plus.gallery.pick选择单张照片,选择一张照片,点击完成
- 发布:2021-08-31 19:04
- 更新:2021-09-03 20:00
- 阅读:785
产品分类: uniapp/App
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: 10
HBuilderX类型: 正式
HBuilderX版本号: 3.2.3
手机系统: iOS
手机系统版本号: IOS 14
手机厂商: 苹果
手机机型: 12 pro max
页面类型: vue
打包方式: 离线
项目创建方式: HBuilderX
操作步骤:
预期结果:
返回上传图片
返回上传图片
实际结果:
崩溃,空指针
崩溃,空指针
bug描述:
plus.gallery.pick选择照片,崩溃如图所示,选择单张照片,点击完成即崩溃,日志如下:
DCTZImagePickerController.bundle 和 inc/DCTZImagePickerController/ 文件夹都已添加,iOS系统相册权限已给,
2021-08-31 18:40:10.668521+0800 TeacherTrain[44665:14670327] Failed to load font: 未能完成操作。(com.apple.CoreText.CTFontManagerErrorDomain错误105 - Could not register the CGFont '<CGFont (0x2818e4200): io_dcloud_5app_titlenview_iconfont>')
2021-08-31 18:40:16.870056+0800 TeacherTrain[44665:14670327] Metal GPU Frame Capture Enabled
2021-08-31 18:40:16.877098+0800 TeacherTrain[44665:14670327] Metal API Validation Enabled
2021-08-31 18:40:16.954915+0800 TeacherTrain[44665:14670327] fopen failed for data file: errno = 2 (No such file or directory)
2021-08-31 18:40:16.955122+0800 TeacherTrain[44665:14670327] Errors found! Invalidating cache...
2021-08-31 18:40:17.038534+0800 TeacherTrain[44665:14671327] Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: ' -[NSArrayM insertObject:atIndex:]: object cannot be nil'
First throw call stack:
(0x1a899e708 0x1bd4a87a8 0x1a8a109c8 0x1a8a0df4c 0x1a8877b5c 0x10573a5e0 0x10573a84c 0x105b5e0ec 0x105b60990 0x114c7c0b4 0x114c7dde0 0x114c80ed0 0x114c801d8 0x114c91e30 0x114c927ec 0x1f472a768 0x1f473174c)
libc++abi: terminating with uncaught exception of type NSException
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSArrayM insertObject:atIndex:]: object cannot be nil'
terminating with uncaught exception of type NSException