Tencent / matrix

Matrix is a plugin style, non-invasive APM system developed by WeChat.
Other
11.66k stars 1.89k forks source link

java.util.zip.Deflater异常能否忽略? #98

Open cs-robert opened 5 years ago

cs-robert commented 5 years ago

异常类型:app 运行时异常

手机型号:Nexus 5

手机系统版本:Android 5.0

matrix版本: 0.4.10

gradle版本:3.3

问题描述:Zip4j压缩过程中有很多Deflater的异常,Deflater在内存回收时会自动关闭,这个异常可以忽略,能否配置不打印这个异常。 D/Matrix.CloseGuardInvocationHandler: close leak issue already published; key:java.util.zip.Deflater.(Deflater.java:192) java.util.zip.Deflater.(Deflater.java:165) net.lingala.zip4j.io.DeflaterOutputStream.(DeflaterOutputStream.java:38) net.lingala.zip4j.io.ZipOutputStream.(ZipOutputStream.java:15) net.lingala.zip4j.zip.ZipEngine.initAddFiles(ZipEngine.java:114) net.lingala.zip4j.zip.ZipEngine.addFiles(ZipEngine.java:85) net.lingala.zip4j.core.ZipFile.addFiles(ZipFile.java:292) net.lingala.zip4j.core.ZipFile.addFile(ZipFile.java:250)

jdk注释,明确说明可以自动关闭 /**

huigll commented 5 years ago

我也遇到这个问题. 可以设置Matrix原来默认的log输出为自己实现的一个. Matrix.setLogIml(new MyMatrixLogImp() {});

自己过滤输出.