moose icon indicating copy to clipboard operation
moose copied to clipboard

Error: buf length isn't multiple of compact IP/PORTs

Open oxowl opened this issue 5 years ago • 4 comments

Media playback

Unhandled Error Error: buf length isn't multiple of compact IP/PORTs (6 bytes) at Function.compact2string.multi (/Applications/moose.app/Contents/Resources/app.asar/node_modules/compact2string/index.js:22:11) at utPex.onMessage (/Applications/moose.app/Contents/Resources/app.asar/node_modules/ut_pex/index.js:103:24) at Wire._onExtended (/Applications/moose.app/Contents/Resources/app.asar/node_modules/bittorrent-protocol/index.js:554:26) at Wire._onMessage (/Applications/moose.app/Contents/Resources/app.asar/node_modules/bittorrent-protocol/index.js:686:21) at Wire._write (/Applications/moose.app/Contents/Resources/app.asar/node_modules/bittorrent-protocol/index.js:590:12) at doWrite (/Applications/moose.app/Contents/Resources/app.asar/node_modules/bittorrent-protocol/node_modules/readable-stream/lib/_stream_writable.js:409:139) at writeOrBuffer (/Applications/moose.app/Contents/Resources/app.asar/node_modules/bittorrent-protocol/node_modules/readable-stream/lib/_stream_writable.js:398:5) at Wire.Writable.write (/Applications/moose.app/Contents/Resources/app.asar/node_modules/bittorrent-protocol/node_modules/readable-stream/lib/_stream_writable.js:307:11)

oxowl avatar Jun 14 '20 14:06 oxowl

Thanks for the whole stack trace. Can you help me with the steps to reproduce this ?

ritz078 avatar Jun 14 '20 16:06 ritz078

Nevermind. I was able to reproduce this.

ritz078 avatar Jun 14 '20 20:06 ritz078

We will need https://github.com/sindresorhus/electron-unhandled/issues/18 to fix this or we can implement the whole logic here. I will prefer the first one since that will help more people. After the filter option is present in electron-unhandled, we can just filter out this message.

ritz078 avatar Oct 08 '20 20:10 ritz078

@ritz078 Created a patch for the filter option and raised a PR #268 . Can you please review ?

vinodf2f avatar Feb 09 '21 12:02 vinodf2f