# WebGLContextLost

**URL:** <https://devforum.zoom.us/t/webglcontextlost/62238>\
**Category:** Web\
**Created:** [January 5, 2022, 5:32pm UTC](https://devforum.zoom.us/t/webglcontextlost/62238 "2022-01-05T17:32:08Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![ALanois](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/alanois/32/33827_2.png) [@ALanois](https://devforum.zoom.us/u/ALanois)\
**Post date:** [January 5, 2022, 5:32pm UTC](https://devforum.zoom.us/t/webglcontextlost/62238/1 "2022-01-05T17:32:09Z")

</div>

Hello,

I need to display the video of each participant separately in circles. So I had to go through the solution of displaying each video individually in a separate canvas. After 4-5 participants I have a WebGlContextLost error, I read that it came from the capacities of the CPU. After long hours of research I have not been able to resolve my problem.

Any ideas ?

---

<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 6, 2022, 1:31am UTC](https://devforum.zoom.us/t/webglcontextlost/62238/2 "2022-01-06T01:31:06Z")

</div>

Hey @ALanois

Thanks for your feedback.

Using separate canvases may cause WebGlContextLost error is a known issue. For performance considerations, we recommend using a single canvas to draw videos.

Thanks  
Vic

---

<div class="post-metadata">

**Author:** ![ALanois](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/alanois/32/33827_2.png) [@ALanois](https://devforum.zoom.us/u/ALanois)\
**Post date:** [January 6, 2022, 7:53am UTC](https://devforum.zoom.us/t/webglcontextlost/62238/3 "2022-01-06T07:53:03Z")

</div>

Hello,  
Thank for your answer. How am I supposed to display video like the following with a single canvas ?

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/a/6a2d52bb7bd0b2ec493f6cdd9daab81c7f0d5b07.png)

On top of that I’ve read in the docs that Safari and Firefox can’t handle multiple videos in a single canvas.  
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:** [January 6, 2022, 9:06am UTC](https://devforum.zoom.us/t/webglcontextlost/62238/4 "2022-01-06T09:06:12Z")

</div>

Hey @ALanois

We cannot support the requirement so far, virtual background and canvas background features are still under development.

Thanks  
Vic

---

<div class="post-metadata">

**Author:** ![ALanois](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/alanois/32/33827_2.png) [@ALanois](https://devforum.zoom.us/u/ALanois)\
**Post date:** [January 7, 2022, 11:42am UTC](https://devforum.zoom.us/t/webglcontextlost/62238/5 "2022-01-07T11:42:57Z")

</div>

Hello,  
Thank for your answer.  
I have to admit i’m disappointed because this solution was supposed to offer a fully customizable solution but there are still limits in the customization.  
And now I am stuck with no solution to be able to fix this problem.

---

<div class="post-metadata">

**Author:** ![joshua.coffman](https://avatars.discourse-cdn.com/v4/letter/j/e480ec/32.png) [@joshua.coffman](https://devforum.zoom.us/u/joshua.coffman)\
**Post date:** [January 7, 2022, 3:11pm UTC](https://devforum.zoom.us/t/webglcontextlost/62238/6 "2022-01-07T15:11:51Z")

</div>

We’re also getting this WebGLContextLost and we are using a single canvas. If someone leaves and comes back 3 times, on the third time we get this error and the video stops working until you reset the app. Any word on what could be causing this? Is there something special we should be doing when stopping the video or to the canvas?

---

<div class="post-metadata">

**Author:** ![ALanois](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/alanois/32/33827_2.png) [@ALanois](https://devforum.zoom.us/u/ALanois)\
**Post date:** [January 11, 2022, 8:41am UTC](https://devforum.zoom.us/t/webglcontextlost/62238/7 "2022-01-11T08:41:32Z")

</div>

> [@joshua.coffman](#):
>
> be causing this? Is there something special we should be doing when stopping the video or to the canvas?

Hi,  
I’ve searched how we could prevent this issues by cleaning a webGlContext after we destroy a Canvas but I seems that this is something impossible in our case.  
After you use renderVideo you can’t use the method getContext(‘webgl’) on your canvas because the controls are already transferred to offscreen.

---

<div class="post-metadata">

**Author:** ![joshua.coffman](https://avatars.discourse-cdn.com/v4/letter/j/e480ec/32.png) [@joshua.coffman](https://devforum.zoom.us/u/joshua.coffman)\
**Post date:** [January 12, 2022, 2:23pm UTC](https://devforum.zoom.us/t/webglcontextlost/62238/8 "2022-01-12T14:23:35Z")

</div>

Is there an ETA on when there will be an update on the canvas feature? This bug is super annoying.

---

<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 13, 2022, 2:45am UTC](https://devforum.zoom.us/t/webglcontextlost/62238/9 "2022-01-13T02:45:00Z")

</div>

Hey @joshua.coffman

We haven’t tested the case you mentioned, for now, maybe you can destroy the canvas when the session is over and reconstruct a canvas when the session starts as a workaround.

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:** [February 12, 2022, 12:45pm UTC](https://devforum.zoom.us/t/webglcontextlost/62238/10 "2022-02-12T12:45:40Z")

</div>

Closed on February 12, 2022, 12:45pm UTC

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