Questions tagged [sharedarraybuffer]

`SharedArrayBuffer` is a JavaScript object that provides for sharing memory across threads.

SharedArrayBuffer (MDN, spec) is a JavaScript object that provides for sharing memory across threads, such as web worker threads in browsers, or worker threads in Node.js.

72 questions
0
votes
1 answer

Throuble with using SharedArrayBuffer with third party JS

I add respone header ("Cross-Origin-Opener-Policy", "same-origin") to use SharedArrayBuffer (to support webassembly). But now I have trouble with adding third party JS in my page, which will be blocked by cross-origin isolated. Any work around…
0
votes
0 answers

what is top-level document ? ( sharedArrayBuffer is not defined )

I was going to use sharedArrayBuffer. and I found that if cross-isolation was not established, it could not be used. in document, both Cross-Origin-Opener-Policy: same-origin and Cross-Origin-Embedder-Policy: require-corp should be set up in the top…
0
votes
1 answer

Is there a way to use Google Adsense with cross origin isolation?

I am developing a website that uses depends on SharedArrayBuffer, to use SharedArrayBuffer your website needs to be cross origin isolated, which means your server response needs to contain the following headers: Cross-Origin-Embedder-Policy:…
0
votes
1 answer

SharedArrayBuffer updates in Android Chrome 88 and Desktop Chrome 92

I need help to fix the following issue . While practicing with react app I got this msg in console: [Deprecation] SharedArrayBuffer will require cross-origin isolation as of M91, around May 2021. See…
Kirti
  • 1
  • 2
0
votes
2 answers

Why and how to solve SharedArrayBuffer warning in my react-app

My React-app has axios (dependency) and json-server (dev-dependency) insatlled, after I did this, my react-app started throwing the following warning message: [Deprecation] SharedArrayBuffer will require cross-origin isolation as of M91, around…
0
votes
0 answers

Google systems have recently detected that SharedArrayBuffers

I recently received this message below from Google. It says I am using SharedArrayBuffers but I have no idea what those are. Is there a way to determine if I am using what they say I am? The only type of cross domain stuff I am doing is within an…
Mike Flynn
  • 22,342
  • 54
  • 182
  • 341
0
votes
1 answer

Does Firefox for Android 82 support SharedArrayBuffer?

Related with my previous question, next I tried to use SharedArrayBuffer on Firefox for Android 82. I failed it via both localhost and https server. Hasn't Firefox for Android 82 supported SharedArrayBuffer yet? The document says that Firefox for…
Yuji
  • 614
  • 4
  • 18
0
votes
1 answer

WebAssembly LinkError: WebAssembly.instantiate(): mismatch in shared state of memory, declared = 0, imported = 1

I have a simple c code: // accumulate.c int arr[]; int accumulate(int start, int end) { int sum = 0; for(int i = start; i < end; i++) { sum += arr[i]; } return sum; } compile it to wasm: $ emcc accumulate.c -O3 -s SIDE_MODULE…
tigercosmos
  • 345
  • 3
  • 17
0
votes
0 answers

Is shared WebAssembly.memory, SharedArrayBuffer?

Can we say that if the flag of WebAssembly.memory is true, it is precisely SahredArrayBuffer?
user12052616
0
votes
0 answers

postMessage for WebAssembly

I want to implement a counter code that have 2 main parts: 1. A Counter worker that continuously increment the WebAssembly.Memory as a counter variable, 2. The main code that reads the counter value from counter thread whenever it wants. I want to…
user12052616
0
votes
1 answer

how to set SharedArrayBuffer type bufferData in webgl?

I try to use SharedArrayBuffer as a bufferData in webgl. MDN document tell me that can be possible. I just Change"ArrayBuffer" to "SharedArrayBuffer" why my code spit out error. [.WebGL-0x7fc1c209b800]GL ERROR :GL_INVALID_OPERATION :…
Callin Rim
  • 134
  • 7
0
votes
3 answers

How to dynamically increase the size of a SharedArrayBuffer

I am writing a multi-threaded program. The main thread is constantly receiving network data, and the amount of data is relatively large, so sub-threads are used to process the data. The received data is a 100-byte packet. Each time I receive a…
1 2 3 4
5