Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when get logcat from huawei P9 #6

Open
willysys opened this issue Dec 6, 2017 · 10 comments
Open

Error when get logcat from huawei P9 #6

willysys opened this issue Dec 6, 2017 · 10 comments

Comments

@willysys
Copy link

willysys commented Dec 6, 2017

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. (/usr/lib/nodejs/npm/node_modules/lib/node_modules/stf/node_modules/adbkit-logcat/lib/logcat/reader.js:84:33)
at emitOne (events.js:96:13)
at LineTransform.emit (events.js:188:7)
at readableAddChunk (_stream_readable.js:176:18)
at LineTransform.Readable.push (_stream_readable.js:134:10)
at LineTransform.Transform.push (_stream_transform.js:128:32)
at LineTransform._transform (/usr/lib/nodejs/npm/node_modules/lib/node_modules/stf/node_modules/adbkit/lib/adb/linetransform.js:39:12)
at LineTransform.Transform._read (_stream_transform.js:167:10)
at LineTransform.Transform._write (_stream_transform.js:155:12)
at doWrite (_stream_writable.js:334:12)
at writeOrBuffer (_stream_writable.js:320:5)
at LineTransform.Writable.write (_stream_writable.js:247:11)
at Socket.ondata (_stream_readable.js:555:20)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at readableAddChunk (_stream_readable.js:176:18)
at Socket.Readable.push (_stream_readable.js:134:10)
at TCP.onread (net.js:548:20)

@sorccu
Copy link
Member

sorccu commented Dec 6, 2017

Have you tried turning the fixLineFeeds option off?

@willysys
Copy link
Author

willysys commented Dec 6, 2017

This error occurred during the STF run.

@willysys
Copy link
Author

willysys commented Dec 6, 2017

Maybe adbkit can't handle the corner case with empty entry data.

@sorccu
Copy link
Member

sorccu commented Dec 6, 2017

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.

@Andychochocho
Copy link

@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.

@sorccu
Copy link
Member

sorccu commented May 31, 2019

Show me how you've attempted to do it.

@Andychochocho
Copy link

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.

@Andychochocho
Copy link

@sorccu Is there a way you recommend going about this, or am I just missing something very obvious here? 😬

@histronger
Copy link

@willysys Seems the problem starts here, and do you have a solution already?
image

@histronger
Copy link

@sorccu Can you help to have a look? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants