# Screen Share Error with odd sized windows

**URL:** <https://devforum.zoom.us/t/screen-share-error-with-odd-sized-windows/108023>\
**Category:** Video SDK\
**Tags:** video-sdk\
**Created:** [April 16, 2024, 9:05pm UTC](https://devforum.zoom.us/t/screen-share-error-with-odd-sized-windows/108023 "2024-04-16T21:05:47Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![sam9](https://avatars.discourse-cdn.com/v4/letter/s/858c86/32.png) [@sam9](https://devforum.zoom.us/u/sam9)\
**Post date:** [April 16, 2024, 9:05pm UTC](https://devforum.zoom.us/t/screen-share-error-with-odd-sized-windows/108023/1 "2024-04-16T21:05:48Z")

</div>

### Format Your New Topic as Follows:

**Video SDK Type and Version**  
sdk version 1.10.8

**Description**  
When a host attempts to share a smaller sized/odd sized window such as a terminal window of imessages window the below error is being displayed on the host’s browser. The result on the client side is a green screen.

**Error?**  
Uncaught (in promise) TypeError: Failed to execute ‘copyTo’ on ‘VideoFrame’: destination is not large enough.

**Troubleshooting Routes**  
I’ve been attempting to change the size of the video element on the host side and the canvas on the participant with no luck…

**How To Reproduce**  
_Steps to reproduce the behavior including:_  
\*1. Try sharing screen through normal documented process:

Host:

```auto
if (stream.isStartShareScreenWithVideoElement()) {
  await stream.startShareScreen(
    document.querySelector('#my-screen-share-content-video')
  )
  // screen share successfully started and rendered
} else {
  await stream.startShareScreen(
    document.querySelector('#my-screen-share-content-canvas')
  )
  // screen share successfully started and rendered
}

```

Participant:

```auto
client.on('active-share-change', (payload) => {
  if (payload.state === 'Active') {
    stream.startShareView(
      document.querySelector('#participants-screen-share-content-canvas'),
      payload.userId
    )
  } else if (payload.state === 'Inactive') {
    stream.stopShareView()
  }
})

```

Errors:  
Host Error View:

 ![Screenshot 2024-04-16 at 1.59.31 PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/1/b/1be6aaaa4c665ad3e87ff8edb428019e588577e3.png)

Participant Error View:

 ![Screenshot 2024-04-16 at 1.59.36 PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/b/7/b729e5455bd35ebefde433baf801583b529c2bab.png)  
View:

\*3. All browsers

---

<div class="post-metadata">

**Author:** ![sam9](https://avatars.discourse-cdn.com/v4/letter/s/858c86/32.png) [@sam9](https://devforum.zoom.us/u/sam9)\
**Post date:** [April 19, 2024, 9:22pm UTC](https://devforum.zoom.us/t/screen-share-error-with-odd-sized-windows/108023/2 "2024-04-19T21:22:01Z")

</div>

@vic.yang

Anyway you could take a look at this? I am doing a live test of this soon… would really appreciate the help. Thank you!

---

<div class="post-metadata">

**Author:** ![sam9](https://avatars.discourse-cdn.com/v4/letter/s/858c86/32.png) [@sam9](https://devforum.zoom.us/u/sam9)\
**Post date:** [April 21, 2024, 11:24pm UTC](https://devforum.zoom.us/t/screen-share-error-with-odd-sized-windows/108023/3 "2024-04-21T23:24:29Z")

</div>

@chunsiong.zoom Anyway you could assist on this? Thanks!

---

<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:** [April 22, 2024, 2:29am UTC](https://devforum.zoom.us/t/screen-share-error-with-odd-sized-windows/108023/4 "2024-04-22T02:29:02Z")

</div>

Hey @sam9

Could you share the session ID with us for troubleshooting purposes?

Thanks  
Vic

---

<div class="post-metadata">

**Author:** ![sam9](https://avatars.discourse-cdn.com/v4/letter/s/858c86/32.png) [@sam9](https://devforum.zoom.us/u/sam9)\
**Post date:** [April 22, 2024, 4:23am UTC](https://devforum.zoom.us/t/screen-share-error-with-odd-sized-windows/108023/5 "2024-04-22T04:23:47Z")

</div>

Thanks for the response @vic.yang !

Session ID is : xBUZ/w6vR9aBtYafKWfMTA==

---

<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:** [April 22, 2024, 7:07am UTC](https://devforum.zoom.us/t/screen-share-error-with-odd-sized-windows/108023/6 "2024-04-22T07:07:53Z")

</div>

Hey @sam9

Thank you for sharing the session ID with us. We are currently analyzing the logs to identify the cause of the issue.

Thanks  
Vic

---

<div class="post-metadata">

**Author:** ![sam9](https://avatars.discourse-cdn.com/v4/letter/s/858c86/32.png) [@sam9](https://devforum.zoom.us/u/sam9)\
**Post date:** [April 24, 2024, 7:03pm UTC](https://devforum.zoom.us/t/screen-share-error-with-odd-sized-windows/108023/7 "2024-04-24T19:03:18Z")

</div>

@vic.yang Just checking if any updates on this. Thanks!

---

<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:** [April 25, 2024, 5:49am UTC](https://devforum.zoom.us/t/screen-share-error-with-odd-sized-windows/108023/8 "2024-04-25T05:49:43Z")

</div>

Hey @sam9

We haven’t been able to reproduce the issue in our local environment. Could you please enable `SharedArrayBuffer` and retry? Alternatively, you can try using our sample app to see if the issue persists.

> **[GitHub - zoom/videosdk-web-sample: Zoom Video SDK web sample](https://github.com/zoom/videosdk-web-sample/tree/master)**
>
> master

Thanks  
Vic

---

<div class="post-metadata">

**Author:** ![sam9](https://avatars.discourse-cdn.com/v4/letter/s/858c86/32.png) [@sam9](https://devforum.zoom.us/u/sam9)\
**Post date:** [April 29, 2024, 10:38pm UTC](https://devforum.zoom.us/t/screen-share-error-with-odd-sized-windows/108023/9 "2024-04-29T22:38:29Z")

</div>

Hi @vic.yang

The problem persists with SharedArrayBuffer on as well as this actually happens on Zoom’s current public web platform. With SharedArrayBuffer you just get a black screen with no shared content. Seeing this is occurring on the public web product it seems this might be a problem with Zoom? I tested sharing the same window on Google Meet web and it worked fine…

Is there some limitation to odd sized windows in Zoom screen sharing as a whole?

See below gif of bug. Screen share doesn’t work when I select my messages window or the terminal window. Works fine if I select screen… having same issue on my video sdk implementation with or without shared array buffer. Not happening on Google Meet

![share-bug](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/3/a/3ab3a68932902b0af557ecb42f68822f2abf4586.gif)

---

<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:** [April 30, 2024, 2:19am UTC](https://devforum.zoom.us/t/screen-share-error-with-odd-sized-windows/108023/10 "2024-04-30T02:19:07Z")

</div>

Hey @sam9

Thank you for providing additional scenarios related to this issue. We are currently analyzing the root cause.

To aid in our investigation, it would be greatly appreciated if you could report this issue related to the meeting. You can do this by following these steps: go to the bottom toolbar \> Settings \> About \> Send report. Afterward, could you please share the tracking ID with us?

Thanks  
Vic

---

<div class="post-metadata">

**Author:** ![sam9](https://avatars.discourse-cdn.com/v4/letter/s/858c86/32.png) [@sam9](https://devforum.zoom.us/u/sam9)\
**Post date:** [April 30, 2024, 2:42am UTC](https://devforum.zoom.us/t/screen-share-error-with-odd-sized-windows/108023/11 "2024-04-30T02:42:50Z")

</div>

@vic.yang

Trackng ID: bb145d5a-d5d9-45f4-8efe-4d30fa0c40f8

---

<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:** [May 2, 2024, 5:50am UTC](https://devforum.zoom.us/t/screen-share-error-with-odd-sized-windows/108023/12 "2024-05-02T05:50:55Z")

</div>

Hey @sam9

Thank you for sharing this exceptional case with us.

We do acknowledge that there are some issues with screen sharing in this scenario, and we will address them in the next version.

Thanks  
Vic

---

<div class="post-metadata">

**Author:** ![sam9](https://avatars.discourse-cdn.com/v4/letter/s/858c86/32.png) [@sam9](https://devforum.zoom.us/u/sam9)\
**Post date:** [May 2, 2024, 3:34pm UTC](https://devforum.zoom.us/t/screen-share-error-with-odd-sized-windows/108023/13 "2024-05-02T15:34:17Z")

</div>

Thanks @vic.yang Any idea on timeline till next version?

---

<div class="post-metadata">

**Author:** ![luis.sanchez](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/luis.sanchez/32/65253_2.png) [@luis.sanchez](https://devforum.zoom.us/u/luis.sanchez)\
**Post date:** [May 2, 2024, 9:10pm UTC](https://devforum.zoom.us/t/screen-share-error-with-odd-sized-windows/108023/14 "2024-05-02T21:10:38Z")

</div>

Hi @vic.yang, this error is happening to me too  
I managed to replicate it using a copy of the zoom demo with the sdk versions “1.10.8” and “1.11.0”.  
It looks like the problem was happening with Macs users that uses Chrome (it didn’t happen to me in Safari in my few tests)  
With Windows users there was no error when screen sharing Windows applications  
Sometimes it worked, sometimes it didn’t work, we tried to share a pdf file with “Preview” (in Mac) and it didn’t work at first, but after more test it finally worked  
Also we tried resizing the app to full screen or another size, and we got no results, the issue was still happening  
This is how the frozen render loooked for the viewer

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/0/c/0cac8278a0718931e4d8d0d19e765131dc900786.jpeg)  
And the same error about “Failed to execute ‘copyTo’ on ‘VideoFrame’: destination is not large enough.” showed on the console.

Session Id of “1.10.8” version test: ECE6R8e+SCyZS/4CNRP9qQ==  
Session Id of “1.11.0” version test: Lqbqul7QSSe50IABsB9tCw==
