# runRenderingContext causes flickering screen on Windows

**URL:** <https://devforum.zoom.us/t/runrenderingcontext-causes-flickering-screen-on-windows/118752>\
**Category:** Zoom Apps\
**Created:** [October 8, 2024, 4:17pm UTC](https://devforum.zoom.us/t/runrenderingcontext-causes-flickering-screen-on-windows/118752 "2024-10-08T16:17:45Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![h.g](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/h.g/32/57536_2.png) [@h.g](https://devforum.zoom.us/u/h.g)\
**Post date:** [October 8, 2024, 4:17pm UTC](https://devforum.zoom.us/t/runrenderingcontext-causes-flickering-screen-on-windows/118752/1 "2024-10-08T16:17:45Z")

</div>

Hello, I have a Zoom App that uses the Layers API. My Windows users have reported their video flickering repeatedly when using the App.

I did a little debugging and found out whenever `runRenderingContext()` is called, the screen flickers. I do not do anything else after `runRenderingContext()` e.g. I do NOT call `drawImage()`.

Here is a video of what is happening:

> **[windows runRenderingContext flickering.mov](https://drive.google.com/file/d/1vBG3EfeTiui5_jWls8-_BkhoG7I8VuKV/view?usp=drive_link)**
>
> Google Drive file.

Steps to reproduce:

1. Launch a Zoom App on a WINDOWS machine
2. call `runRenderingContext()`

Please update if there is a resolution - thank you!

---

<div class="post-metadata">

**Author:** ![donte.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/donte.zoom/32/24412_2.png) [@donte.zoom](https://devforum.zoom.us/u/donte.zoom)\
**Post date:** [October 8, 2024, 6:19pm UTC](https://devforum.zoom.us/t/runrenderingcontext-causes-flickering-screen-on-windows/118752/2 "2024-10-08T18:19:00Z")

</div>

@h.g,

Thanks for posting in the Zoom Developer forum! What version of the Zoom Client are you running?

---

<div class="post-metadata">

**Author:** ![h.g](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/h.g/32/57536_2.png) [@h.g](https://devforum.zoom.us/u/h.g)\
**Post date:** [October 8, 2024, 6:40pm UTC](https://devforum.zoom.us/t/runrenderingcontext-causes-flickering-screen-on-windows/118752/3 "2024-10-08T18:40:31Z")

</div>

@donte.zoom

Version: 6.1.12 (46889)

![Screenshot 2024-10-08 at 2.40.18 PM](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/a/c/ac90a1ba26d74cbbbd55e9d0598df5340eeb4359.png)

---

<div class="post-metadata">

**Author:** ![donte.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/donte.zoom/32/24412_2.png) [@donte.zoom](https://devforum.zoom.us/u/donte.zoom)\
**Post date:** [October 8, 2024, 7:19pm UTC](https://devforum.zoom.us/t/runrenderingcontext-causes-flickering-screen-on-windows/118752/4 "2024-10-08T19:19:36Z")

</div>

@h.g ,  
Okay, it looks like you are on an older version, can you upgrade and share if the behavior persists?

---

<div class="post-metadata">

**Author:** ![h.g](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/h.g/32/57536_2.png) [@h.g](https://devforum.zoom.us/u/h.g)\
**Post date:** [October 8, 2024, 9:09pm UTC](https://devforum.zoom.us/t/runrenderingcontext-causes-flickering-screen-on-windows/118752/5 "2024-10-08T21:09:50Z")

</div>

@donte.zoom I updated to Version: 6.2.3 (47507), issues remain

---

<div class="post-metadata">

**Author:** ![donte.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/donte.zoom/32/24412_2.png) [@donte.zoom](https://devforum.zoom.us/u/donte.zoom)\
**Post date:** [October 9, 2024, 5:12am UTC](https://devforum.zoom.us/t/runrenderingcontext-causes-flickering-screen-on-windows/118752/6 "2024-10-09T05:12:32Z")

</div>

@h.g ,

This sounds like a bug. Are you seeing any error messages? Could you share the code snippet you’re using for the Layer API?

---

<div class="post-metadata">

**Author:** ![h.g](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/h.g/32/57536_2.png) [@h.g](https://devforum.zoom.us/u/h.g)\
**Post date:** [October 9, 2024, 1:36pm UTC](https://devforum.zoom.us/t/runrenderingcontext-causes-flickering-screen-on-windows/118752/7 "2024-10-09T13:36:43Z")

</div>

@donte.zoom yeah sure, on app startup, i just call this

```auto
zoomSdk.runRenderingContext({
  view: "camera",
})

```

NOTE: This only affects Windows clients, on Mac it is fine.

---

<div class="post-metadata">

**Author:** ![donte.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/donte.zoom/32/24412_2.png) [@donte.zoom](https://devforum.zoom.us/u/donte.zoom)\
**Post date:** [October 9, 2024, 4:15pm UTC](https://devforum.zoom.us/t/runrenderingcontext-causes-flickering-screen-on-windows/118752/8 "2024-10-09T16:15:08Z")

</div>

@h.g ,  
Can you show the entire code snippet ?

---

<div class="post-metadata">

**Author:** ![h.g](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/h.g/32/57536_2.png) [@h.g](https://devforum.zoom.us/u/h.g)\
**Post date:** [October 9, 2024, 5:24pm UTC](https://devforum.zoom.us/t/runrenderingcontext-causes-flickering-screen-on-windows/118752/9 "2024-10-09T17:24:47Z")

</div>

Sure, my app is based on the `zoomapps-advancedsample-react`.

Replace this part of the sample app [zoomapps-advancedsample-react/frontend/src/App.js at main · zoom/zoomapps-advancedsample-react · GitHub](https://github.com/zoom/zoomapps-advancedsample-react/blob/main/frontend/src/App.js#L24-L80)

with

```js
const configureSdk = async () => {
      // to account for the 2 hour timeout for config
      const configTimer = setTimeout(() => {
        setCounter(counter + 1);
      }, 120 * 60 * 1000);
      try {
        // Configure the JS SDK, required to call JS APIs in the Zoom App
        // These items must be selected in the Features -> Zoom App SDK -> Add APIs tool in Marketplace
        const configResponse = await zoomSdk.config({
          version: "0.16",
          capabilities: [
            // Detect when camera turns on/off.
            "onMyMediaChange",

            // Layers API capabilities.
            "getRunningContext",
            "runRenderingContext",
            "closeRenderingContext",
            "drawImage",
            "clearImage",

            // For our Zoom app.
            "getUserContext",
            "getMeetingUUID",
            "getMeetingParticipants",
            "getVideoState",

            // In App authorization
            "authorize",
          ],
        });
        // console.log("App configured", configResponse);
        // The config method returns the running context of the Zoom App
        setRunningContext(configResponse.runningContext);
        setUserContextStatus(configResponse.auth.status);
        zoomSdk.addEventListener("onMyUserContextChange", (event) => {
          setUserContextStatus(event.status);
        });

        // Attempt to close and run rendering context on startup.
        zoomSdk
          .closeRenderingContext()
          .then(() => {
            console.log("STARTUP: Closing existing rendering context.");
          })
          .catch((e) => {
            console.log("STARTUP NO-OP: Context already closed.");
          });

        zoomSdk
          .runRenderingContext({
            view: "camera",
          })
          .then(() => {
            console.log("STARTUP: Running rendering context.");
          })
          .catch((e) => {
            console.log("STARTUP NO-OP: Already rendering context.");
          });
      } catch (error) {
        console.log(error);
        setError("There was an error configuring the JS SDK");
      }
      return () => {
        clearTimeout(configTimer);
      };
    };
    configureSdk();
  }, [counter]);

```

---

<div class="post-metadata">

**Author:** ![donte.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/donte.zoom/32/24412_2.png) [@donte.zoom](https://devforum.zoom.us/u/donte.zoom)\
**Post date:** [October 15, 2024, 1:42pm UTC](https://devforum.zoom.us/t/runrenderingcontext-causes-flickering-screen-on-windows/118752/10 "2024-10-15T13:42:58Z")

</div>

@h.g,

Thanks for sharing this, I’ve reported this behavior to the team. I will keep you posted as update become available.

---

<div class="post-metadata">

**Author:** ![h.g](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/h.g/32/57536_2.png) [@h.g](https://devforum.zoom.us/u/h.g)\
**Post date:** [October 21, 2024, 1:49pm UTC](https://devforum.zoom.us/t/runrenderingcontext-causes-flickering-screen-on-windows/118752/11 "2024-10-21T13:49:37Z")

</div>

@donte.zoom are there any updates?

---

<div class="post-metadata">

**Author:** ![h.g](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/h.g/32/57536_2.png) [@h.g](https://devforum.zoom.us/u/h.g)\
**Post date:** [October 28, 2024, 3:49pm UTC](https://devforum.zoom.us/t/runrenderingcontext-causes-flickering-screen-on-windows/118752/12 "2024-10-28T15:49:30Z")

</div>

@donte.zoom wanted to follow up again - are there any updates or is there a ticket I can track?

---

<div class="post-metadata">

**Author:** ![donte.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/donte.zoom/32/24412_2.png) [@donte.zoom](https://devforum.zoom.us/u/donte.zoom)\
**Post date:** [October 29, 2024, 1:58pm UTC](https://devforum.zoom.us/t/runrenderingcontext-causes-flickering-screen-on-windows/118752/13 "2024-10-29T13:58:26Z")

</div>

@h.g ,  
Yes, thanks for following up on this. First, can you share if you called runRenderingContext and clearRenderingContext alternately 4 times? Currently, clearRenderingContext clears render content, which would cause a brief white screen. If this is the case, can you call clearRenderingContext only when necessary to reduce the flickering and let us know the results from your testing?

---

<div class="post-metadata">

**Author:** ![h.g](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/h.g/32/57536_2.png) [@h.g](https://devforum.zoom.us/u/h.g)\
**Post date:** [November 4, 2024, 4:11pm UTC](https://devforum.zoom.us/t/runrenderingcontext-causes-flickering-screen-on-windows/118752/14 "2024-11-04T16:11:29Z")

</div>

@donte.zoom I only call `runRenderingContext` once. Here is another video with just drawing a red square:

As you can see, all I do is call `drawImage` once after running rendering context and i get the flash.

I only call `closeRenderingContext` when the camera turns off.

> **[screenflickering red square.mov](https://drive.google.com/file/d/1-OXZgZR5ptxhsnvOh2dRoOPxqVcf8GAN/view)**
>
> Google Drive file.

---

<div class="post-metadata">

**Author:** ![h.g](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/h.g/32/57536_2.png) [@h.g](https://devforum.zoom.us/u/h.g)\
**Post date:** [November 12, 2024, 3:48pm UTC](https://devforum.zoom.us/t/runrenderingcontext-causes-flickering-screen-on-windows/118752/15 "2024-11-12T15:48:12Z")

</div>

@donte.zoom hi, is there an update on this?

---

<div class="post-metadata">

**Author:** ![donte.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/donte.zoom/32/24412_2.png) [@donte.zoom](https://devforum.zoom.us/u/donte.zoom)\
**Post date:** [November 12, 2024, 9:20pm UTC](https://devforum.zoom.us/t/runrenderingcontext-causes-flickering-screen-on-windows/118752/16 "2024-11-12T21:20:58Z")

</div>

@h.g ,  
Yes, I’ve checked with our engineers, and currently we don’t have any known issues related to this problem. We will attempt to reproduce the issue on our end. However, we also need your help. Please install the Zoom client troubleshooting build with enhanced logging, reproduce the issue, and then share the logs with us.

Here is the version with the troubleshooting build:

> **[Google Drive: Sign-in](https://accounts.google.com/v3/signin/identifier?continue=https%3A%2F%2Fdrive.google.com%2Fdrive%2Ffolders%2F1kziZC3e-FE-ni-EQp0gf7vWBMRFv0RZf&followup=https%3A%2F%2Fdrive.google.com%2Fdrive%2Ffolders%2F1kziZC3e-FE-ni-EQp0gf7vWBMRFv0RZf&ifkv=AcMMx-fkuK-QHZJBaHLdKF_jJ9t862AzQt59CpvezL4C6856XkKTHIxrw5emAickn4hOmNhwL9Zq9A&osid=1&passive=1209600&service=wise&flowName=GlifWebSignIn&flowEntry=ServiceLogin&dsh=S101230509%3A1731446612645656&ddm=1)**
>
> Access Google Drive with a Google account (for personal use) or Google Workspace account (for business use).

Also, can you book a meeting with me so we can discuss this in more details:

> **[Zoom Scheduler](https://scheduler.zoom.us/donte-small/30-minute-meeting)**
>
> Zoom external booking management

---

<div class="post-metadata">

**Author:** ![h.g](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/h.g/32/57536_2.png) [@h.g](https://devforum.zoom.us/u/h.g)\
**Post date:** [November 13, 2024, 9:51pm UTC](https://devforum.zoom.us/t/runrenderingcontext-causes-flickering-screen-on-windows/118752/17 "2024-11-13T21:51:28Z")

</div>

@donte.zoom Ok i scheduled time for tomorrow. Also - can i have access to that link? I requested access.

---

<div class="post-metadata">

**Author:** ![donte.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/donte.zoom/32/24412_2.png) [@donte.zoom](https://devforum.zoom.us/u/donte.zoom)\
**Post date:** [November 13, 2024, 11:16pm UTC](https://devforum.zoom.us/t/runrenderingcontext-causes-flickering-screen-on-windows/118752/18 "2024-11-13T23:16:51Z")

</div>

@h.g, Okay, great – looking forward to our meeting. Here is another link you can download the client from:

[https://drive.google.com/drive/folders/15VSw7j\_Dpy\_6N40WGSw6JvOKiznIDiIR?usp=sharing](https://drive.google.com/drive/folders/15VSw7j_Dpy_6N40WGSw6JvOKiznIDiIR?usp=sharing)

---

<div class="post-metadata">

**Author:** ![h.g](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/h.g/32/57536_2.png) [@h.g](https://devforum.zoom.us/u/h.g)\
**Post date:** [November 14, 2024, 6:29pm UTC](https://devforum.zoom.us/t/runrenderingcontext-causes-flickering-screen-on-windows/118752/19 "2024-11-14T18:29:24Z")

</div>

@donte.zoom I downloaded the client and the same issues still persist.

There was nothing additional on the console logs.

What are the logs you are asking me to share with you? Are they the ones under `%appdata%\Zoom\logs `?

---

<div class="post-metadata">

**Author:** ![donte.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/donte.zoom/32/24412_2.png) [@donte.zoom](https://devforum.zoom.us/u/donte.zoom)\
**Post date:** [November 14, 2024, 6:42pm UTC](https://devforum.zoom.us/t/runrenderingcontext-causes-flickering-screen-on-windows/118752/20 "2024-11-14T18:42:08Z")

</div>

Correct, those are the logs you want to share, @h.g !

[Next page](https://devforum.zoom.us/t/runrenderingcontext-causes-flickering-screen-on-windows/118752.md?page=2)
