# Cannot load MSA plugin

**URL:** <https://forum.magicleap.cloud/t/cannot-load-msa-plugin/1044>\
**Category:** Unity Development\
**Tags:** development\
**Created:** [October 6, 2022, 8:09am UTC](https://forum.magicleap.cloud/t/cannot-load-msa-plugin/1044 "2022-10-06T08:09:26Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![TheMunk](https://avatars.discourse-cdn.com/v4/letter/t/c4cdca/32.png) [@TheMunk](https://forum.magicleap.cloud/u/TheMunk)\
**Post date:** [October 6, 2022, 8:09am UTC](https://forum.magicleap.cloud/t/cannot-load-msa-plugin/1044/1 "2022-10-06T08:09:26Z")

</div>

Cannot load MSA plugin.

**Unity Editor version** :  
2022.2.0b8  
**ML2 OS version** :  
Build: B3E.220721.07-R.027  
SDK Version 29  
**MLSDK version** :  
0.53.3  
**Host OS** : (Windows/MacOS)  
Windows

**Error messages from logs** (syntax-highlighting is supported via Markdown):

 ![MicrosoftTeams-image](https://us1.discourse-cdn.com/flex019/uploads/magicleap1/original/1X/13623848eeb2f58b5a1dbedbb0585032d15202d4.png)  
 ![MicrosoftTeams-image (1)](https://us1.discourse-cdn.com/flex019/uploads/magicleap1/original/1X/8d832511d6fdd9e8adf20df69c4535fc39c50d42.png)

```auto
System.DllNotFoundException: AudioPluginMSASpatializer assembly:<unknown assembly> type:<unknown type> member:(null)
  at (wrapper managed-to-native) MagicLeap.Soundfield.Importer.IsInitialized()
  at MagicLeap.Soundfield.Importer.Startup (System.Boolean isEditor) [0x00000] in <7726eb48ba4945b8bdf5e708419699e7>:0
  at MagicLeap.Soundfield.MLListener.Startup (System.Boolean isEditor) [0x00000] in <7726eb48ba4945b8bdf5e708419699e7>:0
  at MagicLeap.Soundfield.MLEditorImporterStartup..cctor () [0x00000] in <3a061d95bd9a42d1bf4ec0299ae73902>:0
UnityEditor.EditorAssemblies:ProcessInitializeOnLoadAttributes (System.Type[])

```

```auto
Plugins: Failed to load 'C:/Users/[Name]/MagicLeap/tools/unity/msa/v3.2.0-220906_0.53.3/Plugins/x86_64/AudioPluginMSASpatializer.dll' because one or more of its dependencies could not be loaded.

```

Weirdly enough, the developer who added the package to our project has everything working fine. But everyone else gets the following errors, and can't select MSA as spatializer plugin even tho we all are in the exact same project state using git (included MSA as a submodule).

What we've tried;

- Adding the package manually from the hub
- Checked that all files are actually in the project and correctly imported under packages (no git LFS issues - they are not just pointers)

---

<div class="post-metadata">

**Author:** ![sengelman](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/sengelman/32/11_2.png) [@sengelman](https://forum.magicleap.cloud/u/sengelman)\
**Post date:** [October 7, 2022, 11:56am UTC](https://forum.magicleap.cloud/t/cannot-load-msa-plugin/1044/2 "2022-10-07T11:56:07Z")

</div>

@TheMunk , I'll ask internally if we can figure out what's happening. I may request more information.

---

<div class="post-metadata">

**Author:** ![cdorff](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/cdorff/32/30_2.png) [@cdorff](https://forum.magicleap.cloud/u/cdorff)\
**Post date:** [October 7, 2022, 12:56pm UTC](https://forum.magicleap.cloud/t/cannot-load-msa-plugin/1044/3 "2022-10-07T12:56:21Z")

</div>

Hi @TheMunk can you show me what your Project Setting/Audio window looks like?

---

<div class="post-metadata">

**Author:** ![TheMunk](https://avatars.discourse-cdn.com/v4/letter/t/c4cdca/32.png) [@TheMunk](https://forum.magicleap.cloud/u/TheMunk)\
**Post date:** [October 7, 2022, 1:00pm UTC](https://forum.magicleap.cloud/t/cannot-load-msa-plugin/1044/4 "2022-10-07T13:00:29Z")

</div>

This is the working one;

 ![image](https://us1.discourse-cdn.com/flex019/uploads/magicleap1/original/1X/a2fe6cd785985edbae339e4017f7bbb3f34f19fe.png)  
and this is one of the broken ones;  
 ![MicrosoftTeams-image (2)](https://us1.discourse-cdn.com/flex019/uploads/magicleap1/original/1X/19b1933faab6d0f47c634c7ed51224f752e347b3.png)

---

<div class="post-metadata">

**Author:** ![cdorff](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/cdorff/32/30_2.png) [@cdorff](https://forum.magicleap.cloud/u/cdorff)\
**Post date:** [October 7, 2022, 1:34pm UTC](https://forum.magicleap.cloud/t/cannot-load-msa-plugin/1044/5 "2022-10-07T13:34:46Z")

</div>

@TheMunk Our audio team is suggesting that you need the VS C++ runtime installed (which likely wasn't installed by default for any number of reasons). You can do this by opening the Visual Studio Installer and selecting all the C++ runtime related things from the modules page.

---

<div class="post-metadata">

**Author:** ![TheMunk](https://avatars.discourse-cdn.com/v4/letter/t/c4cdca/32.png) [@TheMunk](https://forum.magicleap.cloud/u/TheMunk)\
**Post date:** [October 11, 2022, 1:12pm UTC](https://forum.magicleap.cloud/t/cannot-load-msa-plugin/1044/6 "2022-10-11T13:12:05Z")

</div>

We can confirm this is the solution! Thanks for quick response!

---

<div class="post-metadata">

**Author:** ![linnea.pedersen](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/linnea.pedersen/32/1282_2.png) [@linnea.pedersen](https://forum.magicleap.cloud/u/linnea.pedersen)\
**Post date:** [October 11, 2022, 6:19pm UTC](https://forum.magicleap.cloud/t/cannot-load-msa-plugin/1044/7 "2022-10-11T18:19:54Z")

</div>

Is there a way around Visual Studio?

---

<div class="post-metadata">

**Author:** ![dcprovencio](https://avatars.discourse-cdn.com/v4/letter/d/8e7dd6/32.png) [@dcprovencio](https://forum.magicleap.cloud/u/dcprovencio)\
**Post date:** [October 11, 2022, 6:32pm UTC](https://forum.magicleap.cloud/t/cannot-load-msa-plugin/1044/8 "2022-10-11T18:32:38Z")

</div>

In Windows you need to at least have the C/C++ runtime installed, no need for full blown visual studio. On Mac there is nothing needed, no dependencies.

---

<div class="post-metadata">

**Author:** ![sengelman](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/sengelman/32/11_2.png) [@sengelman](https://forum.magicleap.cloud/u/sengelman)\
**Post date:** [October 19, 2022, 3:25pm UTC](https://forum.magicleap.cloud/t/cannot-load-msa-plugin/1044/9 "2022-10-19T15:25:12Z")

</div>

To download without Visual Studio:

> **[Latest supported Visual C++ Redistributable downloads](https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170)**
>
> This article lists the download links for the latest versions of Visual C++ Redistributable packages.

---

<div class="post-metadata">

**Author:** ![linnea.pedersen](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/linnea.pedersen/32/1282_2.png) [@linnea.pedersen](https://forum.magicleap.cloud/u/linnea.pedersen)\
**Post date:** [October 20, 2022, 6:28am UTC](https://forum.magicleap.cloud/t/cannot-load-msa-plugin/1044/10 "2022-10-20T06:28:29Z")

</div>

It works after having installed all the C++ modules from Visual Studio Installer.  
While I had the issue I had the following installed on the PC (and no VS):

 ![image](https://us1.discourse-cdn.com/flex019/uploads/magicleap1/original/1X/7b482cee329aa37e0de2fbfffa2c0701ead9ee27.png)

---

<div class="post-metadata">

**Author:** ![dcprovencio](https://avatars.discourse-cdn.com/v4/letter/d/8e7dd6/32.png) [@dcprovencio](https://forum.magicleap.cloud/u/dcprovencio)\
**Post date:** [October 20, 2022, 2:58pm UTC](https://forum.magicleap.cloud/t/cannot-load-msa-plugin/1044/11 "2022-10-20T14:58:29Z")

</div>

mmm, it uses 2019 runtime, so it should be on that 2015-2022 package, maybe it was unselected in the installer?

---

<div class="post-metadata">

**Author:** ![linnea.pedersen](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/linnea.pedersen/32/1282_2.png) [@linnea.pedersen](https://forum.magicleap.cloud/u/linnea.pedersen)\
**Post date:** [October 27, 2022, 6:47am UTC](https://forum.magicleap.cloud/t/cannot-load-msa-plugin/1044/12 "2022-10-27T06:47:54Z")

</div>

What installer do you mean?  
I have this in ML2 Hub:

 ![image](https://us1.discourse-cdn.com/flex019/uploads/magicleap1/original/1X/7858a486df4691fb68538ff89fc78c6ed5df4a5a.png)

---

<div class="post-metadata">

**Author:** ![dcprovencio](https://avatars.discourse-cdn.com/v4/letter/d/8e7dd6/32.png) [@dcprovencio](https://forum.magicleap.cloud/u/dcprovencio)\
**Post date:** [October 27, 2022, 3:05pm UTC](https://forum.magicleap.cloud/t/cannot-load-msa-plugin/1044/13 "2022-10-27T15:05:25Z")

</div>

We are talking about VS runtime installer provided by Microsoft not ML Hub, see post from sengelman

---

<div class="post-metadata">

**Author:** ![linnea.pedersen](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/linnea.pedersen/32/1282_2.png) [@linnea.pedersen](https://forum.magicleap.cloud/u/linnea.pedersen)\
**Post date:** [October 28, 2022, 7:25am UTC](https://forum.magicleap.cloud/t/cannot-load-msa-plugin/1044/14 "2022-10-28T07:25:46Z")

</div>

Yes, okay. I wanted to make it work without VS (as previously mentioned possible --\> [here](https://forum.magicleap.cloud/t/cannot-load-msa-plugin/1044/8)), as I am not using it otherwise. The modules are available only when installing one of the IDEs.

---

<div class="post-metadata">

**Author:** ![dcprovencio](https://avatars.discourse-cdn.com/v4/letter/d/8e7dd6/32.png) [@dcprovencio](https://forum.magicleap.cloud/u/dcprovencio)\
**Post date:** [October 28, 2022, 11:46am UTC](https://forum.magicleap.cloud/t/cannot-load-msa-plugin/1044/15 "2022-10-28T11:46:04Z")

</div>

You don't need Visual Studio, just the runtime for C/C++ as mentioned above in Windows

---

<div class="post-metadata">

**Author:** ![abebko](https://avatars.discourse-cdn.com/v4/letter/a/a9a28c/32.png) [@abebko](https://forum.magicleap.cloud/u/abebko)\
**Post date:** [January 24, 2024, 4:46pm UTC](https://forum.magicleap.cloud/t/cannot-load-msa-plugin/1044/16 "2024-01-24T16:46:31Z")

</div>

Hello I just wanted to chime in here. I was NOT able to get this working using the links in the MagicLeap documentation site, using the redistributable installs. I installed the following 3 things from that link:

 ![Screenshot 2024-01-23 183350](https://us1.discourse-cdn.com/flex019/uploads/magicleap1/original/2X/d/d0159e0b403fb7d92e3a853bc8e2710070205013.png)

None of those worked after installing, rebooting, and deleting Library folder in unity project.

After spending several hours trying to figure this out, and banging my head on the wall, I happened to come across this forum post, which I wasn't searching for properly because I was searching for Soundfield, not MSA, and then someone above mentioned Visual studio installer

I had to open the visual studio 2022 installer, hit Modify. I checked these two boxes:  
 ![image](https://us1.discourse-cdn.com/flex019/uploads/magicleap1/original/2X/d/d3ac3edf84b7c75175fc5198b46abbc1670dd2ef.png)

And re-added the Soundfield package to Unity. Now it works.

I suggest updating the documentation to save people time in the future. This was a painful process 😃

Thanks so much to the above posters for the information.

---

<div class="post-metadata">

**Author:** ![etucker](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/etucker/32/842_2.png) [@etucker](https://forum.magicleap.cloud/u/etucker)\
**Post date:** [January 24, 2024, 6:55pm UTC](https://forum.magicleap.cloud/t/cannot-load-msa-plugin/1044/17 "2024-01-24T18:55:02Z")

</div>

Hi @abebko,

Welcome to the Magic Leap 2 Developer Forums. We are so grateful to have you here engaging with us.

Thank you for bringing this issue to our attention. We will be sure to update the documentation so that others do not run into this issue. Your contribution is greatly appreciated.

Best,

El

---

<div class="post-metadata">

**Author:** ![etucker](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/etucker/32/842_2.png) [@etucker](https://forum.magicleap.cloud/u/etucker)\
**Post date:** [January 24, 2024, 6:55pm UTC](https://forum.magicleap.cloud/t/cannot-load-msa-plugin/1044/18 "2024-01-24T18:55:23Z")

</div>


