# Uncaught TypeError: Cannot read properties of undefined (reading 'malloc') - WebAssembly

**URL:** <https://devforum.zoom.us/t/uncaught-typeerror-cannot-read-properties-of-undefined-reading-malloc-webassembly/102919>\
**Category:** Web\
**Created:** [January 31, 2024, 4:39pm UTC](https://devforum.zoom.us/t/uncaught-typeerror-cannot-read-properties-of-undefined-reading-malloc-webassembly/102919 "2024-01-31T16:39:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hymnWekend](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/hymnwekend/32/50621_2.png) [@hymnWekend](https://devforum.zoom.us/u/hymnWekend)\
**Post date:** [January 31, 2024, 4:39pm UTC](https://devforum.zoom.us/t/uncaught-typeerror-cannot-read-properties-of-undefined-reading-malloc-webassembly/102919/1 "2024-01-31T16:39:18Z")

</div>

**Description** :

I’ve encountered an issue with the Zoom Web SDK related to WebAssembly memory allocation, specifically a `malloc` error. This issue arises when integrating the Zoom SDK into my web application. Local is working fine but when build is deployed to my UAT server, this error occurs. Might potentially be Content-Security-Policy issue as referenced on [unable-to-join-meeting-in-google-chrome](https://devforum.zoom.us/t/unable-to-join-meeting-in-google-chrome-2-2-0-malloc-undefined/63698)

**Environment** :

- Zoom Web SDK Version: (@zoomus/websdk, v2.18.2)
- Browser: Chrome
- Operating System: Windows
- _Issue is identical to the thread linked above_

**Steps to Reproduce** :

1. Integrate Zoom Web SDK into the web application.
2. Initialize the SDK and join a meeting.
3. “Join Audio by Computer” button is disabled, user cannot see/hear any audio or visual from zoom itself

**Expected Behavior** : The Zoom Web SDK should initialize and function without any WebAssembly related errors.

**Actual Behavior** : The following error is displayed in the console:

```auto
Uncaught TypeError: Cannot read properties of undefined (reading 'malloc')
    at Module._malloc (...)
    ...

```

**Additional Context** :

- The issue seems related to the way the Zoom SDK uses WebAssembly for audio/video processing.
- The error is critical as it impacts the functionality of the Zoom integration in the application.
- The solution mentioned in [unable-to-join-meeting-in-google-chrome](https://devforum.zoom.us/t/unable-to-join-meeting-in-google-chrome-2-2-0-malloc-undefined/63698) was to include ‘unsafe-eval’ into Content-Security-Policy but we cannot allow any vulnerability to occur. Are there any updates to this ‘SDK specific Browser Compatibility’? What can be the workaround?

---

<div class="post-metadata">

**Author:** ![hymnWekend](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/hymnwekend/32/50621_2.png) [@hymnWekend](https://devforum.zoom.us/u/hymnWekend)\
**Post date:** [February 19, 2024, 2:33am UTC](https://devforum.zoom.us/t/uncaught-typeerror-cannot-read-properties-of-undefined-reading-malloc-webassembly/102919/2 "2024-02-19T02:33:02Z")

</div>

Hi Zoom Team, are there any updates on this matter?

---

<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:** [March 20, 2024, 12:34pm UTC](https://devforum.zoom.us/t/uncaught-typeerror-cannot-read-properties-of-undefined-reading-malloc-webassembly/102919/3 "2024-03-20T12:34:00Z")

</div>

Closed on March 20, 2024, 12:34pm UTC

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