longitachi / ZLPhotoBrowser

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

iPhone 13 Pro Max, iPhone OS 17.1.2, Crash #886

Open ddisfriend opened 6 months ago

ddisfriend commented 6 months ago

Issue Description

Info

ZLPhotoBrowser version: 4.4.8.1 Hardware Model: iPhone14,3 OS Version: iPhone OS 17.1.2 (21B101) Xcode version: Xcode 15.1

Crash info

   Thread 22 Crashed:
0   libobjc.A.dylib                 0x00000001ae42a7f8 object_getClass + 48 (objc-class.mm:186)
1   Foundation                      0x00000001b4ffc914 _NSKeyValueObservationInfoGetObservances + 264 (NSKeyValueObservationInfo.m:820)
2   Foundation                      0x00000001b4ffc674 NSKeyValueWillChange + 176 (NSKeyValueObserving.m:475)
3   Foundation                      0x00000001b4ffbe94 NSKeyValueWillChangeWithPerThreadPendingNotifications + 416 (NSKeyValueObserving.m:1205)
4   AVFCapture                      0x00000001d25d3b34 -[AVCaptureFigVideoDevice _setVideoZoomFactor:] + 48 (AVCaptureFigVideoDevice.m:6272)
5   AVFCapture                      0x00000001d25d4bb4 -[AVCaptureFigVideoDevice _resetDefaultVideoZoomFactor] + 76 (AVCaptureFigVideoDevice.m:6664)
6   AVFCapture                      0x00000001d2544e48 -[AVCaptureSession _updateDeviceActiveFormatsAndActiveConnections] + 2368 (AVCaptureSession.m:4516)
7   AVFCapture                      0x00000001d2543e00 -[AVCaptureSession _buildAndRunGraph:] + 328 (AVCaptureSession.m:4108)
8   AVFCapture                      0x00000001d2543b88 -[AVCaptureSession _commitConfiguration] + 408 (AVCaptureSession.m:1149)
9   AVFCapture                      0x00000001d2556b7c -[AVCaptureSession addInput:] + 764 (AVCaptureSession.m:1343)
10  HichefuOfDriver                 0x0000000105392174 closure #1 in ZLCustomCamera.setupCamera() + 524 (ZLCustomCamera.swift:536)
11  HichefuOfDriver                 0x0000000104bb4a84 thunk for @escaping @callee_guaranteed @Sendable () -> () + 28 (<compiler-generated>:0)
12  libdispatch.dylib               0x00000001bdffb6a8 _dispatch_call_block_and_release + 32 (init.c:1530)
13  libdispatch.dylib               0x00000001bdffd300 _dispatch_client_callout + 20 (object.m:561)
14  libdispatch.dylib               0x00000001be004894 _dispatch_lane_serial_drain + 748 (queue.c:3885)
15  libdispatch.dylib               0x00000001be0053c4 _dispatch_lane_invoke + 380 (queue.c:3976)
16  libdispatch.dylib               0x00000001be010004 _dispatch_root_queue_drain_deferred_wlh + 288 (queue.c:6913)
17  libdispatch.dylib               0x00000001be00f878 _dispatch_workloop_worker_thread + 404 (queue.c:6507)
18  libsystem_pthread.dylib         0x000000021fa9d964 _pthread_wqthread + 288 (pthread.c:2629)
19  libsystem_pthread.dylib         0x000000021fa9da04 start_wqthread + 8 (:-1)
截屏2023-12-29 11 43 23
longitachi commented 6 months ago

请提供下相机部分的配置代码。 这个机型和系统是必现的吗?

ddisfriend commented 6 months ago

请提供下相机部分的配置代码。 这个机型和系统是必现的吗?

1.我对相机的设置如下图(其他都是默认设置):

截屏2023-12-29 14 42 42

2.这一机型是不是必现我并不清楚,但是我翻看了另外一个Crash,同样是Hardware Model: iPhone14,3,也就是iPhone 13 Pro Max,见下图:

截屏2023-12-29 14 48 13 截屏2023-12-29 14 51 41