# FMOD crashes using non-OS USB audio drivers

**URL:** <https://qa.fmod.com/t/fmod-crashes-using-non-os-usb-audio-drivers/21254>\
**Category:** FMOD Studio\
**Created:** [February 16, 2024, 6:20pm UTC](https://qa.fmod.com/t/fmod-crashes-using-non-os-usb-audio-drivers/21254 "2024-02-16T18:20:11Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![magrotten](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/magrotten/32/3968_2.png) [@magrotten](https://qa.fmod.com/u/magrotten)\
**Post date:** [February 16, 2024, 6:20pm UTC](https://qa.fmod.com/t/fmod-crashes-using-non-os-usb-audio-drivers/21254/1 "2024-02-16T18:20:11Z")

</div>

Hi folks!  
_(using FMOD 2.2.18 with UE5.1)_

Some of our developers using USB headphones _(either bluetooth - Apple airpods, or TRRS to USB - Logitech, Corsair with manufacturer software)_ are experiencing audio crashes, garbled audio _(persisting into OS after crash)_ or no audio when the first full level loads.

It seems to resolve on Windows when 3rd party software (such as Logitech GHub) is removed, perhaps allowing Windows to reinstate its ‘USB Audio Device’ driver.

I can see a history of related issues but not all confirm USB as being the cause.

Our Code team haven’t included any FMOD System Device callbacks or System::SetOutput instructions - could that be related, bearing in mind the devices aren’t changing mid-game?

---

<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:** [February 22, 2024, 1:15am UTC](https://qa.fmod.com/t/fmod-crashes-using-non-os-usb-audio-drivers/21254/2 "2024-02-22T01:15:49Z")

</div>

Hi,

Could I get some reproduction steps to cause the crash?

Is this happening in the UE editor or a packaged project?

---

<div class="post-metadata">

**Author:** ![magrotten](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/magrotten/32/3968_2.png) [@magrotten](https://qa.fmod.com/u/magrotten)\
**Post date:** [March 19, 2024, 1:08pm UTC](https://qa.fmod.com/t/fmod-crashes-using-non-os-usb-audio-drivers/21254/3 "2024-03-19T13:08:15Z")

</div>

Hi @Connor_FMOD sorry for delay this has been quite tricky to get more info on.  
Not sure it’s related but I’m using Google Resonance.

the log mentions:

- LogFMOD: Error: ‘System-\>setListenerAttributes(ListenerIndex, &Attributes)’ returned ‘Not enough memory or resources.’
- LogTemp: Error: Memory leak in ECS memory pool (edited)
- LogFMOD: Error: ‘bankArray[i]-\>unload()’ returned ‘Not enough memory or resources.’

Repro steps involve just playing our game normally it seems, might be a code issue then.

Are these kind of runtime stats reasonable?

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/5/5f9640b2a60af31601f2c9d1ddd38d75c0a4d4f8.png)  
 ![image](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/7/70a3698cf302db7660ec83145cad94e9f454bf8d.png)

---

<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:** [March 20, 2024, 3:38am UTC](https://qa.fmod.com/t/fmod-crashes-using-non-os-usb-audio-drivers/21254/4 "2024-03-20T03:38:26Z")

</div>

Hi,

> [@magrotten](#):
>
> Are these kind of runtime stats reasonable?

No, these look very high.

Could you please collect a [profiler capture](https://fmod.com/docs/2.02/studio/profiling.html) while reproducing this issue in game, then [package your profiler session](https://fmod.com/docs/2.02/studio/profiling.html) including banks (ticking the “Banks” option when exporting), and upload it to your [FMOD Profile](https://fmod.com/profile#uploads)?

> [@magrotten](#):
>
> - LogFMOD: Error: ‘System-\>setListenerAttributes(ListenerIndex, &Attributes)’ returned ‘Not enough memory or resources.’
> - LogTemp: Error: Memory leak in ECS memory pool (edited)
> - LogFMOD: Error: ‘bankArray[i]-\>unload()’ returned ‘Not enough memory or resources.’

Have you disabled the UE Audio system? Having both enabled can cause issues when it comes to resources.

---

<div class="post-metadata">

**Author:** ![magrotten](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/magrotten/32/3968_2.png) [@magrotten](https://qa.fmod.com/u/magrotten)\
**Post date:** [March 20, 2024, 8:56am UTC](https://qa.fmod.com/t/fmod-crashes-using-non-os-usb-audio-drivers/21254/5 "2024-03-20T08:56:29Z")

</div>

Will do asap

Is there a recommended way to disable unreal audio? Our coder is adding -nosound to the ini

I’ve reduced memory by removing bypassed fx, is this more reasonable?  
wondering why Global Memory is showing a negative value…  
 ![image](https://canada1.discourse-cdn.com/flex036/uploads/fmod/original/2X/2/2234ba7fa355ce3d736d6024fda626b07e7f06a9.png)  
Thanks for help @Connor_FMOD

---

<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:** [March 22, 2024, 3:12am UTC](https://qa.fmod.com/t/fmod-crashes-using-non-os-usb-audio-drivers/21254/6 "2024-03-22T03:12:25Z")

</div>

Hi,

Instructions for disabling UE audio can be found here: [Unreal Integration | User Guide - Disabling Unreal Audio Device](https://fmod.com/docs/2.02/unreal/user-guide.html#disabling-unreal-audio-device).

> [@magrotten](#):
>
> I’ve reduced memory by removing bypassed fx, is this more reasonable?  
> wondering why Global Memory is showing a negative value…

That is good progress, but having negative values is strange. Hopefully, the full profile package will help solve this.

---

<div class="post-metadata">

**Author:** ![magrotten](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/magrotten/32/3968_2.png) [@magrotten](https://qa.fmod.com/u/magrotten)\
**Post date:** [March 26, 2024, 7:39pm UTC](https://qa.fmod.com/t/fmod-crashes-using-non-os-usb-audio-drivers/21254/7 "2024-03-26T19:39:29Z")

</div>

Hi, i disabled Streaming Assets and the value normalised so that was not it.

I can now repro it using low quality BT headphones by going to a certain part of the world map where there are corrosion sfx. One of our playtesters has said that by selecting another audio input before booting game, then switching to the correct input after game loads into menu prevents the audio dropout - I can confirm this. [Bug - Audio :: TerraTech Worlds General Discussions](https://steamcommunity.com/app/2313330/discussions/0/4205868583237900483/#c6892266032678793676)

Does that suggest that our game code is loading the FMOD system prematurely or perhaps improperly somehow, and it’s only flagging on low quality BT/USB headphones when certain sfx trigger? Or possibly some code leak elsewhere or even FMOD event causing it - the profiler disconnects when this happens so not useful, and the game sfx instances creep up into high numbers.

PS I’m not sure if we have the level of support that enables me to assign the game to my FMOD 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:** [March 27, 2024, 12:21am UTC](https://qa.fmod.com/t/fmod-crashes-using-non-os-usb-audio-drivers/21254/8 "2024-03-27T00:21:24Z")

</div>

Hi,

> [@magrotten](#):
>
> PS I’m not sure if we have the level of support that enables me to assign the game to my FMOD profile

You can register a project no matter the level of support.

> [@magrotten](#):
>
> Does that suggest that our game code is loading the FMOD system prematurely or perhaps improperly somehow, and it’s only flagging on low quality BT/USB headphones when certain sfx trigger?

Unfortunately, without more information, I do not know. Are there any UE logs that you can share when the game crashes? Or would it be possible to get a copy of your UE project or a stripped-down version displaying the issue [uploaded](https://fmod.com/profile#uploads) to your [profile](https://fmod.com/profile)?

---

<div class="post-metadata">

**Author:** ![magrotten](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/magrotten/32/3968_2.png) [@magrotten](https://qa.fmod.com/u/magrotten)\
**Post date:** [April 5, 2024, 8:53am UTC](https://qa.fmod.com/t/fmod-crashes-using-non-os-usb-audio-drivers/21254/9 "2024-04-05T08:53:42Z")

</div>

Hey Connor,

It seems that events Virtualising is the cause, it’s as if the code doesn’t recognise it and it just starts leaking, causing audio to choke without crashing the game, but only using certain audio hardware.

I have disabled most of it but there are enemies that need to Virtualise otherwise they mute when out of range - I’ll let you know if we find out why it’s happening!

---

<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 7, 2024, 9:44pm UTC](https://qa.fmod.com/t/fmod-crashes-using-non-os-usb-audio-drivers/21254/10 "2024-04-07T21:44:37Z")

</div>

Hi,

Yes, please keep me updated.

Thanks for sharing your solution, though this does sound like a bug.
