# The canvas video occasionally freezes

**URL:** <https://devforum.zoom.us/t/the-canvas-video-occasionally-freezes/129584>\
**Category:** Video SDK\
**Created:** [March 10, 2025, 8:26am UTC](https://devforum.zoom.us/t/the-canvas-video-occasionally-freezes/129584 "2025-03-10T08:26:12Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![lmtruong1512](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/lmtruong1512/32/59233_2.png) [@lmtruong1512](https://devforum.zoom.us/u/lmtruong1512)\
**Post date:** [March 10, 2025, 8:26am UTC](https://devforum.zoom.us/t/the-canvas-video-occasionally-freezes/129584/1 "2025-03-10T08:26:12Z")

</div>

**Video SDK Type and Version**  
2.1.0

**Description**  
The canvas video occasionally freezes. Stopping and re-rendering the video restores normal functionality.

This error occurred on a customer’s side, so we don’t have detailed logs. So, we can provide the session ID.

Thank you for your help!

**Error?**

```auto
1f52e22c-f1f6-4508-9368-d2767aef6b1d:1 Video Version: 2689
0a1c96f7-186d-4016-951f-5db74159cb92:1 Video Version: 2689
blob:https://econy.jp/5d2a4808-f852-44d1-b95f-519e03e5dd53:25726 not sharing decode type
Gs @ blob:https://econy.jp/5d2a4808-f852-44d1-b95f-519e03e5dd53:25726
(anonymous) @ blob:https://econy.jp/5d2a4808-f852-44d1-b95f-519e03e5dd53:24943
(anonymous) @ blob:https://econy.jp/5d2a4808-f852-44d1-b95f-519e03e5dd53:25060
blob:https://econy.jp/c3ee92c1-a80e-4689-b977-9e3ed2965e5b:3237 cancelConsume interval 7 requestID null
blob:https://econy.jp/c3ee92c1-a80e-4689-b977-9e3ed2965e5b:24013 videoShare.closeMedia
blob:https://econy.jp/5d2a4808-f852-44d1-b95f-519e03e5dd53:24013 videoShare.closeMedia
blob:https://econy.jp/c3ee92c1-a80e-4689-b977-9e3ed2965e5b:5494 WebGL: INVALID_ENUM: activeTexture: texture unit out of range
u.cleanup @ blob:https://econy.jp/c3ee92c1-a80e-4689-b977-9e3ed2965e5b:5494
cleanup @ blob:https://econy.jp/c3ee92c1-a80e-4689-b977-9e3ed2965e5b:13092
cleanup @ blob:https://econy.jp/c3ee92c1-a80e-4689-b977-9e3ed2965e5b:13408
cleanup @ blob:https://econy.jp/c3ee92c1-a80e-4689-b977-9e3ed2965e5b:14903
c.cleanup @ blob:https://econy.jp/c3ee92c1-a80e-4689-b977-9e3ed2965e5b:8722
(anonymous) @ blob:https://econy.jp/c3ee92c1-a80e-4689-b977-9e3ed2965e5b:24019
(anonymous) @ blob:https://econy.jp/c3ee92c1-a80e-4689-b977-9e3ed2965e5b:24018
(anonymous) @ blob:https://econy.jp/c3ee92c1-a80e-4689-b977-9e3ed2965e5b:24025
blob:https://econy.jp/c3ee92c1-a80e-4689-b977-9e3ed2965e5b:5498 WebGL: INVALID_ENUM: activeTexture: texture unit out of range
u.cleanup @ blob:https://econy.jp/c3ee92c1-a80e-4689-b977-9e3ed2965e5b:5498
cleanup @ blob:https://econy.jp/c3ee92c1-a80e-4689-b977-9e3ed2965e5b:13092
cleanup @ blob:https://econy.jp/c3ee92c1-a80e-4689-b977-9e3ed2965e5b:13408
cleanup @ blob:https://econy.jp/c3ee92c1-a80e-4689-b977-9e3ed2965e5b:14903
c.cleanup @ blob:https://econy.jp/c3ee92c1-a80e-4689-b977-9e3ed2965e5b:8722
(anonymous) @ blob:https://econy.jp/c3ee92c1-a80e-4689-b977-9e3ed2965e5b:24019
(anonymous) @ blob:https://econy.jp/c3ee92c1-a80e-4689-b977-9e3ed2965e5b:24018
(anonymous) @ blob:https://econy.jp/c3ee92c1-a80e-4689-b977-9e3ed2965e5b:24025
blob:https://econy.jp/c3ee92c1-a80e-4689-b977-9e3ed2965e5b:5502 WebGL: INVALID_ENUM: activeTexture: texture unit out of range
u.cleanup @ blob:https://econy.jp/c3ee92c1-a80e-4689-b977-9e3ed2965e5b:5502
cleanup @ blob:https://econy.jp/c3ee92c1-a80e-4689-b977-9e3ed2965e5b:13092
cleanup @ blob:https://econy.jp/c3ee92c1-a80e-4689-b977-9e3ed2965e5b:13408
cleanup @ blob:https://econy.jp/c3ee92c1-a80e-4689-b977-9e3ed2965e5b:14903
c.cleanup @ blob:https://econy.jp/c3ee92c1-a80e-4689-b977-9e3ed2965e5b:8722
(anonymous) @ blob:https://econy.jp/c3ee92c1-a80e-4689-b977-9e3ed2965e5b:24019
(anonymous) @ blob:https://econy.jp/c3ee92c1-a80e-4689-b977-9e3ed2965e5b:24018
(anonymous) @ blob:https://econy.jp/c3ee92c1-a80e-4689-b977-9e3ed2965e5b:24025
index.esm.js:20926 Uncaught (in promise) Error {stack: 'Error\n at https://econy.jp/videosdk/index.esm.j…e (https://econy.jp/videosdk/index.esm.js:382:56)', name: 'EmptyError', message: 'no elements in sequence'}
m_ @ index.esm.js:20926
await in m_ (async)

```

**How To Reproduce**

1. Users A and B join the meeting with their cameras on.
2. Both users successfully start their cameras.
3. After ~3.5 seconds, User A’s camera freezes, but User B can still see A’s video.
4. When User A stops and restarts the camera, it displays normally.

**3. Browser/client type and version**  
Browser: Edge version 119  
OS: Window 11

---

<div class="post-metadata">

**Author:** ![lmtruong1512](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/lmtruong1512/32/59233_2.png) [@lmtruong1512](https://devforum.zoom.us/u/lmtruong1512)\
**Post date:** [March 10, 2025, 9:01am UTC](https://devforum.zoom.us/t/the-canvas-video-occasionally-freezes/129584/2 "2025-03-10T09:01:39Z")

</div>

No need for two users to join the meeting; sometimes, only one user has the same issue.

---

<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 14, 2025, 7:32am UTC](https://devforum.zoom.us/t/the-canvas-video-occasionally-freezes/129584/3 "2025-03-14T07:32:10Z")

</div>

Hey @lmtruong1512

Thanks for your feedback.

> So, we can provide the session ID.

Could you share some problematic session IDs with us for troubleshooting purposes?

Thanks  
Vic

---

<div class="post-metadata">

**Author:** ![lmtruong1512](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/lmtruong1512/32/59233_2.png) [@lmtruong1512](https://devforum.zoom.us/u/lmtruong1512)\
**Post date:** [March 18, 2025, 3:47am UTC](https://devforum.zoom.us/t/the-canvas-video-occasionally-freezes/129584/4 "2025-03-18T03:47:06Z")

</div>

Hi @vic.yang,

Sorry, this error occurred on the customer’s side, and we don’t have detailed logs with session ID information. Could you help analyze the issue?

Thanks!

---

<div class="post-metadata">

**Author:** ![lmtruong1512](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/lmtruong1512/32/59233_2.png) [@lmtruong1512](https://devforum.zoom.us/u/lmtruong1512)\
**Post date:** [May 26, 2025, 8:10am UTC](https://devforum.zoom.us/t/the-canvas-video-occasionally-freezes/129584/5 "2025-05-26T08:10:22Z")

</div>

Hi @vic.yang ,  
We’re encountering this issue again. Could you please take a look using the following session IDs: `R3PCXwRmT+2RReSzzKASAg==`, `8XLnIBWfShmEGvNK6Jv+yA==`?

The problem occurs with a BOT user running on a headless browser. Here’s the relevant code snippet:

```auto
      const canvasElement = document.getElementById(ViewIdentifiers.PIN_CANVAS_VIEW);
      canvasElement.setAttribute('user-id', userId);
      await state.mediaStream.renderVideo(canvasElement, userId, canvasElement.width, 
            canvasElement.height, 0, 0, quality);

```

VideoSDK version: 2.1.0

Thanks in advance for your help!

---

<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 27, 2025, 2:28am UTC](https://devforum.zoom.us/t/the-canvas-video-occasionally-freezes/129584/6 "2025-05-27T02:28:29Z")

</div>

Hi @lmtruong1512

Thanks for sharing the session IDs with us. We are working on investigating the issues.

Thanks  
Vic

---

<div class="post-metadata">

**Author:** ![lmtruong1512](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/lmtruong1512/32/59233_2.png) [@lmtruong1512](https://devforum.zoom.us/u/lmtruong1512)\
**Post date:** [May 29, 2025, 8:13am UTC](https://devforum.zoom.us/t/the-canvas-video-occasionally-freezes/129584/7 "2025-05-29T08:13:13Z")

</div>

Hi @vic.yang, Thank you for your continued support.

We want to follow up to see if there has been any progress on the investigation?

---

<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 29, 2025, 9:21am UTC](https://devforum.zoom.us/t/the-canvas-video-occasionally-freezes/129584/8 "2025-05-29T09:21:45Z")

</div>

Hi @lmtruong1512

`R3PCXwRmT+2RReSzzKASAg==` , `8XLnIBWfShmEGvNK6Jv+yA==`

After analyzing the logs, it seems that this issue might be related to the use of a Virtual Machine.

After receiving video for a period of time, it seems the VM fails to decode new video frames, resulting in video freeze.

We are continuing to analyze the issue further.

Thanks  
Vic

---

<div class="post-metadata">

**Author:** ![lmtruong1512](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/lmtruong1512/32/59233_2.png) [@lmtruong1512](https://devforum.zoom.us/u/lmtruong1512)\
**Post date:** [May 29, 2025, 9:31am UTC](https://devforum.zoom.us/t/the-canvas-video-occasionally-freezes/129584/9 "2025-05-29T09:31:15Z")

</div>

@vic.yang Thanks for the update and for looking into this.

---

<div class="post-metadata">

**Author:** ![lmtruong1512](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/lmtruong1512/32/59233_2.png) [@lmtruong1512](https://devforum.zoom.us/u/lmtruong1512)\
**Post date:** [June 1, 2025, 7:09am UTC](https://devforum.zoom.us/t/the-canvas-video-occasionally-freezes/129584/10 "2025-06-01T07:09:49Z")

</div>

Hi @vic.yang ,  
Is there a permanent or temporary fix for this issue? If you find anything, please let me know. Thank you very much.

---

<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:** [June 3, 2025, 1:43am UTC](https://devforum.zoom.us/t/the-canvas-video-occasionally-freezes/129584/11 "2025-06-03T01:43:43Z")

</div>

Hi @lmtruong1512

> Is there a permanent or temporary fix for this issue?

Not at the moment. A fix may be available in the next version.

Thanks  
Vic

---

<div class="post-metadata">

**Author:** ![lmtruong1512](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/lmtruong1512/32/59233_2.png) [@lmtruong1512](https://devforum.zoom.us/u/lmtruong1512)\
**Post date:** [June 3, 2025, 6:53am UTC](https://devforum.zoom.us/t/the-canvas-video-occasionally-freezes/129584/12 "2025-06-03T06:53:05Z")

</div>

Hi @vic.yang ,  
Is the “Virtual Machine” issue related to the Zoom SDK’s internal implementation, or is it dependent on the client-side environment?

Also, is there any way to mitigate or reduce the frequency of this bug on the client side while waiting for a fix in the upcoming version?

---

<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:** [June 3, 2025, 8:42am UTC](https://devforum.zoom.us/t/the-canvas-video-occasionally-freezes/129584/13 "2025-06-03T08:42:27Z")

</div>

Hi @lmtruong1512

> Is the “Virtual Machine” issue related to the Zoom SDK’s internal implementation, or is it dependent on the client-side environment?

It’s related to the virtual machine as well as our implementation — we’re actively working on fixing this issue.

> is there any way to mitigate or reduce the frequency of this bug on the client side while waiting for a fix in the upcoming version?

Specifying `video_webrtc_mode: 1` in the JWT explicitly enables WebRTC video, which can indeed help with video rendering on virtual machines that lack physical GPUs. However, in this mode, you’ll need to **adjust your video rendering implementation** :

**Use `attachVideo()` instead of `renderVideo()`** for rendering video.

Thanks  
Vic

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [June 4, 2025, 9:42am UTC](https://devforum.zoom.us/t/the-canvas-video-occasionally-freezes/129584/14 "2025-06-04T09:42:34Z")

</div>

Closed on June 4, 2025, 9:42am UTC

This topic was automatically closed 25 hours after the last reply. New replies are no longer allowed.
