abalabahaha / opusscript

JS bindings for libopus 1.4, ported with Emscripten
MIT License
63 stars 19 forks source link

RangeError: Source is too large #8

Closed CatsMiaow closed 5 years ago

CatsMiaow commented 6 years ago

I am using it with discord.js v12

image

https://github.com/abalabahaha/opusscript/blob/01fee75902bf50439ac36ee3c4027ba5021f51f7/index.js#L51

abalabahaha commented 6 years ago

Are you certain this is an opusscript issue? Have you verified with discord.js/prism-media that this is not their bug? Does this error with node-opus?

CatsMiaow commented 6 years ago

I will check more and open up issue

ktjd123 commented 5 years ago

I'm having same issue here

abalabahaha commented 5 years ago

@ktjd123 can you please check with discord.js/prism-media if they are passing invalid data?

ktjd123 commented 5 years ago

@abalabahaha this is opusscript's problem since when use node-opus instead of opusscript, this problem doesn't happens.

abalabahaha commented 5 years ago

@ktjd123 can you or someone reproduce the error with only opusscript and node-opus, no prism-media or other wrappers?

ktjd123 commented 5 years ago

I’ll reproduce it when I get my computer back from AS. Sorry for just error info without reproduce

abalabahaha commented 5 years ago

Closing due to inactivity

maybeanerd commented 3 years ago

@ktjd123 can you or someone reproduce the error with only opusscript and node-opus, no prism-media or other wrappers?

I also had this issue in the past days. no prism-media or anything else sound related added to discord.js v 12 after reinstalling discordjs/opus it worked again, but I think that's mostly because it stopped using opusscript ( it should generally prefer discordjs/opus, but for some reason it didn't until I reinstalled everything )

cant really spend the time to create a minimum reproducable snippet tbh, just wanted to let you know this issue definitely exists with opusscript 0.0.8

BopItFreak commented 3 years ago

I can reproduce this issue. Please fix it! @abalabahaha

abalabahaha commented 3 years ago

Without sharing details for me to reproduce it (see above) or submitting a PR that fixes it, I cannot determine how to fix it.

BopItFreak commented 3 years ago

I got the error by spamming the "play" function on my discord bot. I also get "RangeError: Input Stream is Out of Bounds" randomly sometimes as well.