Skip to content

SharedArrayBuffer Not Defined in Certain Browsers #3419

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

Closed
yashodipmore opened this issue Mar 25, 2025 · 1 comment
Closed

SharedArrayBuffer Not Defined in Certain Browsers #3419

yashodipmore opened this issue Mar 25, 2025 · 1 comment
Labels

Comments

@yashodipmore
Copy link

p5.js version

No response

What is your operating system?

None

Web browser and version

No response

Actual Behavior

Actual Behavior:
When running the p5.js web editor in certain browsers (e.g., Firefox and some versions of Chrome), SharedArrayBuffer is undefined. This causes errors when attempting to use WebAssembly or other related features in p5.js.

Error Message:

Uncaught ReferenceError: SharedArrayBuffer is not defined

Expected Behavior

The SharedArrayBuffer API should be accessible in supported browsers.

The web editor should either handle this gracefully or provide a fallback mechanism.

Steps to reproduce

Open the p5.js Web Editor in Firefox or an affected version of Chrome.

Run a sketch that uses WebAssembly or SharedArrayBuffer.

Observe the error in the developer console.

@raclim
Copy link
Collaborator

raclim commented Mar 25, 2025

Thanks for opening this! We do have an open issue for this already (#3419), which I see that you engaged on! Since we want to try to organize and consolidate duplicate issues, I suggest adding any new updates, questions, or other thoughts you might have on it within that issue thread!

@raclim raclim closed this as not planned Won't fix, can't repro, duplicate, stale Mar 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants