-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
InvalidStateError: Failed to execute 'stop' on 'AudioBufferSourceNode' #226
Comments
Have the same issue: "Uncaught InvalidStateError: Failed to execute 'start' on 'AudioBufferSourceNode': Duration must be a finite non-negative number". Chrome version 38.0.2125.122. Certainly it is related to one of chrome updates, because it worked before (the same code). |
I've yet to reproduce this issue, do you have anymore specific steps or sample code to get it to happen? Also, is this with 1.1.x or 2.0? |
I got the same problem and I can at least help to clarify a bit why I have it. The sound in question is looped. The variable node._pos in line 445 of howler.js v1.1.25 never gets set to 0 again so after some while the expression The error of the first post in this thread comes right afterwards everytime you try to start the sound again |
Also it seems that the onend function won't be called after every restart of looping sounds but only the first time it restarts, maybe thats related to the node._pos not be reset to 0 again |
These issues should be fixed in the 2.0 branch, but please let me know if you are still seeing them. |
I can reproduce this on mobile devices with a button that is used for playing/pausing audio. If I spam this button I get into these two states:
Here's a the code to reproduce this:
|
@arya-s Can you give some more details on how you got that to happen including your testing environment? I setup the following fiddle and was unable to reproduce: https://jsfiddle.net/c9ezqbqj/. |
@goldfire it doesn't work with a fiddle, unless you know a way to disable zoom on double tap. You need to spam tap this button. |
goldfire#226 It seems as though AudioBufferSourceNode can get caught in cases where the seek and duration are negative "Failed to execute 'start' on 'AudioBufferSourceNode': The duration provided (-0.17) is less than the minimum bound (0)" We can protect this by defaulting to 0 when we seek or set a duration below 0.
Ran into the same issue on our application today. |
Got this with version 2.0.2 (happened to a user). Tried to replicate by spamming the play-stop button both on desktop and android. Did not result in an error. |
goldfire/howler.js#226 It seems as though AudioBufferSourceNode can get caught in cases where the seek and duration are negative "Failed to execute 'start' on 'AudioBufferSourceNode': The duration provided (-0.17) is less than the minimum bound (0)" We can protect this by defaulting to 0 when we seek or set a duration below 0.
I got this error sometimes:
** Uncaught InvalidStateError: Failed to execute 'stop' on 'AudioBufferSourceNode': cannot call stop without calling start first. **
I can reproduce it when I try to play/stop multiple sounds at the same time.
I'm on osx with Chrome Version 39.0.2171.27 beta (64-bit)
Any suggestion?
Related to this:
Uncaught InvalidStateError: Failed to execute 'start' on 'AudioBufferSourceNode': Duration must be a finite non-negative number: -1.12327
The text was updated successfully, but these errors were encountered: