# Memory access out of bounds

**URL:** <https://devforum.zoom.us/t/memory-access-out-of-bounds/51207>\
**Category:** Web\
**Created:** [May 27, 2021, 5:49pm UTC](https://devforum.zoom.us/t/memory-access-out-of-bounds/51207 "2021-05-27T17:49:26Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![diego.luis.gomes2015](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/diego.luis.gomes2015/32/27757_2.png) [@diego.luis.gomes2015](https://devforum.zoom.us/u/diego.luis.gomes2015)\
**Post date:** [May 27, 2021, 5:49pm UTC](https://devforum.zoom.us/t/memory-access-out-of-bounds/51207/1 "2021-05-27T17:49:27Z")

</div>

**Description**  
this error happens randomly when I join the meeting and an warning of deprecation

**Error**

 ![erro](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/4/d/4d617d49029fc4c23c824854340085714bc1f298.jpeg)  
 ![deprecationAudio](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/0/3/03d1cb6b86d8d6276c8c2b6821ee4fec2a670f25.jpeg)

**Which Web Client SDK version?**  
webSdk v1.9.5

**To Reproduce(If applicable)**  
Steps to reproduce the behavior:

1. create a react app
2. install the required dependencies
3. import css on html and creat e the zoom.js to call the required functions and return the div with mmtg-root id
4. run the webproject and click in the Join button

**Screenshots**  
object returned before error

 ![success](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/4/a/4a543c8427a23a534bcd8ec6bc0efa510fa030d5.jpeg)

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

- Device: Desktop
- OS: Win10 20h2 x64
- Browser: Chrome and Edge (latest version both)

---

<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:** [May 28, 2021, 10:44am UTC](https://devforum.zoom.us/t/memory-access-out-of-bounds/51207/2 "2021-05-28T10:44:38Z")

</div>

Hi, @diego.luis.gomes2015,

Thank you for posting in the Developer Forum. Typically, that error occurs when the Wasm files aren’t preloading. The wasm preloads should follow the `ZoomMtg.setZoomJSLib('http://localhost:9999/node_modules/@zoomus/websdk/dist/lib', '/av')` statement. Your first three lines in index.js should be:

```auto
ZoomMtg.setZoomJSLib('http://localhost:9999/node_modules/@zoomus/websdk/dist/lib', '/av');
ZoomMtg.preLoadWasm();
ZoomMtg.prepareJssdk();

```

Also, please try putting logs so you can see if the init and join functions are being called. Let me know if this helps.

Best,  
Donte

---

<div class="post-metadata">

**Author:** ![diego.luis.gomes2015](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/diego.luis.gomes2015/32/27757_2.png) [@diego.luis.gomes2015](https://devforum.zoom.us/u/diego.luis.gomes2015)\
**Post date:** [May 28, 2021, 1:18pm UTC](https://devforum.zoom.us/t/memory-access-out-of-bounds/51207/3 "2021-05-28T13:18:24Z")

</div>

it’s already like this  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/3/63c9408cbcffe1ad0f5d61c5922cff77ac3d346e.png)

 ![init](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/e/b/eb8cae39cb1de6822e777cfb50aeea6869428b04.jpeg)  
 ![join](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/3/6/361c87dd241d656725a1e727493ebcbe48cc9ec8.jpeg)

now the join returns ok but afeter ‘consume interval 3’, nothing is happen

---

<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:** [May 28, 2021, 3:53pm UTC](https://devforum.zoom.us/t/memory-access-out-of-bounds/51207/4 "2021-05-28T15:53:16Z")

</div>

Thank you for that update, @diego.luis.gomes2015 ! I think the issue is that you are calling those functions inside of your Zoom method. Instead, those calls need to be made right away and should be at the top of the file. For reference, I’ve linked our [Sample React Web SDK (1.9.5)](https://github.com/zoom/websdk-sample-react), can you please test with this and let us know if the problem persist ?

Best,  
Donte

---

<div class="post-metadata">

**Author:** ![diego.luis.gomes2015](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/diego.luis.gomes2015/32/27757_2.png) [@diego.luis.gomes2015](https://devforum.zoom.us/u/diego.luis.gomes2015)\
**Post date:** [May 31, 2021, 3:42pm UTC](https://devforum.zoom.us/t/memory-access-out-of-bounds/51207/5 "2021-05-31T15:42:10Z")

</div>

with react sdk ocurred another error  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/f/8/f8c6386a0c44af30cd6ca0b0c35ac181983189e5.png)

the ‘declare’ before the ‘var’ only can be used with tsx archives but if i install typescript on my project and change the type for js to tsx another error shows

and if i just discarte the ‘declare’ and use ‘var zoomMtg’ the project don’t work

---

<div class="post-metadata">

**Author:** ![diego.luis.gomes2015](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/diego.luis.gomes2015/32/27757_2.png) [@diego.luis.gomes2015](https://devforum.zoom.us/u/diego.luis.gomes2015)\
**Post date:** [May 31, 2021, 4:21pm UTC](https://devforum.zoom.us/t/memory-access-out-of-bounds/51207/6 "2021-05-31T16:21:02Z")

</div>

i created a new react application with following some things of react sdk with my old zoom application and works for me now

---

<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:** [June 1, 2021, 2:25pm UTC](https://devforum.zoom.us/t/memory-access-out-of-bounds/51207/7 "2021-06-01T14:25:15Z")

</div>

Hi, @diego.luis.gomes2015,  
Fantastic ! I am happy to hear referencing the SDK was helpful. Should you encounter more issues, feel free to reach out.

Best,  
Donte

---

<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:** [July 2, 2021, 12:25am UTC](https://devforum.zoom.us/t/memory-access-out-of-bounds/51207/8 "2021-07-02T00:25:30Z")

</div>

Closed on July 2, 2021, 12:25am UTC

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