# Unable to join meeting in Google Chrome 2.2.0 (malloc undefined)

**URL:** <https://devforum.zoom.us/t/unable-to-join-meeting-in-google-chrome-2-2-0-malloc-undefined/63698>\
**Category:** Web\
**Created:** [February 3, 2022, 8:30am UTC](https://devforum.zoom.us/t/unable-to-join-meeting-in-google-chrome-2-2-0-malloc-undefined/63698 "2022-02-03T08:30:28Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![manatabg93](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/manatabg93/32/34743_2.png) [@manatabg93](https://devforum.zoom.us/u/manatabg93)\
**Post date:** [February 3, 2022, 8:30am UTC](https://devforum.zoom.us/t/unable-to-join-meeting-in-google-chrome-2-2-0-malloc-undefined/63698/1 "2022-02-03T08:30:28Z")

</div>

**Description**  
I am running the client version of the WebSDK in an iframe.  
As a bundler, I use parcel 2.0 and I am loading the ‘/lib’ files locally ( tried the Zoom CDN, but there was no effect)

**The problem** :  
When I am running the project locally or running the project from Firefox, everything works fine.  
But when I run the project in Google Chrome on the deployed version I see the following errors(works fine locally).  
This error is critical because it is impossible for a user to Join Computer Audio or Camera and participate in the meeting in any way.

**Browser Errors** :

 ![error-1](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/f/a/fadbbe2b25340d48edac51ecaddd717e5618652a.png)  
 ![error-2](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/f/9/f97b247a93be21a539a45f9d2c370d505e67a898.png)  
 ![error-3](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/2/5/2583e679350d780f31124338223ff1332f8b737a.png)

**Which Web Meeting SDK version?**  
2.2.0

**Meeting SDK Code Snippets**  
ZoomMtg.preLoadWasm(); breaks

**To Reproduce(If applicable)**  
Steps to reproduce the behavior:  
Open the meeting on any device in Google Chrome and the critical error occurs.

**Screenshots**

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/c/e/cef3d88343ce4006ed6e9671a2f63df414b5fee7.png)

**Additional context**  
This is how I am importing dependencies:

 ![import-1](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/9/694bc075142ff768b43879a8a96d54a2326655ff.png)  
 ![import-2](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/9/8/989a92a28936f7d1fc81299e8406555035c393c8.png)  
 ![import-3](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/c/6c82cf85d53b51f6df658f1109d62805cdd768e1.png)  
I would guess, they are loaded correctly since it is working as expected on all browsers except Chrome.

---

<div class="post-metadata">

**Author:** ![clayweb](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/clayweb/32/27348_2.png) [@clayweb](https://devforum.zoom.us/u/clayweb)\
**Post date:** [February 4, 2022, 3:44pm UTC](https://devforum.zoom.us/t/unable-to-join-meeting-in-google-chrome-2-2-0-malloc-undefined/63698/2 "2022-02-04T15:44:58Z")

</div>

I can confirm the same error is present with the latest versions of these browsers:

1. Chrome on Windows
2. Chrome on Mac
3. Brave on Windows
4. Brave on Mac
5. Microsoft Edge (on Windows)

---

<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:** [February 25, 2022, 1:23pm UTC](https://devforum.zoom.us/t/unable-to-join-meeting-in-google-chrome-2-2-0-malloc-undefined/63698/3 "2022-02-25T13:23:05Z")

</div>

Greetings, and Welcome, @manatabg93!

Thank you for posting in the Developer Forum. That error is likely resulting from the use of the iFrame in your implementation. We currently do not offer support and discourage the use of iFrame. More details on this can be found here: [Web SDK Gallery View](https://marketplace.zoom.us/docs/sdk/overview/improve-performance/)

That aside, testing with our [Sample App SDK](https://github.com/zoom/sample-app-web), I do not see the same behavior. Can you try again with our Sample App and let us know if the behavior is persistent?

Let me know if you have any questions about this.

Best,  
Donte

---

<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:** [February 25, 2022, 1:26pm UTC](https://devforum.zoom.us/t/unable-to-join-meeting-in-google-chrome-2-2-0-malloc-undefined/63698/4 "2022-02-25T13:26:57Z")

</div>

@clayweb,

Thank you for posting as well! Are you able to verify if you are using an IFrame in your implementation? If not, can you share the exact steps to reproduce the behavior you are seeing?

Thanks,  
Donte

---

<div class="post-metadata">

**Author:** ![manatabg93](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/manatabg93/32/34743_2.png) [@manatabg93](https://devforum.zoom.us/u/manatabg93)\
**Post date:** [March 1, 2022, 1:17pm UTC](https://devforum.zoom.us/t/unable-to-join-meeting-in-google-chrome-2-2-0-malloc-undefined/63698/5 "2022-03-01T13:17:58Z")

</div>

Actually, the issue was not due to the iFrame solution, but to the CSP headers.  
We had to use ‘unsafe-eval’ (unsafe-wasm works on Chromium browsers, but not on Safari). It would be nice if this is pointed out somewhere in the documentation of the SDK.

---

<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:** [March 1, 2022, 10:02pm UTC](https://devforum.zoom.us/t/unable-to-join-meeting-in-google-chrome-2-2-0-malloc-undefined/63698/6 "2022-03-01T22:02:13Z")

</div>

Glad to hear you were able to resolve that issue by using the “[unsafe-eval](https://www.netsparker.com/web-vulnerability-scanner/vulnerabilities/an-unsafe-content-security-policy-csp-directive-in-use/#:~:text=By%20using%20unsafe%2Deval%20%2C%20you,Scripting%20vulnerability%20on%20your%20website.)”, @manatabg93! I will pass along this feedback to our internal team for consideration. Perhaps we can create an SDK specific Browser Compatibility Table like the one linked below:

> **[Content Security Policy (CSP) - HTTP | MDN](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP#browser_compatibility)**
>
> Content Security Policy (CSP) is an added layer of security that helps to detect and mitigate certain types of attacks,
> including Cross-Site Scripting (XSS) and data injection attacks.
> These attacks are used for everything from data theft, to...

Also, feel free to share any suggestions on how we can best improve in this area. Thanks again for sharing your resolution and for developing on Zoom. We appreciate your contribution and look forward to supporting you.

Warmly,  
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:** [April 1, 2022, 8:03am UTC](https://devforum.zoom.us/t/unable-to-join-meeting-in-google-chrome-2-2-0-malloc-undefined/63698/7 "2022-04-01T08:03:01Z")

</div>

Closed on April 1, 2022, 8:03am UTC

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