-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
SINGLE_FILE and pthread incompatibility #17547
Comments
I think we'd need to find a solution for the |
I think bundling the worker in the main .js file would also fix #16706 |
I can definitely make a PR for this with #21609 (comment) |
Here is how the build modes currently produce output files:
Issues arise if we try to combine This means that the spawned If we resort to allowing unsafe-eval, then we could support a Same treatise could theoretically be given to If someone wants to experiment with such build modes, I think we would be happy to land that capability. Though it is good to research bit into that unsafe-eval CSP rule to ensure that requiring that CSP policy would then not be a dealbreaker in your deployment. (I know that e.g. in ads CDNs deployment, who are a user of -sSINGLE_FILE, typically do not allow unsafe-eval) |
Its not true that The only case in which we don't generate a |
Perhaps we could make the error more targeted:
|
According to #12833 (comment) which says the following:
I'm unable to find other specific documentation for pthreads not supporting SINGLE_FILE, but locally I can confirm that removing SINGLE_FILE does indeed fix the threading issue I'm running into (where the thread does not get executed with
detach
).What is the specific reason(s) that SINGLE_FILE does not work with pthreads? From what I understand about SINGLE_FILE, it adds the contents of the .js and .wasm files (as a Base64 string) into the HTML file as opposed to reading the wasm contents via locateFile - clearly there is something else that I'm missing.
The text was updated successfully, but these errors were encountered: