diff --git a/src/systems/armarker/camera-capture/ccarheadset.js b/src/systems/armarker/camera-capture/ccarheadset.js index 87ade6ee3..312e21345 100644 --- a/src/systems/armarker/camera-capture/ccarheadset.js +++ b/src/systems/armarker/camera-capture/ccarheadset.js @@ -189,7 +189,11 @@ export class ARHeadsetCameraCapture { }; // post frame data, marking the pixel buffer as transferable - this.cvWorker.postMessage(camFrameMsg, [camFrameMsg.grayscalePixels.buffer]); + try { + this.cvWorker.postMessage(camFrameMsg, [camFrameMsg.grayscalePixels.buffer]); + } catch (err) { + console.warn('Failed to post message to CV Worker', err); + } } /**