# Layers Not Rendering Correctly on Windows Client

**URL:** <https://devforum.zoom.us/t/layers-not-rendering-correctly-on-windows-client/77760>\
**Category:** Zoom Apps\
**Created:** [October 22, 2022, 12:24am UTC](https://devforum.zoom.us/t/layers-not-rendering-correctly-on-windows-client/77760 "2022-10-22T00:24:11Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![vandalayindustries](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vandalayindustries/32/39002_2.png) [@vandalayindustries](https://devforum.zoom.us/u/vandalayindustries)\
**Post date:** [October 22, 2022, 12:24am UTC](https://devforum.zoom.us/t/layers-not-rendering-correctly-on-windows-client/77760/1 "2022-10-22T00:24:11Z")

</div>

**Configuration**  
Windows Running latest Zoom Client 5.12.2

**Description**  
Layers API does not render correctly. For example, it positions several elements successfully in the canvas, and then freezes (see screenshot) Several users have reported the issue. Behavior works as intended on my Mac client.

 ![Screen Shot 2022-10-21 at 3.41.02 PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/a/f/aff2be87385ec29aabf779a39d03d94f5f163252.png)

**How To Reproduce**

1. Call `runRenderingContext` with option `view: 'camera'`
2. Draw something on the canvas (in the above example, call `drawParticipant` and `drawWebView` with valid options). Both draws are positioned properly, but neither finishes rendering.

---

<div class="post-metadata">

**Author:** ![Robert.Wallis](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/robert.wallis/32/38438_2.png) [@Robert.Wallis](https://devforum.zoom.us/u/Robert.Wallis)\
**Post date:** [October 24, 2022, 3:59pm UTC](https://devforum.zoom.us/t/layers-not-rendering-correctly-on-windows-client/77760/2 "2022-10-24T15:59:53Z")

</div>

Could you please verify that:

- `drawWebView` is using the config.media.renderTarget for the width and height, and the x, and y are 0,0 ?

Thank you!

---

<div class="post-metadata">

**Author:** ![vandalayindustries](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vandalayindustries/32/39002_2.png) [@vandalayindustries](https://devforum.zoom.us/u/vandalayindustries)\
**Post date:** [October 24, 2022, 5:32pm UTC](https://devforum.zoom.us/t/layers-not-rendering-correctly-on-windows-client/77760/3 "2022-10-24T17:32:28Z")

</div>

Confirmed on both accounts. Although noting that it seems to fail regardless of what valid width, height, x, and y are used. I.E. it positions them correctly in the frame but, fails to render them.

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [October 29, 2022, 5:34pm UTC](https://devforum.zoom.us/t/layers-not-rendering-correctly-on-windows-client/77760/4 "2022-10-29T17:34:17Z")

</div>

Is the windows system using a high dpi screen? I’ve seen issues drawing in the past related to the size of the image being drawn when the scaling factor is used with the size of the image. Could that be a factor here?

If not, it seems like this could be an issue with the way the client renders. Are you able to send a code snippet to reproduce the issue? You can also use the [Basic Sample App](https://github.com/zoom/zoomapps-sample-js) as a reference

---

<div class="post-metadata">

**Author:** ![vandalayindustries](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vandalayindustries/32/39002_2.png) [@vandalayindustries](https://devforum.zoom.us/u/vandalayindustries)\
**Post date:** [November 9, 2022, 12:58am UTC](https://devforum.zoom.us/t/layers-not-rendering-correctly-on-windows-client/77760/5 "2022-11-09T00:58:46Z")

</div>

Thanks for the response Max. In this case it’s not a high DPI screen. It’s hard to consistently reproduce… it seems like the rendering intermittently fails. We’ve heard from several customers that have experienced this so it’s not related to a single machine.

There is [another ticket about intermittent failing of the layers API](https://devforum.zoom.us/t/intermittent-failures-of-layers-api-with-error-the-zoom-client-encountered-an-error-while-processing-the-request/74835), but what I’m describing here is essentially a silent failure, in that it doesn’t throw an error.

I’ll update this if I can find a consistent way to reproduce.

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [November 10, 2022, 8:27pm UTC](https://devforum.zoom.us/t/layers-not-rendering-correctly-on-windows-client/77760/6 "2022-11-10T20:27:48Z")

</div>

Thank you for testing, I’m eager to see if we can get to the bottom of this as well.
