-
Notifications
You must be signed in to change notification settings - Fork 3.4k
[audioworklet] Fix audioworklet test shutdown hang. #25312
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
Conversation
The audio worklet was still running after emscripten had exited. This caused the browser to hang intermittently.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm.. but should this happen automatically somehow?
ruff checks are fixed in main already |
Are you able to reproduce this locally or only on CI? |
Should this be a documented requirement for Emscripten developers that utilize AudioWorklet? I.e. do their web pages risk hanging (in Chrome?) if they do not close the worklet before closing the page? |
I wonder if it's specific to how the test works? We don't see this in production (with millions of Chromebook users on the worst school hardware). |
That sounds great. (Chrome CI tests should run on Chromebooks then? =) Would be good to be able to capture what it is with this specific test, though ok to land this as a fix. |
Locally with |
Do we handle cleanup on |
We do shutdown pthreads automatically on exit, so it seems reasonable that we should shut down all the audio worklets too. |
The audio worklet was still running after emscripten had exited. This caused the browser to hang intermittently.