adbkit-logcat
adbkit-logcat copied to clipboard
Error when get logcat from huawei P9
There is a error when I get logcat from huawei P9. seems adbkit can't handle the corner case with empty entry data,error details as follows:
events.js:160 throw er; // Unhandled 'error' event ^
Error: Unprocessable entry data ''
at Binary._processEntry (/usr/lib/nodejs/npm/node_modules/lib/node_modules/stf/node_modules/adbkit-logcat/lib/logcat/parser/binary.js:77:26)
at Binary.parse (/usr/lib/nodejs/npm/node_modules/lib/node_modules/stf/node_modules/adbkit-logcat/lib/logcat/parser/binary.js:54:14)
at LineTransform.
Have you tried turning the fixLineFeeds
option off?
This error occurred during the STF run.
Maybe adbkit can't handle the corner case with empty entry data.
Ok... well, run adb logcat -B -d > adbkit-logcat-issue-8.log && gzip adbkit-logcat-issue-8.log
. Then send the newly created adbkit-logcat-issue-8.log.gz
to simo @ {the name of this github org} .io or attach it here. Note that private information may be exposed in the log output. However, without having access to the output I can do nothing.
I will eventually look into the issue but don't expect a fix immediately, I'm super busy.
@sorccu How do you set the fixLineFeeds option to be false? Getting this error on newer versions of Android and I can't figure out how to disable that feature.
Show me how you've attempted to do it.
I've tried looking through the logcat documentation for something to implement like a flag maybe I'm missing, but I can't seem to find anything like how there's the -B for the binary issue.
@sorccu Is there a way you recommend going about this, or am I just missing something very obvious here? 😬
@willysys Seems the problem starts here, and do you have a solution already?
@sorccu Can you help to have a look? Thanks!