Skip to main content
Filter by
Sorted by
Tagged with
3 votes
0 answers
162 views

The ECMAScript Language Specification states: Atomics are carved in stone: Program transformations must not cause any Shared Data Block events whose [[Order]] is seq-cst to be removed from the is-...
James Page's user avatar
2 votes
2 answers
281 views

Since TypeScript 5.9 we have (roughly speaking) Uint8Array = Uint8Array<ArrayBufferLike> = Uint8Array<ArrayBuffer | SharedArrayBuffer>. Now I am looking for a clean and idiomatic way to ...
Simon Warta's user avatar
  • 11.5k
2 votes
0 answers
50 views

I am working with Node.js 22 using native ESM and Worker Threads, I'm trying to share a single WebAssembly.Memory instance across multiple workers to avoid duplicating memory. // main.mjs import { ...
Gnaneshwar P's user avatar
4 votes
1 answer
179 views

I have a setup where I have a couple dozen web workers postMessage requests to the main thread and then synchronously block for the response: Since this is synchronous, the web worker never makes a ...
Gillespie's user avatar
  • 6,646
1 vote
2 answers
236 views

The return value of TextEncoder.encode() is Uint8Array<ArrayBufferLike>. The ArrayBufferLike type includes ArrayBuffer and SharedArrayBuffer. How to know which type of array buffer encode() will ...
aryzing's user avatar
  • 6,001
0 votes
1 answer
188 views

I am using a web worker to process some data for me. The flow goes like this: main thread writes to a shared array buffer, then once done writing, uses postMessage to send the buffer to the webworker. ...
Will's user avatar
  • 1
0 votes
1 answer
579 views

Question: I am working on an Angular project (version 18.2.3) where I use ffmpeg.wasm to trim videos and extract frames. However, when trying to load FFmpeg, I am encountering the following error in ...
Memariya Chirag's user avatar
0 votes
0 answers
568 views

I'm encountering a RangeError: Array buffer allocation failed error in my JavaScript application after refreshing the page multiple times. The error occurs even though the memory usage appears to be ...
Scoob's user avatar
  • 551
1 vote
1 answer
337 views

I want to allow a sandboxed iframe to use SharedArrayBuffer with web workers created by the iframe. To use SharedArrayBuffer I have to set the following headers Cross-Origin-Opener-Policy: same-origin ...
Vexcess's user avatar
  • 96
-1 votes
1 answer
519 views

I have built a game using godot4 and hosted it on a Linux server. In-game server .htacess Header set Cross-Origin-Opener-Policy: "same-origin" Header set Cross-Origin-Resource-Policy "...
Amanullah Aman's user avatar
-1 votes
1 answer
461 views

I am setting up a Firebase Web App and am unsure how to setup CORS headers for SharedArrayBuffer and if there is anything else I need to do for the SharedArrayBuffer. You can check the website if you ...
TheGoat's user avatar
  • 11
0 votes
1 answer
59 views

If I create a SharedArrayBuffer, and then create a 'view' of said buffer via a TypedArray, and then send that TypedArray to a Worker via postMessage, is the worker able to access the full data of the ...
joe's user avatar
  • 6,195
3 votes
1 answer
831 views

I'm using this excellent template from vercel as a base for my project : https://vercel.com/templates/next.js/subscription-starter I've used it for many projects and the Stripe integration works ...
Syed Saif's user avatar
  • 133
1 vote
0 answers
430 views

The issue is: since i locked my page up in order to use sharedArrayBuffer (and other perks) google auth throws an error at posting a message between windows: m=credential_page_library:210 Uncaught ...
Jugo Rocks's user avatar
1 vote
0 answers
1k views

I've been developing a website using Express for the backend and React for the frontend. I've come across the issue where my application won't work on Firefox due to this error: 'ReferenceError: ...
slow_learner's user avatar
0 votes
1 answer
1k views

I have tried multiple different solutions found online, but I keep running into the same error: The following features required to run Godot projects on the Web are missing: Cross Origin Isolation - ...
Golopogus's user avatar
0 votes
2 answers
554 views

(module (memory (export "memory") 1) (data (i32.const 0) "Hello World!") ) fetch('hello.wasm') .then(response => response.arrayBuffer()) .then(bytes => WebAssembly....
a.gulcan's user avatar
  • 307
2 votes
0 answers
698 views

I'm working on an application that needs to transfer lots of binary data (chunks of 10-100 MB) as fast as possible, and the ipc api and/or http requests are simply not fast enough (~50-200 MB/s). The ...
plaze701's user avatar
0 votes
2 answers
2k views

I am using FFmpeg.wasm for some frontend transcoding work. I know that due to certain browser policies, I need to configure some response headers in the Vite server options: server: { headers: { '...
bully's user avatar
  • 23
0 votes
1 answer
975 views

I ma trying to understand how to compile an Audio Worklet in webassembly using the Wasm Audio Worklets API of the emscripten. Using the code listed in the tutorial on the API reference here and ...
ddgg's user avatar
  • 327
10 votes
5 answers
6k views

I have exported the web version of my Godot 4, it is in a folder on my local drive. Because of the SharedArrayBuffer dependency I can not just double-click in the index.html file. If I do so I see ...
fguillen's user avatar
  • 39.5k
3 votes
1 answer
209 views

In Chrome, one can make an extension cross-origin isolated by adding the following to manifest.json: { ... "cross_origin_embedder_policy": { "value": "require-...
eoirqgfoqkrognoqwfr's user avatar
0 votes
1 answer
374 views

The ArrayBuffer.isView() static method checks if it's one of the ArrayBuffer views, such as TypedArray objects or a DataView. How do you check if it's a view of a SharedArrayBuffer? It's been a quite ...
Константин Ван's user avatar
2 votes
1 answer
2k views

My system is Ubuntu and i use the apache2 web server. I need SharedArrayBuffer in my site. But when I call my page I get the error: "Uncaught (in promise) ReferenceError: SharedArrayBuffer is not ...
Spiri's user avatar
  • 439
5 votes
0 answers
647 views

I've added a feature to my web app that requires using SharedArrayBuffer. To access shared SharedArrayBuffer my site needs to be cross origin isolated. I have added the required headers Cross-Origin-...
patrick_corrigan's user avatar
3 votes
1 answer
2k views

I am trying to run mupdf built as web assembly in a webview on Android. I have set the response headers correctly as far as I know, and this is illustrated by the fact that the web page using the web ...
Benson Bear's user avatar
1 vote
1 answer
440 views

I'm starting my react-native project using expo in the iOS version and getting this obscure error which is blocking development progress. I've only started to see this error after trying to setup the ...
tscafie's user avatar
  • 61
0 votes
1 answer
1k views

I have enable SharedArrayBuffer and was working in my localhost but once i pushed it to testing environment it is not working. I added these cors headers to enable SharedArrayBuffer Cross-Origin-...
Badri's user avatar
  • 106
0 votes
1 answer
679 views

I have one page on my site that uses SharedArrayBuffer, which means I need to use Cross-Origin-Opener-Policy - but this also means I can't use analytics to see if anyone actually uses that page or not....
BinaryMoon's user avatar
1 vote
1 answer
1k views

I'm looking to do some multithreading for my web application to improve performance and I've stumbled upon a head-scratcher. I'm currently developing on localhost (vite server) on Chrome. Basically I ...
Pete's user avatar
  • 668
1 vote
1 answer
2k views

I am facing a problem, SAB(SharedArrayBuffer) does not work in cross-domain environment. Target IFrame's source is on another domain, I added aliases to hosts file(Windows OS). I am sending SAB ...
moraprex's user avatar
  • 113
6 votes
3 answers
2k views

I am facing a problem with decode() on SharedArrayBuffer. Code: var sharedArrayBuffer = new SharedArrayBuffer(2); var uint8Array = new Uint8Array(sharedArrayBuffer); uint8Array[0] = 20; var ...
moraprex's user avatar
  • 113
2 votes
1 answer
1k views

Here are my two files, test.js and test.php. test.js: console.log("test.js is loaded") test.php: <?php header('Content-Type: text/html; charset=UTF-8'); //header('Cross-Origin-Embedder-...
張俊芝's user avatar
  • 449
0 votes
0 answers
696 views

I was just tinkering and messing around with worker thread in NodeJS and managed to do so in a fundamental way. But running the child process and expecting result to be "30,000" after ...
Howard F's user avatar
  • 148
2 votes
1 answer
604 views

Buon giorno, here is the situation: A git repo hosted through Github pages: https://github.com/ossia/score-web ; I configured Github to put it behind the domain https://ossia.io thus at the address ...
Jean-Michaël Celerier's user avatar
1 vote
1 answer
1k views

I'm working on a project that implements react-app-rewired to send headers to the server in order to bypass ReferenceError: SharedArrayBuffer is not defined (I'm getting this error from using the @...
joseph's user avatar
  • 11
1 vote
1 answer
763 views

I have some code that creates a shared array buffer and passes the Int32Array and NOT the SharedArrayBuffer to the worker: let worker = new Worker(...); worker.postMessage({ position: { x: ...
Floss's user avatar
  • 646
3 votes
0 answers
277 views

To support usage of SharedArrayBuffer in our web app we had to add the response headers: Cross-Origin-Embedder-Policy: require-corp Cross-Origin-Opener-Policy: same-origin We have also tried: Cross-...
Bryan's user avatar
  • 31
1 vote
1 answer
2k views

I am trying to send a message from one worker to the other (and then respond back through a SharedArrayBuffer). But I can't find any information on posting a message to another worker from within a ...
yosmo78's user avatar
  • 663
1 vote
0 answers
245 views

I have a web worker running in a while(true) loop, the code is too deep to change it at this point in time. The worker can access a Shared Array Buffer, I have a means to signal that there is data ...
yosmo78's user avatar
  • 663
1 vote
1 answer
1k views

I have an array of objects which contains more objects as values. I'm working with Web Workers and I need to use this exact array of objects (or another object) in worker file. Problem is I couldn't ...
hakan's user avatar
  • 11
6 votes
2 answers
3k views

We have an electron app which uses ShareArrayBuffer. It was written with a very old version of electron. When we updated the electron version in order to use SIMD instructions in WASM, it started ...
Harunobu Oyama's user avatar
8 votes
1 answer
3k views

I need to share an object between a client side application and a web worker and I heard about SharedArrayBuffers. This is what I'd like to do. main.js let myWorker = new Worker('/worker.js') let ...
zlowe's user avatar
  • 602
6 votes
1 answer
4k views

tl;dr Essentially i need to set COOP/COEP headers to enable SharedArrayBuffer functionality in my Capacitor v3 iOS App and running a ServiceWorker to set the headers is the only solution i have found ...
Cam's user avatar
  • 980
3 votes
2 answers
1k views

I'm using Vite and Cypress for dev and testing I'm loading ffmpeg, it loads fine on Chrome but on Cypress, it gives this error ReferenceError: SharedArrayBuffer is not defined Apparently, it's caused ...
unloco's user avatar
  • 7,410
6 votes
2 answers
8k views

I keep getting a 'SharedArrayBuffer is not defined' error when trying to run ffmpeg.wasm. It appears this is on the Webassembly side. Regardless, I know this is an issue that can be overcome with ...
SnakeBearLB's user avatar
4 votes
2 answers
13k views

I have this experiment which I only run on my local machine: I load an external webpage from, for example https://example.com and the with puppeteer I inject a javascript file which is served from ...
Jeanluca Scaljeri's user avatar
1 vote
1 answer
2k views

So the other day, I asked this question about javascript webworkers: Javascript Webworker how to put json information into array buffer. One of the answers I received was to use a SharedArrayBuffer to ...
user16791137's user avatar
0 votes
0 answers
323 views

About a year ago, I wrote a video player for a proprietary video format that uses WebAssembly, WebGL, and WebSockets. It was working great until the most recent versions of Chrome, which disable ...
Timothy Miller's user avatar
1 vote
0 answers
187 views

I'm trying to build a Node application using worker threads, divided into three parts. The primary thread that delegates tasks A dedicated worker thread that updates shared data A pool of worker ...
Eric N's user avatar
  • 229