Skip to content

Error when get logcat from huawei P9 #6

@willysys

Description

@willysys

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions