Tencent / mars

Mars is a cross-platform network component developed by WeChat.
Other
17.31k stars 3.63k forks source link

xlog日志没有做加密,只是用了压缩,现在解压日志大部分都是乱码,用java解密工具报错,有大佬帮忙看下是什么原因吗? #1190

Open TeddyQT opened 10 months ago

TeddyQT commented 10 months ago

java.util.concurrent.ExecutionException: java.lang.NullPointerException: Cannot read the array length because "" is null at java.base/java.util.concurrent.FutureTask.report(Unknown Source) at java.base/java.util.concurrent.FutureTask.get(Unknown Source) at java.desktop/javax.swing.SwingWorker.get(Unknown Source) at top.yinlingfeng.xlog.decode.ui.DecodeFrame$DecodeLogTask.done(DecodeFrame.java:1030) at java.desktop/javax.swing.SwingWorker$5.run(Unknown Source) at java.desktop/javax.swing.SwingWorker$DoSubmitAccumulativeRunnable.run(Unknown Source) at java.desktop/sun.swing.AccumulativeRunnable.run(Unknown Source) at java.desktop/javax.swing.SwingWorker$DoSubmitAccumulativeRunnable.actionPerformed(Unknown Source) at java.desktop/javax.swing.Timer.fireActionPerformed(Unknown Source) at java.desktop/javax.swing.Timer$DoPostEvent.run(Unknown Source) at java.desktop/java.awt.event.InvocationEvent.dispatch(Unknown Source) at java.desktop/java.awt.EventQueue.dispatchEventImpl(Unknown Source) at java.desktop/java.awt.EventQueue$4.run(Unknown Source) at java.desktop/java.awt.EventQueue$4.run(Unknown Source) at java.base/java.security.AccessController.doPrivileged(Unknown Source) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) at java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source) at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.desktop/java.awt.EventDispatchThread.run(Unknown Source)

TeddyQT commented 10 months ago

用py进行解压,报错:[F]decode_log_file.py decompress err, Error -3 while decompressing: invalid stored block lengths [F]decode_log_file.py decode error len=49779, result:_buffer[1983]:0 != MAGIC_NUM_START [F]decode_log_file.py log seq:3-1 is missing [F]decode_log_file.py decompress err, Error -3 while decompressing: invalid distance too far back [F]decode_log_file.py decode error len=1948, result:_buffer[78206]:0 != MAGIC_NUM_START [F]decode_log_file.py log seq:3-18141 is missing

zhanlan123 commented 10 months ago

发下日志文件

TeddyQT commented 10 months ago

logs_20231201.xlog.zip @zhanlan123 帮忙看下谢谢

zhanlan123 commented 10 months ago

logs_20231201.xlog.log 解压出来,感觉是不是你后面用了加密,前面有没有用加密。需要看看你代码怎么写的了

zhanlan123 commented 10 months ago

这是java版本更新后的解密的。