processing / processing/p5.js-web-editor

Cannot create a SharedArrayBuffer

Open
#2,094 18 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Bug Type:Task
Dominant language
JavaScript
Stars
1.7k
Forks
1.7k
Avg merge
3d 4h
Merged PRs (30d)
8

Description

Details about the bug:

When trying to create a SharedArrayBuffer an error message is displayed

SharedArrayBuffer is not defined

In order to enable SharedArrayBuffer the server needs the following headers:

Also see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer#security_requirements

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked reproduction sketch and verify the SharedArrayBuffer error in Edge. Read the linked MDN security requirements, then locate the server configuration responsible for response headers. Done means the required Cross-Origin-Opener-Policy and Cross-Origin-Embedder-Policy headers are present and the sketch can create a SharedArrayBuffer.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
security, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.