Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iPhone7 iOS11.4 选择视频编辑视频,会闪退而且闪退的几率的很大 #1523

Open
jieruian opened this issue Aug 7, 2021 · 6 comments

Comments

@jieruian
Copy link

jieruian commented Aug 7, 2021

提bug前必看
请先回答下列三个问题,否则不允处理,谢谢配合。
1、我最新的Demo是否有这个bug?【如果Demo没问题,请升级新版
答:
最新demo存在改bug
2、你用的是什么版本?升级到最新版后是否正常?
答:
最新demo
3、是否有改动过我库内部的代码?【如有,请告诉我你改了什么
答:
没有

bug内容描述
iPhone7 iOS11.4 选择视频编辑视频,会闪退而且闪退的几率的很大

我如何复现这个bug?
倒出视频错误,真机demo跑起来,直接选择视频,编辑视频(或者不编辑视频),点击完成,闪退。几率很大。拿不到封面图等等。但是我取出沙盒tmp里的视频是裁剪好了,都按照30s裁剪好了。但是导出时崩溃。

截图

其它说明
有没有其它要补充的?比如你的初始化TZImagePickerController的代码

@banchichen
Copy link
Owner

崩溃的日志发下哈

@jieruian
Copy link
Author

jieruian commented Aug 9, 2021

@banchichen
`Incident Identifier: 276A3695-E719-4947-BD19-015CAA7DF058
CrashReporter Key: 58a11cf41313b42af0eb396ac9366270daf70b91
Hardware Model: iPhone9,1
Process: TZImagePickerController [7633]
Path: /private/var/containers/Bundle/Application/90CABA67-8AC6-4A9F-A874-BB987168D751/TZImagePickerController.app/TZImagePickerController
Identifier: com.swkjlsy.www
Version: 1 (3.6.4)
Code Type: ARM-64 (Native)
Role: Foreground
Parent Process: launchd [1]
Coalition: com.swkjlsy.www [1673]

Date/Time: 2021-08-07 13:11:40.2357 +0800
Launch Time: 2021-08-07 12:52:44.6858 +0800
OS Version: iPhone OS 11.4.1 (15G77)
Baseband Version: 3.70.00
Report Version: 104

Exception Type: EXC_CRASH (SIGKILL)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Termination Reason: Namespace ASSERTIOND, Code 0x8badf00d
Triggered by Thread: 0

Filtered syslog:
None found

Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_notify.dylib 0x000000018262aed8 0x182622000 + 36568
1 libsystem_notify.dylib 0x000000018262aecc 0x182622000 + 36556
2 CoreFoundation 0x0000000182962b2c 0x1828cd000 + 613164
3 CoreFoundation 0x00000001829626f8 0x1828cd000 + 612088
4 CoreFoundation 0x0000000182a21b50 0x1828cd000 + 1395536
5 CoreFoundation 0x0000000182a2230c 0x1828cd000 + 1397516
6 CoreFoundation 0x00000001828fe640 0x1828cd000 + 202304
7 UIKit 0x000000018c619fe8 0x18c5db000 + 258024
8 CoreFoundation 0x00000001829a4c3c 0x1828cd000 + 883772
9 CoreFoundation 0x00000001829a41b8 0x1828cd000 + 881080
10 CoreFoundation 0x00000001829a3f14 0x1828cd000 + 880404
11 CoreFoundation 0x0000000182a2184c 0x1828cd000 + 1394764
12 CoreFoundation 0x00000001828daf38 0x1828cd000 + 57144
13 Foundation 0x000000018334bbbc 0x183345000 + 27580
14 UIKit 0x000000018ca059d8 0x18c5db000 + 4368856
15 UIKit 0x000000018c68c9a0 0x18c5db000 + 727456
16 UIKit 0x000000018ca0585c 0x18c5db000 + 4368476
17 UIKit 0x000000018cc1f17c 0x18c5db000 + 6570364
18 UIKit 0x000000018d28289c 0x18c5db000 + 13269148
19 UIKit 0x000000018c5ec1ec 0x18c5db000 + 70124
20 UIKit 0x000000018d067ac8 0x18c5db000 + 11061960
21 UIKit 0x000000018d1b5bf8 0x18c5db000 + 12430328
22 UIKit 0x000000018c5ebc0c 0x18c5db000 + 68620
23 UIKit 0x000000018c5eb5a8 0x18c5db000 + 66984
24 UIKit 0x000000018c629334 0x18c5db000 + 320308
25 FrontBoardServices 0x0000000185214f24 0x185208000 + 53028
26 libdispatch.dylib 0x0000000102fa919c 0x102fa8000 + 4508
27 libdispatch.dylib 0x0000000102fb57cc 0x102fa8000 + 55244
28 FrontBoardServices 0x0000000185248878 0x185208000 + 264312
29 FrontBoardServices 0x000000018524851c 0x185208000 + 263452
30 FrontBoardServices 0x0000000185248ab8 0x185208000 + 264888
31 CoreFoundation 0x00000001829bb404 0x1828cd000 + 975876
32 CoreFoundation 0x00000001829bac2c 0x1828cd000 + 973868
33 CoreFoundation 0x00000001829b879c 0x1828cd000 + 964508
34 CoreFoundation 0x00000001828d8da8 0x1828cd000 + 48552
35 GraphicsServices 0x00000001848be020 0x1848b3000 + 45088
36 UIKit 0x000000018c8f8758 0x18c5db000 + 3266392
37 TZImagePickerController 0x0000000102b42dd8 0x102af4000 + 323032
38 libdyld.dylib 0x0000000182369fc0 0x182369000 + 4032
`

@banchichen
Copy link
Owner

@jieruian 你Xcode直接调试的时候能复现吗?贴个符号化后的内容吧...

@huapeng222
Copy link

2021-08-20 15:29:55.689274+0800 TZImagePickerController[77428:1109138] invalid mode 'kCFRunLoopCommonModes' provided to CFRunLoopRunSpecific - break on _CFRunLoopError_RunCalledWithInvalidMode to debug. This message will only appear once per execution.
2021-08-20 15:40:09.976854+0800 TZImagePickerController[77428:1137909] [plugin] AddInstanceForFactory: No factory registered for id <CFUUID 0x6000012b6c00> F8BB1C28-BAE8-11D6-9C31-00039315CD46
2021-08-20 15:40:18.348880+0800 TZImagePickerController[77428:1109138] AVAssetExportSessionStatusFailed
2021-08-20 15:40:18.405228+0800 TZImagePickerController[77428:1109138] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSPlaceholderArray initWithObjects:count:]: attempt to insert nil object from objects[0]'
*** First throw call stack:
(
	0   CoreFoundation                      0x00007fff20422fba __exceptionPreprocess + 242
	1   libobjc.A.dylib                     0x00007fff20193ff5 objc_exception_throw + 48
	2   CoreFoundation                      0x00007fff204a1523 _CFThrowFormattedException + 194
	3   CoreFoundation                      0x00007fff2049f7a8 -[__NSPlaceholderArray initWithCapacity:].cold.1 + 0
	4   CoreFoundation                      0x00007fff20324976 -[__NSPlaceholderArray initWithObjects:count:] + 154
	5   CoreFoundation                      0x00007fff2040e74e +[NSArray arrayWithObjects:count:] + 40
	6   TZImagePickerController             0x000000010d3308c7 -[ViewController imagePickerController:didFinishPickingAndEditingVideo:outputPath:error:] + 215
	7   TZImagePickerController             0x000000010d34cb7a -[TZVideoCropController callDelegateMethod] + 1370
	8   TZImagePickerController             0x000000010d34c617 __53-[TZVideoCropController dismissAndCallDelegateMethod]_block_invoke + 39
	9   UIKitCore                           0x00007fff23e5c4d6 -[UIPresentationController transitionDidFinish:] + 947
	10  UIKitCore                           0x00007fff23e66cbf -[_UICurrentContextPresentationController transitionDidFinish:] + 41
	11  UIKitCore                           0x00007fff23e60ff3 __56-[UIPresentationController runTransitionForCurrentState]_block_invoke.502 + 199
	12  UIKitCore                           0x00007fff23fb0472 -[_UIViewControllerTransitionContext completeTransition:] + 90
	13  UIKitCore                           0x00007fff24bb1e36 -[_UIAfterCACommitBlock run] + 54
	14  UIKitCore                           0x00007fff246d01f8 _runAfterCACommitDeferredBlocks + 333
	15  UIKitCore                           0x00007fff246c01e4 _cleanUpAfterCAFlushAndRunDeferredBlocks + 221
	16  UIKitCore                           0x00007fff246f1a36 _afterCACommitHandler + 85
	17  CoreFoundation                      0x00007fff2038fd31 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
	18  CoreFoundation                      0x00007fff2038a542 __CFRunLoopDoObservers + 541
	19  CoreFoundation                      0x00007fff2038aaf5 __CFRunLoopRun + 1129
	20  CoreFoundation                      0x00007fff2038a1a7 CFRunLoopRunSpecific + 567
	21  GraphicsServices                    0x00007fff2b874d85 GSEventRunModal + 139
	22  UIKitCore                           0x00007fff246c14df -[UIApplication _run] + 912
	23  UIKitCore                           0x00007fff246c639c UIApplicationMain + 101
	24  TZImagePickerController             0x000000010d353d80 main + 112
	25  libdyld.dylib                       0x00007fff2025abbd start + 1
	26  ???                                 0x0000000000000001 0x0 + 1
)
libc++abi: terminating with uncaught exception of type NSException
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSPlaceholderArray initWithObjects:count:]: attempt to insert nil object from objects[0]'
terminating with uncaught exception of type NSException
CoreSimulator 776.1 - Device: iPhone 12 (746FD76B-2C95-4D44-8E7F-F4DAEB37F81C) - Runtime: iOS 14.5 (18E182) - DeviceType: iPhone 12

不知道和上面是否是一样的问题,刚下载的demo,导入模拟器一个视频,选择编辑,点击完成,闪退
image

@huapeng222
Copy link

不确定和视频是否有关系,我是随便从抖音上下载的一个视频

https://wwr.lanzoui.com/iUteQswjb4j

@jieruian
Copy link
Author

@jieruian 你Xcode直接调试的时候能复现吗?贴个符号化后的内容吧...

就是上面这位朋友的情况,闪退几率85%

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants