Skip to content
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

JS error playing Swoop demo #26272

Open
jdm opened this issue Apr 22, 2020 · 1 comment
Open

JS error playing Swoop demo #26272

jdm opened this issue Apr 22, 2020 · 1 comment

Comments

@jdm
Copy link
Member

jdm commented Apr 22, 2020

joshmatthews@joshmatthews-fcmd6r servo % ./mach run -r https://playcanv.as/p/JtL2iqIH/
Powered by PlayCanvas 0.176.4 e5b7c28
[2020-04-22T15:41:20Z ERROR script::dom::bindings::error] Error at https://s3-eu-west-1.amazonaws.com/apps.playcanvas.com/R2axJfsc/playcanvas-stable.min.js:540:13 this argument is not a finite floating-point value
64 threads are still running after shutdown (bad).
@jdm jdm added the A-content/bindings The DOM bindings label Apr 22, 2020
@jdm
Copy link
Member Author

jdm commented May 4, 2020

This exception comes from

throw_type_error(cx, "this argument is not a finite floating-point value");
. The JS in question is this.source.start(0,this.startOffset%this.source.buffer.duration). this.source is an AudioBufferSourceNode, and this.source.buffer (I think) the result of decodeAudioData. Presumably either startOffset or the buffer's duration is a non-finite value, so the % calculation becomes non-finite.

@atouchet atouchet added this to To do in WebAudio May 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: To do
WebAudio
  
To do
Development

No branches or pull requests

1 participant