HwTxtReader icon indicating copy to clipboard operation
HwTxtReader copied to clipboard

重复字符串导致ANR

Open tiansos110 opened this issue 2 years ago • 1 comments

若txt全是重复字符串 会卡死报anr 例如:some text some text some text some text some text some text some 一直重复这个字符串就会anr 定位到是这个行 TextBreakUtil.BreakText(TextBreakUtil.java:99)

tiansos110 avatar Apr 23 '23 06:04 tiansos110

找到问题了ReadData方法中的bufferedReader.readLine() 读取了一行超大的字符串 几十万个字符 中间未换行导致的

tiansos110 avatar Apr 24 '23 03:04 tiansos110