# Memory Error in fmodstudio11005\_v2

**URL:** <https://qa.fmod.com/t/memory-error-in-fmodstudio11005-v2/14299>\
**Category:** Unity\
**Created:** [January 14, 2019, 7:31am UTC](https://qa.fmod.com/t/memory-error-in-fmodstudio11005-v2/14299 "2019-01-14T07:31:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jesen](https://avatars.discourse-cdn.com/v4/letter/j/d2c977/32.png) [@jesen](https://qa.fmod.com/u/jesen)\
**Post date:** [January 14, 2019, 7:32am UTC](https://qa.fmod.com/t/memory-error-in-fmodstudio11005-v2/14299/1 "2019-01-14T07:32:00Z")

</div>

There was a topic by Stephen Danton [Unity // ERR\_MEMORY - Not enough memory or resources](https://qa.fmod.com/t/unity-err-memory-not-enough-memory-or-resources/13788) , “After repeated usage (play-exit-play) FMOD will fail, raising the ERR\_MEMORY noted in the title. The number of play-exit-plays does not seem to be deterministic.”,I met the same problem ,i want to how to fix it.

---

<div class="post-metadata">

**Author:** ![cameron-fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/cameron-fmod/32/261_2.png) [@cameron-fmod](https://qa.fmod.com/u/cameron-fmod)\
**Post date:** [January 17, 2019, 12:15am UTC](https://qa.fmod.com/t/memory-error-in-fmodstudio11005-v2/14299/2 "2019-01-17T00:15:51Z")

</div>

This should have been fixed in 1.10.05.

If you are still seeing this error, are you able to provide some information on the issue?

- The platform this is occurring on.
- The version of Unity being used.
- Any steps used to reproduce this that may differ from the post linked.

---

<div class="post-metadata">

**Author:** ![spootymilk](https://avatars.discourse-cdn.com/v4/letter/s/9fc348/32.png) [@spootymilk](https://qa.fmod.com/u/spootymilk)\
**Post date:** [May 17, 2019, 4:27pm UTC](https://qa.fmod.com/t/memory-error-in-fmodstudio11005-v2/14299/3 "2019-05-17T16:27:00Z")

</div>

Hi,  
I still have this error also. In my game, I reset RuntimeManager (destroying it) because i want to set softwareformat in a different speaker mode (from 7.1 to 5.1 for example). I’m also seeing this error if a create lowlevel systems.  
I excute this function before creating a new system :  
Destroy()  
{  
result = system.release();  
system.clearhandle();  
}

result return ‘ok’.

but it seems it doesn’t clean or release anything. The RAM consumtion is going up every time i destroy it and create a new one.  
I’m using FMOD API 1.10.13, Unity 2018.2.21 on windows 10 last build

Edit :  
After making a lot of tests, i’ve not the error anymore… the only think i’ve done to make it work is to comment the OnDisable() in the studiolistener script.  
Hope this can help other people.

---

<div class="post-metadata">

**Author:** ![cameron-fmod](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/cameron-fmod/32/261_2.png) [@cameron-fmod](https://qa.fmod.com/u/cameron-fmod)\
**Post date:** [May 22, 2019, 4:00am UTC](https://qa.fmod.com/t/memory-error-in-fmodstudio11005-v2/14299/4 "2019-05-22T04:00:01Z")

</div>

> [@spootymilk](#):
>
> The RAM consumtion is going up every time i destroy it and create a new one.

This means that the previous systems are not being released/destroyed properly.  
You can get the Low Level or Studio systems from the RuntimeManager rather than creating your own using:

```csharp
var studioSystem = FMODUnity.RuntimeManager.StudioSystem;
var lowLevelSystem = FMODUnity.RuntimeManager.LowLevelSystem;

```
