ritz078 / moose

🦌 An application to stream, cast and download torrents.
https://moose.riteshkr.com
MIT License
833 stars 107 forks source link

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

Open oxowl opened 4 years ago

oxowl commented 4 years ago

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)

ritz078 commented 4 years ago

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

ritz078 commented 4 years ago

Nevermind. I was able to reproduce this.

ritz078 commented 4 years ago

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.

vinodf2f commented 3 years ago

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