Hi! This is quite a weird one, sorry in advance 😬
Recently, I noticed that when Sentry is enabled, I am given an issue in my app regarding the use of SharedArrayBuffer by some wasm module we are using through emscripten. The whole module crashes, and the app cannot start without it.
Uncaught (in promise) DataCloneError: Failed to execute 'postMessage' on 'Worker': SharedArrayBuffer transfer requires self.crossOriginIsolated.
at […]
at new Promise (<anonymous>)
at loadWasmModuleToWorker […]
at Array.map (<anonymous>)
at Object.loadWasmModuleToAllWorkers […]
at […]
at callRuntimeCallbacks […]
at preRun […]
at run […]
at removeRunDependency […]
(this is an emscripten stacktrace, I just included it for context)
I’ve made some tests, and found that:
- the issue only arises after upgrading
@sentry/electronpastv6.0 @sentry/electron v5.12.0works fine- I am also using
@sentry/vue, butv9.1.0poses no issue
I am not aware of Sentry modifying anything related to SharedArrayBuffer nor crossOriginIsolated, does anyone know something about that?
Thanks in advance ❤️