Description
I’m encountering an issue with the share screen on Safari. When I’m in a session, the first few times it works, but if i turn it on and off, eventually it doesn’t anymore. The shared screen is appearing on Safari (the sender), but not on the receiving side (Chrome, Safari). After about 30 seconds, i get an “OPERATION_TIMEOUT” error on the receiving browser after calling startShareView. On Safari, eventually, it says I’m out of memory and it stops working (I also added a listener on active-media-failed). I have SharedArrayBuffer enabled and I’m using different canvases for viewing/sharing.
Also, in the recording, the share appears blank
Browser Console Error
On the receiving browser:
{
“type”: “OPERATION_TIMEOUT”
}
On Safari:
[Warning] Aborted() (a90dd0d6-f707-4b25-99a2-67db8931a989, line 1)
[Log] >>> Set_Share_Mode_js (0c2df656-ea0d-4388-ac71-d05f5bced12a, line 1)
[Error] Unhandled Promise Rejection: RuntimeError: Aborted(). Build with -sASSERTIONS for more info.
abort (a90dd0d6-f707-4b25-99a2-67db8931a989:1:8872)
_abort (a90dd0d6-f707-4b25-99a2-67db8931a989:1:104991)
<?>.wasm-function[12113] <?>.wasm-function[10738] <?>.wasm-function[3683] <?>.wasm-function[3688] <?>.wasm-function[3690] <?>.wasm-function[4550] <?>.wasm-function[733] <?>.wasm-function[350](anonymous function) (a90dd0d6-f707-4b25-99a2-67db8931a989:1:135274)
(anonymous function) (0c2df656-ea0d-4388-ac71-d05f5bced12a:1:298488)
Br (0c2df656-ea0d-4388-ac71-d05f5bced12a:1:298543)
(anonymous function) (0c2df656-ea0d-4388-ac71-d05f5bced12a:1:301794)
[Log] {payload: {message: “Uh-oh! You’re running low on memory. Please close all browsers and rejoin the meeting.”, type: “video”, code: 205}} (main.402b6bc6589639f1.js, line 102482)
[Log] {payload: {message: “Oops! Something went wrong. Please close all browsers and rejoin the meeting.”, type: “sharing”, code: 301}} (main.402b6bc6589639f1.js, line 102482)
Web Video SDK version
2.1.0 (but was also happening on the previous version)
Video SDK Code Snippets
const shareScreenHandler = async (payload: {
state: 'Active' | 'Inactive';
userId: number;
}) => {
if (!screenShareViewCanvasContainerRef.current) return;
if (payload.state === 'Active') {
try {
setIsScreenShareLoading(true);
setIsViewingScreenShare(true);
await stream.startShareView(
screenShareViewCanvasContainerRef.current,
payload.userId
);
setIsScreenShareLoading(false);
} catch (error) {
setIsViewingScreenShare(false);
setIsScreenShareLoading(false);
showToast({
variant: 'error',
messageBody: 'Cannot view share screen.',
});
console.log(error);
}
} else if (payload.state === 'Inactive') {
try {
await stream.stopShareView();
setIsViewingScreenShare(false);
} catch (error) {
console.log(error);
}
}
};
const activeMediaFailedHandler = (payload: any) => {
console.log({ payload });
};
zoomClient.on('active-media-failed', activeMediaFailedHandler);
zoomClient.on('active-share-change', shareScreenHandler);
To Reproduce
Steps to reproduce the behavior:
- Open Safari & Chrome
- Share & stop sharing from Safari continuously for about 1 min (this is the only way i was able to reproduce it, although some of our users have been able to reproduce this issue from the second or third try)
Device:
- Device: Macbook Pro
- OS: macOS 15.1
- Browser: Safari
- Browser Version: 18.1