jezzmemo/JJException

Out of Memory in NSMutableAttributedString+MutableAttributedStringHook.m

Micheal-Long opened this issue · 5 comments

您好,我们在使用JJException时,最近收到大量Out of Memory的崩溃信息,定位到NSMutableAttributedString+MutableAttributedStringHook.m文件中的113行:[self hookReplaceCharactersInRange:range withString:str];
使用的版本是0.2.12版本

为什么确定是这个地方导致的呢?

我们集成的UAPM,定位到的位置就是这里。奇怪的的是,以前没有遇到过,就最近几天很多。同时也使用多台设备测试,确没有复现
截屏2023-04-04 11 32 21

这个地方我检查过了,逻辑很简单,检查边界点,然后调用origin方法,仔细检查你最近的变化点,有可能是其他地方触发了OOM

好的,谢谢