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

audio decoding error #139

Closed
dsaetgareev opened this issue Aug 31, 2023 · 3 comments
Closed

audio decoding error #139

dsaetgareev opened this issue Aug 31, 2023 · 3 comments

Comments

@dsaetgareev
Copy link

Hello. I use part of the project code in my project, the code responsible for transferring the video and audio stream, I transfer chunks via webtrc. The video works without errors, while decoding the audio I get the error "Uncaught Error: closure invoked recursively or after being dropped". I've been struggling with this problem for three days now. Maybe you also faced this problem?
Screenshot from 2023-08-31 21-02-41
Screenshot from 2023-08-31 21-04-38
Screenshot from 2023-08-31 22-00-25

@darioalessandro
Copy link
Member

Hey @dsaetgareev indeed I have seen this!!

this is likely because the error and output callbacks are being deallocated by rust but then javascript is trying to call them, to solve this simply call:

forget(error)
forget(output)

or store those callbacks such that they do not get dropped

@dsaetgareev
Copy link
Author

Dario, hello!!! I just saw your message and immediately followed your advice, and everything worked!!! Added
error.forget();
output.forget();
Dario, thank you very much for your help!!
image

@darioalessandro
Copy link
Member

that is awesome !!! 😄 glad I was able to help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants