Skip to content

Cannot create a SharedArrayBuffer #2094

Open
@pflannery

Description

@pflannery

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

Activity

welcome

welcome commented on Jan 2, 2023

@welcome

Welcome! 👋 Thanks for opening your first issue here! And to ensure the community is able to respond to your issue, be sure to follow the issue template if you haven't already.

added
Type:TaskTasks tied specifically to developer operations and maintenance
Priority:LowLow-impact issue that can be addressed after higher-priority tasks
on Feb 6, 2023
added
Good First IssueA beginner-friendly issue, great for first-time contributors
and removed
Priority:LowLow-impact issue that can be addressed after higher-priority tasks
on Oct 19, 2023
prajwalbandak

prajwalbandak commented on Oct 21, 2023

@prajwalbandak

hey @raclim , just need to add the above two properties in server.js? is it my understanding correct. please correct me if am wrong.

Raj100679

Raj100679 commented on Nov 17, 2023

@Raj100679

@lindapaiste Can you assign this issue to me

imshashanksharma

imshashanksharma commented on Nov 24, 2023

@imshashanksharma

@pflannery can u assign this issue to me

soniyadotp

soniyadotp commented on Dec 10, 2023

@soniyadotp
Contributor

Hey @lindapaiste Can you tell me if this reference is the correct way to resolve this issue?

lindapaiste

lindapaiste commented on Dec 10, 2023

@lindapaiste
Collaborator

Hey @lindapaiste Can you tell me if this reference is the correct way to resolve this issue?

We need to think more about where we set those headers, which honestly I haven’t so I don’t know the answer. Do we need it on the entire server?

The sketch itself is run in an iframe. Do we need to add anything to the handler which serves the iframe? Is that included in the server.js file or is it elsewhere? The iframe is served from a different subdomain. Is that considered “same-origin” or not? Do we need to explicitly allow that subdomain as an origin?

edit: I think the file which needs changes is this one?
https://github.com/processing/p5.js-web-editor/blob/develop/server/previewServer.js

grvup

grvup commented on Dec 27, 2023

@grvup

Hey @lindapaiste may i work on this issue if still not resolved ?

lindapaiste

lindapaiste commented on Dec 27, 2023

@lindapaiste
Collaborator

Hey @lindapaiste may i work on this issue if still not resolved ?

TBH I haven't properly reviewed @soniyaprasad77's code. Maybe you can start by looking at that, and investigating the questions in my last comment. We may need a team effort here!

codebybishwa

codebybishwa commented on Jan 3, 2024

@codebybishwa

Hello, could someone please provide me with an update on the progress regarding this issue.? Thank you!

grvup

grvup commented on Jan 4, 2024

@grvup

I have implemented the suggested modifications in both codes , but the issue persists, and errors continue to occur.

If you could offer any additional solutions related to this issue, it would be helpful.

11 remaining items

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugError or unexpected behaviorsGood First IssueA beginner-friendly issue, great for first-time contributorsType:TaskTasks tied specifically to developer operations and maintenance

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Participants

      @pflannery@goutamdh@lindapaiste@raclim@prajwalbandak

      Issue actions

        Cannot create a SharedArrayBuffer · Issue #2094 · processing/p5.js-web-editor