# FMOD and Webgl BankLoadException

**URL:** <https://qa.fmod.com/t/fmod-and-webgl-bankloadexception/16206>\
**Category:** Unity\
**Created:** [September 22, 2020, 1:40am UTC](https://qa.fmod.com/t/fmod-and-webgl-bankloadexception/16206 "2020-09-22T01:40:37Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![jaredrothwell](https://avatars.discourse-cdn.com/v4/letter/j/8e8cbc/32.png) [@jaredrothwell](https://qa.fmod.com/u/jaredrothwell)\
**Post date:** [September 22, 2020, 1:40am UTC](https://qa.fmod.com/t/fmod-and-webgl-bankloadexception/16206/1 "2020-09-22T01:40:37Z")

</div>

I am trying to get FMOD to Work with Webgl. It works for a regular windows build, and when I build and run webgl locally it also works. But as soon as I host it on Itch or another website domain. I get this error

BankLoadException: [FMOD] Could not load bank ‘[https://v6p9d9t4.ssl.hwcdn.net/html/2742153/StreamingAssets/Build/Desktop/Master.strings.bank](https://v6p9d9t4.ssl.hwcdn.net/html/2742153/StreamingAssets/Build/Desktop/Master.strings.bank)’ : ERR\_UNSUPPORTED : A command issued was not supported by this object. Possibly a plugin without certain callbacks specified.  
at FMODUnity.RuntimeManager.loadedBankRegister (FMODUnity.RuntimeManager+LoadedBank loadedBank, System.String bankPath, System.String bankName, System.Boolean loadSamples, FMOD.RESULT loadResult) [0x00000] in \<00000000000000000000000000000000\>:0

(Filename: currently not available on il2cpp Line: -1)

> **[Test by Startrix](https://startrix.itch.io/test)**
>
> Play in your browser

And here is a link to check it out.

---

<div class="post-metadata">

**Author:** ![brett](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/brett/32/261_2.png) [@brett](https://qa.fmod.com/u/brett)\
**Post date:** [September 23, 2020, 6:45am UTC](https://qa.fmod.com/t/fmod-and-webgl-bankloadexception/16206/2 "2020-09-23T06:45:00Z")

</div>

Hi  
That sort of error is typical if your studio project has some effects that aren’t typically supported in a stripped release webgl build of fmod (the release build is trying to reduce its size as much as it can).

Older versions removed several things from the library like less used resample modes, codecs, DSPs like envelope follower/loudness meter/convolution reverb. More recent builds put convolution reverb back in.

I can only assume a mix of different libraries for the local/hosted difference. It should fail similarly in local mode. If you use the logging version locally, it will support everything, the non logging version has stuff stripped out.

What FMOD version are you using? (to determine if the version would be responsible).

Brett

---

<div class="post-metadata">

**Author:** ![jaredrothwell](https://avatars.discourse-cdn.com/v4/letter/j/8e8cbc/32.png) [@jaredrothwell](https://qa.fmod.com/u/jaredrothwell)\
**Post date:** [September 23, 2020, 6:50am UTC](https://qa.fmod.com/t/fmod-and-webgl-bankloadexception/16206/3 "2020-09-23T06:50:39Z")

</div>

Hi! And thank you for the reply. I am using fmod 2.01.04. and unity 2020.1.6f. I have also used the non logging version plugin and the same error occurs.

---

<div class="post-metadata">

**Author:** ![brett](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/brett/32/261_2.png) [@brett](https://qa.fmod.com/u/brett)\
**Post date:** [September 23, 2020, 6:54am UTC](https://qa.fmod.com/t/fmod-and-webgl-bankloadexception/16206/4 "2020-09-23T06:54:57Z")

</div>

do you mean logging? The ‘non logging’ version is the one that has stuff stripped out.

---

<div class="post-metadata">

**Author:** ![brett](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/brett/32/261_2.png) [@brett](https://qa.fmod.com/u/brett)\
**Post date:** [September 23, 2020, 6:57am UTC](https://qa.fmod.com/t/fmod-and-webgl-bankloadexception/16206/5 "2020-09-23T06:57:10Z")

</div>

Actually Master.strings.bank is just string metadata so it shouldnt be relying on any effects.  
We have plenty of instances of stuff being hosted remotely, i’m not sure that will be relevant unless you didn’t deploy everything correctly?

At this point I would try to set everything to logging and see what comes out of the log.

---

<div class="post-metadata">

**Author:** ![jaredrothwell](https://avatars.discourse-cdn.com/v4/letter/j/8e8cbc/32.png) [@jaredrothwell](https://qa.fmod.com/u/jaredrothwell)\
**Post date:** [September 23, 2020, 6:59am UTC](https://qa.fmod.com/t/fmod-and-webgl-bankloadexception/16206/6 "2020-09-23T06:59:07Z")

</div>

I am referring to the plugins libfmodstudiounityplugin.bc and libfmodstudiounitypluginL.bc. Is there something else for logging? Is it the logging level in fmod studio settings that needs to be set to none to strip everything out?

I guess the real error is it [ERR] RuntimeBankModel::openFile : Failed to open file ‘[https://v6p9d9t4.ssl.hwcdn.net/html/2746266/StreamingAssets/Build/Desktop/Master.strings.bank](https://v6p9d9t4.ssl.hwcdn.net/html/2746266/StreamingAssets/Build/Desktop/Master.strings.bank)’

---

<div class="post-metadata">

**Author:** ![brett](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/brett/32/261_2.png) [@brett](https://qa.fmod.com/u/brett)\
**Post date:** [September 23, 2020, 11:32pm UTC](https://qa.fmod.com/t/fmod-and-webgl-bankloadexception/16206/7 "2020-09-23T23:32:41Z")

</div>

Hi ,  
I can see the reason for the fmod\_err\_unsupported error now.  
It is trying to load that URL as if it was a netstream (ie shoutcast/icecast etc) and failing.

It looks like an error was introduced into the unity wrapper code which you could edit yourself as a workaround if you like. We’ll patch this for the next release.

If you look at /assets/plugins/fmod/src/Runtime/RuntimeManager.cs, line 811

```
#elif UNITY_WEBGL && !UNITY_EDITOR
                if (bankPath.Contains("http://"))
                {
                    Instance.StartCoroutine(Instance.loadFromWeb(bankPath, bankName, loadSamples));
                }

```

Should be

```
#elif UNITY_WEBGL && !UNITY_EDITOR
                if (true)
                {
                    Instance.StartCoroutine(Instance.loadFromWeb(bankPath, bankName, loadSamples));
                }

```

so it catches https and http

---

<div class="post-metadata">

**Author:** ![jaredrothwell](https://avatars.discourse-cdn.com/v4/letter/j/8e8cbc/32.png) [@jaredrothwell](https://qa.fmod.com/u/jaredrothwell)\
**Post date:** [September 24, 2020, 4:12am UTC](https://qa.fmod.com/t/fmod-and-webgl-bankloadexception/16206/8 "2020-09-24T04:12:30Z")

</div>

Yep that was it! Thank you so much!
