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

和mobile-ffmpeg-full-gpl这个一起使用的时候,会疯狂的打印日志和弹框,作者能不能看下什么原因 #4

Open
zxd-rsj opened this issue Aug 3, 2023 · 2 comments

Comments

@zxd-rsj
Copy link

zxd-rsj commented Aug 3, 2023

========================AvoidCrash Log==========================

NSRangeException
*** -[__NSArrayM objectAtIndex:]: index 0 beyond bounds for empty array
Error Place:崩溃方法定位失败,请您查看函数调用栈来排查错误原因
This framework default is to return nil to avoid crash.

================================================================
2023-08-03 16:28:05.921798+0800 FFMpegDemo001[18469:9187732] Erro 1691051285.922 {
defaultToDo = "This framework default is to ignore this operation to avoid crash.";
exception = "*** -[__NSArrayM removeObjectsInRange:]: range {0, 1} extends beyond bounds for empty array";
}
2023-08-03 16:28:05.925149+0800 FFMpegDemo001[18469:9187732]

========================AvoidCrash Log==========================

NSRangeException
*** -[__NSArrayM removeObjectsInRange:]: range {0, 1} extends beyond bounds for empty array
Error Place:崩溃方法定位失败,请您查看函数调用栈来排查错误原因
This framework default is to ignore this operation to avoid crash.

================================================================
2023-08-03 16:28:05.948624+0800 FFMpegDemo001[18469:9187732] INFO: frame= 1148 fps= 65 q=28.0 size= 3840kB time=00:00:48.43 bitrate= 649.5kbits/s speed=2.75x
2023-08-03 16:28:05.949649+0800 FFMpegDemo001[18469:9187732] Erro 1691051285.950 {
defaultToDo = "This framework default is to return nil to avoid crash.";
exception = "*** -[__NSArrayM objectAtIndex:]: index 0 beyond bounds for empty array";
}
2023-08-03 16:28:05.953547+0800 FFMpegDemo001[18469:9187732]

========================AvoidCrash Log==========================

NSRangeException
*** -[__NSArrayM objectAtIndex:]: index 0 beyond bounds for empty array
Error Place:崩溃方法定位失败,请您查看函数调用栈来排查错误原因
This framework default is to return nil to avoid crash.

================================================================
2023-08-03 16:28:05.990472+0800 FFMpegDemo001[18469:9187732] Erro 1691051285.990 {
defaultToDo = "This framework default is to ignore this operation to avoid crash.";
exception = "*** -[__NSArrayM removeObjectsInRange:]: range {0, 1} extends beyond bounds for empty array";
}
2023-08-03 16:28:05.992216+0800 FFMpegDemo001[18469:9187732]

========================AvoidCrash Log==========================

NSRangeException
*** -[__NSArrayM removeObjectsInRange:]: range {0, 1} extends beyond bounds for empty array
Error Place:崩溃方法定位失败,请您查看函数调用栈来排查错误原因
This framework default is to ignore this operation to avoid crash.

================================================================
2023-08-03 16:28:05.992782+0800 FFMpegDemo001[18469:9187732] Erro 1691051285.993 {
defaultToDo = "This framework default is to return nil to avoid crash.";
exception = "*** -[__NSArrayM objectAtIndex:]: index 0 beyond bounds for empty array";
}
2023-08-03 16:28:05.994302+0800 FFMpegDemo001[18469:9187732]

========================AvoidCrash Log==========================

NSRangeException
*** -[__NSArrayM objectAtIndex:]: index 0 beyond bounds for empty array
Error Place:崩溃方法定位失败,请您查看函数调用栈来排查错误原因
This framework default is to return nil to avoid crash.

================================================================
2023-08-03 16:28:06.026702+0800 FFMpegDemo001[18469:9187732] Erro 1691051286.027 {
defaultToDo = "This framework default is to ignore this operation to avoid crash.";
exception = "*** -[__NSArrayM removeObjectsInRange:]: range {0, 1} extends beyond bounds for empty array";
}
2023-08-03 16:28:06.028054+0800 FFMpegDemo001[18469:9187732]

========================AvoidCrash Log==========================

NSRangeException
*** -[__NSArrayM removeObjectsInRange:]: range {0, 1} extends beyond bounds for empty array
Error Place:崩溃方法定位失败,请您查看函数调用栈来排查错误原因
This framework default is to ignore this operation to avoid crash.

================================================================
2023-08-03 16:28:06.129130+0800 FFMpegDemo001[18469:9187732] Erro 1691051286.129 {
defaultToDo = "This framework default is to return nil to avoid crash.";
exception = "*** -[__NSArrayM objectAtIndex:]: index 0 beyond bounds for empty array";
}

@zxd-rsj
Copy link
Author

zxd-rsj commented Aug 3, 2023

单独使用mobile-ffmpeg-full-gpl这个库的API的时候也没有任何问题

@chong2vv
Copy link
Owner

目测是数组越界了,比如他内部也可能做了类似try cash这种操作,从报错信息来看是一个空数组取了index0,被avoidcrash库hook之后先处理了这个越界。

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

2 participants