# What can cause "FMOD error! (13) Error loading file." when loading a codec plugin?

**URL:** <https://qa.fmod.com/t/what-can-cause-fmod-error-13-error-loading-file-when-loading-a-codec-plugin/21174>\
**Category:** FMOD Engine\
**Tags:** cpp\
**Created:** [January 30, 2024, 10:24pm UTC](https://qa.fmod.com/t/what-can-cause-fmod-error-13-error-loading-file-when-loading-a-codec-plugin/21174 "2024-01-30T22:24:11Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![bLAZER](https://avatars.discourse-cdn.com/v4/letter/b/df705f/32.png) [@bLAZER](https://qa.fmod.com/u/bLAZER)\
**Post date:** [January 30, 2024, 10:24pm UTC](https://qa.fmod.com/t/what-can-cause-fmod-error-13-error-loading-file-when-loading-a-codec-plugin/21174/1 "2024-01-30T22:24:11Z")

</div>

I’ve created several succesful codec plugins, but when I’ve succesfully compiled this 3rd party library using my standard code for an FMOD codec plugin I get:  
"FMOD error! (13) Error loading file. (FMOD\_ERR\_FILE\_BAD) when loading the .dll.

If I remove some code I can load it, so it seems there are some specific (c++/asm mingw compiled) code that causes it.

So, what may cause this problem?

---

<div class="post-metadata">

**Author:** ![Connor\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/connor_fmod/32/3685_2.png) [@Connor\_FMOD](https://qa.fmod.com/u/Connor_FMOD)\
**Post date:** [January 31, 2024, 11:21pm UTC](https://qa.fmod.com/t/what-can-cause-fmod-error-13-error-loading-file-when-loading-a-codec-plugin/21174/2 "2024-01-31T23:21:18Z")

</div>

Hi,

What version of the FMOD integration are you using?

Could you call [Debug\_Initialize](https://fmod.com/docs/2.02/api/core-api-common.html#debug_initialize) with the logging flag set to [FMOD\_DEBUG\_LEVEL\_LOG](https://fmod.com/docs/2.02/api/core-api-common.html#fmod_debug_level_log). Please note that you will have to use the `fmodstudioL` lib and dll. Could you please share the Logs here?

---

<div class="post-metadata">

**Author:** ![bLAZER](https://avatars.discourse-cdn.com/v4/letter/b/df705f/32.png) [@bLAZER](https://qa.fmod.com/u/bLAZER)\
**Post date:** [March 27, 2024, 7:50am UTC](https://qa.fmod.com/t/what-can-cause-fmod-error-13-error-loading-file-when-loading-a-codec-plugin/21174/3 "2024-03-27T07:50:20Z")

</div>

I’m using version: 15/3/22 2.02.06 - Studio API minor release (build 124257)

When enabling logging I get:

```auto
No FMOD symbols found in dynamic library 'plugin/codec_lazyusf.dll'

```

I’m using the same plugin skeleton code as always and if I remove the included 3rd party code and compile I can load the plugin. Any ideas?

---

<div class="post-metadata">

**Author:** ![Connor\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/connor_fmod/32/3685_2.png) [@Connor\_FMOD](https://qa.fmod.com/u/Connor_FMOD)\
**Post date:** [April 8, 2024, 5:04am UTC](https://qa.fmod.com/t/what-can-cause-fmod-error-13-error-loading-file-when-loading-a-codec-plugin/21174/4 "2024-04-08T05:04:24Z")

</div>

Hi,

Apologies for the delayed response. The issue may be that the third-party code has introduced a dependency that hasn’t been satisfied, causing the library to fail loading. A solution may be using a tool like [Dependencies](https://github.com/lucasg/Dependencies) to see what it might be.

Hope this helps!

---

<div class="post-metadata">

**Author:** ![bLAZER](https://avatars.discourse-cdn.com/v4/letter/b/df705f/32.png) [@bLAZER](https://qa.fmod.com/u/bLAZER)\
**Post date:** [April 10, 2024, 10:57pm UTC](https://qa.fmod.com/t/what-can-cause-fmod-error-13-error-loading-file-when-loading-a-codec-plugin/21174/5 "2024-04-10T22:57:21Z")

</div>

I checked with [Dependencies](https://github.com/lucasg/Dependencies) but no dependencies were missing. Any other ideas?

---

<div class="post-metadata">

**Author:** ![Connor\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/connor_fmod/32/3685_2.png) [@Connor\_FMOD](https://qa.fmod.com/u/Connor_FMOD)\
**Post date:** [April 15, 2024, 12:49am UTC](https://qa.fmod.com/t/what-can-cause-fmod-error-13-error-loading-file-when-loading-a-codec-plugin/21174/6 "2024-04-15T00:49:04Z")

</div>

Hi,

Would it be possible to get the plugin uploaded to your [profile](https://fmod.com/profile)? Please note you must register a project with us before uploading files.

---

<div class="post-metadata">

**Author:** ![bLAZER](https://avatars.discourse-cdn.com/v4/letter/b/df705f/32.png) [@bLAZER](https://qa.fmod.com/u/bLAZER)\
**Post date:** [April 18, 2024, 8:36am UTC](https://qa.fmod.com/t/what-can-cause-fmod-error-13-error-loading-file-when-loading-a-codec-plugin/21174/7 "2024-04-18T08:36:49Z")

</div>

Hi, I’ve now uploaded the plugin to my profile.

---

<div class="post-metadata">

**Author:** ![Connor\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/connor_fmod/32/3685_2.png) [@Connor\_FMOD](https://qa.fmod.com/u/Connor_FMOD)\
**Post date:** [April 25, 2024, 11:57pm UTC](https://qa.fmod.com/t/what-can-cause-fmod-error-13-error-loading-file-when-loading-a-codec-plugin/21174/8 "2024-04-25T23:57:22Z")

</div>

Hi,

Apologies for the delayed response again.

Thank you for uploading that, having a look at the codec in VSCode I cannot see `FMODGetCodecDescription` anywhere. This is required to be able to load the codec correctly. Is it possible that the 3rd party you are using is replacing these functions?
