# Zoom web application crashes sometimes

**URL:** <https://devforum.zoom.us/t/zoom-web-application-crashes-sometimes/80044>\
**Category:** Web\
**Created:** [December 9, 2022, 6:38pm UTC](https://devforum.zoom.us/t/zoom-web-application-crashes-sometimes/80044 "2022-12-09T18:38:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kvr](https://avatars.discourse-cdn.com/v4/letter/k/e79b87/32.png) [@kvr](https://devforum.zoom.us/u/kvr)\
**Post date:** [December 9, 2022, 6:38pm UTC](https://devforum.zoom.us/t/zoom-web-application-crashes-sometimes/80044/1 "2022-12-09T18:38:24Z")

</div>

Hi,

```
 We are using video SDK UMD files in our Vuejs application. We are preloading the dependent assets, so that the time taken for the user to see the zoom screen is faster.

  //When the web application starts
    script.src = '/zoom_video_sdk_1.5.1/index.umd_v1.5.1.js';
    document.getElementsByTagName('head')[0].appendChild(script);
    script.onload = () => {
        WebVideoSDK.default.preloadDependentAssets('Global');
    }

	//When we actually go to Zoom screen, the below code is executed
	client = WebVideoSDK.default.createClient();		
	
    client.init('en-US', 'Global',{stayAwake: true})
        .then((resJson)=> {
    }).catch((error) => {
        console.log("init failed "+ error);
	});

 Sometimes(once in 10 times), the application crashes when we access the zoom page. There is a good time interval between the application startup and the time at which we are accessing the zoom page. We are able to see the below logs. Please let us know if you need more information. The application is crashing.

```

//In zoom screen

> Error: Uncaught (in promise) ReferenceError: WebVideoSDK is not defined
> 
> The resource was preloaded using link preload but not used within a few seconds from the window’s load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally.
> 
> A preload for ‘[https://source.zoom.us/videosdk/1.5.1/lib/js\_media.min.js](https://source.zoom.us/videosdk/1.5.1/lib/js_media.min.js)’ is found, but is not used because the request credentials mode does not match. Consider taking a look at crossorigin attribute.
> 
> 26084b7c-e022-4d71-a85e-3dee13c330c4:1 Uncaught RangeError: WebAssembly.Memory(): could not allocate memory

---

<div class="post-metadata">

**Author:** ![kvr](https://avatars.discourse-cdn.com/v4/letter/k/e79b87/32.png) [@kvr](https://devforum.zoom.us/u/kvr)\
**Post date:** [December 9, 2022, 7:09pm UTC](https://devforum.zoom.us/t/zoom-web-application-crashes-sometimes/80044/2 "2022-12-09T19:09:46Z")

</div>

Please find additional information.

**Which Web Video SDK version?**  
1.5.1

**Device (please complete the following information):**

- Device: Laptop
- OS: Windows
- Browser: Chrome
- Browser Version Version 108.0.5359.99 (Official Build) (64-bit)

---

<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:** [December 12, 2022, 6:33am UTC](https://devforum.zoom.us/t/zoom-web-application-crashes-sometimes/80044/3 "2022-12-12T06:33:37Z")

</div>

Hey @kvr

Thanks for your feedback.  
There are three errors in your console logs.

1. 

> _WebVideoSDK is not defined_

Usually, it occurs when using the `WebVideoSDK` before the script is ready, in the code above, it’s better to add the `client = WebVideoSDK.default.createClient();` to the `onload` event callback.

2. 

> \*The resource was preloaded using link preload but not used within a few seconds from the window’s load event. \*

It doesn’t matter. The warning appears when resources are preloaded but not used soon.

3. 

> - Uncaught RangeError: WebAssembly.Memory(): could not allocate memory\*

Could you share the environment(Device, CPU, OS, Chrome, version) and CPU/memory usage when this issue occurs?

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:** [January 11, 2023, 4:34pm UTC](https://devforum.zoom.us/t/zoom-web-application-crashes-sometimes/80044/4 "2023-01-11T16:34:21Z")

</div>

Closed on January 11, 2023, 4:34pm UTC

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