# Occasional Error: \[type: "INVALID\_PARAMETERS", reason: "Virtual background only compatible with Chrome and Edge with SharedArrayBuffer"

**URL:** <https://devforum.zoom.us/t/occasional-error-type-invalid-parameters-reason-virtual-background-only-compatible-with-chrome-and-edge-with-sharedarraybuffer/102793>\
**Category:** Video SDK\
**Tags:** video-sdk\
**Created:** [January 30, 2024, 8:23am UTC](https://devforum.zoom.us/t/occasional-error-type-invalid-parameters-reason-virtual-background-only-compatible-with-chrome-and-edge-with-sharedarraybuffer/102793 "2024-01-30T08:23:25Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![shi88.andy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/shi88.andy/32/55545_2.png) [@shi88.andy](https://devforum.zoom.us/u/shi88.andy)\
**Post date:** [January 30, 2024, 8:23am UTC](https://devforum.zoom.us/t/occasional-error-type-invalid-parameters-reason-virtual-background-only-compatible-with-chrome-and-edge-with-sharedarraybuffer/102793/1 "2024-01-30T08:23:25Z")

</div>

This happen rarely, but when it happened, no mater how many time we retry, it’ll keep returning the same error unless we reload our browser, then the error goes away.

I’m not sure if the error make sense, I’m on  
device: macbook air m1  
macos sonoma  
browser: brave (chromium based) and have SAB enabled

The issue is not consistently happening which makes it hard to catch.

---

<div class="post-metadata">

**Author:** ![shi88.andy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/shi88.andy/32/55545_2.png) [@shi88.andy](https://devforum.zoom.us/u/shi88.andy)\
**Post date:** [January 30, 2024, 8:48am UTC](https://devforum.zoom.us/t/occasional-error-type-invalid-parameters-reason-virtual-background-only-compatible-with-chrome-and-edge-with-sharedarraybuffer/102793/2 "2024-01-30T08:48:47Z")

</div>

We found out that turning off the brave shield makes it works, but we are not sure why

---

<div class="post-metadata">

**Author:** ![vic.yang](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vic.yang/32/24656_2.png) [@vic.yang](https://devforum.zoom.us/u/vic.yang)\
**Post date:** [January 31, 2024, 5:34am UTC](https://devforum.zoom.us/t/occasional-error-type-invalid-parameters-reason-virtual-background-only-compatible-with-chrome-and-edge-with-sharedarraybuffer/102793/3 "2024-01-31T05:34:42Z")

</div>

Hey @shi88.andy

Thanks for your feedback.

We will test the Brave browser and provide you with a response.

Thanks  
Vic

---

<div class="post-metadata">

**Author:** ![vic.yang](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vic.yang/32/24656_2.png) [@vic.yang](https://devforum.zoom.us/u/vic.yang)\
**Post date:** [March 5, 2024, 7:13am UTC](https://devforum.zoom.us/t/occasional-error-type-invalid-parameters-reason-virtual-background-only-compatible-with-chrome-and-edge-with-sharedarraybuffer/102793/4 "2024-03-05T07:13:08Z")

</div>

Hey @shi88.andy

Sorry for the late reply.

In the Video SDK, we rely on `navigator.hardwareConcurrency` to determine if the device has enough performance to support certain features (such as Virtual background).

> **[Navigator: hardwareConcurrency property - Web APIs | MDN](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/hardwareConcurrency)**
>
> The navigator.hardwareConcurrency read-only property
> returns the number of logical processors available to run threads on the user's
> computer.

In other browsers such as Chrome, Edge, and Firefox, it always returns the correct logical core count. However, in the Brave browser, it is a random value (between 2 and 8). So you might see that virtual background sometimes works and sometimes doesn’t.

> <https://github.com/brave/brave-browser/issues/10808>
>
> This is a sub-issue of the larger fingerprint defense reorganization issue: #878…7
> 
> Relevant API: \[\`navigator.hardwareConcurrency\`\](https://developer.mozilla.org/en-US/docs/Web/API/NavigatorConcurrentHardware/hardwareConcurrency)
> 
> Related data:
> \- Moz Telemetry (distribution of # cores, which is related to but different than the logical cores \`navigator.hardwareConcurrency\` returns): https://data.firefox.com/dashboard/hardware
> \- G Telemetry on number of using sites: https://www.chromestatus.com/metrics/feature/timeline/popularity/2656
> 
> \*\*default protection\*\*
> Report a value between 2 and the true value
> 
> \*\*max protection\*\*
> Report a value between 2 and the 8

Thanks  
Vic

---

<div class="post-metadata">

**Author:** ![shi88.andy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/shi88.andy/32/55545_2.png) [@shi88.andy](https://devforum.zoom.us/u/shi88.andy)\
**Post date:** [March 5, 2024, 11:43am UTC](https://devforum.zoom.us/t/occasional-error-type-invalid-parameters-reason-virtual-background-only-compatible-with-chrome-and-edge-with-sharedarraybuffer/102793/5 "2024-03-05T11:43:17Z")

</div>

Thanks, but this just happened to us again this morning on  
macbook air m1, chrome Version 122.0.6261.94 (Official Build) (arm64)
